Tags: jquast/wcwidth
Tags
Complete textwrap.wrap() with 6 missing params! (#207) Make available all keyword parameters for ``wcwidth.wrap()`` as ``textwrap.wrap()``. New Parameters expand_tabs, replace_whitespace, fix_sentence_endings, drop_whitespace, max_lines, and placeholder for wrap(), completing stdlib textwrap.wrap() compatibility.
Standalone emoji support (#202) CLoses #133 and #154. This decreases general performance by ~10% for complex CJK/combining and emoji strings. - Regional Indicator pairs measured as one 2-cell flag; unpaired RI measured individually - Fitzpatrick skin tone modifiers are zero-width when following an emoji base, Narrow when "standalone"
New functions: iter_graphemes_reverse(), grapheme_boundary_before() (#… …192) As I audit and integrate with dependent libraries, in [urwid](https://github.com/urwid/urwid/) I find the need to help "move the cursor left" and look backwards from a location in a string to the previous boundary, while looking forward using ``iter_graphemes()``. Looking backwards is provided by new function ``grapheme_boundary_before()``. The more obvious function, ``iter_graphemes_reverse()`` is provided (though not useful to urwid). @penguinolog
PreviousNext