Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2013, 01:14 PM   #16
DreamWriter
Books are brain food.
DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.
 
DreamWriter's Avatar
 
Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
Quote:
Originally Posted by Darth_Bane View Post
I still use 1.2 for one simple, purely cosmetic reason. KindleGen 2.x versions seem to add a blank line between paragraphs, while 1.2 leaves paragraphs indented and glued together, with no blank lines in between. I've only tried up to version 2.5 or 2.6 and nothing later, so things may have changed. Note that I never upload books to Amazon.

I'd gladly use 2.x if there were some way of removing inter-paragraph spacing, but I haven't found a way (not that I tried very hard).
I've used the latest versions of Kindlegen for several years to create the e-books in my signature, and I've never had it add blank lines between paragraphs. I do have CSS that controls the formatting, though.

My husband's books start out in MS Word. My current method is to run that text through an online program that spits out clean HTML (Word to Clean HTML), and then I tweak everything in Sigil before creating the mobi using Kindlegen. There's an option in "Word to Clean HTML" to remove empty paragraphs, but even before I started using that method (when I did everything "by hand" in HTML), I never had Kindlegen insert blank lines.
DreamWriter is offline   Reply With Quote
Old 03-19-2013, 01:28 PM   #17
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
My guess is that the default behavior just changed after v1.2. Perhaps it defaulted to no paragraph spacing and a first-line indent when nothing was specified. Newer versions will definitely default to a space between paragraphs and no first-line indent if you provide no instruction otherwise. That's the only explanation I can come up with. I never experienced the problem because I never left paragraph-spacing and first-line indents to chance in the first place. I tell kindlegen how I want it done, I don't let it make its own decisions concerning styling if it can be avoided.
DiapDealer is offline   Reply With Quote
Advert
Old 03-19-2013, 03:23 PM   #18
Darth_Bane
Dark Lord of the Sith
Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.
 
Darth_Bane's Avatar
 
Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
Quote:
Originally Posted by DiapDealer View Post
My guess is that the default behavior just changed after v1.2. Perhaps it defaulted to no paragraph spacing and a first-line indent when nothing was specified. Newer versions will definitely default to a space between paragraphs and no first-line indent if you provide no instruction otherwise. That's the only explanation I can come up with. I never experienced the problem because I never left paragraph-spacing and first-line indents to chance in the first place. I tell kindlegen how I want it done, I don't let it make its own decisions concerning styling if it can be avoided.
Thanks for the reply. How do you tell KindleGen how you want it done? My CSS seems to have the right things in it:
Code:
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
Am I missing something?
Darth_Bane is offline   Reply With Quote
Old 03-19-2013, 03:42 PM   #19
DreamWriter
Books are brain food.
DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.
 
DreamWriter's Avatar
 
Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
Quote:
Originally Posted by Darth_Bane View Post
Thanks for the reply. How do you tell KindleGen how you want it done? My CSS seems to have the right things in it:
Code:
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
Am I missing something?
Here's how my CSS looks for regular paragraphs:

