Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: patches/brkitr.patch

Issue 1637683002: ICU 56 step 5: Apply the remaining local patches (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@56post56
Patch Set: drop uconv.patch Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android/brkitr.patch ('k') | patches/linebrk.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/brkitr.patch
diff --git a/patches/brkitr.patch b/patches/brkitr.patch
deleted file mode 100644
index 7bd8286e84855e66425e2faee987821417193b13..0000000000000000000000000000000000000000
--- a/patches/brkitr.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-diff --git a/source/data/brkitr/word.txt b/source/data/brkitr/word.txt
-index f89a2fe..c74da4c 100644
---- a/source/data/brkitr/word.txt
-+++ b/source/data/brkitr/word.txt
-@@ -35,10 +35,16 @@ $Hebrew_Letter = [\p{Word_Break = Hebrew_Letter}];
- $ALetter = [\p{Word_Break = ALetter}];
- $Single_Quote = [\p{Word_Break = Single_Quote}];
- $Double_Quote = [\p{Word_Break = Double_Quote}];
--$MidNumLet = [\p{Word_Break = MidNumLet}];
-+# Remove two full stop characters from $MidNumLet and add them to $MidNum
-+# to break a hostname into its components at the cost of breaking
-+# 'e.g.' and 'i.e.' as well.
-+# $MidNumLet is used in rules 6/7 (rules of our interest) and rules 11/12.
-+# Because it's OR'd with $MidNum in rules 11/12, rules 11/12 are not affected
-+# while rules 6/7 are reverted to the old behavior we want.
-+$MidNumLet = [[\p{Word_Break = MidNumLet}] - [\u002E \uFF0E]];
- $MidLetter = [\p{Word_Break = MidLetter}];
--$MidNum = [\p{Word_Break = MidNum}];
--$Numeric = [\p{Word_Break = Numeric}];
-+$MidNum = [\p{Word_Break = MidNum}[\u002E \uFF0E]];
-+$Numeric = [\p{Word_Break = Numeric}[\uff10-\uff19]]; #includes fullwidth digits
- $ExtendNumLet = [\p{Word_Break = ExtendNumLet}];
-
- $Han = [:Han:];
-diff --git a/source/data/brkitr/line.txt b/source/data/brkitr/line.txt
-index 74560af..ff7d139 100644
---- a/source/data/brkitr/line.txt
-+++ b/source/data/brkitr/line.txt
-@@ -12,9 +12,8 @@
- # This is only because of a limitation of ICU break engine implementation,
- # not because the older behavior is desirable.
-
--#
--# Character Classes defined by TR 14.
--#
-+# CHROME: 1. Use line_ja.txt to apply small kana rules in all locales.
-+# 2. Adjust CL, OP, and IS to handle 'comma-variants' consistently.
-
- !!chain;
- !!LBCMNoChain;
-@@ -57,14 +56,14 @@
- #
-
- $AI = [:LineBreak = Ambiguous:];
--$AL = [:LineBreak = Alphabetic:];
-+$AL = [[:LineBreak = Alphabetic:] - [\u23B4\u23B5]];
- $BA = [:LineBreak = Break_After:];
- $BB = [:LineBreak = Break_Before:];
- $BK = [:LineBreak = Mandatory_Break:];
- $B2 = [:LineBreak = Break_Both:];
- $CB = [:LineBreak = Contingent_Break:];
- $CJ = [:LineBreak = Conditional_Japanese_Starter:];
--$CL = [:LineBreak = Close_Punctuation:];
-+$CL = [[:LineBreak = Close_Punctuation:] [\uFE51\uFE10\u23B5]];
- $CM = [:LineBreak = Combining_Mark:];
- $CP = [:LineBreak = Close_Parenthesis:];
- $CR = [:LineBreak = Carriage_Return:];
-@@ -74,17 +73,17 @@ $HL = [:LineBreak = Hebrew_Letter:];
- $HY = [:LineBreak = Hyphen:];
- $H2 = [:LineBreak = H2:];
- $H3 = [:LineBreak = H3:];
--$ID = [:LineBreak = Ideographic:];
-+$ID = [[[:LineBreak = Ideographic:] $CJ] - [\uFE51]];
- $IN = [:LineBreak = Inseperable:];
--$IS = [:LineBreak = Infix_Numeric:];
-+$IS = [[:LineBreak = Infix_Numeric:] - [\uFE10]];
- $JL = [:LineBreak = JL:];
- $JV = [:LineBreak = JV:];
- $JT = [:LineBreak = JT:];
- $LF = [:LineBreak = Line_Feed:];
- $NL = [:LineBreak = Next_Line:];
--$NS = [[:LineBreak = Nonstarter:] $CJ];
-+$NS = [:LineBreak = Nonstarter:];
- $NU = [:LineBreak = Numeric:];
--$OP = [:LineBreak = Open_Punctuation:];
-+$OP = [[:LineBreak = Open_Punctuation:] \u23B4];
- $PO = [:LineBreak = Postfix_Numeric:];
- $PR = [:LineBreak = Prefix_Numeric:];
- $QU = [:LineBreak = Quotation:];
« no previous file with comments | « android/brkitr.patch ('k') | patches/linebrk.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698