grapheme cluster library

Chris Angelico rosuav at gmail.com
Sat Oct 21 02:21:40 EDT 2017


On Sat, Oct 21, 2017 at 3:25 PM, Stefan Ram <ram at zedat.fu-berlin.de> wrote:
> Rustom Mody <rustompmody at gmail.com> writes:
>>Is there a recommended library for manipulating grapheme clusters?
>
>   The Python Library has a module "unicodedata", with functions like:
>
> |unicodedata.normalize( form, unistr )
> |
> |Returns the normal form »form« for the Unicode string »unistr«.
> |Valid values for »form« are »NFC«, »NFKC«, »NFD«, and »NFKD«.
>
>   . I don't know whether the transformation you are looking for
>   is one of those.

No, that's at a lower level than grapheme clusters.

Rustom, have you looked on PyPI? There are a couple of hits, including
one simply called "grapheme".

ChrisA



More information about the Python-list mailing list