diff options
author | Karl Berry <karl@freefriends.org> | 2018-11-04 20:26:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-11-04 20:26:59 +0000 |
commit | 100a6835ee4907ef9a8778ae422fa36f9791fbbd (patch) | |
tree | fb33cd50758aa1319519d277613a6d95c0b95f64 /Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb | |
parent | 52c5fa5fd97e408e01da7adf772db57671796c92 (diff) |
hyph-utf (4nov18)
git-svn-id: svn://tug.org/texlive/trunk@49078 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb')
-rw-r--r-- | Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb b/Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb index 2a13d32d065..4b9d8a62c3b 100644 --- a/Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb +++ b/Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb @@ -12,7 +12,7 @@ $path_tex_generic=File.expand_path("../../../../tex/generic", __FILE__) $path_loadhyph="#{$path_tex_generic}/#{$package_name}/loadhyph" # TODO: should be singleton -languages = Languages.new.list +languages = Language.all #text_if_native_utf = "\input pattern-loader.tex\n\\ifNativeUtfEightPatterns" @@ -28,7 +28,7 @@ string_enc = (language.encoding == nil) ? "" : language.encoding.upcase + " " # TODO: write a more comprehensive one text_header = "% filename: loadhyph-#{language.code}.tex -% language: #{language.name} +% language: #{language.name.safe} % % Loader for hyphenation patterns, generated by % source/generic/hyph-utf8/generate-pattern-loaders.rb @@ -82,7 +82,7 @@ text_patterns_quote = " \\input hyph-quote-#{language.code}.tex" ########### lccodes_common = [] -if language.has_quotes then +if language.has_apostrophes then lccodes_common.push("\\lccode`\\'=`\\'") end if language.has_dashes then @@ -97,7 +97,8 @@ if ['sh-latn', 'sh-cyrl'].include?(language.code) then " % We load both scripts at the same time to simplify usage"] end - if language.use_new_loader then + next if language.use_old_loader + if language.code == 'sh-latn' then filename = "#{$path_loadhyph}/loadhyph-sr-latn.tex" elsif language.code == 'sh-cyrl' then @@ -212,7 +213,7 @@ end file.puts(text_if_native_utf) file.puts(text_engine_utf8) file.puts(text_patterns_utf8) - if language.has_quotes + if language.has_apostrophes file.puts(text_patterns_quote) end file.puts('\else') @@ -233,5 +234,4 @@ end ####### file.puts('\endgroup') end - end end |