10-29-2014, 09:37 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: kobo glo
|
Calibre PDF->EPUB - How to set up making gap only after dot?
Do you know how to set up in calibre making gaps (enters) only after dot?
I convert pdf to epub with "Heuristic Processing", but still I see unnecessary gaps on my ebook reader. Between two words is "enter", but there should be only "space". There is maybe any css code to solve it? |
10-29-2014, 10:16 AM | #2 | |
Well trained by Cats
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
BTW EPUB does not use 'Enter' to start a new line, it ends the current code block type (eg </p> ) and starts a new one. Code Line Gaps in between don't count and exist for human eyes. Do read the Stickies at the top of this forum and the FAQ topics on conversion at the calibre Help page PDF is not a great source |
|
10-31-2014, 04:59 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: kobo glo
|
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. Last edited by regis221; 10-31-2014 at 05:04 AM. |
10-31-2014, 09:36 AM | #4 | |
Well trained by Cats
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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> Code:
.</p> |
|
11-01-2014, 10:33 AM | #5 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2014
Device: kobo glo
|
Quote:
Solution: search: Code:
([-,—,a,ą,b,c,ć,d,e,ę,f,g,h,i,j,k,l,ł,m,n,ń,o,ó,p,r,s,ś,t,u,w,y,z,ź,ż,0,1,2,3,4,5,6,7,8,9])</p>\s+<p class="calibre1"> Code:
\1 Last edited by regis221; 11-06-2014 at 08:29 PM. |
|
11-09-2014, 12:52 AM | #6 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
The character set represented by [characters] matches all characters in the brackets (even if some are repeated ). |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't set Calibre as default for epub | sespr | Devices | 5 | 09-24-2016 08:35 PM |
EPUB to PDF - Can you set page margins? | Vodevil | Conversion | 2 | 08-01-2013 10:42 AM |
Trouble making my own font set - help please. | bruck | Kindle Developer's Corner | 2 | 08-14-2011 11:41 AM |
Help - Problems with PDF to EPUB on Calibre | lushanbj | Calibre | 3 | 08-27-2010 03:00 AM |
Calibre and pdf to epub | JCSullivan | Calibre | 3 | 05-26-2010 09:46 PM |