diff options
Diffstat (limited to 'docutils/tools/dev/generate_punctuation_chars.py')
-rw-r--r-- | docutils/tools/dev/generate_punctuation_chars.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docutils/tools/dev/generate_punctuation_chars.py b/docutils/tools/dev/generate_punctuation_chars.py index 9a2795ff4..9d9869243 100644 --- a/docutils/tools/dev/generate_punctuation_chars.py +++ b/docutils/tools/dev/generate_punctuation_chars.py @@ -244,6 +244,7 @@ def character_category_patterns(): return [''.join(chars) for chars in (openers, closers, delimiters, closing_delimiters)] + def separate_wide_chars(s): """Return (s1,s2) with characters above 0xFFFF in s2""" maxunicode_narrow = 0xFFFF @@ -251,6 +252,7 @@ def separate_wide_chars(s): l2 = [ch for ch in s if ord(ch) > maxunicode_narrow] return ''.join(l1), ''.join(l2) + def mark_intervals(s): """Return s with shortcut notation for runs of consecutive characters @@ -276,6 +278,7 @@ def mark_intervals(s): return ''.join(l2) + def wrap_string(s, startstring="('", endstring="')", wrap=67): """Line-wrap a unicode string literal definition.""" c = len(startstring) @@ -305,6 +308,7 @@ def print_differences(old, new, name): else: print('%s unchanged' % name) + # Output # ------ # |