miktex-packaging icon indicating copy to clipboard operation
miktex-packaging copied to clipboard

Some `.htf` files have wrong name

Open crow02531 opened this issue 2 years ago • 0 comments

.htf files inside /tex4ht/ht-fonts/unicode/cjk/utf8 have wrong name. Currently they are named utf8song*.htf, but they should be unisong*.htf. Otherwise tex4ht will complaint about:

--- warning --- Couldn't find font 'unisong*.htf' (char codes: 0--255)

when converting latex containing chinese.

For example, try to convert the following latex to html via htlatex command.

\documentclass{article}
\usepackage{ctex}
\begin{document}
test. 测试。
\end{document}

You will find all chinese characters disappear in the output html and things like Couldn't find font 'unisong*.htf' shown in the log.

This issue is the same as this one in texlive. It's a pretty old issue(10 years ago) and texlive have already fixed it, their files in /tex4ht/ht-fonts/unicode/cjk/utf8 are named unisong*.htf.

Here is my MiKTeX installation report miktex-report.txt

crow02531 avatar Feb 02 '23 10:02 crow02531