Skip to content

Commit

Permalink
CLDR-17661 ii: add yiii numbering system
Browse files Browse the repository at this point in the history
- this is just a draft
- this is NOT how Yiii numbers work, but just to test the mechanism.
  • Loading branch information
srl295 committed Jul 8, 2024
1 parent 5bb8280 commit 7c20b5c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions common/bcp47/number.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="vaii" description="Vai digits" since="21"/>
<type name="wara" description="Warang Citi digits" since="28"/>
<type name="wcho" description="Wancho digits" since="35"/>
<type name="yiii" description="Sichuan Yi digits" since="46"/>
</key>
</keyword>
</ldmlBCP47>
3 changes: 3 additions & 0 deletions common/main/root.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3295,6 +3295,9 @@ Warnings: All cp values have U+FE0F characters removed. See /annotationsDerived/
<symbols numberSystem="wcho">
<alias source="locale" path="../symbols[@numberSystem='latn']"/>
</symbols>
<symbols numberSystem="yiii">
<alias source="locale" path="../symbols[@numberSystem='latn']"/>
</symbols>
<decimalFormats>
<alias source="locale" path="../decimalFormats[@numberSystem='latn']"/>
</decimalFormats>
Expand Down
14 changes: 13 additions & 1 deletion common/supplemental/coverageLevels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<coverageVariable key="%tibtDefaultLanguages" value="(dz)"/>
<coverageVariable key="%tibtNativeLanguages" value="(bo)"/>
<coverageVariable key="%vaiiNativeLanguages" value="(vai)"/> <!-- regardless of script -->
<coverageVariable key="%yiiiNativeLanguages" value="(ii)"/>

<!-- Additional variables for the restructuring -->

Expand Down Expand Up @@ -555,7 +556,7 @@ For terms of use, see http://www.unicode.org/copyright.html
<coverageLevel value="moderate" inLanguage="%tibtDefaultLanguages" match="numbers/currencyFormats[@numberSystem='tibt']/currencyFormatLength/currencyFormat%stdPattern[@alt='%anyAttribute']"/>
<coverageLevel value="basic" inLanguage="%tibtDefaultLanguages" match="numbers/currencyFormats[@numberSystem='tibt']/currencyFormatLength/currencyFormat%stdPattern"/>
<coverageLevel value="moderate" inLanguage="%tibtDefaultLanguages" match="numbers/currencyFormats[@numberSystem='tibt']/currencyFormatLength[@type='short']/currencyFormat[@type='standard']/pattern[@type='%compactDecimalTypes']"/>

<coverageLevel value="moderate" inScript="%adlmDefaultScripts" match="numbers/decimalFormats[@numberSystem='adlm']/decimalFormatLength[@type='%shortLong']/decimalFormat[@type='standard']/pattern[@type='%compactDecimalTypes']"/>
<coverageLevel value="basic" inScript="%adlmDefaultScripts" match="numbers/decimalFormats[@numberSystem='adlm']/decimalFormatLength/decimalFormat%stdPattern"/>
<coverageLevel value="moderate" inLanguage="%arabDefaultLanguages" inScript="Arab" match="numbers/decimalFormats[@numberSystem='arab']/decimalFormatLength[@type='%shortLong']/decimalFormat[@type='standard']/pattern[@type='%compactDecimalTypes']"/>
Expand Down Expand Up @@ -885,6 +886,17 @@ For terms of use, see http://www.unicode.org/copyright.html
<coverageLevel inLanguage="%vaiiNativeLanguages" value="moderate" match="numbers/scientificFormats[@numberSystem='vaii']/scientificFormatLength/scientificFormat%stdPattern"/>
<coverageLevel inLanguage="%vaiiNativeLanguages" value="moderate" match="numbers/percentFormats[@numberSystem='vaii']/percentFormatLength/percentFormat%stdPattern"/>
<coverageLevel inLanguage="%vaiiNativeLanguages" value="moderate" match="numbers/decimalFormats[@numberSystem='vaii']/decimalFormatLength[@type='%shortLong']/decimalFormat[@type='standard']/pattern[@type='%compactDecimalTypes']"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/symbols[@numberSystem='yiii']/decimal"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/symbols[@numberSystem='yiii']/group"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/symbols[@numberSystem='yiii']/plusSign"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/symbols[@numberSystem='yiii']/minusSign"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/symbols[@numberSystem='yiii']/percentSign"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/decimalFormats[@numberSystem='yiii']/decimalFormatLength/decimalFormat%stdPattern"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/currencyFormats[@numberSystem='yiii']/currencyFormatLength/currencyFormat%stdPattern"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/currencyFormats[@numberSystem='yiii']/currencyFormatLength/currencyFormat%stdPattern[@alt='%anyAttribute']"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/scientificFormats[@numberSystem='yiii']/scientificFormatLength/scientificFormat%stdPattern"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/percentFormats[@numberSystem='yiii']/percentFormatLength/percentFormat%stdPattern"/>
<coverageLevel inLanguage="%yiiiNativeLanguages" value="moderate" match="numbers/decimalFormats[@numberSystem='yiii']/decimalFormatLength[@type='%shortLong']/decimalFormat[@type='standard']/pattern[@type='%compactDecimalTypes']"/>

<coverageLevel value="moderate" match="dates/calendars/calendar[@type='gregorian']/dateTimeFormats/appendItems/appendItem[@request='Timezone']"/>
<coverageLevel value="moderate" match="dates/calendars/calendar[@type='generic']/dateTimeFormats/availableFormats/dateFormatItem[@id='%dateFormatItems']"/>
Expand Down
1 change: 1 addition & 0 deletions common/supplemental/numberingSystems.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ For terms of use, see http://www.unicode.org/copyright.html
<numberingSystem id="vaii" type="numeric" digits="꘠꘡꘢꘣꘤꘥꘦꘧꘨꘩"/>
<numberingSystem id="wara" type="numeric" digits="&#x118E0;&#x118E1;&#x118E2;&#x118E3;&#x118E4;&#x118E5;&#x118E6;&#x118E7;&#x118E8;&#x118E9;"/>
<numberingSystem id="wcho" type="numeric" digits="&#x1E2F0;&#x1E2F1;&#x1E2F2;&#x1E2F3;&#x1E2F4;&#x1E2F5;&#x1E2F6;&#x1E2F7;&#x1E2F8;&#x1E2F9;"/>
<numberingSystem id="yiii" type="numeric" digits="ꊰꋍꑍꌕꇖꉬꃘꏃꉆꈬ"/> <!-- 0…9-->
</numberingSystems>
</supplementalData>
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,7 @@ public String getLocaleID() {
{"vaii", "numbers"},
{"wara", "numbers"},
{"wcho", "numbers"},
{"yiii", "numbers"},
{"zhuyin", "collation"}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public void TestCoverageCompleteness() {
+ "gara|gong|gonm|gukh|hanidays|hmng|hmnp|java|jpanyear|kali|kawi|krai|lana(tham)?|lepc|limb|"
+ "math(bold|dbl|mono|san[bs])|modi|mong|mroo|mtei|mymr(epka|pao|shan|tlng)|"
+ "nagm|newa|nkoo|olck|onao|osma|outlined|rohg|saur|segment|shrd|sin[dh]|sora|sund|sunu|"
+ "takr|talu|tirh|tnsa|vaii|wara|wcho)");
+ "takr|talu|tirh|tnsa|vaii|wara|wcho|yiii)");

final Pattern collation100 =
PatternCache.get(
Expand Down

0 comments on commit 7c20b5c

Please sign in to comment.