Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2020, 10:49 AM   #1
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Calibre is removing my blank lines

Hello! I am trying to use Calibri to convert DOCX (downloaded from Google Docs) to MOBI.

When I use amazon's creator, the file looks perfect. When trying to use Calibri, all of the empty lines are stripped out. For instance, I have poems and songs spread throughout the text, and those are preceded and followed by blank lines for readability. To be perfectly clear, I'm just hitting enter twice in the doc to give it some space. That space is preserved on Kindle but stripped out in the Calibre MOBI.

I have about 100 books to do so editing the code of each one isn't really feasible. Am I missing a setting? Is there a way to format the Google Doc prior to downloading that would make Calibre preserve the space?
Harks09 is offline   Reply With Quote
Old 01-28-2020, 11:13 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,268
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
convert to azw3 not mobi.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-28-2020, 12:12 PM   #3
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Same problem with azw3! Is there a setting I'm missing?
Harks09 is offline   Reply With Quote
Old 01-28-2020, 01:00 PM   #4
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: 79,506
Karma: 145863177
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 Harks09 View Post
Same problem with azw3! Is there a setting I'm missing?
There is an option that removes spaces during conversion. Looking at the screen grab, you want to have "Remove spacing between paragraphs" unchecked. To get the this option, go to Preferences > Common Options > Look & Feel select the layout tab.

Click image for larger version

Name:	Capture.JPG
Views:	339
Size:	62.5 KB
ID:	176702
JSWolf is offline   Reply With Quote
Old 01-28-2020, 01:06 PM   #5
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
That option isn't checked. I just ran it again to make sure. Is there anything else it could be?
Harks09 is offline   Reply With Quote
Advert
Old 01-28-2020, 01:14 PM   #6
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: 79,506
Karma: 145863177
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 Harks09 View Post
That option isn't checked. I just ran it again to make sure. Is there anything else it could be?
How are you creating the blank lines? Are you doing it with a style that uses margins or are you just using a return?
JSWolf is offline   Reply With Quote
Old 01-28-2020, 01:15 PM   #7
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Just using a return.
Harks09 is offline   Reply With Quote
Old 01-28-2020, 01:37 PM   #8
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Is there a better way to do it?
Harks09 is offline   Reply With Quote
Old 01-28-2020, 02:16 PM   #9
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: 79,506
Karma: 145863177
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 Harks09 View Post
Is there a better way to do it?
Not knowing the problem, I would thing that using styles with margins might be the solution.

But before you try that, try vieing your Kindle eBook in the Calibre viewer and see how it displays. Also try it with Kindle Previewer and see how that goes. It could be an issue with the Kindel's firmware and the blank line. (that would depend on the blank line's code). Have a look at the code for the blank line by using the Calibre editor to look at it and post it here (including any relevant CSS).

Last edited by JSWolf; 01-28-2020 at 02:19 PM.
JSWolf is offline   Reply With Quote
Old 01-28-2020, 02:22 PM   #10
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Using the Google Doc paragaph padding works well enough as a hack! I just tried it and it gave it the breathing room it needed. Thank you.
Harks09 is offline   Reply With Quote
Old 01-28-2020, 02:28 PM   #11
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: 79,506
Karma: 145863177
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 Harks09 View Post
Using the Google Doc paragaph padding works well enough as a hack! I just tried it and it gave it the breathing room it needed. Thank you.
I was thinking the code could be something like <p></p> and the Kindle is ignoring it.

When creating eBooks from a word processing document, you are best to use styles. No more select and press B for bold. You have to highlight the text and apply a style. And you have to use consistent styling.
JSWolf is offline   Reply With Quote
Old 01-28-2020, 02:29 PM   #12
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Here is what it looks like in the editor. The bolded lines are ignored when Calibri converts.

