View Single Post
Old 02-02-2017, 11:04 PM   #1354
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Kuang-che Wu View Post
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 ...
...
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).
Actually, I prefer your solution rather than put in special processing for vertical Chinese. Perhaps it could be automated a bit more. I'll think on it. You shouldn't have to use a different utility, though, for the final rotation. k2pdfopt should be able to do all the rotating that you need (-rt option), even if you have to run it in two passes.
willus is offline   Reply With Quote