Next / Previous / Contents / Shipman's homepage

6.12. Txny.abbrHtmlSubeltComma()

xnomo3.py
# - - -   T x n y . a b b r H t m l S u b e l t C o m m a

    def abbrHtmlSubeltComma(self, abbr, node, cssClass=None):
        '''Attach the inverted English name to an XHTML Element.
        '''

This method is identical to Section 6.11, “Txny.abbrHtmlSubelt() except that it does not normalize the name.

xnomo3.py
        #-- 1 --
        # [ if abbr, standardized, is a key in self.__abbrEng ->
        #     rawEng  :=  the related English name
        #   else -> raise KeyError ]
        rawEng = self.abbrToRawEng(abbr)

        #-- 2 --
        # [ if cssClass is None ->
        #     node  :=  node with content added representing rawEng,
        #         using an 'i' element
        #   else ->
        #     node  :=  node with content added representing rawEng,
        #         using a 'span' element with class=(cssClass) ] 
        htmlSubelt(node, rawEng, cssClass)