Thread: JBPatch
View Single Post
Old 05-30-2012, 05:28 PM   #169
pirl8
Pest
pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.pirl8 ought to be getting tired of karma fortunes by now.
 
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
Quote:
Originally Posted by ixtab View Post
@pirl8: Only very quickly:

1. I suppose Kindle Previewer does not run on Linux, or does it?
No, but KindleGen does (i386). It does not render eBooks but makes mobi files (mobi6+mobi8) from ePub. Actually the previewer uses KindleGen.

Quote:
2. My method (currently) patches something deep, deep inside the rendering code, so there is no HTML at that point anymore. It's just letters.
Ok. I guess it won't be easy at that level to deal with different sized fonts, text within tables, and different styles.

Also consider that the KF8/AZW3/Mobi8 rendering engine of the kindle behaves differently from the Mobi6 one: if the text is justified, lines are always stretched to the right. Maybe you can adapt some code from there.
pirl8 is offline   Reply With Quote