Next / Previous / Contents / Shipman's homepage

6.10. Txny.abbrToHtmlComma()

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

    def abbrToHtmlComma(self, abbr, cssClass=None):
        '''Convert English name to HTML
        '''

This is nearly identical to Section 6.9, “Txny.abbrToHtml() except that it does not normalize the English name, but uses the inverted version.

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

        #-- 2 --
        # [ if cssClass is None ->
        #     return rawEng as HTML, with italics marked up using an
        #     'i' element
        #   else ->
        #     return rawEng as HTML, with italics marked up using a
        #     'span' element with class=(cssClass) ]
        return htmlify(rawEng, cssClass)