diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2010-06-01 01:39:02 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2010-06-01 01:39:02 +0000 |
commit | 3a5cf8de164c5d0f1fdb01999af33d77f59d526f (patch) | |
tree | 1e1c013154793e9a74852ded1537869e3cfabbb0 /Master/texmf-dist/source/generic/hyph-utf8/languages.rb | |
parent | 3205d02db781aec158019161797c2a156ceb0b34 (diff) |
update of hyph-utf8: add the forgotten ru and uk extra patterns, remove OT1 support from Latin, updates in luatex sources and docs, removed collaboration files
git-svn-id: svn://tug.org/texlive/trunk@18661 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/hyph-utf8/languages.rb')
-rw-r--r-- | Master/texmf-dist/source/generic/hyph-utf8/languages.rb | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/generic/hyph-utf8/languages.rb b/Master/texmf-dist/source/generic/hyph-utf8/languages.rb index 450013b7868..fc524fc3520 100644 --- a/Master/texmf-dist/source/generic/hyph-utf8/languages.rb +++ b/Master/texmf-dist/source/generic/hyph-utf8/languages.rb @@ -40,7 +40,7 @@ class Language def get_patterns if @patterns == nil - filename = "../../../tex/generic/hyph-utf8/patterns/tex/hyph-#{@code}.tex"; + filename = "../../../tex/generic/hyph-utf8/patterns/tex/hyph-#{@code}.tex" lines = IO.readlines(filename, '.').join("") @patterns = lines.gsub(/%.*/,''). gsub(/.*\\patterns\s*\{(.*?)\}.*/m,'\1'). @@ -49,6 +49,19 @@ class Language gsub(/\s*$/m,''). gsub(/'/,"’"). split("\n") + # Russian and Ukrainian have some extra patterns with dashes + # we may combine these patterns with the main file anyway + if @code == 'ru' or @code == 'uk' then + filename = "../../../tex/generic/hyph-utf8/patterns/tex-special/exhyph-#{@code}.tex" + lines = IO.readlines(filename, '.').join("") + @patterns.concat(lines.gsub(/%.*/,''). + gsub(/.*\\patterns\s*\{(.*?)\}.*/m,'\1'). + gsub(/\s+/m,"\n"). + gsub(/^\s*/m,''). + gsub(/\s*$/m,''). + gsub(/'/,"’"). + split("\n")) + end if @code == 'eo' then @patterns = lines.gsub(/%.*/,''). |