local STCK = luatexja.userid_table.STCK
local IHB = luatexja.userid_table.IHB
local id_local = node.id('local_par')
+ local id_dir = node.id('dir')
local function test_list(h, lv)
if not h then
flag = 0; break -- error
end
end
- elseif p.id~=id_local then
+ elseif p.id~=id_local and p.id~=id_dir then
flag = 0; break
end
end
if lv==0 and not page_direction then
page_direction = v -- for first call of \yoko (in luatexja-core.sty)
else
+ if luatexja.debug then
+ luatexja.ext_show_node_list(node.direct.tonode(h),'>> ', texio.write_nl)
+ end
ltjb.package_error(
'luatexja',
"Use `\\" .. tostring(name) .. "' at top of list",
s = s .. ' (for kinsoku)'
end
print_fn(s)
+ elseif pt == 'dir' then
+ s = base .. ' ' .. tostring(p.dir) .. ' (level ' .. tostring(p.level) .. ')'
+ print_fn(s)
elseif pt == 'whatsit' then
s = base
if p.subtype==sid_user then
\ProcessOptions\relax
\fi %</LaTeX>
%%%% VERSION
-\def\LuaTeXjaversion{20200517.0}
+\def\LuaTeXjaversion{20200518.0}
\directlua{require('ltj-unicode-ccfix.lua')}% catcode of ideographs
--- /dev/null
+\ifdefined\directlua
+ \directlua{luatexja_debug=1}
+ \documentclass{ltjarticle}
+ \usepackage{luatexja}
+\else
+ \documentclass{jarticle}
+\fi
+%\usepackage[bidi=basic-r]{babel}
+%\babelprovide[import=ar, main]{arabic}
+%\babelfont{rm}{Amiri}
+\usepackage[english]{babel}
+\begin{document}
+あasdfghjklいうえお
+\footnote{\ifdefined\directlua\else\yoko\fi かqwertyuioき}%
+さ/.,mnbvcxzし
+\end{document}