![]() |
#1 |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
![]()
First of all, I am dyslectic in a special way, I think and read in pictures, translate it into a plane question is difficult ( but reading is very fast
![]() I use calibre for epub-epub conversions, insert a font into the book ( amasis). But at normal conversion calibre add a blank line at every <p> or <p class=... line in the epub. But when I remove it using the option in the look and feel section of the conversion, in the part next under metadata ( remove whitespaces between alinea's ) it also removes the white lines at a scene change. So there isn't a white line at all. How do I prevent calibre adding a white line at conversion at every paragraph, if it didn't do it I could leave the option to remove them unused/unselected. The conversion is ok, the amasis font is inserted and all original fonts are changed into the amasis font, but with every conversion an extra blank line is added when there is an <p> or <p class whatever > in the epub, and tick the option to remove every blank line, it does remove the extra added line, but also the blank lines that supposed to be in the epub. I hope this is still clear for u now, I just don't want that calibre adds the blank line at every <p> or <p class whatever> otherwise it would work very fine, can anyone help me ? Last edited by Nick_1964; 11-23-2013 at 02:31 PM. |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
There are two different options there.
Remove spacing will remove the lines at a scene break, too, and Insert blank line will add them between every paragraph. What you want to do is just leave both unchecked; then calibre won't make any changes there. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
As eschwartz points out if you don't want a blank line added between paragraphs then don't check the box to insert a blank line.
|
![]() |
![]() |
![]() |
#4 |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Thanks dear people, but when I uncheck them both Calibre still add a blank line ( the heuristic options are off ) at the <p> or <p class whatever> tags
![]() Before: And after: Last edited by Nick_1964; 11-24-2013 at 05:04 AM. Reason: Adding screenshots |
![]() |
![]() |
![]() |
#5 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
More info here. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
The first line started with: <p class="noindent">Simon staarde verslagen naar de voordeur van zijn huis.</p> Second line started with: <p class="indent">Hij had nooit een ander thuis gekend. Dit was de plek waar zijn ouders hem naartoe hadden gebracht toen hij... and so on </p> You can see in picture 1, there is no blank line in the original... With both options turned off calibre inserts a blank line every time when a <p class="ident"> is in the html file ( at every paragraph ) where it is not in the original. At the end I managed it with Sigil. I restored the original epub and search for a place there have to be an original blank line. Every line with <p class="noindentt"> has a blank line in the original not converted book. I changed the line <p class="noindentt"> into 2 lines: <p class="indent"><br /></p> ( adding an extra blank line ) <p class="noindentt"> This results in 2 blank lines where in the original was only once. Saved it. Then start the conversion again from the modified epub, but now the option: remove spacing between paragraps ticked on. There are no inserted blank lines anymore inserted at the <p class="ident"> (or they are removed) And because of the <br /> between it there is only one blanc line where it supposed to be. The behaviour during conversion looks like it doesn't matter of the option: Insert blank line between paragraps is on or off, calibre is simply adding a blank line at every paragrap at the conversion regardingless the unticked option, I can correct that by putting the option remove spacing between paragraps on, but then all the original blank lines are removed to. In order to prevent that, I put an extra <br /> before the original blank line, convert it with removing spacing between paragraps on and then there are no blank lines at the <p class="ident"> inserted and the original blank lines are still there. I hope you understand what I mean, it doesn't matter if the : insert blank line between paragraps is on or off, It just add a blank line at every paragraph. Last edited by Nick_1964; 11-24-2013 at 08:29 AM. |
|
![]() |
![]() |
![]() |
#7 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Since calibre does not add blank lines include the complete conversion job log (step 2 in this sticky post) wrapped in spoiler tags.
Last edited by DoctorOhh; 11-24-2013 at 08:00 AM. |
![]() |
![]() |
![]() |
#8 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
Spoiler:
Before Stad van verloren zielen - Cassandra Clare.epub After Stad van verloren zielen - Cassandra Clare.epub Attached e-book before and after conversion, because it is a copyrighted book I deleted the last 12 chapters or so with sigil. Last edited by Nick_1964; 11-24-2013 at 09:57 AM. Reason: adding correct report file and samples of the ebook. |
|
![]() |
![]() |
![]() |
#9 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
I converted your "Before" book and it converted fine without any extra space between paragraphs. I'm not sure what is causing your problem but you have some things in your settings that are not in mine.
1. I don't have anything in the Filter Style Information box 2. I don't have anything in the Extra CSS box You specifically told calibre to remove the following items from your book Filtering CSS properties: , margin-right, text-indent, margin-top, margin-left, margin-bottom, margin If I place this in my Filter CSS box it screws up my conversion too. Remove this from the Filter CSS box and you should be fine. While your at it I would delete the extra stuff in the Extra CSS box too you can already adjust the @page margins in Page Setup, which I would move back to the defaults of 5pt. if I were you. |
![]() |
![]() |
![]() |
#10 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
/update I follow up your advice and it helped, to be honest, I don't know where the filter CSS info is coming from, can't remember adding it. It just say, filter out the margins because I like it when everything is aligned to the left and no extra space on the bottom or the top. It should not insert a blank line on every paragraph but hey, as long as it works ![]() There are so many switches now and sometimes the translation in Dutch doesn't make it more clear. ![]() Last edited by Nick_1964; 11-25-2013 at 06:44 AM. |
|
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
left-aligned, top/bottom margins 1em, left/right margins 0, text-indent 0. So its not surprising that filtering out margin-top and margin-bottom resulted in text which appeared to have a 'blank line' between each paragraph. |
|
![]() |
![]() |
![]() |
#12 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
It is surprising to me that when you don't tick something, you will override the default and when you tick somthing it shows default behaviour, that is for me,the other way around. Since the setting is now off, it should in your logica then add a space at the left and right margins, but it doesn't either. ![]() Last edited by Nick_1964; 11-26-2013 at 05:28 AM. |
|
![]() |
![]() |
![]() |
#13 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
There was no accident, the CSS filter had items in it because you placed those items there or whomever gave you this library placed the info there.
Quote:
This is not accurate. If you had nothing ticked and did not have anything in Extra CSS or Filter CSS you would not have had any issues. Last edited by DoctorOhh; 11-26-2013 at 05:48 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prevent words splitting at end of line when making epub | gadf2 | Calibre | 6 | 09-13-2013 04:26 PM |
blank line | sly_skittle | Sigil | 12 | 03-21-2012 08:38 PM |
Blank line in code | Jellby | Feedback | 16 | 05-18-2011 10:42 AM |
Prevent Calibre to paragraph each line | armkbdotcom | Calibre | 3 | 05-29-2010 03:15 PM |
Add a blank page | rodrigo2008 | iRex | 1 | 04-22-2008 01:46 AM |