Return True if word ends with a sentence-period, False otherwise. Allows for contraction cases which will not end a line: - A single letter (if breakInitial is True) - Abbreviations: 'c.f.', 'e.g.', 'i.e.' (or mixed-case versions)
(self, word)
| 124 | """Count of markup check warnings encountered.""" |
| 125 | |
| 126 | def endSentence(self, word): |
| 127 | """Return True if word ends with a sentence-period, False otherwise. |
| 128 | |
| 129 | Allows for contraction cases which will not end a line: |
| 130 | |
| 131 | - A single letter (if breakInitial is True) |
| 132 | - Abbreviations: 'c.f.', 'e.g.', 'i.e.' (or mixed-case versions)""" |
| 133 | if (word[-1:] != '.' or |
| 134 | endAbbrev.search(word) or |
| 135 | (self.breakInitial and endInitial.match(word))): |
| 136 | return False |
| 137 | |
| 138 | return True |
| 139 | |
| 140 | def vuidAnchor(self, word): |
| 141 | """Return True if word is a Valid Usage ID Tag anchor.""" |