View Single Post
Old 07-04-2012, 05:04 PM   #223
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kiwidude View Post
Yeah we would all love that capability, along with setting preferred justification, and top/bottom margins for paragraphs. And of course the ability to have different indentation for the opening paragraph of a scene... And heading margins/alignment. And...

It is utterly and completely unlikely to ever happen. Not even calibre which completely reconstructs a stylesheet and rewrite all the html pages tries to attempt it. First you've got the myriad of ways a style can be declared - named, non-named, inline, etc and then the complications of style inheritance.

But quite apart from all that what actually signifies a "paragraph" in the ePub? You've got so many variations of paragraphs that will be used in an ePub - blockquote vs paragraph vs div, you've got the even bigger problem of scene text, quotes, headings, opening paragraph, true body, scene breaks...

Its just a non-starter.
One way to do it that might work pretty well is to look at the most used style be it <p>, <p class="tx"> or <p class="para"> and once you see in the CSS what the text-indent value is for that, you go about changing all the text-indents with that value to the value the user specified. If it misses any that also need to be changed, so be it, but that would get most and maybe it could get all of them. When I do a manual edit to change the one text-indent value, it does (most of the time0 catch all that would need to be changed.
JSWolf is offline   Reply With Quote