Thread: PRS-900 Epub and Justification
View Single Post
Old 05-05-2010, 03:59 PM   #4
jswinden
Astrophotographer
jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.
 
jswinden's Avatar
 
Posts: 5,219
Karma: 5642618
Join Date: Sep 2006
Location: USA
Device: iPad Mini 2, iPhone 5, Nexus 7.2
Quote:
Originally Posted by HarryT View Post
It probably means that the ePub has "hard coded" left alignment.
I agree. The 900 defaults to justified text alignment unless the ePub CSS specifies another alignment.

If you prefer left justification, you can use the Python scripts ineptepub.py and ineptkey.py (use Google to find info) to strip the DRM and then use calibre to make whatever changes you desire.

Hint: You can copy the ePub file and rename it to a zip file, then extract the zip file and search for any .CSS files. For example: Copy MyBook.epub to MyBook.zip then extract MyBook.zip into the folder MyBook. The CSS will show any hardcoded formatting. Search the CSS file(s) for strings like text-align: justify; or text-align: left;. If one or more of these strings are found, then text alignment is hardcoded in the ePub. Calibre can be used to override any CSS, but you have to know to do it.

Last edited by jswinden; 05-05-2010 at 04:03 PM.
jswinden is offline   Reply With Quote