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

update CJKRadicals & EqUIdeo #803

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading