Skip to content

Commit

Permalink
Update generation scripts for Unicode 13.0, 13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergnat committed Oct 1, 2020
1 parent 6007097 commit f212c08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Empty file modified tools/UCD-download.p6 100755 → 100644
Empty file.
16 changes: 13 additions & 3 deletions tools/ucd2c.pl 100755 → 100644
Expand Up @@ -125,7 +125,12 @@ sub main {
#BidiMirroring();
goto skip_most if $SKIP_MOST_MODE;
binary_props('extracted/DerivedBinaryProperties');
binary_props("emoji-$highest_emoji_version/emoji-data");
if (-e "emoji-$highest_emoji_version/emoji-data") {
binary_props("emoji-$highest_emoji_version/emoji-data")
}
else {
binary_props("emoji/emoji-data");
}
enumerated_property('ArabicShaping', 'Joining_Group', {}, 3);
enumerated_property('Blocks', 'Block', { No_Block => 0 }, 1);
# sub Jamo sets names properly. Though at the moment Jamo_Short_Name likely
Expand Down Expand Up @@ -1871,13 +1876,17 @@ sub UnicodeData {
|| $point->{name} eq '<CJK Ideograph Extension C>'
|| $point->{name} eq '<CJK Ideograph Extension D>'
|| $point->{name} eq '<CJK Ideograph Extension E>'
|| $point->{name} eq '<CJK Ideograph Extension F>')
|| $point->{name} eq '<CJK Ideograph Extension F>'
|| $point->{name} eq '<CJK Ideograph Extension G>')
{
$point->{name} = '<CJK UNIFIED IDEOGRAPH>'
}
elsif ($point->{name} eq '<Tangut Ideograph>') {
$point->{name} = '<TANGUT IDEOGRAPH>';
}
elsif ($point->{name} eq '<Tangut Ideograph Supplement>') {
$point->{name} = '<TANGUT IDEOGRAPH>';
}
elsif ($point->{name} eq '<Hangul Syllable>') {
$point->{name} = '<HANGUL SYLLABLE>';
}
Expand All @@ -1899,7 +1908,8 @@ sub UnicodeData {
|| $point->{name} eq '<CJK UNIFIED IDEOGRAPH>'
|| $point->{name} eq '<private-use>'
|| $point->{name} eq '<surrogate>'
|| $point->{name} eq '<TANGUT IDEOGRAPH>') {
|| $point->{name} eq '<TANGUT IDEOGRAPH>'
|| $point->{name} eq '<TANGUT IDEOGRAPH SUPPLIMENT>') {
}
else {
die "$point->{name} encountered. Make sure to check https://www.unicode.org/versions/Unicode10.0.0/ch04.pdf for Name Derivation Rule Prefix Strings\n" .
Expand Down

0 comments on commit f212c08

Please sign in to comment.