Skip to content

Commit

Permalink
176-A83
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Aug 16, 2023
1 parent 9cc3f41 commit edaecf2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions unicodetools/data/ucd/dev/auxiliary/GraphemeBreakProperty.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GraphemeBreakProperty-15.1.0.txt
# Date: 2023-01-05, 20:34:41 GMT
# Date: 2023-08-16, 16:08:23 GMT
# © 2023 Unicode®, Inc.
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
# For terms of use, see https://www.unicode.org/terms_of_use.html
Expand Down Expand Up @@ -648,8 +648,10 @@ A960..A97C ; L # Lo [29] HANGUL CHOSEONG TIKEUT-MIEUM..HANGUL CHOSEONG SSANG

1160..11A7 ; V # Lo [72] HANGUL JUNGSEONG FILLER..HANGUL JUNGSEONG O-YAE
D7B0..D7C6 ; V # Lo [23] HANGUL JUNGSEONG O-YEO..HANGUL JUNGSEONG ARAEA-E
16D63 ; V # Lo KIRAT RAI VOWEL SIGN AA
16D67..16D6A ; V # Lo [4] KIRAT RAI VOWEL SIGN E..KIRAT RAI VOWEL SIGN AU

# Total code points: 95
# Total code points: 100

# ================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.unicode.props.UnicodeProperty;
import org.unicode.props.UnicodeProperty.AliasAddAction;
import org.unicode.props.UnicodeProperty.BaseProperty;
import org.unicode.props.UnicodeProperty.RegexMatcher;
import org.unicode.props.UnicodeProperty.SimpleProperty;
import org.unicode.props.UnicodeProperty.UnicodeMapProperty;
import org.unicode.text.utility.Settings;
Expand Down Expand Up @@ -1090,8 +1091,16 @@ public int getMaxWidth(boolean isShort) {
unicodeMap.putAll(gcbSpacingMarkSet, "SpacingMark");

final UnicodeProperty hangul = getProperty("Hangul_Syllable_Type");
final UnicodeProperty name = getProperty("Name");
unicodeMap.putAll(hangul.getSet("L"), "L");
unicodeMap.putAll(hangul.getSet("V"), "V");
var regexMatcher = new RegexMatcher();
unicodeMap.putAll(
hangul.getSet("V")
.addAll(
name.getSet(
regexMatcher.set(
"KIRAT RAI VOWEL SIGN (E|AI|AA|O|AU)"))),
"V");
unicodeMap.putAll(hangul.getSet("T"), "T");
unicodeMap.putAll(hangul.getSet("LV"), "LV");
unicodeMap.putAll(hangul.getSet("LVT"), "LVT");
Expand Down

0 comments on commit edaecf2

Please sign in to comment.