View Single Post
Old 08-22-2017, 08:49 PM   #17
Hopkins
Enthusiast
Hopkins began at the beginning.
 
Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
Version 2.2.1 - Support Vertical Text

Version 2.2.1 - Added support for East Asian vertical text.

Note that the Calibre book viewer does not fully support vertical text. I've verified that vertical Chinese and Japanese text is displayed properly using the Chrome Readium epub viewer and on a Kindle Paperwhite. Use the internal Calibre Kindle conversion to AZW3 format. Or use the Kindle Previewer 3 application to convert to a mobi file before loading on to a Kindle.

Caveats:
The plugin adds a "-epub-writing-mode: vertical-rl" style rule to the body tag to all CSS files. If a CSS file does not have a body tag style defined, one is added. This may not be proper in all cases.

If you are interest in how vertical works, take a look at:

https://www.w3.org/TR/css-writing-mo...ro-text-layout

The text-orientation property is set to the default "mixed" value which means whether a character tipped sideways or rotated upright depends the orientation value assigned to the Unicode code point. A value of "U" means display "Upright", a value of "R" means display "Rotated". Some characters such as Chinese punctuation marks have a value of "Tr". This means use the vertical code point if known and available, otherwise just rotate this character and hope for the best. The orientation assignment for all code points is given in:

http://unicode.org/Public/UNIDATA/Ve...rientation.txt

Last edited by Hopkins; 09-14-2017 at 11:07 PM. Reason: Noted that internal Calibre conversion to Kindle works for vertical text files.
Hopkins is offline   Reply With Quote