diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua b/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua index e5e27e76021..0d646dda33d 100644 --- a/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua +++ b/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua @@ -23,15 +23,15 @@ -- This work consists of the main source file luainputenc.dtx -- and the derived files -- luainputenc.sty, luainputenc.lua, lutf8.def, lutf8x.def, --- eu2enc.def, eu2lmr.fd and luainputenc.pdf +-- and luainputenc.pdf -- luainputenc = { } luainputenc.module = { name = "luainputenc", - version = 0.95, - date = "2009/11/20", + version = 0.96, + date = "2010/02/07", description = "Lua simple inputenc package.", author = "Elie Roux", copyright = "Elie Roux", @@ -46,6 +46,20 @@ luainputenc.log = luainputenc.log or function(...) luatextra.module_log('luainputenc', format(...)) end + +luainputenc.encoding = "utf8" +luainputenc.package_option = nil + +function luainputenc.set_option(option) + luainputenc.package_option = option + if option == "lutf8" or option == "lutf8x" or option == "utf8x" or option == "unactivate" then + luainputenc.encoding = "utf8" + else + luainputenc.encoding = option + end +end + + local char, utfchar, byte, format, gsub, utfbyte, utfgsub = string.char, unicode.utf8.char, string.byte, string.format, string.gsub, unicode.utf8.byte, unicode.utf8.gsub |