--
-- ltj-otf.lua
--
-require 'unicode'
require 'lualibs'
luatexja.load_module 'base'; local ltjb = luatexja.base
setfield(p, 'value', char); node_write(p)
end
-local utf
+local myutf
do
- utf = function (ucs)
+ myutf = function (ucs)
if ltjd_get_dir_count()==dir_tate then
ucs = ltju.replace_vert_variant(
tex_get_attr((ltjd_get_dir_count()==dir_tate) and attr_curtfnt or attr_curjfnt),
luatexja.otf = {
append_jglyph = append_jglyph,
enable_ivs = enable_ivs, disable_ivs = disable_ivs,
- cid = cid, utf = utf,
+ cid = cid, utf = myutf,
}
\directlua{
local cat_str = luatexbase.catcodetables['string']
local cat_lp = luatexbase.catcodetables['latex-package']
- local ubyte = unicode.utf8.byte
+ local ubyte = utf.byte
local spccmd = string.char(0x5C) .. 'ltj@lst@hss@normal'
luatexja.listings = {}
function luatexja.listings.althss(t)
}}
\directlua{
- local utfchar, getcount = unicode.utf8.char, tex.getcount
+ local utfchar, getcount = utf.char, tex.getcount
luatexja.listings.insert_cb = function()
if not luatexja.listings.patched then
luatexja.listings.patched = 1