diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua b/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua index 647a106659e..6196bafcc92 100644 --- a/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua +++ b/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua @@ -8,7 +8,7 @@ -- -- This is a generated file (source: luatex-hyphen.dtx). -- --- Copyright (C) 2010 by The LuaLaTeX development team. +-- Copyright (C) 2012 by The LuaLaTeX development team. -- -- This work is under the CC0 license. -- @@ -44,6 +44,9 @@ function lookupname(name) end end function loadlanguage(lname, id) + if id == 0 then + return + end local msg = "loading%s patterns and exceptions for: %s (\\language%d)" local ldata, cname = lookupname(lname) if not ldata then @@ -76,5 +79,15 @@ function loadlanguage(lname, id) end end end +function adddialect(dialect, language) + if dialect ~= '0' then + dialect = dialect:gsub('l@', '') + language = language:gsub('l@', '') + data = language_dat[language] + if data then + data.synonyms[#data.synonyms+1] = dialect + end + end +end -- -- End of File `luatex-hyphen.lua'. |