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 03-31-2019, 01:59 PM   #1
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
still fussing with bad formatting

I think my current and hopefully remaining problem is caused by a bug in how the kindle displays an azw3. The epub has blank lines between lines of text in a paragraph, i.e., two line feeds/newlines between lines between the opening and closing p tags. When I look at the azw3 on the kindle that calibre produced it starts a new line where the blank lines are (and doesn't display a blank line). Calibre left the blank lines when it converted to azw3.

If I change calibre's conversion settings to use justify instead of left align then the kindle displays it properly. But I'm fussy and can't abide justified text.

I can fix the epub with sigil's mend and prettify, so I have a solution to the problem.

Is this a bug in the kindle? Seems like it is to me but I'm no expert on this stuff.
lumpynose is offline   Reply With Quote
Old 03-31-2019, 03:47 PM   #2
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,054
Karma: 60358908
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 lumpynose View Post
I think my current and hopefully remaining problem is caused by a bug in how the kindle displays an azw3. The epub has blank lines between lines of text in a paragraph, i.e., two line feeds/newlines between lines between the opening and closing p tags. When I look at the azw3 on the kindle that calibre produced it starts a new line where the blank lines are (and doesn't display a blank line). Calibre left the blank lines when it converted to azw3.

If I change calibre's conversion settings to use justify instead of left align then the kindle displays it properly. But I'm fussy and can't abide justified text.

I can fix the epub with sigil's mend and prettify, so I have a solution to the problem.

Is this a bug in the kindle? Seems like it is to me but I'm no expert on this stuff.
CODE VIEW BLANK LINES BETWEEN TAG PAIRS, HAS NO EFFECT ON RENDERING. 5 blanks is the same as none when between </p> and the next <p
I have reformatted hundreds of AZW3 books for my K4nt and the only issue I have found affects dropcaps position vs other kindle versions.
Your CSS code is bad (for what you want)
theducks is offline   Reply With Quote
Advert
Old 03-31-2019, 04:41 PM   #3
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
As theducks said, "Your CSS code is bad (for what you want)"

Since you are in code view anyway, have a look at the paragraph coding and the stylesheet.

Look at the <p class="something"> of the paragraphs that don't space the way you want them to. Open the CSS file and find the ".something" entry--does it have any top or bottom margin?

Since you seem to want some whitespace between paragraphs, try adding a line like "margin-bottom: 1em;" to the CSS entry, and see what happens.

BTW, If you have the Live CSS pane open (it's in the View menu), you can click on text in the code pane and it will show you any and all codes that go into the final display. Then you can click on one of the entries and go right to editing the CSS file in that exact spot. Bit of a bear to get used to, but super helpful once you do.
retiredbiker is offline   Reply With Quote
Old 03-31-2019, 09:35 PM   #4
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by retiredbiker View Post
As theducks said, "Your CSS code is bad (for what you want)"

Since you seem to want some whitespace between paragraphs, try adding a line like "margin-bottom: 1em;" to the CSS entry, and see what happens.
Nah, I don't want any whitespace between paragraphs. I had that idea beaten out of me way back when I was using something called TeX and now I'm just as zealous about it.

In my conversion settings I've checked "Remove spacing between paragraphs". And the one for inserting blank lines is unchecked. Under Look & Feel, Styling, "you want completely removed" I have the following checked: Margins, Padding, Floats, and Colors.

I absolutely agree with theducks that those blank lines between the p tags shouldn't have changed the way it was rendered on the kindle but for whatever reason it seems that they did. The only change I made between the working and non-working version was in Look and Feel, Text, setting the justification to Justify Text, from my usual Left Align. After running Sigil's mend and prettify on it (which removed the blank lines) I changed it back to Left Align and it was ok again.

All day today I've been going through my books and running Sigil's mend and prettify on the epub files and of course I've forgotten which one was misbehaving. I would like to have eyeballed its css.
lumpynose is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More bad formatting Joques General Discussions 6 02-20-2015 02:56 PM
PRS-T1 bad font formatting? henson0115 Sony Reader 4 12-24-2011 01:09 PM
REALLY bad formatting SeaBookGuy Amazon Kindle 9 01-05-2011 03:29 PM
How do I fix bad formatting? ghostgrass Calibre 12 05-24-2010 02:18 PM
I've had my first bad formatting experience krisk Amazon Kindle 11 04-10-2009 01:29 AM


All times are GMT -4. The time now is 09:06 AM.


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