tanukihee / chinesejfm Goto Github PK
View Code? Open in Web Editor NEW适用于简繁中文与日文的 luatexja JFM 文件
Home Page: https://ctan.org/pkg/chinese-jfm
License: MIT License
适用于简繁中文与日文的 luatexja JFM 文件
Home Page: https://ctan.org/pkg/chinese-jfm
License: MIT License
Minimal (Not) Working Example:
\documentclass{ltjtarticle}
\usepackage{luatexja-fontspec}
\setmainjfont{Noto Serif CJK SC}[TateFeatures = {JFM = {zh_CN/{quanjiao , vert}}}]% 亦可改成其他字体
\begin{document}
你好,“世界”!
\end{document}
按照文档的说明,直排时应同时使用 quanjiao/banjiao/kaiming
和 vert
。但上述 M(N)WE 编译后出现错误:
You must specify ONLY ONE feature among "quanjiao", "banjiao" and "kaiming".
我还尝试了
TateFeatures = {JFM = {zh_CN/quanjiao , vert}}% 去掉大括号
TateFeatures = {JFM = {zh_CN/vert}}
同样报错;
如果使用
TateFeatures = {JFM = {zh_CN/quanjiao}}
则报错 Package luatexja Error: bad JFM `zh_CN'.
;
如果使用
YokoFeatures = {JFM = {zh_CN/quanjiao}}
配合 ltjarticle
等文档类,则可以正常编译。
以上测试使用 MiKTeX 21.3 NEXT for Windows,LuaHBTeX 1.14.0,ltjtarticle 2020-09-30 v1.8f-ltj-20。
在我讀過的豎排日文出版物中,「!」「?」若緊接文字,應空一格;若接標點符號,佔一格不空格。如
彼
だ
!
と
。
次
の
文
章
。
﹁
彼
だ
!
﹂
と
。
Unlike Japanese printing, vertical colon and semicolon in traditional Chinese should be centered but not rotated.
Example:
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}
quote 环境也有相同的问题。
MWE
\documentclass[punct=zh_CN/quanjiao]{ctexart}
\begin{document}
\begin{quotation}
测试测试测试
测试测试测试
测试测试测试
测试测试测试
\end{quotation}
\begin{quotation}
“测试测试测试”
“测试测试测试”
“测试测试测试”
“测试测试测试”
\end{quotation}
\begin{quotation}
(测试测试测试)
(测试测试测试)
(测试测试测试)
(测试测试测试)
\end{quotation}
\end{document}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.