View Single Post
Old 12-29-2009, 06:46 PM   #13
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by KevinH View Post
The problem is that there are 2 main formats for text that people seem to gravitate to:

1. no indent, but with top and bottom margins that puts extra space between paragraphs to make it clear "speaker/topic" has changed.

versus

2. indent=5% (or so), but with 0 top and bottom margins so that it looks more like a printed book (where indentation helps the eye to detect change in speaker/topic) especially needed if text itself is not fully justified.

If a command line switch were added (or a default preference) then calibre could easily create the proper indents during almost any conversion.

For example, using the already existing css, upon conversion to pml, adding in the appropriate \T="x%" to start each paragraph (again in the same "0%" to "5%" range) (or even just spaces) should be very doable.

I personally would find this a very useful feature to have, as I am sure others would as well.
Going off of this idea. I can easily check if "remove paragraph spacing" has been enabled. Then produce style 2 output. Otherwise, style 1. I will add this functionality probably in a few minutes but maybe this weekend.

@JSWolf, I'm going to implement this feature because of KevinH's reasoned argument and request. Not because of you demanding that I drop everything I'm doing to change the behavior of the output so you can have books in your favorite style.
user_none is offline   Reply With Quote