Code:
p {
  margin-top:0;
  margin-bottom:0;
  margin-left:0;
  margin-right:0;
  text-indent:5%;
}
(I could've just specified margin:0; instead of having all margins separate.)

If you haven't already, you may want to run all your CSS through the online validator: http://jigsaw.w3.org/css-validator/. It's possible there's CSS code elsewhere that's not well formed, and that's preventing your paragraph CSS from being rendered properly.

I hope you're able to figure it out.
DreamWriter is offline   Reply With Quote
Old 03-19-2013, 03:50 PM   #20
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Darth_Bane View Post
Am I missing something?
That should definitely make Kindlegen create a document with no spaces between paragraphs and a first-line indent. If that's not happening, then there must be something else overriding the p element's style, or the style isn't being applied properly, or the external style sheet isn't being linked correctly. Pretty hard to guess without seeing a portion of the affected html (including the head) and the rest of the CSS.

You're saying the exact same source referred to above works as expected with v1.2, but doesn't work with later versions?

Last edited by DiapDealer; 03-19-2013 at 03:52 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 03-19-2013, 03:56 PM   #21
DreamWriter
Books are brain food.
DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.
 
DreamWriter's Avatar
 
Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
Quote:
Originally Posted by DiapDealer View Post
That should definitely make Kindlegen create a document with no spaces between paragraphs and a first-line indent. If that's not happening, then there must be something else overriding the p element's style, or the style isn't being applied properly, or the external style sheet isn't being linked correctly. Pretty hard to guess without seeing a portion of the affected html (including the head) and the rest of the CSS.

You're saying the exact same source referred to above works as expected with v1.2, but doesn't work with later versions?
Good points, DiapDealer!

Darth, if you can post the HTML header information down to <body> and an HTML example of a paragraph, perhaps we can see something wrong there. Are other parts of your CSS being rendered properly?
DreamWriter is offline   Reply With Quote
Old 03-20-2013, 09:44 AM   #22
Darth_Bane
Dark Lord of the Sith
Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.
 
Darth_Bane's Avatar
 
Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
Quote:
Originally Posted by DiapDealer View Post
That should definitely make Kindlegen create a document with no spaces between paragraphs and a first-line indent. If that's not happening, then there must be something else overriding the p element's style, or the style isn't being applied properly, or the external style sheet isn't being linked correctly. Pretty hard to guess without seeing a portion of the affected html (including the head) and the rest of the CSS.

You're saying the exact same source referred to above works as expected with v1.2, but doesn't work with later versions?
First off, thanks to DiapDealer and DreamWriter!

I'll try 2.8 later today and post back results. I have a hunch 2.8 will fix my problem because I just noticed something in the 2.5 ChangeLog on the KindleGen Wiki at https://wiki.mobileread.com/wiki/KindleGen
  • Unintended line breaks in Mobi7 when using some CSS properties ("margin-top: 0px" and "margin-bottom: 0px") has been fixed.
In the meantime, to answer your questions, the CSS validates as CSS2.1, it is properly linked, and I don't think the <p> is being overridden. The same CSS behaves differently in 1.2 and 2.3 or 2.4.

If 2.8 fails, I'll post a very simple cut-down example.
Darth_Bane is offline   Reply With Quote
Old 03-21-2013, 12:40 PM   #23
Darth_Bane
Dark Lord of the Sith
Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.Darth_Bane knows how to set a laser printer to stun.
 
Darth_Bane's Avatar
 
Posts: 60
Karma: 95334
Join Date: Jul 2010
Location: A Galaxy Far Far Away
Device: Sony PRS-505 and PRS-300, Kobo Wifi, Touch and Mini, Kindle 4NT
Quote:
Originally Posted by Darth_Bane View Post
I have a hunch 2.8 will fix my problem because I just noticed something in the 2.5 ChangeLog on the KindleGen Wiki at https://wiki.mobileread.com/wiki/KindleGen
  • Unintended line breaks in Mobi7 when using some CSS properties ("margin-top: 0px" and "margin-bottom: 0px") has been fixed.
<Professor Farmsworth>Good news everyone!</Professor Farmsworth>

KindleGen 2.8 works, and now my paragraphs are properly indented and unspaced. This solves my problem for self-created files.

When converting EPUBs that I haven't created myself, if indent and paragraph spacing are not defined, I'll probably have to tweak the CSS (or take the lazy approach of using KindleGen 1.2).

Thanks again!
Darth_Bane is offline   Reply With Quote
Old 03-21-2013, 03:23 PM   #24
DreamWriter
Books are brain food.
DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.DreamWriter ought to be getting tired of karma fortunes by now.
 
DreamWriter's Avatar
 
Posts: 2,950
Karma: 4836916
Join Date: Nov 2010
Location: U.S.
Device: Paperwhite · Fire HD6/HD8/HD10 · Galaxy Tab A7
Yay! I'm glad it's working for you.
DreamWriter is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Convert epub to mobi with wide left margin on Kindle victoria0217 Conversion 91 11-15-2011 05:25 PM
Unable to convert Mobi to Epub Japes Conversion 27 07-19-2011 12:14 AM
Best software to convert/create epub version for my book davidnpauly ePub 8 03-15-2011 08:26 AM
failed to convert epub to mobi kievking Conversion 7 02-06-2011 11:37 AM
Convert .prc / .mobi to epub goldberry Calibre 3 09-12-2010 03:56 PM


All times are GMT -4. The time now is 02:21 AM.


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