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 | 12 |
1 files changed, 6 insertions, 6 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 6b547fab7ac..fa7ed3851ca 100644 --- a/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua +++ b/Master/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua @@ -12,8 +12,6 @@ -- -- This work is under the CC0 license. -- -luatexhyphen = luatexhyphen or {} -local luatexhyphen = luatexhyphen local function wlog(msg, ...) texio.write_nl('log', 'luatex-hyphen: '..msg:format(...)) end @@ -22,7 +20,7 @@ local function err(msg, ...) end local dbname = "language.dat.lua" local language_dat -local dbfile = kpse.find_file(dbname, 'lua') +local dbfile = kpse.find_file(dbname) if not dbfile then err("file not found: "..dbname) else @@ -42,7 +40,6 @@ local function lookupname(name) end end end -luatexhyphen.lookupname = lookupname local function loadlanguage(lname, id) if id == 0 then return @@ -79,7 +76,6 @@ local function loadlanguage(lname, id) end end end -luatexhyphen.loadlanguage = loadlanguage local function adddialect(dialect, language) if dialect ~= '0' then dialect = dialect:gsub('l@', '') @@ -90,6 +86,10 @@ local function adddialect(dialect, language) end end end -luatexhyphen.adddialect = adddialect +return { + lookupname = lookupname, + loadlanguage = loadlanguage, + adddialect = adddialect, +} -- -- End of File `luatex-hyphen.lua'. |