%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjfont}[2017/02/23 Patch to NFSS2 for LuaTeX-ja]
+\ProvidesPackage{lltjfont}[2017/03/20 Patch to NFSS2 for LuaTeX-ja]
\def\ltj@chardef@text@cmd#1{%
\let\@ifdefinable\@@ifdefinable%
\def\DeclareTextComposite#1#2#3#4{}%
\input{tuenc.def}
\let\DeclareTextComposite=\ltj@temp@DeclareTextComposite
+ \expandafter\patchcmd\csname TU\string\textasteriskcentered\endcsname{\char}{\ltjalchar}{}{}
\fi
\def\strutbox{%
\ifnum\ltjgetparameter{direction}=1 \dstrutbox % dtou
\else\ifnum\ltjgetparameter{direction}=3 \tstrutbox % tate
- \else\ifnum\ltjgetparameter{direction}=11 \tstrutbox % utod (tstrutbox)
+ \else\ifnum\ltjgetparameter{direction}=11 \zstrutbox % utod
\else\ystrutbox % yoko
\fi\fi\fi
}
\ifmmode\copy\dstrutbox\else\unhcopy\dstrutbox\fi
\else\ifnum\ltjgetparameter{direction}=4 % yoko
\ifmmode\copy\ystrutbox\else\unhcopy\ystrutbox\fi
- \else % tate and utod
+ \else\ifnum\ltjgetparameter{direction}=3 % tate
\ifmmode\copy\tstrutbox\else\unhcopy\tstrutbox\fi
+ \else % utod
+ \ifmmode\copy\zstrutbox\else\unhcopy\zstrutbox\fi
\fi\fi
}
\setbox\tstrutbox\hbox{\tate
\vrule\@width\z@
\@height.5\baselineskip \@depth.5\baselineskip}%
- \setbox\zstrutbox\hbox{\tate
+ \setbox\zstrutbox\hbox{\utod
\vrule\@width\z@
\@height.7\baselineskip \@depth.3\baselineskip}%
\let\size@update\relax}}
\csname D@\k@encoding\endcsname
\let\kenc@update\relax
\let\ck@encoding\k@encoding
- \edef\tmp@enc{'\luatexluaescapestring{\k@encoding}'}
+ \edef\tmp@enc{'\luatexluaescapestring{\k@encoding}'}%
\directlua{luatexja.jfont.is_kyenc(\tmp@enc)}\ifin@%
\let\cy@encoding\k@encoding
\else
}
\@onlypreamble\romanprocess@table
\@onlypreamble\kanjiprocess@table
-\DeclareTextCommandDefault{\textunderscore}{%
- \leavevmode\kern.06em
- \vbox{\hrule\@width.3em}}
%%%%%% LuaTeX-ja specific