Skip to content
New issue

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

关于 ctex 2.x 对 luatexja 的使用方式 #147

Closed
leo-liu opened this issue Mar 16, 2015 · 6 comments
Closed

关于 ctex 2.x 对 luatexja 的使用方式 #147

leo-liu opened this issue Mar 16, 2015 · 6 comments
Assignees
Labels
Milestone

Comments

@leo-liu
Copy link
Member

leo-liu commented Mar 16, 2015

Original issue 148 created by sobenlee on 2014-04-15T12:12:04.000Z:

目前是基本上禁用了 luatexja 在 LaTeX 下的设置(ltj-latex)。主要原因是 ltj-latex 扩展了 NFSS(\DeclareYokoKanjiEncoding 等),现在看来意义并不大,特别是在用 fontspec 选择字体和目前还不支持直排的情况下。其中一些必要的设置已经被我移植到 ctex-engine-luatex.def 中。

由于我并不掌握 luatexja 的整个运作机制,可能有些疏漏。同时严重依赖它的内部函数,随着 luatexja 的更新,很容易出问题。

@leo-liu
Copy link
Member Author

leo-liu commented Mar 16, 2015

Comment #1 originally posted by liamhuang0205 on 2014-04-15T13:46:58.000Z:

在 ctex 宏包里调用 luatexja 在代码实现和用户界面都有些问题。

代码实现是李清前辈在主楼里说的,修改了 NFSS 等的内容,照搬不合适,修改又会担心宏包更新带来的潜在的冲突。
用户界面主要是,一方面缺少 \setmonofont 对应的指令,只能选择两种中文字体(当然可以用 \setjfontfamily 之类的来临时选择,不过我说的是全局的选择);另一方面 pTeX 系把中英文分开处理,所以 \sffamily 之类的命令在文中是起不到改变中文字体效果的(这种做法有好有坏吧,但总之国内用户肯定不习惯)。

所以我觉得更好的方式,可能是在 luatexja-fonspec 的用户界面的基础上再套一层界面,以和 xeCJK 的界面保持一致。这样不用担心 luatexja 实现的变化(用户界面变化肯定不会太大),所以兼容性能有一个比较好的保证;对于习惯了 xeCJK 的国内用户也能比较顺手。

有点蛋疼的感觉= =

@leo-liu
Copy link
Member Author

leo-liu commented Mar 16, 2015

Comment #2 originally posted by sobenlee on 2014-06-13T04:45:18.000Z:

从 luatexja 版本库最近的提交来看,他们正在致力于竖排的支持。

我们的代码将不能兼容,待 luatexja 新版本正式发布后再来看吧。

http://sourceforge.jp/projects/luatex-ja/scm/git/luatexja/summary

@ghost ghost removed the Priority-Medium label Apr 20, 2015
@ghost ghost added this to the ctex-2.0 milestone Apr 20, 2015
ghost referenced this issue Apr 21, 2015
* fix a typo: 复本 -> 副本
* 文档结构调整完毕
@leo-liu leo-liu assigned qinglee and unassigned leo-liu Apr 22, 2015
@leo-liu
Copy link
Member Author

leo-liu commented Apr 22, 2015

luatexja 刚刚发布了带竖排支持的版本,不知道有没有问题。

@qinglee
Copy link
Member

qinglee commented Apr 22, 2015

咱们也要跟着做竖排支持么?

不知道难度怎么样,我这周末集中点时间看一下吧。

@leo-liu
Copy link
Member Author

leo-liu commented Apr 22, 2015

我觉得竖排先不用吧,毕竟不光是 luatexja。
如果真要做先独立开个包可能会好些。
我主要是担心 luatexja 更新后会有兼容性问题。

@ghost ghost closed this as completed Apr 29, 2015
@qinglee
Copy link
Member

qinglee commented May 11, 2015

3d246c0 兼容 LuaTeX-ja 20150420,主要是两点修改:

暂不支持竖排。

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants