• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Regex file for performing data modifications in FilterFactory.
2## Variables go here ##
3
4## XPath replacements ##
5# xpath ; {old_xpath} ; {new_xpath} ; {options}
6# XPaths can be either regexes or literal XPaths, but using literal XPaths will
7# speed up the filtering process.
8# Possible options:
9#   locale={locale_pattern}
10xpath ; //ldml/localeDisplayNames/territories/territory[@type="HK"][@alt="short"] ; //ldml/localeDisplayNames/territories/territory[@type="HK"]
11xpath ; //ldml/localeDisplayNames/territories/territory[@type="MO"][@alt="short"] ; //ldml/localeDisplayNames/territories/territory[@type="MO"]
12
13## Value substitutions ##
14# value ; {old_value} ; {new_value} ; {options}
15# Possible options:
16#   locale={locale_pattern}
17#   xpath={xpath}
18# example:
19#   value ; ₹ ; Rs. ; xpath=//ldml/numbers/currencies/currency[@type="INR"]/symbol
20