Transform Rule Syntax
cameron at lumoslabs.com
Wed Dec 16 18:25:21 CST 2015
I'm working with the CLDR transform rules and finding myself flummoxed.
Specifically I'm looking at this rule
in the es-es_FONIPA transform rule set. In this rule, we see what appears
to be a Unicode set or character class from a regular expression: [-\ ]
Either way, this does not appear to be valid syntax. Hyphens are used in
character classes to denote ranges of characters, for example [a-z].
Literal hyphens must be escaped. The hyphen in question is neither part of
a range nor escaped. Why is this? Finally, it appears the character class
contains an escaped space character. Space characters are not required to
be escaped in character classes.
My suspicion is that this syntax is to be treated in a special way since it
is used in the context of transformation rules. Please let me know if this
is the case. I have been unable to find any documentation regarding the
special treatment of hyphens in UTS #35 or other documents.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CLDR-Users