We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
单个U+2E3A(TWO-EM DASH)字符是一个中文破折号,可以代替两个U+2014(EM DASH)。 (参见clreq)
xeCJK目前未将其视为中文标点:
\documentclass{minimal} \usepackage{ctex} \setCJKmainfont{NotoSerifSC-Regular.otf} \setmainfont{NotoSerifSC-Regular.otf} \begin{document} \ \\ % Double U+2014 壬——壬\\ % Single U+2E3A 壬⸺壬 \end{document}
结果: 应将其加入FullRight和MiddlePunct
FullRight
MiddlePunct
另:
对于Source Han(或Noto CJK),破折号默认是西文破折号,位置偏下:
\documentclass{minimal} \usepackage{ctex} \begin{document} \begin{tabular}{ll} Noto & {\fontspec{NotoSerifSC-Regular.otf}\CJKfontspec{NotoSerifSC-Regular.otf}% 壬——壬……壬⸺壬}\\ Fandol & {\fontspec{FandolSong-Regular}\CJKfontspec{FandolSong-Regular}% 壬——壬……壬⸺壬} \end{tabular} \end{document}
与Fandol的对比:
Source Han中垂直居中的中文破折号通过locl特性得到(参见SourceHanSerifReadMe中Language Particulars中Proportional & Half-Width CJK Punctuation一节),但似乎fontspec并不支持locl。 无论U+2014还是U+2E3A都无法垂直居中。U+2500可以垂直居中,但不适合作为破折号。 对此是否有workaround?
locl
Language Particulars
Proportional & Half-Width CJK Punctuation
fontspec
The text was updated successfully, but these errors were encountered:
您拼错了吧,不是iocl,而是locl,我搜了一下fontspec的文档,是在“不支持”的表中。不过,可以试试fwid。
iocl
fwid
Sorry, something went wrong.
U+2E3A 这个破折号,以前大陆这边做的中文字体都不支持,所以没注意到。日文字体好像都会用。现在 Pan-CJK 字体多起来,支持就有必要了。
双破折号这个设置为 FullRight 感觉不大对,因为感觉前后都允许断行更好。目前的 CJK 字符类别偏少,再考虑一下。
xeCJK 对直排目前没有明确支持,有这方面需求直接用 upLaTeX 或 pLaTeX-ng 吧,也不麻烦。
您拼错了吧,不是iocl,而是locl
抱歉。已修改。
不过,可以试试fwid
尝试了一下,确实有用。
双破折号这个设置为 FullRight 感觉不大对
U+2014被设置为FullRight, MiddlePunct和LongPunct。LongPunct似乎是使第一个字符前可以断行,第一个字符和第二个字符之间不能断行,第二个字符之后可以断行;似乎不能用于单个U+2E3A。
LongPunct
2b61d4d
qinglee
No branches or pull requests
单个U+2E3A(TWO-EM DASH)字符是一个中文破折号,可以代替两个U+2014(EM DASH)。
(参见clreq)
xeCJK目前未将其视为中文标点:
结果:
应将其加入
FullRight
和MiddlePunct
另:
对于Source Han(或Noto CJK),破折号默认是西文破折号,位置偏下:
与Fandol的对比:
Source Han中垂直居中的中文破折号通过
locl
特性得到(参见SourceHanSerifReadMe中Language Particulars
中Proportional & Half-Width CJK Punctuation
一节),但似乎fontspec
并不支持locl
。无论U+2014还是U+2E3A都无法垂直居中。U+2500可以垂直居中,但不适合作为破折号。
对此是否有workaround?
The text was updated successfully, but these errors were encountered: