summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua
diff options
context:
space:
mode:
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.lua7
1 files changed, 5 insertions, 2 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 6f7e1059dc0..647a106659e 100644
--- a/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua
+++ b/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua
@@ -27,6 +27,7 @@ local dbfile = kpse.find_file(dbname)
if not dbfile then
err("file not found: "..dbname)
else
+ wlog('using data file: %s', dbfile)
language_dat = dofile(dbfile)
end
function lookupname(name)
@@ -60,13 +61,15 @@ function loadlanguage(lname, id)
end
wlog(msg, '', cname, id)
for _, item in ipairs{'patterns', 'hyphenation'} do
- local file = ldata[item]
- if file ~= nil and file ~= '' then
+ local filelist = ldata[item]
+ if filelist ~= nil and filelist ~= '' then
+ for _, file in ipairs(filelist:explode(',')) do
local file = kpse.find_file(file) or err("file not found: %s", file)
local fh = io.open(file, 'r')
local data = fh:read('*a') or err("file not readable: %s", f)
fh:close()
lang[item](lang.new(id), data)
+ end
else
if item == 'hyphenation' then item = item..' exceptions' end
wlog("info: no %s for this language", item)