summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb
diff options
context:
space:
mode:
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.rb12
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