Next / Previous / Contents / Shipman's homepage

18.8. Paragraph.addPhrase(): Add one phrase to the paragraph

For a discussion of the phrase structure used to represent arbitrary text, see class-Paragraph.

birdnotes.py
# - - -   P a r a g r a p h . a d d P h r a s e

    def addPhrase ( self, tag, text ):
        """Add one phrase to self.__phraseList.
        """
        self.__phraseList.append ( (tag, text) )