04-12-2012, 11:20 PM | #16 | |
Member
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
|
Here is some more information to work with. As I dig through the ePub with Sigil I find that the first paragraph of each new section is classified as "OpeningParagraph." So I went to the css stylesheet and this is what it says under the .OpeningParagraph section:
Quote:
|
|
04-12-2012, 11:25 PM | #17 | |
Member
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
|
Above was a quote from the stylesheet css. Here is a quote from one of the paragraphs that has the screwed up spacing. Maybe something in here will make sense to some of your more trained eyes:
Quote:
|
|
Advert | |
|
04-13-2012, 09:19 AM | #18 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It pays to check the code when you have this kind of problem. Sometimes seemingly unrelated things have an effect on spacing. It depends on the readers internal programming.
With relatively limited memory in readers, support for hyphenation is necessarily limited. Better support would be the key for prettier text. Some day.... |
04-13-2012, 01:38 PM | #19 | |
Enthusiast
Posts: 30
Karma: 300
Join Date: Oct 2011
Location: Barcelona
Device: Sony PRS-650, PRS-T2
|
Quote:
<p class="OpeningParagraph"><span class="calibre26" xml:lang="EN-GB"> </span></p> is creating an extra blank line between the chapter title and the first paragraph. 2. The hyper-links like that one: <a class="calibre23" href="../Text/ePub%20Version_split_043.htm#_ftn632" id="_ftnref632" title=""><span class="calibre24">[632]</span></a> can create higher space between lines depending on the CSS code of class "calibre24". If the vertical-align property is set to 'super' then most probably this is the cause. Usually, setting it to 'text-top' or 'top' solves the issue. |
|
04-13-2012, 03:14 PM | #20 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
... or add a "line-height: 0" to the footnote style. Depending on the other settings, it may cause the footnote to overlap with the previous line, but it can also look fine. I do it quite often.
|
Advert | |
|
04-14-2012, 04:32 AM | #21 |
Karmaniac
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
|
looks to me you have your text layout justified instead of left aligned.
That's perhaps why the weird spacing. |
04-14-2012, 08:39 AM | #22 |
Member
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
|
I'VE DONE IT! Sorry for the all-caps. Here is what I did.
I had to tinker with the file. I have no idea why it was this way, but I went into the CSS Stylesheet and started experimenting with different line heights, but only in the Opening.Paragraph section. I left the line height at 1.2 for all other sections, but I changed Opening.Paragraph to 1.4. Sure enough, I go back into the book and it's perfect. I wonder if there is something in the iPad that is causing the line spacing in the Opening Paragraph of a new section to skew tighter for some reason. Oh well - problem solved! Thanks, all! |
04-14-2012, 08:42 AM | #23 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-14-2012, 08:45 AM | #24 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
.OpeningParagraph { display: block; font-family: MinionPro-Regular; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; } Last edited by JSWolf; 04-15-2012 at 09:50 AM. |
|
04-14-2012, 08:48 AM | #25 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
<body> <p class="ChapterNumber">11</p> <p class="ChapterTitle">Revolutions in American Religion and Society:<br/>the Shadow of Civil War</p> <p class="OpeningParagraph">Christianity was a highly pervasive feature of the dynamically changing nineteenth-century American society, helping to mould its national cultural values, yet it was competed over and divisive territory. The freedom which Americans enjoyed to practice the religion of their choice did not bring greater tolerance, but a diversity of approaches to the interpretation of Christian teaching and models of Christian practice. The first Amendment deregulated religion, but made no attempt to establish what ‘the’ religious truth was, and as the nineteenth-century progressed, a multiplicity of claims about it were unleashed. A free market in religious opinion followed, with religion hawked across the land like any other product in the years before the American Civil War.<a class="calibre23" href="../Text/ePub%20Version_split_043.htm#_ftn632" id="_ftnref632" title=""><span class="calibre24">[632]</span></a> Many had their own vision of what godly America would look like, with little prospect that those visions would be united through compromise or consensus.<a class="calibre23" href="../Text/ePub%20Version_split_043.htm#_ftn633" id="_ftnref633" title=""><span class="calibre24">[633]</span></a> Over the big issues confronting America, such as the role of women in society, or slavery, the churches had much to say, but it was often delivered by means of diametrically opposing arguments, usually based on varying interpretations of the Bible.</p> |
|
04-14-2012, 09:00 AM | #26 |
Member
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
|
Well, JSWolf, I did try a version of the book with the line-heights deleted completely. For some reason, the iPad was still making the first paragraphs a little tighter than the rest.
By manually causing the opening paragraph to space wider, it's counteracting whatever iBooks is doing with the opening paragraph. The problem is solved, but it isn't elegant. You may have seen how I'm generating this eBook, but I write the whole thing in Word, export it to HTML, and then convert with Calibre. How am I supposed to get better code? Is manually changing it in Sigil the only way to go? |
04-15-2012, 09:51 AM | #27 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The only way to get better code is to manually edit the mess that Word makes. Sigil will allow you to easily edit the mess. As you can see from my posts above, it's possible to edit manually like I did. Have you looked at the XML code where the spacing is off to see if there is anything there?
|
Tags |
epub, formatting, spacing |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"System UIDs Inconsistent" | Szara | Kobo Tablets | 3 | 11-28-2011 04:11 PM |
Inconsistent Display of Cover | Motto | Kobo Reader | 2 | 03-22-2011 11:36 PM |
ePub to Mobi cover art - inconsistent | wannabee | Conversion | 5 | 03-15-2011 12:02 PM |
Inconsistent Metadata | windybt | Calibre | 8 | 10-10-2010 12:31 PM |
Calibre + NYT download = inconsistent? | maxbookworm | Calibre | 36 | 06-28-2010 07:30 AM |