diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua b/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua index 0d646dda33d..dde3ed0a792 100644 --- a/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua +++ b/Master/texmf-dist/tex/lualatex/luainputenc/luainputenc.lua @@ -26,24 +26,24 @@ -- and luainputenc.pdf -- -luainputenc = { } +module('luainputenc', package.seeall) luainputenc.module = { name = "luainputenc", - version = 0.96, - date = "2010/02/07", + version = 0.97, + date = "2010/05/10", description = "Lua simple inputenc package.", author = "Elie Roux", copyright = "Elie Roux", license = "CC0", } -luatextra.provides_module(luainputenc.module) +luatexbase.provides_module(luainputenc.module) local format = string.format luainputenc.log = luainputenc.log or function(...) - luatextra.module_log('luainputenc', format(...)) + luatexbase.module_log('luainputenc', format(...)) end @@ -87,8 +87,8 @@ end if tex.luatexversion > 42 then function luainputenc.register_callbacks() - callback.add('process_output_buffer', luainputenc.fake_utf_write, 'luainputenc.fake_utf_write') - callback.add('process_input_buffer', luainputenc.fake_utf_read, 'luainputenc.fake_utf_read') + luatexbase.add_to_callback('process_output_buffer', luainputenc.fake_utf_write, 'luainputenc.fake_utf_write') + luatexbase.add_to_callback('process_input_buffer', luainputenc.fake_utf_read, 'luainputenc.fake_utf_read') end else @@ -117,7 +117,7 @@ else end function luainputenc.start() - callback.add('process_input_buffer', luainputenc.fake_utf_read, + luatexbase.add_to_callback('process_input_buffer', luainputenc.fake_utf_read, 'luainputenc.fake_utf_read') luainputenc.state = started if luainputenc.callback_registered == 0 then @@ -126,7 +126,7 @@ else end function luainputenc.stop() - callback.remove('process_input_buffer', 'luainputenc.fake_utf_read') + luatexbase.remove_from_callback('process_input_buffer', 'luainputenc.fake_utf_read') luainputenc.state = stopped return end @@ -255,9 +255,9 @@ else function luainputenc.register_callback() if luainputenc.callback_registered == 0 then - callback.add('pre_read_file', luainputenc.pre_read_file, + luatexbase.add_to_callback('pre_read_file', luainputenc.pre_read_file, 'luainputenc.pre_read_file') - callback.add('file_close', luainputenc.close, 'luainputenc.close') + luatexbase.add_to_callback('file_close', luainputenc.close, 'luainputenc.close') luainputenc.callback_registered = 1 end end |