Skip to content

Commit

Permalink
Add new LineBreak properties added in ICU 74 (#4282)
Browse files Browse the repository at this point in the history
Fixes #4132
  • Loading branch information
sffc authored Nov 14, 2023
1 parent f2d98b1 commit 306af7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Canonicalize transform extensions to lowercase (https://github.com/unicode-org/icu4x/pull/4134)
- `icu_properties`
- Support Indic_Syllabic_Category in icu_properties. (https://github.com/unicode-org/icu4x/pull/4176)
- Add enum constants for new Unicode 15.1 Line_Break properties. (https://github.com/unicode-org/icu4x/issues/4132)
- `icu_segmenter`
- Fix Unicode 15.0 sentence segmentation (https://github.com/unicode-org/icu4x/pull/4213)
- `icu_unicodeset_parse`
Expand Down
7 changes: 7 additions & 0 deletions components/properties/src/props.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,13 @@ impl LineBreak {
pub const EBase: LineBreak = LineBreak(40); // name="EB"
pub const EModifier: LineBreak = LineBreak(41); // name="EM"
pub const ZWJ: LineBreak = LineBreak(42); // name="ZWJ"

// Added in ICU 74:
pub const Aksara: LineBreak = LineBreak(43); // name="AK"
pub const AksaraPrebase: LineBreak = LineBreak(44); // name=AP"
pub const AksaraStart: LineBreak = LineBreak(45); // name=AS"
pub const ViramaFinal: LineBreak = LineBreak(46); // name=VF"
pub const Virama: LineBreak = LineBreak(47); // name=VI"
}

impl_value_getter! {
Expand Down

0 comments on commit 306af7b

Please sign in to comment.