View Single Post
Old 05-27-2010, 05:58 PM   #12
Pranananda
Connoisseur
Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.Pranananda is often consulted by the I Ching.
 
Pranananda's Avatar
 
Posts: 98
Karma: 122982
Join Date: Apr 2010
Location: Humboldt County, California
Device: ipad, iPod touch, JetBook Lite
Make a copy of your book.epub file into book.zip
Unzip book.zip into a new empty directory.
Go into the directory, and edit stylesheet.css (if it were made with Calibre). It might have a different name.

Look for the word "justify", and replace it with left.
zip the directory up again.
rename the new zip file to epub.

Under mac or ubuntu, here are the commands:

> cp book.epub book.zip
> mkdir tmp
> cd tmp
> unzip ../book.zip
> sed "s/justify/left" < stylesheet.css > new.css
> mv new.css stylesheet.css
> zip ../newbook.zip *
> cd ..
> mv newbook.zip newbook.epub

Last edited by Pranananda; 05-27-2010 at 08:42 PM.
Pranananda is offline   Reply With Quote