Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2012, 05:50 PM   #1
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
Burmese Font embed problem

Burmese scripts descend from Indian Brahmi scripts. The Burmese vowel e is used to modify the consonant and is placed in front of the consonant. In the Unicode charts, Myanmar (Burmese) fonts are shown from 1000 to 109F.

The problem is in the vowel e uni1031 and the dependent consonant sign 103C which is also typed after the consonant but appears in front of consonant.

All these appear correctly in Word but misplaced when converted to epub. I have checked this in Sigil as well as in ADE and calibre.

The attached two screenshots screenshot(2) and screenshot(3), screenshot(2) shows the correct fonts displayed in Word and the screenshot(3) displays the epub version in calibre. In the calibre version, the 6th word the vowel e is misplaced after the consonant not before (shown with red outline). What is frustrating is the first word and the third also incorporates the vowel e but are placed correctly before the consonant.

In the second line of screenshot3, the fifth and seventh word shows the consonant sign 103C(shown outlined in red) in the wrong position after the consonant.

I have tried many ways, different css and modified in Sigil but could not get the desired output.

Please help me with this problem.
Attached Thumbnails
Click image for larger version

Name:	Screenshot (2).png
Views:	545
Size:	471.6 KB
ID:	91669   Click image for larger version

Name:	Screenshot (3).png
Views:	791
Size:	309.2 KB
ID:	91670  
khin99 is offline   Reply With Quote
Old 09-02-2012, 03:46 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I don't think you can do anything, that should be a feature of the font/rendering system, not of the book. ADE will not even render right-to-left scripts correctly.

Maybe you can modify the font to add ligatures with the e-character, though.
Jellby is offline   Reply With Quote
Old 09-02-2012, 12:14 PM   #3
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
Thanks Jelby. I thought so too. ADE is not rendering as unicode required. Could you show how to add ligatures.
khin99 is offline   Reply With Quote
Old 09-02-2012, 04:37 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
AFAIK, ligature handling can be defined in the font and/or handled by the word processor. Your issue might be caused by the font that you embedded or more likely ADE deficiencies. AFAIK, ADE can for example handle Devanagari letters with the correct font, if the text is encoded as Unicode.

In order to further test this please:
- name the font that you embedded
- post a short Burmese test string using Unicode letters that illustrates this problem (or a short one page epub) and a screenshot of the desired display
Doitsu is offline   Reply With Quote
Old 09-02-2012, 06:16 PM   #5
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
@Doitsu, thank you. I have gone looking for ligatures and found that one Burmese computer fonts specialist has encountered similar problems with the Burmese fonts and tried to develope his own fonts with ligatures. He has identified 2200+ glyphs which works in CS3/4 and Indesign but they are not supported by Indesign CS5.5. I will have to explore more on this ligatures. Devanagiri also use some ligatures.

I think mainly it is the ADE which is not supporting the font to incorporate in epub.

For your info and testing I am enclosing a short epub as described in my previous screenshot(3). I will also include the Word version.
Attached Files
File Type: epub Photay3.epub (33.4 KB, 323 views)
File Type: doc Photay3.doc (39.5 KB, 357 views)
khin99 is offline   Reply With Quote
Old 09-03-2012, 11:04 AM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
I did a quick test with SIL's free Padauk font and got the same results, which indicates that there's a problem with the Qt rendering engine. (Both Calibre and Sigil use the Qt rendering engine.)
Since Burmese is a relatively rare language, you may want to log a but report with the Qt developers. If they fix this issue, future Calibre and Sigil versions might eventually be able to display Burmese correctly.
Since it's very unlikely that any of the current Adobe Reader Mobile SDK based ePub2 readers will be able to display Burmese correctly, you'll have to create a PDF version of your book for these devices following the instructions in this PDF created by Sony.
BTW, the book seemed to display fine in Readium and Kindle Fire Previewer. I.e., you might be able to read your book on an iPad, a Kindle Fire or other Webkit based eBook readers.
Doitsu is offline   Reply With Quote
Old 09-04-2012, 07:51 PM   #7
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
Thank you Doitsu. I manged to get nearly correct epubs through a python script developed by a Burmese professional. The script substitutes the font family and font name from the command line into the css in the script.

I tried the Paduak as well as two other Unicode fonts and they work in ADE reader. I also passed the files to Nook color from the ADE reader and also worked.

When viewing in Sigil or Calibre they do not display correctly. May be this is due to the Qt rendering engine as mentioned in your post. I visited the Qt page and found that this bug was reported in 2010 and it looks like Qt developers are still working on it. I saw there the last post was in July 2012. Therefore the issue is still going on. As Burmese was not a very popular language I suppose the incentive to correct the bug is not so urgent.

Thank you Doitsu for your help.
khin99 is offline   Reply With Quote
Old 09-07-2012, 06:59 PM   #8
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
@Doitsu, I just got a Kindle Fire and tried to read the above Burmese epub. I couldn't read it. I downloaded the Aldiko and installed in KF. Aldiko reads other Burmese fonts but the unicode one does not display correctly.

