TransWikia.com

Vertical typesetting in ConTeXt MkIV?

TeX - LaTeX Asked by xktf on September 4, 2021

I am new to ConTeXt, and would like to ask if vertical typography, such as with Japanese or traditional Chinese, is available. It seems to be alluded to several times in the documentation as well as this post in the mailing list, but I can’t really find any examples of it being used. The chinese typesetting manual (PDF) also only mentions that it exists without providing any examples (p.14), and seems to only work in MkII.

Has anyone had any experience with this?

One Answer

Section 6 of followingup sketches a preliminary support for CJK vertical typesetting in ConTeXt for LuaMetaTeX (aka LMTX). Unlike LuaTeX, which supports four directions, only two of which are properly implemented, LMTX only supports two directions, 0 (left to right) and 1 (right to left). In order to get vertical typesetting, LMTX recurs to a new and more customizable mechanism of orientations applicable to boxes with the following syntax:

%hboxes
hbox direction <0 or 1> orientation <orientation number> {content}
hbox orientation <orientation number> direction <0 or 1> {content}
%vboxes
vbox direction <0 or 1> orientation <orientation number> {content}
vbox orientation <orientation number> direction <0 or 1> {content}

In turn, there are four orientations with two anchors which are specified via numbers

orientation "<horizontal anchor (X)><vertical anchor (Y)><orientation (O)>
%X goes from 0 to 6
%Y goes from 0 to 3
%O goes from 0 to 3

After a really graphical explanation of orientations, Hans Hagen gives two working examples in pp. 48-49.

enter image description here

enter image description here

I guess they are a decent starting point.

Answered by user220367 on September 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP