ICU-12985 pre-parse VerticalOrientation.txt

X-SVN-Rev: 40086
This commit is contained in:
Markus Scherer 2017-04-28 20:29:22 +00:00
parent eb57bf7c90
commit 761c994436
3 changed files with 695 additions and 688 deletions

View file

@ -114,6 +114,7 @@ export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib
- fix other errors
Exception: no default values (@missing lines) for some Catalog or Enumerated properties: [u'vo']
-> add vo=Vertical_Orientation to _ignored_properties
-> later removed again, parsing the file, even though we do not yet store data for runtime use
* new constants for new property values
- preparseucd.py error:
@ -188,7 +189,7 @@ export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib
vo ; Tr ; Transformed_Rotated
vo ; Tu ; Transformed_Upright
vo ; U ; Upright
-> ignored for now
-> only pre-parsed for now, but not yet stored for runtime use
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata
(not strictly necessary for NOT_ENCODED scripts)

File diff suppressed because it is too large Load diff

View file

@ -76,8 +76,6 @@ _ignored_properties = set((
"XO_NFD",
"XO_NFKC",
"XO_NFKD",
# ICU does not (yet) support Vertical_Orientation.
"vo",
# ICU does not use Unihan properties.
"cjkAccountingNumeric",
"cjkOtherNumeric",
@ -809,6 +807,7 @@ def ParseLineBreak(in_file): ParseOneProperty(in_file, "lb")
def ParseScripts(in_file): ParseOneProperty(in_file, "sc")
def ParseScriptExtensions(in_file): ParseOneProperty(in_file, "scx")
def ParseSentenceBreak(in_file): ParseOneProperty(in_file, "SB")
def ParseVerticalOrientation(in_file): ParseOneProperty(in_file, "vo")
def ParseWordBreak(in_file): ParseOneProperty(in_file, "WB")
@ -1565,6 +1564,7 @@ _files = {
"ScriptExtensions.txt": (DontCopy, ParseScriptExtensions),
"SpecialCasing.txt": (CopyOnly, ParseSpecialCasing),
"UnicodeData.txt": (CopyOnly, ParseUnicodeData, 2),
"VerticalOrientation.txt": (DontCopy, ParseVerticalOrientation),
"WordBreakProperty.txt": (DontCopy, ParseWordBreak),
"WordBreakTest.txt": (PrependBOM, "testdata"),
# From www.unicode.org/Public/idna/<version>/