Forums: 公開討議/質問 (Thread #40969)

How to typeset kanbun? (2019-07-17 20:53 by JPRidgeway #83254)

The typesetting of kanbun is a complicated matter, which gets worse due to the overwhelming variety of the way the range U+3190..U+319F is treated in Unicode. However, it is possible to define how exactly kanbun is supposed to be rendered: in vertical text, in either lengthened em-boxes without vertical space, or proportionally, U+3190 centered, the rest shifted to the left, say, ㆒ and ㆑ fusing when touching etc. Another way (less preferred) is using tricky ruby. How does one typeset kanbun in luatex-ja? Is there some method already developed and preferred? Or the hack with manually tuned ruby I use is the best option?

Reply to #83254×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: How to typeset kanbun? (2019-07-22 10:37 by h7k #83276)

メッセージ #83254 への返信
> The typesetting of kanbun is a complicated matter, which gets worse due to the overwhelming variety of the way the range U+3190..U+319F is treated in Unicode.

I know two packages:
* sfkanbun.sty by Shinsaku Fujita and his other packages (http://xymtex.com/fujitas2/texlatex/index.html) are well-known for typesetting kanbun in Japanese pLaTeX. Adapting them to LuaTeX-ja (zw->\zw etc.) is needed, but not so difficult.
* gckanbun.sty by Munehiro Yamamoto (https://qiita.com/munepi/items/5e6ac49fa5c025123305) seems to support LuaLaTeX.
Reply to #83254

Reply to #83276×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login