Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement full Unicode 16.0.0 extended grapheme breaking. #719

Merged
merged 17 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pkgs/characters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ using a [`CharacterRange`][CharacterRange].

Based on Unicode <!-- unicode-version -->version 16.0.0<!-- /unicode-version -->.

This package is not script-aware, and does not currently support the rule for
Indic Conjunct Breaks introduced in Unicode 15.10.0
([GB9c](https://www.unicode.org/reports/tr29/tr29-43.html#GB9c)).

## Unicode characters and representations

There is no such thing as plain text.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/characters/lib/src/characters_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class StringCharacterRange implements CharacterRange {
}
}
state = move(state, category);
if (state & stateNoBreak == 0 && --count == 0) {
if (state & maskBreak == flagBreak && --count == 0) {
_move(newStart, index);
return true;
}
Expand Down
Loading
Loading