Skip to content

Commit

Permalink
CLDR-13725 Skip units/grammaticalFeatures and add subdivisionAliases (#…
Browse files Browse the repository at this point in the history
…439)

(cherry picked from commit f95e999)
  • Loading branch information
JCEmmons authored and pedberg committed Apr 22, 2020
1 parent dd738db commit 5ab4c86
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ section=languageMatching ; path=//cldr/supplemental/languageMatching/.* ; packag
section=territoryInfo ; path=//cldr/supplemental/territoryInfo/.* ; package=core
section=calendarData ; path=//cldr/supplemental/calendarData/.* ; package=core
section=calendarPreferenceData ; path=//cldr/supplemental/calendarPreferenceData/.* ; package=core
section=unitPreferenceData ; path=//cldr/supplemental/unitPreferenceData/.* ; package=core
section=weekData ; path=//cldr/supplemental/weekData/.* ; package=core
section=timeData ; path=//cldr/supplemental/timeData/.* ; package=core
section=measurementData ; path=//cldr/supplemental/measurementData/.* ; package=core
Expand All @@ -26,4 +25,4 @@ section=parentLocales ; path=//cldr/supplemental/parentLocales/.* ; package=core
section=references ; path=//cldr/supplemental/references/.* ; package=core
section=telephoneCodeData ; path=//cldr/supplemental/telephoneCodeData/.* ; package=core
section=windowsZones ; path=//cldr/supplemental/windowsZones/.* ; package=core
section=aliases ; path=//cldr/supplemental/metadata/alias/(language|script|territory|variant|zone)Alias.* ; package=core
section=aliases ; path=//cldr/supplemental/metadata/alias/(language|script|subdivision|territory|variant|zone)Alias.* ; package=core
5 changes: 3 additions & 2 deletions tools/java/org/unicode/cldr/json/LdmlConvertRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
class LdmlConvertRules {

/** File sets that will not be processed in JSON transformation. */
public static final ImmutableSet<String> IGNORE_FILE_SET = ImmutableSet.of("attributeValueValidity", "coverageLevels", "postalCodeData", "pluralRanges",
"subdivisions");
public static final ImmutableSet<String> IGNORE_FILE_SET = ImmutableSet.of("attributeValueValidity", "coverageLevels", "grammaticalFeatures", "postalCodeData", "pluralRanges",
"subdivisions", "units");

/**
* The attribute list that should become part of the name in form of
Expand Down Expand Up @@ -423,6 +423,7 @@ public static class PathTransformSpec {
new PathTransformSpec("(.*/languageAlias)\\[@type=\"([^\"]*)\"\\](.*)", "$1/$2$3"),
new PathTransformSpec("(.*/scriptAlias)\\[@type=\"([^\"]*)\"\\](.*)", "$1/$2$3"),
new PathTransformSpec("(.*/territoryAlias)\\[@type=\"([^\"]*)\"\\](.*)", "$1/$2$3"),
new PathTransformSpec("(.*/subdivisionAlias)\\[@type=\"([^\"]*)\"\\](.*)", "$1/$2$3"),
new PathTransformSpec("(.*/variantAlias)\\[@type=\"([^\"]*)\"\\](.*)", "$1/$2$3"),
new PathTransformSpec("(.*/zoneAlias)\\[@type=\"([^\"]*)\"\\](.*)", "$1/$2$3"),
new PathTransformSpec("(.*/alias)(.*)", "$1/alias$2"),
Expand Down
5 changes: 2 additions & 3 deletions tools/java/org/unicode/cldr/util/CLDRFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,9 @@ public class CLDRFile implements Freezable<CLDRFile>, Iterable<String> {
public static final String SUPPLEMENTAL_METADATA = "supplementalMetadata";
public static final String SUPPLEMENTAL_PREFIX = "supplemental";
public static final String GEN_VERSION = "37";
public static final List<String> SUPPLEMENTAL_NAMES = Arrays.asList("characters", "coverageLevels", "dayPeriods", "genderList", "languageInfo",
public static final List<String> SUPPLEMENTAL_NAMES = Arrays.asList("characters", "coverageLevels", "dayPeriods", "genderList", "grammaticalFeatures", "languageInfo",
"languageGroup", "likelySubtags", "metaZones", "numberingSystems", "ordinals", "plurals", "postalCodeData", "rgScope", "supplementalData",
"supplementalMetadata",
"telephoneCodeData", "windowsZones");
"supplementalMetadata", "telephoneCodeData", "units", "windowsZones");

private Collection<String> extraPaths = null;

Expand Down

0 comments on commit 5ab4c86

Please sign in to comment.