You said it displays alright in Kindle Fire Preview, please advise how to get the display correct in KF. Thank you.
khin99 is offline   Reply With Quote
Old 09-08-2012, 04:39 AM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by khin99 View Post
@Doitsu, I just got a Kindle Fire and tried to read the above Burmese epub. I couldn't read it.
Were you not able to read the ePub, because the Kindle didn't display Burmese characters at all or because of the transposed character issues?
My test file contained the SIL Padauk font. When I displayed it in the Kindle Previewer in regular Kindle mode, it showed all the problems that you described, but when I switched to Kindle Fire mode, the diacritics where shifted to where they belong. (At least in the words that you pointed out.)
Of course, I don't speak Burmese and I might have missed some other obvious layout issues. (BTW, the file still doesn't work with the latest Kindle for PC version.)

Quote:
Originally Posted by khin99 View Post
You said it displays alright in Kindle Fire Preview, please advise how to get the display correct in KF. Thank you.
I'm afraid I cannot help you with that. The Kindle previewer is only 99.99% accurate. Occasionally, it shows bugs were there are none and vice versa.

You mentioned that you achieved a nearly correct epub with the help of an Python script.
The script most likely rearranged characters that caused display issues from logical layout to physical layout or modified the glyphs in the font to hard-code their position.
If that's the case, and you used this modified ePub/font also as a Kindle source file, problems are to be expected, because the Webkit rendering engine expects fully compliant Unicode character sequences and fonts.

Have a look at my Burmese Moib/KF8 combo test file. If it indeed displays correctly in Kindle Previewer but not on a Kindle Fire there's little you can do about it other than waiting for a firmware update or maybe fiddle with the Kindle Locale settings and/or add Padauk or other Burmese Unicode fonts.
If it also displays fine on your Kindle Fire, than you'll have to "massage" your source files and/or embed a different font.

Good luck!

(The source files are embedded in the .mobi file. Use 7Zip or Keka to extract them.)
Attached Files
File Type: mobi burmese_test.mobi (305.1 KB, 260 views)

Last edited by Doitsu; 09-09-2012 at 02:49 AM.
Doitsu is offline   Reply With Quote
Old 09-09-2012, 12:19 AM   #10
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
Thank you very much Doitsu.That was quite good. I finally managed to read the file in Kindle previewer with Fire option. I did not get good result in the Kindle fire tablet. Therefore what I need may be one that is compatible with KF8 format.I have also imported to Calibre with incorrect display.

I have also unzipped with 7Zip and looked at the css and OEBF files. As you said I will have to "massage" the source file.
khin99 is offline   Reply With Quote
Old 11-27-2012, 04:49 AM   #11
Jpax
Member
Jpax began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2012
Location: Philippines
Device: Kindle Fire, Kindle Fire HD, Amazon Kindle PW, Nook Color, Nook Tablet
Quote:
Originally Posted by khin99 View Post
Thank you very much Doitsu.That was quite good. I finally managed to read the file in Kindle previewer with Fire option. I did not get good result in the Kindle fire tablet. Therefore what I need may be one that is compatible with KF8 format.I have also imported to Calibre with incorrect display.

I have also unzipped with 7Zip and looked at the css and OEBF files. As you said I will have to "massage" the source file.
Can you tell how you do it? Tried it still not working. Use font ww_burn1.ttf, this one works on epub but when converted to mobi, characters messed up.
Jpax is offline   Reply With Quote
Old 11-30-2012, 10:10 PM   #12
khin99
MHK99
khin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterkhin99 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 22
Karma: 12680
Join Date: Dec 2010
Location: Mid West USA
Device: prs 505, nook color, Kindle Fire, Nexus 7
Quote:
Originally Posted by Jpax View Post
Can you tell how you do it? Tried it still not working. Use font ww_burn1.ttf, this one works on epub but when converted to mobi, characters messed up.
You need to download kindle previewer from Amazon. After downloading install the application. AS the file is in zip format it has to be expanded first.

In the settings you can change the kindle device with which you wish to read. The latest update include kindle paper white.

I usually set it to kindle HD because I think it supports new fonts (maybe I am wrong).

You can then open an epub book. If the font is supported it will successfully be generated. When you press OK button the book will be opened for reading. I could not open quite a few Burmese books.

Hope this is helpful. You could also attach the Burmese epub file, we could take a look and provide any suitable action.
khin99 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font embed: works on computer, not on device Elfwreck Sigil 8 02-07-2012 12:52 AM
How to Embed a font after the ePub is created. Adjust ePub 26 08-03-2011 01:09 AM
embed font is too narrow - need help NASCARaddicted ePub 15 06-06-2011 10:00 PM
Embed a font in a PDF without making it huge Kosst Amojan PDF 4 11-21-2009 11:34 AM
how to embed unicode font atu1303 LRF 8 08-21-2009 10:06 PM


All times are GMT -4. The time now is 09:13 AM.


MobileRead.com is a privately owned, operated and funded community.