Next / Previous / Contents / Shipman's homepage

9.11. Taxon.engHtmlSubelt()

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

    def engHtmlSubelt(self, node, cssClass=None):
        '''Add the English name to an et.Element.
        '''

See Section 11.5, “engDeComma(): Normalize an English name” and Section 10.2, “htmlSubelt(): Add a name to an et.Element.

xnomo3.py
        #-- 1 --
        # [ normEng  :=  self.__rawEng, normalized ]
        normEng = abbrMod.engDeComma(self.__rawEng)
        
        #-- 2 --
        # [ if cssClass is None ->
        #     node  :=  node with normEng added, using HTML 'i'
        #         elements to mark up italics
        #   else ->
        #     node  :=  node with normEng added, using HTML 'span'
        #         elements with class=(cssClass) to mark up italics ]
        htmlSubelt(node, normEng, cssClass)