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

Unified Diff: third_party/hyphen/lig.awk

Issue 20860003: Remove hyphenation code from Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | « third_party/hyphen/install-sh ('k') | third_party/hyphen/ligpatch.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hyphen/lig.awk
diff --git a/third_party/hyphen/lig.awk b/third_party/hyphen/lig.awk
deleted file mode 100644
index 6737170cc47cbad671f25e32685c101592b54242..0000000000000000000000000000000000000000
--- a/third_party/hyphen/lig.awk
+++ /dev/null
@@ -1,42 +0,0 @@
-{print $0}
-b=$0
-/f[1-9]?f[1-9]?i/ {gsub("f[1-9]?f[1-9]?i", "ffi",b) }
-/f[1-9]?f[1-9]?l/ {gsub("f[1-9]?f[1-9]?l", "ffl",b) }
-
-/f[1-9]?f/ {gsub("f[1-9]?f", "ff",b); r=1}
-/f[1-9]?i/ {gsub("f[1-9]?i", "fi",b); r=1}
-/f[1-9]?l/ {gsub("f[1-9]?l", "fl",b); r=1}
-
-b!=$0 {
- # check alternative hyph
- if (num ~ /\//) {
- next;
- }
- print b
-}
-
-c=b
-
-/^[1-9]?f/ { sub("^[1-9]?f", "ff", c); }
-/^[1-9]?i/ { sub("^[1-9]?i", "fi", c); }
-/^[1-9]?l/ { sub("^[1-9]?l", "fl", c); }
-
-c!=b { print c }
-
-/f[1-9]?$/ {
- print gensub("f[1-9]?$", "ff", "g", b);
- if (c!=b) print gensub("f[1-9]?$", "ff", "g", c);
-
- print gensub("f[1-9]?$", "fi", "g", b);
- if (c!=b) print gensub("f[1-9]?$", "fi", "g", c);
-
- print gensub("f[1-9]?$", "fl", "g", b);
- if (c!=b) print gensub("f[1-9]?$", "fl", "g", c);
-}
-
-
-#s/ffi/ffi/g
-#s/ffl/ffl/g
-#s/ff/ff/g
-#s/fi/fi/g
-#s/fl/fl/g
« no previous file with comments | « third_party/hyphen/install-sh ('k') | third_party/hyphen/ligpatch.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698