summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb')
-rw-r--r--Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb b/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb
index 3a8365f2fa5..233fb60bbcb 100644
--- a/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb
+++ b/Master/texmf-dist/source/generic/hyph-utf8/generate-tl-files.rb
@@ -24,9 +24,10 @@ language_grouping = {
'greek' => ['el-monoton', 'el-polyton'],
'ancientgreek' => ['grc', 'grc-x-ibycus'],
'chinese' => ['zh-latn'],
- # TODO - until someone tells what to do
+ 'indic' => ['as', 'bn', 'gu', 'hi', 'kn', 'ml', 'mr', 'or', 'pa', 'ta', 'te'],
+ # TODO - until someone tells what to do; but this is wrong anyway
#'serbian' => ['sr-latn', 'sr-cyrl'],
- 'serbian' => ['sr-latn'],
+ 'serbian' => ['sh-latn'],
}
language_used_in_group = Hash.new
@@ -41,12 +42,17 @@ language_groups = Hash.new
# single languages first
languages.each do |language|
# temporary remove cyrilic serbian until someone explains what is needed
- if language.code == 'sr-cyrl' then
- languages.delete(language)
+ if language.code == 'sr-cyrl' or language.code == 'en-us' then
+ # ignore the language
elsif language_used_in_group[language.code] == nil then
language_groups[language.name] = [language]
end
+
+ if language.code == 'sh-latn' then
+ language.code = 'sr-latn'
+ end
end
+
# then groups of languages
language_grouping.each do |name,group|
language_groups[name] = []