summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-02-13 00:08:09 +0000
committerKarl Berry <karl@freefriends.org>2016-02-13 00:08:09 +0000
commit090ded961825be917116732276cd3ec07bcf1f7a (patch)
tree69291ad61b40c9632c1fcad667ce7fe48e5fea1c /Master/texmf-dist/source/generic/hyph-utf8/generate-pattern-loaders.rb
parent55c89a7fda677ccf7b257906b9930867b7b3eb77 (diff)
hyph-utf8 (12feb16)
git-svn-id: svn://tug.org/texlive/trunk@39700 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.rb16
1 files changed, 8 insertions, 8 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 f861cec1464..78eaee9ba1e 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
@@ -35,7 +35,7 @@ text_header =
% source/generic/hyph-utf8/generate-pattern-loaders.rb
% See also http://tug.org/tex-hyphen
%
-% Copyright 2008-2015 TeX Users Group.
+% Copyright 2008-2016 TeX Users Group.
% You may freely use, modify and/or distribute this file.
% (But consider adapting the scripts if you need modifications.)
%
@@ -78,19 +78,21 @@ text_patterns_utf8 = text_patterns
text_patterns_quote = " \\input hyph-quote-#{language.code}.tex"
+list_languages_with_quotes = ['af', 'fr', 'fur', 'it', 'oc', 'pms', 'rm', 'uk', 'zh-latn-pinyin']
+
###########
# lccodes #
###########
lccodes_common = []
-if language.code == 'af' or language.code == 'it' or language.code == 'rm' or language.code == 'fur' or language.code == 'pms' or language.code == 'fr' or language.code == 'uk' or language.code == 'zh-latn-pinyin' then
+if list_languages_with_quotes.include?(language.code)
lccodes_common.push("\\lccode`\\'=`\\'")
end
-if language.code == 'af' or language.code == 'pt' or language.code == 'tk' or language.code == 'ru' or language.code == 'uk' then
+if ['af', 'pt', 'ru', 'tk', 'uk'].include?(language.code)
lccodes_common.push("\\lccode`\\-=`\\-")
end
-if language.code == 'sh-latn' or language.code == 'sh-cyrl' then
+if ['sh-latn', 'sh-cyrl'].include?(language.code)
text_patterns_utf8 = [" \\input hyph-sh-latn.tex",
" \\input hyph-sh-cyrl.tex"]
text_engine_utf8 = [" #{comment_engine_utf8}",
@@ -151,7 +153,7 @@ end
#######################
# GROUP nr. 2 - ASCII #
#######################
- elsif language.code == 'it' or language.code == 'rm' or language.code == 'pms' then
+ elsif ['it', 'pms', 'rm'].include?(language.code)
file.puts(text_if_native_utf)
file.puts(text_engine_utf8)
file.puts(text_patterns)
@@ -207,7 +209,7 @@ end
file.puts(text_if_native_utf)
file.puts(text_engine_utf8)
file.puts(text_patterns_utf8)
- if language.code == 'af' or language.code == 'fr' or language.code == 'fur' or language.code == 'uk' or language.code == 'zh-latn-pinyin' then
+ if list_languages_with_quotes.include?(language.code)
file.puts(text_patterns_quote)
end
file.puts('\else')
@@ -226,5 +228,3 @@ end
end
end
end
-
-