Skip to content

Commit

Permalink
update CJKRadicals & EqUIdeo
Browse files Browse the repository at this point in the history
  • Loading branch information
markusicu committed May 4, 2024
1 parent dbc2ad7 commit ad9d362
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions unicodetools/data/ucd/dev/CJKRadicals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
212; 2FD3; 9F8D
212'; 2EF0; 9F99
212''; 2EEF; 7ADC
212'''; ; 31DE5
213; 2FD4; 9F9C
213'; 2EF3; 9F9F
213''; 2EF2; 4E80
Expand Down
2 changes: 2 additions & 0 deletions unicodetools/data/ucd/dev/EquivalentUnifiedIdeograph.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,5 +404,7 @@
# 31CE; CJK STROKE HZZZ
# 31E2; CJK STROKE PG
# 31E3; CJK STROKE Q
# 31E4; CJK STROKE HXG
# 31E5; CJK STROKE SZP

# EOF
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,13 @@ private void getCJKRadicals(IndexUnicodeProperties iup) {
// non-Chinese simplified version of the given radical.
simplified = 2;
--radicalNumberLimit;
if (radicalString.charAt(radicalNumberLimit - 1) == '\'') {
// Unicode 16 UAX #38:
// Three apostrophes after the radical indicates a
// second non-Chinese simplified version of the given radical.
simplified = 3;
--radicalNumberLimit;
}
}
}
int radicalNumber = parseInt(radicalString, 0, radicalNumberLimit);
Expand Down

0 comments on commit ad9d362

Please sign in to comment.