• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ldml2icu_supplemental.txt
2#
3# © 2016 and later: Unicode, Inc. and others.
4#
5# CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6# For terms of use, see http://www.unicode.org/copyright.html
7#
8# Used by SupplementalMapper.
9# Data-driven file for mapping supplemental LDML paths to ICU paths.
10# See ldml2icu_readme.txt for a detailed explanation of this file.
11
12# Attribute value
13%A=[^"']++
14# Attribute value, no underscore
15%B=[^"'_]++
16# Word/Zone match
17%W=[\s\w\-/]++
18# Greedy word match
19%G=[\s\w\-]+
20# Number match
21%N=[\d\.]++
22
23# supplementalData.xml
24//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@iso4217="(%W)"]
25     ; /CurrencyMap/$1/<FIFO>/id ; values=$2
26//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@iso4217="(%W)"][@tender="false"]
27     ; /CurrencyMap/$1/<FIFO>/id ; values=$2
28     ; /CurrencyMap/$1/<FIFO>/tender ; values=false
29//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@from="(%W)"][@iso4217="(%W)"]
30     ; /CurrencyMap/$1/<FIFO>/id ; values=$3
31     ; /CurrencyMap/$1/<FIFO>/from:intvector ; values=&date($2, from)
32//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@from="(%W)"][@iso4217="(%W)"][@tender="false"]
33     ; /CurrencyMap/$1/<FIFO>/id ; values=$3
34     ; /CurrencyMap/$1/<FIFO>/from:intvector ; values=&date($2, from)
35     ; /CurrencyMap/$1/<FIFO>/tender ; values=false
36//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@from="(%W)"][@to="(%W)"][@iso4217="(%W)"]
37     ; /CurrencyMap/$1/<FIFO>/id ; values=$4
38     ; /CurrencyMap/$1/<FIFO>/from:intvector ; values=&date($2, from)
39     ; /CurrencyMap/$1/<FIFO>/to:intvector ; values=&date($3, to)
40//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@from="(%W)"][@to="(%W)"][@iso4217="(%W)"][@tender="false"]
41     ; /CurrencyMap/$1/<FIFO>/id ; values=$4
42     ; /CurrencyMap/$1/<FIFO>/from:intvector ; values=&date($2, from)
43     ; /CurrencyMap/$1/<FIFO>/to:intvector ; values=&date($3, to)
44     ; /CurrencyMap/$1/<FIFO>/tender ; values=false
45//supplementalData/currencyData/region[@iso3166="(%W)"]/currency[@to="(%W)"][@iso4217="(%W)"][@tender="false"]
46     ; /CurrencyMap/$1/<FIFO>/id ; values=$3
47     ; /CurrencyMap/$1/<FIFO>/to:intvector ; values=&date($2, to)
48     ; /CurrencyMap/$1/<FIFO>/tender ; values=false
49//supplementalData/currencyData/fractions/info[@iso4217="(%W)"][@digits="(%N)"][@rounding="(%N)"][@cashDigits="(%N)"][@cashRounding="(%N)"] ; /CurrencyMeta/$1:intvector ; values=$2 $3 $4 $5
50//supplementalData/currencyData/fractions/info[@iso4217="(%W)"][@digits="(%N)"][@rounding="(%N)"][@cashRounding="(%N)"] ; /CurrencyMeta/$1:intvector ; values=$2 $3 $2 $4
51//supplementalData/currencyData/fractions/info[@iso4217="(%W)"][@digits="(%N)"][@rounding="(%N)"] ; /CurrencyMeta/$1:intvector ; values=$2 $3 $2 $3
52
53//supplementalData/calendarPreferenceData/calendarPreference[@territories="(%A)"][@ordering="(%A)"] ; /calendarPreferenceData/$1    ; values=$2
54//supplementalData/codeMappings/territoryCodes[@type="(%W)"][@numeric="(%N)"][@alpha3="(%W)"].* ; /codeMappings/<$1> ; values=$1 $2 $3
55
56//supplementalData/codeMappings/currencyCodes[@type="(%W)"][@numeric="(%N)"].* ; /codeMappingsCurrency/<$1> ; values=$1 $2
57
58//supplementalData/languageData/language[@type="(%W)"][@scripts="(%W)"][@territories="(%W)"][@alt="secondary"]
59     ; /languageData/$1/secondary/scripts ; values=$2
60     ; /languageData/$1/secondary/territories ; values=$3
61//supplementalData/languageData/language[@type="(%W)"][@scripts="(%W)"][@alt="secondary"] ; /languageData/$1/secondary/scripts ; values=$2
62//supplementalData/languageData/language[@type="(%W)"][@territories="(%G)"][@alt="secondary"] ; /languageData/$1/secondary/territories ; values=$2
63
64//supplementalData/languageData/language[@type="(%W)"][@scripts="(%W)"][@territories="(%W)"]
65     ; /languageData/$1/primary/scripts ; values=$2
66     ; /languageData/$1/primary/territories; values=$3
67//supplementalData/languageData/language[@type="(%W)"][@scripts="(%W)"] ; /languageData/$1/primary/scripts ; values=$2
68//supplementalData/languageData/language[@type="(%W)"][@territories="(%W)"] ; /languageData/$1/primary/territories ; values=$2
69
70//supplementalData/territoryContainment/group[@type="(%W)"][@contains="(%A)"][@status="deprecated"] ; /territoryContainment/deprecated/$1 ; values=$2
71//supplementalData/territoryContainment/group[@type="(%W)"][@contains="(%A)"][@status="grouping"] ; /territoryContainment/containedGroupings/$1 ; values=$2
72//supplementalData/territoryContainment/group[@type="(%W)"][@contains="(%A)"][@grouping="true"] ; /territoryContainment/grouping/$1 ; values=$2
73//supplementalData/territoryContainment/group[@type="(%W)"][@contains="(%A)"]; /territoryContainment/$1 ; values=$2
74
75//supplementalData/subdivisionContainment/subgroup[@type="(%W)"][@contains="(%A)"]; /subdivisionContainment/$1 ; values=$2
76//supplementalData/subdivisionContainment/subgroup[@type="(%W)"][@subtype="(%W)"][@contains="(%A)"]; /subdivisionContainment/$1-$2 ; values=$3
77
78//supplementalData/weekData/firstDay[@day="(%W)"][@territories="(%W)"](?:[@references="(?:%A)"])?[@alt="(%A)"] ; /weekData%$3/$2:intvector ; values=&day_number($1) ; fallback=/weekData/001:intvector[0]
79
80//supplementalData/weekData/firstDay[@day="(%W)"][@territories="(%W)"]     ; /weekData/$2:intvector ; values=&day_number($1) ; fallback=/weekData/001:intvector[0]
81//supplementalData/weekData/minDays[@count="(%N)"][@territories="(%W)"]    ; /weekData/$2:intvector ; values=$1 ; fallback=/weekData/001:intvector[1]
82//supplementalData/weekData/weekendStart[@day="(%W)"][@territories="(%W)"] ; /weekData/$2:intvector ; values=&day_number($1) 0 ; fallback=/weekData/001:intvector[2] /weekData/001:intvector[3]
83//supplementalData/weekData/weekendEnd[@day="(%W)"][@territories="(%W)"]   ; /weekData/$2:intvector ; values=&day_number($1) 86400000 ; fallback=/weekData/001:intvector[4] /weekData/001:intvector[5]
84
85//supplementalData/weekData/weekOfPreference[@locales="(%A)"][@ordering="(%A)"] ; /weekOfPreference/$1    ; values=$2
86
87//supplementalData/timeData/hours[@allowed="(%W)"][@preferred="(%W)"][@regions="(%W)"]
88     ; /timeData/$3/allowed ; values=$1
89     ; /timeData/$3/preferred ; values=$2
90
91//supplementalData/measurementData/measurementSystem[@type="metric"][@category="(%W)"][@territories="(%W)"] ; /measurementData/$2/MeasurementSystemCategory/$1:int ; values=0
92//supplementalData/measurementData/measurementSystem[@type="US"][@category="(%W)"][@territories="(%W)"] ; /measurementData/$2/MeasurementSystemCategory/$1:int ; values=1
93//supplementalData/measurementData/measurementSystem[@type="UK"][@category="(%W)"][@territories="(%W)"] ; /measurementData/$2/MeasurementSystemCategory/$1:int ; values=2
94
95//supplementalData/measurementData/measurementSystem[@type="metric"][@territories="(%W)"] ; /measurementData/$1/MeasurementSystem:int ; values=0
96//supplementalData/measurementData/measurementSystem[@type="US"][@territories="(%W)"] ; /measurementData/$1/MeasurementSystem:int ; values=1
97//supplementalData/measurementData/measurementSystem[@type="UK"][@territories="(%W)"] ; /measurementData/$1/MeasurementSystem:int ; values=2
98//supplementalData/measurementData/paperSize[@type="A4"][@territories="(%W)"] ; /measurementData/$1/PaperSize:intvector ; values=297 210
99//supplementalData/measurementData/paperSize[@type="US-Letter"][@territories="(%W)"] ; /measurementData/$1/PaperSize:intvector ; values=279 216
100
101//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]/languagePopulation[@type="(%W)"][@writingPercent="(%N)"][@populationPercent="(%N)"][@officialStatus="(%W)"](?:[@references="%W"])?
102    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
103    ; /territoryInfo/$1/$5/writingShareF:int ; values=&exp($6,-2)
104    ; /territoryInfo/$1/$5/populationShareF:int ; values=&exp($7,-2)
105    ; /territoryInfo/$1/$5/officialStatus ; values=$8
106
107//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]/languagePopulation[@type="(%W)"][@writingPercent="(%N)"][@populationPercent="(%N)"](?:[@references="%W"])?
108    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
109    ; /territoryInfo/$1/$5/writingShareF:int ; values=&exp($6,-2)
110    ; /territoryInfo/$1/$5/populationShareF:int ; values=&exp($7,-2)
111
112//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]/languagePopulation[@type="(%W)"][@literacyPercent="(%N)"][@populationPercent="(%N)"][@officialStatus="(%W)"](?:[@references="%W"])?
113    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
114    ; /territoryInfo/$1/$5/literacyShareF:int ; values=&exp($6,-2)
115    ; /territoryInfo/$1/$5/populationShareF:int ; values=&exp($7,-2)
116    ; /territoryInfo/$1/$5/officialStatus ; values=$8
117
118//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]/languagePopulation[@type="(%W)"][@literacyPercent="(%N)"][@populationPercent="(%N)"](?:[@references="%W"])?
119    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
120    ; /territoryInfo/$1/$5/literacyShareF:int ; values=&exp($6,-2)
121    ; /territoryInfo/$1/$5/populationShareF:int ; values=&exp($7,-2)
122
123//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]/languagePopulation[@type="(%W)"][@populationPercent="(%N)"][@officialStatus="(%W)"](?:[@@references="%W"])?
124    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
125    ; /territoryInfo/$1/$5/populationShareF:int ; values=&exp($6,-2)
126    ; /territoryInfo/$1/$5/officialStatus ; values=$7
127
128//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]/languagePopulation[@type="(%W)"][@populationPercent="(%N)"](?:[@references="%W"])?
129    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
130    ; /territoryInfo/$1/$5/populationShareF:int ; values=&exp($6,-2)
131
132# This only exists right now for 'ZZ', which has no <languagePopulation> child elements.
133//supplementalData/territoryInfo/territory[@type="(%W)"][@gdp="(%N)"][@literacyPercent="(%N)"][@population="(%N)"]
134    ; /territoryInfo/$1/territoryF:intvector ; values=&exp($2) &exp($3,-2) &exp($4) ; base_xpath=//supplementalData/territoryInfo/territory[@type="$1"]
135
136//supplementalData/calendarData/calendar[@type="(%W)"]/calendarSystem[@type="(%W)"] ; /calendarData/$1/system ; values=$2
137//supplementalData/calendarData/calendar[@type="(%W)"]/eras/era[@type="(%W)"][@(start|end)="(%A)"][@named="(%W)"]
138    ; /calendarData/$1/eras/$2/$3:intvector ; values=&ymd($4)
139    ; /calendarData/$1/eras/$2/named ; values=$5
140//supplementalData/calendarData/calendar[@type="(%W)"]/eras/era[@type="(%W)"][@(start|end)="(%A)"]
141    ; /calendarData/$1/eras/$2/$3:intvector ; values=&ymd($4)
142
143# units.xml
144
145//supplementalData/unitConstants/unitConstant[@constant="(%W)"][@value="(%A)"](?:[@status="%W"])?
146    ; /unitConstants/$1 ; values="$2"
147
148//supplementalData/unitQuantities/unitQuantity[@baseUnit="(%W)"][@quantity="(%W)"](?:[@status="%W"])?
149    ; /unitQuantities/<FIFO>/$1 ; values="$2"
150
151//supplementalData/convertUnits/convertUnit[@source="(%W)"][@baseUnit="(%W)"](?:[@systems="%W"])?
152    ; /convertUnits/$1/target ; values=$2
153    ; /convertUnits/$1/factor ; values=1
154
155//supplementalData/convertUnits/convertUnit[@source="(%W)"][@baseUnit="(%W)"][@factor="(%A)"](?:[@systems="%W"])?
156    ; /convertUnits/$1/target ; values=$2
157    ; /convertUnits/$1/factor ; values="$3"
158
159//supplementalData/convertUnits/convertUnit[@source="(%W)"][@baseUnit="(%W)"][@offset="(%A)"](?:[@systems="%W"])?
160    ; /convertUnits/$1/target ; values=$2
161    ; /convertUnits/$1/factor ; values=1
162    ; /convertUnits/$1/offset ; values=$3
163
164//supplementalData/convertUnits/convertUnit[@source="(%W)"][@baseUnit="(%W)"][@factor="(%A)"][@offset="(%A)"](?:[@systems="%W"])?
165    ; /convertUnits/$1/target ; values=$2
166    ; /convertUnits/$1/factor ; values="$3"
167    ; /convertUnits/$1/offset ; values=$4
168
169# Quoting "$1" and "$2" in the output lets $3 expand space-separated regions: only the first unquoted output supports such expansion.
170//supplementalData/unitPreferenceData/unitPreferences[@category="(%W)"][@usage="(%A)"]/unitPreference[@regions="(%A)"]
171    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/unit
172
173//supplementalData/unitPreferenceData/unitPreferences[@category="(%W)"][@usage="(%A)"]/unitPreference[@regions="(%A)"][@geq="(%A)"]
174    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/unit
175    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/geq ; values=$4
176
177//supplementalData/unitPreferenceData/unitPreferences[@category="(%W)"][@usage="(%A)"]/unitPreference[@regions="(%A)"][@skeleton="(%A)"]
178    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/unit
179    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/skeleton ; values=$4
180
181//supplementalData/unitPreferenceData/unitPreferences[@category="(%W)"][@usage="(%A)"]/unitPreference[@regions="(%A)"][@geq="(%A)"][@skeleton="(%A)"]
182    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/unit
183    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/geq ; values=$4
184    ; /unitPreferenceData/"$1"/"$2"/$3/<FIFO>/skeleton ; values=$5
185
186# grammaticalFeatures.xml
187
188//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalCase[@values="(%A)"]
189    ; /grammaticalData/features/$2/$1/case/_ ; values=$3
190//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalCase[@scope="(%A)"]
191    ; /grammaticalData/features/$2/$1/case/$3
192//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalCase[@scope="(%A)"][@values="(%A)"]
193    ; /grammaticalData/features/$2/$1/case/$3 ; values=$4
194
195//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalGender[@values="(%A)"]
196    ; /grammaticalData/features/$2/$1/gender/_ ; values=$3
197//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalGender[@scope="(%A)"]
198    ; /grammaticalData/features/$2/$1/gender/$3
199//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalGender[@scope="(%A)"][@values="(%A)"]
200    ; /grammaticalData/features/$2/$1/gender/$3 ; values=$4
201
202//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalDefiniteness[@values="(%A)"]
203    ; /grammaticalData/features/$2/$1/definiteness/_ ; values=$3
204//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalDefiniteness[@scope="(%A)"]
205    ; /grammaticalData/features/$2/$1/definiteness/$3
206//supplementalData/grammaticalData/grammaticalFeatures[@targets="(%A)"][@locales="(%A)"]/grammaticalDefiniteness[@scope="(%A)"][@values="(%A)"]
207    ; /grammaticalData/features/$2/$1/definiteness/$3 ; values=$4
208
209//supplementalData/grammaticalData/grammaticalDerivations[@locales="(%A)"]/deriveComponent[@feature="(%A)"][@structure="(%A)"][@value0="(%A)"][@value1="(%A)"]
210    ; /grammaticalData/derivations/$1/component/$2/$3 ; values=$4 $5
211//supplementalData/grammaticalData/grammaticalDerivations[@locales="(%A)"]/deriveCompound[@feature="(%A)"][@structure="(%A)"][@value="(%A)"]
212    ; /grammaticalData/derivations/$1/compound/$2/$3 ; values=$4
213
214# languageInfo.xml
215
216//supplementalData/languageMatching/languageMatches[@type="(%B)_new"]/paradigmLocales[@locales="(%A)"] ; /languageMatchingInfo/$1/paradigmLocales ; values=$2
217//supplementalData/languageMatching/languageMatches[@type="(%B)_new"]/matchVariable[@id="\$(%A)"][@value="(%A)"] ; /languageMatchingInfo/$1/matchVariable/$2 ; values=$3
218
219//supplementalData/languageMatching/languageMatches[@type="(%B)_new"]/languageMatch[@desired="(%A)"][@supported="(%A)"][@distance="(%N)"][@oneway="true"] ; /languageMatchingNew/$1/<FIFO> ; values=$2 $3 $4 1
220//supplementalData/languageMatching/languageMatches[@type="(%B)_new"]/languageMatch[@desired="(%A)"][@supported="(%A)"][@distance="(%N)"] ; /languageMatchingNew/$1/<FIFO> ; values=$2 $3 $4 0
221
222//supplementalData/languageMatching/languageMatches[@type="(%B)"]/languageMatch[@desired="(%A)"][@supported="(%A)"][@percent="(%N)"][@oneway="true"] ; /languageMatching/$1/<FIFO> ; values=$2 $3 $4 1
223//supplementalData/languageMatching/languageMatches[@type="(%B)"]/languageMatch[@desired="(%A)"][@supported="(%A)"][@percent="(%N)"] ; /languageMatching/$1/<FIFO> ; values=$2 $3 $4 0
224
225# likelySubtags.xml
226//supplementalData/likelySubtags/likelySubtag[@from="(%A)"][@to="(%A)"] ; /$1 ; values=$2
227
228# metaZones.xml - metaZones.txt
229//supplementalData/metaZones/mapTimezones[@type="metazones"]/mapZone[@type="(%A)"][@other="(%W)"][@territory="(%W)"] ; /mapTimezones/$2/$3 ; values=$1
230//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@mzone="(%W)"] ; /metazoneInfo/"$1"/<$2> ; values=$2
231//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@from="(%A)"][@mzone="(%W)"] ; /metazoneInfo/"$1"/<$2> ; values=$3 "$2" "9999-12-31 23:59"
232//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@from="(%A)"][@to="(%A)"][@mzone="(%W)"] ; /metazoneInfo/"$1"/<$2> ; values=$4 "$2" "$3"
233//supplementalData/metaZones/metazoneInfo/timezone[@type="(%W)"]/usesMetazone[@to="(%A)"][@mzone="(%W)"] ; /metazoneInfo/"$1"/<1970-01-01 00:00> ; values=$3 "1970-01-01 00:00" "$2"
234
235//supplementalData/primaryZones/primaryZone[@iso3166="(%W)"] ; /primaryZones/$1 ; values={value}
236
237# numberingSystems.txt
238//supplementalData/numberingSystems/numberingSystem[@type="algorithmic"][@id="(%W)"][@rules="(%A)"]
239     ; /numberingSystems/$1/algorithmic:int ; values=1
240     ; /numberingSystems/$1/desc ; values=&algorithm($2)
241     ; /numberingSystems/$1/radix:int ; values=10
242
243//supplementalData/numberingSystems/numberingSystem[@type="numeric"][@id="(%W)"][@digits="(%A)"]
244     ; /numberingSystems/$1/algorithmic:int ; values=0
245     ; /numberingSystems/$1/desc ; values=$2
246     ; /numberingSystems/$1/radix:int ; values=10
247
248# windowsZones.txt
249//supplementalData/windowsZones/mapTimezones/mapZone[@type="(%A)"][@other="(%A)"][@territory="(%W)"] ; /mapTimezones/"$2"/$3 ; values="$1"
250
251# genderList.txt
252//supplementalData/gender/personList[@type="(%W)"][@locales="(%W)"] ; /genderList/$2 ; values=$1
253
254# locale info
255//supplementalData/parentLocales/parentLocale[@parent="(%A)"][@locales="(%A)"] ; /parentLocales/$1 ; values=$2
256
257# supplementalMetadata.xml (metadata.txt)
258//supplementalData/metadata/defaultContent[@locales="(%A)"] ; /defaultContent ; values=$1
259//supplementalData/metadata/alias/(language|script|territory|subdivision|variant)Alias[@type="(%A)"][@replacement="(%A)"][@reason="(%A)"]
260     ; /alias/$1/$2/reason ; values="$4"
261     ; /alias/$1/$2/replacement ; values="$3"
262
263# Region codes used by ICU's Region class
264# Specify the value explicitly so that the LDMLConverter will split it.
265//supplementalData/metadata/validity/variable[@type="choice"][@id="\$territory"] ; /regionCodes ; values={value}
266
267# validity
268//supplementalData/idValidity/id[@type="(%A)"][@idStatus="(%A)"] ; /idValidity/$1/$2 ; values={value}
269