From: Shane Carr Date: Fri, 14 Sep 2018 03:44:45 +0000 (-0700) Subject: ICU-11276 Adding pluralRanges.txt data file. X-Git-Tag: release-63-rc~63^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c43434285db6a203397be3de01ebf1236cd1103;p=icu ICU-11276 Adding pluralRanges.txt data file. The code was already in NewLdml2IcuConverter, but it was not being called from ICU. --- diff --git a/icu4c/source/data/build.xml b/icu4c/source/data/build.xml index efe0d3ce22f..b63bd575efe 100644 --- a/icu4c/source/data/build.xml +++ b/icu4c/source/data/build.xml @@ -258,6 +258,18 @@ + + + + + + + + + + + + diff --git a/icu4c/source/data/misc/miscfiles.mk b/icu4c/source/data/misc/miscfiles.mk index bd073c0f990..0c18119d47a 100644 --- a/icu4c/source/data/misc/miscfiles.mk +++ b/icu4c/source/data/misc/miscfiles.mk @@ -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 index 00000000000..01d590f70f0 --- /dev/null +++ b/icu4c/source/data/misc/pluralRanges.txt @@ -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", + } + } + } +}