]> granicus.if.org Git - icu/commitdiff
ICU-11276 Adding pluralRanges.txt data file.
authorShane Carr <shane@unicode.org>
Fri, 14 Sep 2018 03:44:45 +0000 (20:44 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:40 +0000 (14:27 -0700)
The code was already in NewLdml2IcuConverter, but it was not being called from ICU.

icu4c/source/data/build.xml
icu4c/source/data/misc/miscfiles.mk
icu4c/source/data/misc/pluralRanges.txt [new file with mode: 0644]

index efe0d3ce22f6ce6070c7279dad34641d134ccbf7..b63bd575efe8db94453414c92577eebdf1a3132b 100644 (file)
             </run>
         </cldr-build>
     </target>
+    <target name="pluralRanges" depends="init,setup" description="builds pluralRanges.txt from pluralRanges.xml">
+        <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="pluralRanges.txt" noArgs="true">
+            <!-- launch the tool and generate the data after reading the config file -->
+            <run>
+                <args>
+                    <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
+                    <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
+                    <arg name="-t" value="pluralRanges"/>
+                </args>
+            </run>
+        </cldr-build>
+    </target>
     <target name="numberingSystems" depends="init,setup" description="builds numberingSystems.txt from numberingSystems.xml">
         <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="numberingSystems.txt" noArgs="true">
             <!-- launch the tool and generate the data after reading the config file -->
index bd073c0f99031a7830deec6bd20a81559f6e5d6a..0c18119d47a15611f63d8f8ae79fbd31221722bb 100644 (file)
@@ -28,4 +28,4 @@ MISC_SOURCE = \
 zoneinfo64.txt supplementalData.txt likelySubtags.txt plurals.txt \
 numberingSystems.txt icuver.txt icustd.txt metadata.txt metaZones.txt \
 windowsZones.txt keyTypeData.txt timezoneTypes.txt currencyNumericCodes.txt \
-genderList.txt dayPeriods.txt
+genderList.txt dayPeriods.txt pluralRanges.txt
diff --git a/icu4c/source/data/misc/pluralRanges.txt b/icu4c/source/data/misc/pluralRanges.txt
new file mode 100644 (file)
index 0000000..01d590f
--- /dev/null
@@ -0,0 +1,981 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html#License
+pluralRanges:table(nofallback){
+    locales{
+        af{"set05"}
+        ak{"set02"}
+        am{"set01"}
+        ar{"set18"}
+        as{"set01"}
+        az{"set04"}
+        be{"set15"}
+        bg{"set05"}
+        bn{"set01"}
+        bs{"set11"}
+        ca{"set05"}
+        cs{"set14"}
+        cy{"set17"}
+        da{"set06"}
+        de{"set04"}
+        el{"set04"}
+        en{"set05"}
+        es{"set05"}
+        et{"set05"}
+        eu{"set05"}
+        fa{"set02"}
+        fi{"set05"}
+        fil{"set06"}
+        fr{"set01"}
+        ga{"set16"}
+        gl{"set04"}
+        gsw{"set04"}
+        gu{"set01"}
+        he{"set13"}
+        hi{"set01"}
+        hr{"set11"}
+        hu{"set04"}
+        hy{"set01"}
+        id{"set00"}
+        io{"set05"}
+        is{"set06"}
+        it{"set04"}
+        ja{"set00"}
+        ka{"set03"}
+        kk{"set04"}
+        km{"set00"}
+        kn{"set01"}
+        ko{"set00"}
+        ky{"set04"}
+        lo{"set00"}
+        lt{"set15"}
+        lv{"set09"}
+        mk{"set08"}
+        ml{"set04"}
+        mn{"set04"}
+        mr{"set01"}
+        ms{"set00"}
+        my{"set00"}
+        nb{"set05"}
+        ne{"set04"}
+        nl{"set04"}
+        or{"set02"}
+        pa{"set06"}
+        pl{"set14"}
+        ps{"set01"}
+        pt{"set01"}
+        ro{"set10"}
+        ru{"set15"}
+        scn{"set04"}
+        sd{"set02"}
+        si{"set07"}
+        sk{"set14"}
+        sl{"set12"}
+        sq{"set04"}
+        sr{"set11"}
+        sv{"set05"}
+        sw{"set04"}
+        ta{"set04"}
+        te{"set04"}
+        th{"set00"}
+        tk{"set04"}
+        tr{"set04"}
+        ug{"set04"}
+        uk{"set15"}
+        ur{"set05"}
+        uz{"set04"}
+        vi{"set00"}
+        yue{"set00"}
+        zh{"set00"}
+        zu{"set01"}
+    }
+    rules{
+        set00{
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set01{
+            {
+                "one",
+                "one",
+                "one",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set02{
+            {
+                "one",
+                "one",
+                "other",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set03{
+            {
+                "one",
+                "other",
+                "one",
+            }
+            {
+                "other",
+                "one",
+                "other",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set04{
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set05{
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "other",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set06{
+            {
+                "one",
+                "one",
+                "one",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set07{
+            {
+                "one",
+                "one",
+                "one",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "other",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set08{
+            {
+                "one",
+                "one",
+                "other",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "other",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set09{
+            {
+                "zero",
+                "zero",
+                "other",
+            }
+            {
+                "zero",
+                "one",
+                "one",
+            }
+            {
+                "zero",
+                "other",
+                "other",
+            }
+            {
+                "one",
+                "zero",
+                "other",
+            }
+            {
+                "one",
+                "one",
+                "one",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "zero",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set10{
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "one",
+                "few",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set11{
+            {
+                "one",
+                "one",
+                "one",
+            }
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "one",
+                "one",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set12{
+            {
+                "one",
+                "one",
+                "few",
+            }
+            {
+                "one",
+                "two",
+                "two",
+            }
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "two",
+                "one",
+                "few",
+            }
+            {
+                "two",
+                "two",
+                "two",
+            }
+            {
+                "two",
+                "few",
+                "few",
+            }
+            {
+                "two",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "one",
+                "few",
+            }
+            {
+                "few",
+                "two",
+                "two",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "few",
+            }
+            {
+                "other",
+                "two",
+                "two",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set13{
+            {
+                "one",
+                "two",
+                "other",
+            }
+            {
+                "one",
+                "many",
+                "many",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "two",
+                "many",
+                "other",
+            }
+            {
+                "two",
+                "other",
+                "other",
+            }
+            {
+                "many",
+                "many",
+                "many",
+            }
+            {
+                "many",
+                "other",
+                "many",
+            }
+            {
+                "other",
+                "one",
+                "other",
+            }
+            {
+                "other",
+                "two",
+                "other",
+            }
+            {
+                "other",
+                "many",
+                "many",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set14{
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "many",
+                "many",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "many",
+                "many",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "many",
+                "one",
+                "one",
+            }
+            {
+                "many",
+                "few",
+                "few",
+            }
+            {
+                "many",
+                "many",
+                "many",
+            }
+            {
+                "many",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "many",
+                "many",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set15{
+            {
+                "one",
+                "one",
+                "one",
+            }
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "many",
+                "many",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "one",
+                "one",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "many",
+                "many",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "many",
+                "one",
+                "one",
+            }
+            {
+                "many",
+                "few",
+                "few",
+            }
+            {
+                "many",
+                "many",
+                "many",
+            }
+            {
+                "many",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "many",
+                "many",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set16{
+            {
+                "one",
+                "two",
+                "two",
+            }
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "many",
+                "many",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "two",
+                "few",
+                "few",
+            }
+            {
+                "two",
+                "many",
+                "many",
+            }
+            {
+                "two",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "many",
+                "many",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "many",
+                "many",
+                "many",
+            }
+            {
+                "many",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "two",
+                "two",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "many",
+                "many",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set17{
+            {
+                "zero",
+                "one",
+                "one",
+            }
+            {
+                "zero",
+                "two",
+                "two",
+            }
+            {
+                "zero",
+                "few",
+                "few",
+            }
+            {
+                "zero",
+                "many",
+                "many",
+            }
+            {
+                "zero",
+                "other",
+                "other",
+            }
+            {
+                "one",
+                "two",
+                "two",
+            }
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "many",
+                "many",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "two",
+                "few",
+                "few",
+            }
+            {
+                "two",
+                "many",
+                "many",
+            }
+            {
+                "two",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "many",
+                "many",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "many",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "one",
+            }
+            {
+                "other",
+                "two",
+                "two",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "many",
+                "many",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+        set18{
+            {
+                "zero",
+                "one",
+                "zero",
+            }
+            {
+                "zero",
+                "two",
+                "zero",
+            }
+            {
+                "zero",
+                "few",
+                "few",
+            }
+            {
+                "zero",
+                "many",
+                "many",
+            }
+            {
+                "zero",
+                "other",
+                "other",
+            }
+            {
+                "one",
+                "two",
+                "other",
+            }
+            {
+                "one",
+                "few",
+                "few",
+            }
+            {
+                "one",
+                "many",
+                "many",
+            }
+            {
+                "one",
+                "other",
+                "other",
+            }
+            {
+                "two",
+                "few",
+                "few",
+            }
+            {
+                "two",
+                "many",
+                "many",
+            }
+            {
+                "two",
+                "other",
+                "other",
+            }
+            {
+                "few",
+                "few",
+                "few",
+            }
+            {
+                "few",
+                "many",
+                "many",
+            }
+            {
+                "few",
+                "other",
+                "other",
+            }
+            {
+                "many",
+                "few",
+                "few",
+            }
+            {
+                "many",
+                "many",
+                "many",
+            }
+            {
+                "many",
+                "other",
+                "other",
+            }
+            {
+                "other",
+                "one",
+                "other",
+            }
+            {
+                "other",
+                "two",
+                "other",
+            }
+            {
+                "other",
+                "few",
+                "few",
+            }
+            {
+                "other",
+                "many",
+                "many",
+            }
+            {
+                "other",
+                "other",
+                "other",
+            }
+        }
+    }
+}