View Single Post
Old 11-21-2015, 11:41 PM   #1
oberon567
Junior Member
oberon567 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2015
Device: none
Complex Font Conversion Problem

Hello,

I am in the process of converting various files from MS Word 2015 .docx format to ePub using Calibre.

I have run into various problems, many of which I have managed to fix one way or another. But here is one I cannot figure out.

The written Tibetan script does not have spaces. It has small dots between each syllable and occasional spaces between sentences. However, when encoded in proper UTF-8 encoding, neither these dots nor those spaces are breaking spaces (those spaces are not the traditional Unicode character of a space).

Most of the time the script is supposed to be fully justified, with the exception of headers or titles which are centered. To achieve this the easiest way using Word is to install the Thai language pack and then choose "Thai Justification" as the justification option. Obviously when converting to PDF and printing this is fine, but it is not so fine when making a file that can be used on various computers. Another option is to create a macro that automatically inserts zero-width breaks after every dot.

THE PROBLEM:
After converting to ePub, when the text has been justified using either of the methods above, the text refuses to render properly when viewed in an Android device (or at least the Android device I am using as my tester). When using an iPhone or other Apple device the justification seems to work fine. However, on the Android it always considers those spaces to be the only breaking points, and as such it causes a line break after every single space.

I have no idea what to change, since the same file is rendering fine on Apple devices but not on Android devices.

I am attaching an example. It has the Word file as well as the epub file. The epub file actually needs more formatting, I am still learning how to control relative font sizes using Calibre during the conversion process. However the relative font sizes are not the issue, it is the text wrapping and how that pertains to Android devices. Any input would be greatly appreciated!

PS - I have full rights to distribute the files attached, they are my own intellectual property and are (will be) freely distributed, with no license, once completed. I do not know if there is any other way I need to verify this...
Attached Files
File Type: zip Tibetan file help.zip (8.62 MB, 251 views)
oberon567 is offline   Reply With Quote