Closed minamotorin closed 1 year ago
Thank you. I think just adding \ignorespaces
solve the problem.
% line 1150
\expandafter\long\expandafter\def\expandafter\jlreq@zenkakuspace@main\expandafter{\@tempa
\hskip 1\jlreq@zw\hbox{}%
\jlreq@lastnodechar=`
\expandafter\jlreq@fixjfm
\else\expandafter \fi
\ignorespaces % added
}
Thanks for your reply.
\ignorespaces
causes the following problem in really rare case.
% This program is in the public domain.
\documentclass{jlreq}% Added \ignorespaces
\begin{document}
\catcode`\@=\active
\let@ % For readability
@ @ □□□□
□□□□
@@□□□□
\end{document}
I think the importance of this problem is as low as the first problem.
Thank you again.
The current
is just an alias of \
and I think it's better to keep this to make understanding the correct behavior easier.
Perhaps, make
non-active may be a possibility. I thought users do not use
because this is not compatible with JLReq. This was a reason why I make
an alias of \
.
I understand, thanks.
In LuaLaTeX, a line break immediately after ideographic space (zenkaku space) is converted to a word space. This behavior is different from (u)pLaTeX.
The cause is that ideographic space (
) is active and line end is not commented out. One solution is to add to callback to
process_input_buffer
like LuaTeX-ja as followings.Certainly it is better to take measures, but I think it's a rare case and it's okay if you don't take measures.
Thanks.