<div dir="ltr"><div dir="ltr">Awesome speed, thanks!<br><div><br></div><div>Yukai</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Michal Hoftich <<a href="mailto:michal.h21@gmail.com">michal.h21@gmail.com</a>> 于2020年10月4日周日 上午5:07写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Yukai,<br>
<br>
>What is relevant is, "\thinspace" is now let to "\,". But the current<br>
>definition of "\,<space>" in latex.4ht (generated from tex4ht-4ht.tex) uses<br>
>"\thinspace",<br>
><br>
>\def\:tempc{\relax\ifmmode\csname a:,\endcsname\else\thinspace\fi}<br>
>\expandafter\HLet\csname , \endcsname=\:tempc<br>
><br>
>Therefore user input "\," now causes endless loop<br>
><br>
>"\," -> "\,<space>" -> "\thinspace" -> "\,<space>" -> loop<br>
<br>
thanks for your report and analysis. I've fixed this issue in TeX4ht <br>
sources. I've also added support for \, \; \: \! and \> in the text <br>
mode, using adapted code from the LaTeX kernel.<br>
<br>
This is the new code that should be put to latex.4ht:<br>
<br>
\NewConfigure{;}{1}<br>
\NewConfigure{!}{1}<br>
\NewConfigure{:}{1}<br>
\NewConfigure{,}{1}<br>
\NewConfigure{>}{1}<br>
\DeclareRobustCommand\:tmspace[2]{%<br>
\ifmmode\expandafter\csname a:#1\endcsname%<br>
\else\leavevmode@ifvmode\kern#2\fi\relax%<br>
}<br>
\DeclareRobustCommand\,{\:tmspace{,}{.16667em}}<br>
\DeclareRobustCommand\;{\:tmspace;{.2777em}}<br>
\DeclareRobustCommand\!{\:tmspace!{-.16667em}}<br>
\DeclareRobustCommand\:{\:tmspace{:}{.2222em}}<br>
\DeclareRobustCommand\>{\:tmspace;{.2222em}}<br>
\let\thinspace\,<br>
\let\medspace\:<br>
\let\negthinspace\!<br>
\let\thickspace\;<br>
\Configure{,}{\mskip\thinmuskip}<br>
\Configure{;}{\mskip\thickmuskip}<br>
\Configure{!}{\mskip-\thinmuskip}<br>
\Configure{:}{\mskip\medmuskip}<br>
\Configure{>}{\mskip\medmuskip}<br>
<br>
Best regards,<br>
Michal<br>
</blockquote></div></div>