MiKTeX / miktex-packaging

the MiKTeX package factory
MIT License
19 stars 6 forks source link

Some `.htf` files have wrong name #320

Open crow02531 opened 1 year ago

crow02531 commented 1 year ago

.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