Message298326
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! |
|
Date |
User |
Action |
Args |
2017-07-14 00:43:37 | Guillaume Sanchez | set | recipients:
+ Guillaume Sanchez, christian.heimes, steven.daprano, r.david.murray |
2017-07-14 00:43:36 | Guillaume Sanchez | set | messageid: <1499993016.99.0.544446632019.issue30717@psf.upfronthosting.co.za> |
2017-07-14 00:43:36 | Guillaume Sanchez | link | issue30717 messages |
2017-07-14 00:43:36 | Guillaume Sanchez | create | |
|