View Single Post
Old 10-31-2014, 09:36 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,156
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by regis221 View Post
I use unwrap factor value about 0,15. It gives the best results, but sometimes I see gap on epub format after word which is the last words in pdf line (not last one in paragraph). That word is often word inside sentence and there should be only space (not a gap/"enter").

I would like to add css code for command <p class="calibre1"> </p> to make rule for calibre to use this command only if after word is dot.

If calibre use that command only after a dot, it will solve problem with breaking text in half of sentence.
But I have no idea how to write that code.
Using the editor, where I can see the code makes these easy (usually ) to create 'fixes'. IMHO trying to make this happen during a Conversion YMMV


I use a replace method to remove the 'empty paragraph' (0 or more whitespace)

Blah Blah.</p>
<p class="calibre1"> </p>

REGEX mode search:
Code:
\.</p>\s+<p class="calibre1">\s*</p>
Replace:
Code:
.</p>
Note I escape the period in the search because it is a wildcard
theducks is online now   Reply With Quote