This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Guillaume Sanchez
Recipients Guillaume Sanchez, christian.heimes, r.david.murray, steven.daprano
Date 2017-07-14.00:43:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499993016.99.0.544446632019.issue30717@psf.upfronthosting.co.za>
In-reply-to
Content
Hello Steven!

Thanks for your reactivity!

unicodedata.grapheme_cluster_break() takes a unicode code point as an argument and return its GraphemeBreakProperty as a string. Possible values are listed here: http://www.unicode.org/reports/tr29/#CR

help(unicodedata.grapheme_cluster_break) says:
grapheme_cluster_break(chr, /)
    Returns the GraphemeBreakProperty assigned to the character chr as string.

====

unicodedata.break_graphemes() takes a unicode string as argument and returns an GraphemeClusterIterator that spits consecutive graphemes clusters.

help(unicodedata.break_graphemes) says:

break_graphemes(unistr, /)
    Returns an iterator to iterate over grapheme clusters in unistr.
    
    It uses extended grapheme cluster rules from TR29.


Is there anything else you would like to know? Don't hesitate to ask :)

Thank you for your time!
History
Date User Action Args
2017-07-14 00:43:37Guillaume Sanchezsetrecipients: + Guillaume Sanchez, christian.heimes, steven.daprano, r.david.murray
2017-07-14 00:43:36Guillaume Sanchezsetmessageid: <1499993016.99.0.544446632019.issue30717@psf.upfronthosting.co.za>
2017-07-14 00:43:36Guillaume Sanchezlinkissue30717 messages
2017-07-14 00:43:36Guillaume Sanchezcreate