<p class="block_14">She put on a pot of tea and sat by her fire, thinking. She couldn’t fight the wind, she saw that now. No matter what she did, her flowers were going to mix with those of her neighbors. The bobbing beauties didn’t understand farms or property lines. They didn’t obey signs and fences.</p>
<p class="block_14"></p>
<p class="block_15">I can’t cage my beauties in</p>
<p class="block_15">I can’t keep the pollen from the wind</p>
<p class="block_15">Am I wrong to try so hard</p>
<p class="block_15">And keep my flowers in my yard?</p>
<p class="block_2"></p>
<p class="block_15">They say you reap what you sow</p>
<p class="block_15">I ain’t been sowing that far though</p>
<p class="block_15">I see my babies, off they go</p>
<p class="block_15">Will my fields go fallow?</p>
<p class="block_2"></p>
<p class="block_15">I don’t know</p>
<p class="block_2"></p>
<p class="block_15">Are the neighbors onto something?</p>
<p class="block_15">Is there good in cross pollination?</p>
<p class="block_15">I can’t be sure, but what I’m seeing would indicate</p>
<p class="block_15">That tulips love to mix and germinate!</p>
<p class="block_2"></p>
<p class="block_15">So if all the fields are as lovely as mine</p>
<p class="block_15">The whole town’s plants will be top of the line</p>
<p class="block_15">I finally understand the affair</p>
<p class="block_15">Nature’s way is to spread and share.</p>
<p class="block_2"></p>
<p class="block_15">Spread and Share!</p>
<p class="block_16"></p>
<p class="block_14"></p>
Harks09 is offline   Reply With Quote
Old 01-28-2020, 02:30 PM   #13
Harks09
Member
Harks09 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2020
Device: Kindle
Here is the code in Calibri. It ignores the empty P lines.

Quote:
<p class="block_14">She put on a pot of tea and sat by her fire, thinking. She couldn’t fight the wind, she saw that now. No matter what she did, her flowers were going to mix with those of her neighbors. The bobbing beauties didn’t understand farms or property lines. They didn’t obey signs and fences.</p>
<p class="block_14"></p>
<p class="block_15">I can’t cage my beauties in</p>
<p class="block_15">I can’t keep the pollen from the wind</p>
<p class="block_15">Am I wrong to try so hard</p>
<p class="block_15">And keep my flowers in my yard?</p>
<p class="block_2"></p>
<p class="block_15">They say you reap what you sow</p>
<p class="block_15">I ain’t been sowing that far though</p>
<p class="block_15">I see my babies, off they go</p>
<p class="block_15">Will my fields go fallow?</p>
<p class="block_2"></p>
<p class="block_15">I don’t know</p>
<p class="block_2"></p>
<p class="block_15">Are the neighbors onto something?</p>
<p class="block_15">Is there good in cross pollination?</p>
<p class="block_15">I can’t be sure, but what I’m seeing would indicate</p>
<p class="block_15">That tulips love to mix and germinate!</p>
<p class="block_2"></p>
<p class="block_15">So if all the fields are as lovely as mine</p>
<p class="block_15">The whole town’s plants will be top of the line</p>
<p class="block_15">I finally understand the affair</p>
<p class="block_15">Nature’s way is to spread and share.</p>
<p class="block_2"></p>
<p class="block_15">Spread and Share!</p>
<p class="block_16"></p>
<p class="block_14"></p>
Harks09 is offline   Reply With Quote
Old 01-28-2020, 03:14 PM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I'd change the Styles in the DOCX manuscript. Attached zip has sample DOCX and EPUB from default conversion.

BR
Attached Files
File Type: zip I can.zip (40.4 KB, 199 views)
BetterRed is offline   Reply With Quote
Old 01-28-2020, 04:00 PM   #15
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: 79,506
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The problem is that empty paragraphs are not liked. You should use styles in your documents to use a margin for the spacing.

But you could also edit the HTML and CSS to allow the blank lines to work.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I prevent Calibre from deleting blank lines present in the orig docx file? RachDvn Conversion 1 03-31-2014 10:28 PM
Calibre Indent Issue When Removing Blank Lines (Converting From HTML to MOBI or EPUB) David Derrico Calibre 5 08-04-2010 12:13 AM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 04:23 PM
Blank Lines vivaldirules Upload Help 55 03-02-2009 03:17 PM
How to eliminate blank lines between paragraphs with Calibre Mr. Goodbar Calibre 8 06-02-2008 07:39 AM


All times are GMT -4. The time now is 04:33 AM.


MobileRead.com is a privately owned, operated and funded community.