[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #9749(accepted tools)

Opened 13 months ago

Last modified 2 weeks ago

Unify formats for regex lookup files

Reported by: mark Owned by: mark
Component: other Data Locale:
Phase: rc Review:
Weeks: Data Xpath:
Xref:

Description (last modified by mark) (diff)

We have different regex lookup format. I suggest we change the formats for all of them that take paths to use RegexFinderTransformPath, and also add a file parameter to set the Transform to RegexFinderTransformPath.

  1. Some are using the raw format like:

Placeholders.txt

^//ldml/dates/fields/field\[@type="week"]/relativePeriod ; locale ; {0}=NUMBER_OF_WEEKS 3

PathDescription.txt

^//ldml/characters/ellipsis\[@type="([^"]*)"]  ;   Supply the ellipsis pattern for when the {1} part of a string is omitted. Note: before translating, be sure to read http://cldr.org/translation/characters.

and runtime constructed RegexLookup in:

CheckConsistentCasing
CheckForCopy
OutdatedPaths
EnglishInfo
ShowLocaleCoverage

  1. But the PathHeader using a processed format with RegexLookup.RegexFinderTransformPath. The latter is less fragile, since you can paste in normal paths without remembering to change [@ to \[@, etc.

PathHeader.txt

//ldml/localeDisplayNames/localeDisplayPattern/%E              ; Locale Display Names ; Locale Name Patterns ; Locale Formatting ; &localePattern($1)

Others:

missingOk.txt
testLdml2Icu.txt

and runtime constructed RegexLookup in
CheckWidths

Attachments

Change History

comment:1 Changed 13 months ago by mark

  • Description modified (diff)

comment:2 Changed 9 months ago by pedberg

  • Status changed from new to accepted
  • Cc mark added
  • Component changed from unknown to other
  • Priority changed from assess to major
  • Milestone changed from UNSCH to 31
  • Owner changed from anybody to emmons
  • Type changed from unknown to tools

Or reassign to Mark

comment:3 Changed 8 months ago by emmons

  • Phase changed from dsub to rc

comment:4 Changed 8 months ago by emmons

  • Owner changed from emmons to mark

No time for me to work on this, so I'm punting on this one.

comment:5 Changed 8 months ago by mark

  • Milestone changed from 31 to 32

comment:6 Changed 2 weeks ago by mark

  • Milestone changed from 32 to 33
View

Add a comment

Modify Ticket

Action
as accepted
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.