[3.14] gh-74902: Add Unicode Grapheme Cluster Break algorithm (GH-143076)#148247
Draft
StanFromIreland wants to merge 3 commits intopython:3.14from
Draft
[3.14] gh-74902: Add Unicode Grapheme Cluster Break algorithm (GH-143076)#148247StanFromIreland wants to merge 3 commits intopython:3.14from
StanFromIreland wants to merge 3 commits intopython:3.14from
Conversation
…ythonGH-143076) Add the unicodedata.iter_graphemes() function to iterate over grapheme clusters according to rules defined in Unicode Standard Annex #29. Add unicodedata.grapheme_cluster_break(), unicodedata.indic_conjunct_break() and unicodedata.extended_pictographic() functions to get the properties of the character which are related to the above algorithm. (cherry picked from commit bab1d7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Guillaume "Vermeille" Sanchez <guillaume.v.sanchez@gmail.com>
Member
Author
|
This is an alternative proposal for #148218. This would also require updating |
Member
|
I don't think that it's a good idea to backport so much code in a stable branch. I don't think that fixing the issue in Python 3.14 is important enough to justify this backport. Python had this bug for many years. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
unicodedata._iter_graphemes()function to iterate over grapheme clusters according to rules defined in Unicode Standard Annex #29.Add
unicodedata._grapheme_cluster_break(),unicodedata._indic_conjunct_break()andunicodedata._extended_pictographic()functions to get the properties of the character which are related to the above algorithm.(cherry picked from commits bab1d7a, 85013d7 and 58ccf21)