Skip to content

Commit

Permalink
CLDR-17336 update convert rules for parentLocales change
Browse files Browse the repository at this point in the history
- improve docs on some LdmlConvertRules items
- will refine this in CLDR-17367 at JSON build time if needed
  • Loading branch information
srl295 committed Feb 15, 2024
1 parent 2a671e2 commit 5d60a39
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ public static class SplittableAttributeSpec {

/**
* There are a handful of attribute values that are more properly represented as an array of
* strings rather than as a single string.
* strings rather than as a single string. These are not locked to a specific element, may need
* to change the matching algorithm if there are conflicts.
*/
public static final Set<String> ATTRVALUE_AS_ARRAY_SET =
Builder.with(new HashSet<String>())
Expand All @@ -320,6 +321,7 @@ public static class SplittableAttributeSpec {
.add("contains")
.add("systems")
.add("origin")
.add("component") // for parentLocales - may need to be more specific here
.add("values") // for unitIdComponents - may need to be more specific here
.freeze();

Expand Down Expand Up @@ -382,6 +384,11 @@ public static class SplittableAttributeSpec {
PatternCache.get(
"(grammaticalCase|grammaticalGender|grammaticalDefiniteness|nameOrderLocales|component)");

/**
* Indicates that the child value of this element needs to be separated into array items. For
* example: {@code <weekOfPreference ordering="weekOfDate weekOfMonth" locales="en bn ja ka"/>}
* becomes {@code {"en":["weekOfDate","weekOfMonth"],"bn":["weekOfDate","weekOfMonth"]} }
*/
public static final Set<String> CHILD_VALUE_IS_SPACESEP_ARRAY =
ImmutableSet.of("weekOfPreference", "calendarPreferenceData");

Expand Down

0 comments on commit 5d60a39

Please sign in to comment.