View Single Post
Old 10-26-2016, 11:15 PM   #4
Griu
Enthusiast
Griu can extract oil from cheeseGriu can extract oil from cheeseGriu can extract oil from cheeseGriu can extract oil from cheeseGriu can extract oil from cheeseGriu can extract oil from cheeseGriu can extract oil from cheeseGriu can extract oil from cheese
 
Posts: 40
Karma: 1010
Join Date: Jun 2016
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by dwig View Post
You need to edit your original post. HTML display will ignore leading spaces. Replace the spaces that illustrate the indents with underscores or some similar character.

How you would do these edits depends largely on the book's format and how well it was built. If it is EPUB or AZW3 then you should be able to open it in Calibre's Editor and alter the appropriate Style. You need to look at the HTML/xHTML code to find how the styles are applied to the type classes of paragraphs and then find the Style, either in the xHTML's Head section or in a separate CSS Stylesheet, and change the text-indent. Well built EPUBs and AZW3s will have the Styles in a separate stylesheet.

If the ebook is not one of those two formats you may need to convert it to EPUB, or AZW3, edit the conversion, and then convert back to your desired format.
Thanks. I modified it.

I've been converting the files and replacing the class on those paragraphs for "non-indent" or "first" but that doesn't work on all the books, and it's a really long work.

Besides, some paragraphs inside the chapters sometimes are not indented as well, and it's really hard to find them.

I was wondering if there's a way to do this automatically, since the original file has some non indented pragraphs. Does calibre need to indent everything?
Griu is offline   Reply With Quote