View Single Post
Old 02-02-2017, 10:41 PM   #1353
Kuang-che Wu
Junior Member
Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.Kuang-che Wu is faster than slow light.
 
Posts: 4
Karma: 29176
Join Date: Jan 2017
Device: kindle paperwhite2
Feature request: vertical text

Feature request for vertical Chinese text.

I know k2pdfopt has option -r (right-to-left), but it is slightly different to what I need.
The default text ordering (for English-like languages) is
Code:
1 2 3
4 5 6
7 8 9
What -r can handle is character right-to-left, line top-to-down
Code:
3 2 1
6 5 4
9 8 7
But for vertical Chinese, the text ordering is character top-to-down, line right to left,
Code:
7 4 1
8 5 2
9 6 3
If applying -r to vertical Chinese text, it may cut text incorrectly. For example,
Code:
7 4 1
8 5 2
Currently, my workaround is -rt 90 -ls. That is, use "-rt 90" to preserve correct text layout analysis and use "-ls" for correct page size. But after k2pdfopt finish, I have to use other utility to rotate the result pdf 180 degree.

p.s. Vertical and horizontal Chinese writing systems are both in use. Usually books with many English text use horizontal Chinese (characters left-to-right, line top-to-down). Literature and novel use vertical Chinese (character top-to-down, line right-to-left).
Kuang-che Wu is offline   Reply With Quote