tanukihee / ChineseJFM

适用于简繁中文与日文的 luatexja JFM 文件
https://ctan.org/pkg/chinese-jfm
MIT License
15 stars 2 forks source link

Vertical colon and semicolon in traditional chinese #6

Open hungtzuchang opened 1 year ago

hungtzuchang commented 1 year ago

Unlike Japanese printing, vertical colon and semicolon in traditional Chinese should be centered but not rotated. Example: image Result from Chinese-JFM code

% !TEX TS-program = lualatex
\documentclass{ltjtarticle}
\usepackage[]{luatexja-fontspec}
\setmainjfont[TateFeatures = {JFM = {zh_TW/{quanjiao,vert}}}]{NotoSerifTC}
\begin{document}
測試:;,。「」
\end{document}

image

tanukihee commented 1 year ago

Please add Language = Chinese Traditional option like

% !TEX TS-program = lualatex
\documentclass{ltjtarticle}
\usepackage[]{luatexja-fontspec}
\setmainjfont[TateFeatures = {JFM = {zh_TW/{quanjiao,vert}}}, Language = Chinese Traditional]{NotoSerifTC}
\begin{document}
測試:;,。「」
\end{document}

when using Noto/Source Han fonts.

I'll add it to the document in the next version.

tanukihee commented 1 year ago

See https://osdn.net/projects/luatex-ja/ticket/40953 .

hungtzuchang commented 1 year ago

Thanks! This works for NotoSerif-TC and Kaishu from Taiwanese MOE. However, this does not work with LXGW WeiKai TC. Does this have to do with some specific font features?

% !TEX TS-program = lualatex
\documentclass{ltjtarticle}
\usepackage[]{luatexja-fontspec}
\setmainjfont[TateFeatures = {JFM = {zh_TW/{quanjiao,vert}}}, Language={Chinese Traditional}]{LXGWWenKaiTC-Regular} %{TW-MOE-Std-Kai} %{NotoSerifTC}
\begin{document}
測試:;,。「」我?」
\end{document}

image

tanukihee commented 1 year ago

I didn't test for it... Maybe I'll have to ask @lxgw for help.😢