From c567214e0b7d62841e7dd6dec09aa06d424f9857 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Mon, 13 Nov 2023 18:59:52 -0800 Subject: [PATCH 1/3] Add new LineBreak properties added in ICU 74 --- components/properties/src/props.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/properties/src/props.rs b/components/properties/src/props.rs index b6f721bc4be..9355a8876c0 100644 --- a/components/properties/src/props.rs +++ b/components/properties/src/props.rs @@ -1685,6 +1685,12 @@ 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! { From ef8202ac5e1920c61cd724fd853be779c31361b7 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Mon, 13 Nov 2023 19:06:59 -0800 Subject: [PATCH 2/3] cargo fmt --- components/properties/src/props.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/properties/src/props.rs b/components/properties/src/props.rs index 9355a8876c0..247b505c817 100644 --- a/components/properties/src/props.rs +++ b/components/properties/src/props.rs @@ -1685,6 +1685,7 @@ 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" From faafcd980263e9dbe4ed0fd93e58be7c6970b3e7 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Tue, 14 Nov 2023 09:55:24 -0800 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 386014ec258..2ff4e347a56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,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`