%%%%%%%% \inhibitglue
\protected\def\inhibitglue{\directlua{luatexja.jfmglue.create_inhibitglue_node()}}
+%%%%%%%% \yoko, \tate, \ifydir, \iftdir
+%% At this moment, tategaki mode is not implemented;
+%% there is only yokogaki mode now.
+\let\yoko\relax
+\let\tate\relax
+\let\ifydir\iftrue
+\let\iftdir\iffalse
+
%%%%%%%% \ltjdefcharrange<name>{100-200,3000-,5000,...}
\protected\def\ltjdefcharrange#1#2{%
\ltj@tempcntc=#1 \expandafter\ltj@@dcrange#2,,\ignorespaces}
\define@key[ltj]{japaram}{jascriptscriptfont}{%
\expandafter\ltj@@set@stackfont#1:{mjss}}
\def\ltj@@set@stackfont#1,#2:#3{%
- \ltj@tempcntb=\globaldefs{\globaldefs0 \ltj@curjfnt=-1 #2%
- \global\ltj@tempcnta=\ltj@curjfnt}\globaldefs\ltj@tempcntb%
+ {\directlua{tex.globaldefs=0}\ltj@curjfnt=-1 #2%
+ \global\ltj@tempcnta=\ltj@curjfnt}%
\ifnum\ltj@tempcnta=-1
\@PackageError{luatexja-core}%
{\string#2 is not a control sequence that represents \MessageBreak
}
\protected\def\ltjsetparameter#1{%
- \ifnum\globaldefs=0\directlua{ltj.isglobal=''}\else\directlua{ltj.isglobal='global'}\fi
+ \ifnum\globaldefs>0\directlua{ltj.isglobal='global'}\else\directlua{ltj.isglobal=''}\fi
\setkeys[ltj]{japaram}{#1}\ignorespaces}
-\protected\def\ltjglobalsetparameter#1{\directlua{ltj.isglobal='global'}%
+\protected\def\ltjglobalsetparameter#1{%
+ \ifnum\globaldefs<0\directlua{ltj.isglobal=''}\else\directlua{ltj.isglobal='global'}\fi
\setkeys[ltj]{japaram}{#1}\ignorespaces}
%%%%%%%%
%%------------------ all done
\ltj@core@AtEnd
\endinput
-%% EOF
\ No newline at end of file
+%% EOF