Next / Previous / Contents / Shipman's homepage

6.14. Txny.abbrToTeXComma()

Very similar to Section 6.13, “Txny.abbrToTeX(). The only difference is that we leave the English name inverted.

xnomo3.py
# - - -   T x n y . a b b r T o T e x C o m m a   - - -

    def abbrToTeXComma ( self, abbr ):
        """Return self's English name marked up for TeX (inverted).
        """
        #-- 1 --
        # [ if abbr, standardized, is a key in self.__abbrEng ->
        #     rawEng  :=  the related value
        #   else -> raise KeyError ]
        rawEng = self.abbrToRawEng(abbr)

        #-- 2 --
        # [ return rawEng in TeX notation ]
        return texify(rawEng)