Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-12-2012, 07:42 AM   #1
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
Unhappy Inconsistent Spacing

I have created a fairly large ePub file (5MB in size or so). The process I used was that I put the entire book together in MS Word 2011 and then exported as a filtered HTML file. I then loaded the HTML file into Calibre and converted it to ePub and mobi. The mobi file reads just fine in the eReaders that I've tried. When I load the ePub into my iPad and read it in iBooks, however, it has awkward spacing.



Any thoughts on what I could do to fix this? I'm somewhat at a loss and running out of ideas.
N00ter is offline   Reply With Quote
Old 04-12-2012, 08:06 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,906
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
First of all iBooks has it quirks and strange way of working. That being said, I don't think it is your problem in this case.
If you use Word, it is good to save it as filtered HTML. However, even that file is really bloated and contains tons of unnecessary code which can cause unexpected effects in rendering on readers. Using Calibre to convert will not help you there.
If you really want to solve this, there is no solution but to clean either the ePUB or the HTML export of Word.

If you don't want to look at the code at all, download and use Atlantis Word Processor. Load your Word document in that. Check your layout and then you can save as ePUB.
Toxaris is offline   Reply With Quote
Old 04-12-2012, 08:10 AM   #3
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
I will give Atlantis a try.
N00ter is offline   Reply With Quote
Old 04-12-2012, 08:12 AM   #4
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
One problem, however, is that I can't use Atlantis on my mac. Is there any mac alternative?
N00ter is offline   Reply With Quote
Old 04-12-2012, 08:18 AM   #5
WillAdams
Guru
WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.WillAdams ought to be getting tired of karma fortunes by now.
 
WillAdams's Avatar
 
Posts: 943
Karma: 1760710
Join Date: Feb 2008
Device: Sony PRS-600, Fujitsu Stylistic ST-4121
Set the text FLRR (flush left, ragged right).

Every ebook viewer I've seen has a greedy, one-line at a time, justification algorithm (w/ no hyphenation).

You _might_ be able to help the text by inserting discretionary hyphens into long words like ``establishmentarian'', but only one those readers which actually support such.

If you want more control than that you'll need to make an App or a .pdf.

William
WillAdams is offline   Reply With Quote
Old 04-12-2012, 09:04 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,906
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I don't think justifaction is the issue, but the spacing at the location of the endnote. So, vertical spacing.

Sorry, don't know of a Mac alternative. Personally I would use my HTML-export macro from Word or a thorough cleanup in Sigil. For that basic (X)HTML/CSS knowledge is required.
Toxaris is offline   Reply With Quote
Old 04-12-2012, 09:09 AM   #7
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
Is vertical spacing something I can control in Sigil? The vertical spacing in relation to the hyperlinks really does appear to be the culprit.
N00ter is offline   Reply With Quote
Old 04-12-2012, 09:16 AM   #8
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 963
Karma: 1382338
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro, Kindle 3/WiFi - Retired:Clie UX50, T415, ...
Quote:
Originally Posted by N00ter View Post
...When I load the ePub into my iPad and read it in iBooks, however, it has awkward spacing....
Any thoughts on what I could do to fix this?...
Which "awkward spacing" are you referring to??

If you are referring to the horizontal word spacing seen in the third line then there is nothing you can do other than to spec the book to use left alignment instead of justification or to use different reading software. There is nothing you can do in the book's code to change the reader's justification decisions (word spacing, letter spacing, hyphenization, and/or not justifying a problem line).

If you are referring to the vertical spacing before line five, then there are things you can do that can/may help. You can either change the superscript endnote to not be superscript or reduce it's size. The former always works to restore uniform line spacing but looses the traditional look. The latter, size reduction while retaining the superscript, works sometimes with some reading software depending on the amount of the size reduction and the abilities of the ereader.
dwig is offline   Reply With Quote
Old 04-12-2012, 09:58 AM   #9
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
I think I'm just going to change the endnote style so that it is the same size as the rest of the text. In fact, I just did it, and it worked well. Now everything is aligned and attractive like I wanted. It's too bad the iPad doesn't allow attractive superscripts that don't mess up the vertical spacing.

Thanks for the help, everyone!
N00ter is offline   Reply With Quote
Old 04-12-2012, 10:09 AM   #10
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 949
Karma: 1119522
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by N00ter View Post
One problem, however, is that I can't use Atlantis on my mac. Is there any mac alternative?
Is Open Office / Libre Office available for Mac ? If yes, there's a plugin to create an epub, no need to bother calibre.

You might try Toxaris' "Word to clean html" Export Macro (here in this forum). I can't give a guarantee, but maybe it works on a mac as well.

But some junk-code in the html is not your problem in this case.

Quote:
Originally Posted by N00ter View Post
Is vertical spacing something I can control in Sigil? The vertical spacing in relation to the hyperlinks really does appear to be the culprit.
You can control nearly any aspect of an epub with Sigil, the downside is it needs some experience with Html /Css coding. You should do what dwig mentiones to cleanup the vertical spacing.

BTW, a question to the others: Is there any "soft-hyphenation" in Html, such as Winword uses it ? A dash which can be placed inside a word and is only shown, if the word is separated at a line-end ??
mmat1 is offline   Reply With Quote
Old 04-12-2012, 10:16 AM   #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: 36,655
Karma: 17734032
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Use Sigil to go in and have a look at the CSS and remove ALL instances of line-space.
JSWolf is offline   Reply With Quote
Old 04-12-2012, 10:18 AM   #12
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
JSWolf, if it's a large book, is there a way to do it without going line by line?
N00ter is offline   Reply With Quote
Old 04-12-2012, 10:55 AM   #13
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: 36,655
Karma: 17734032
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by N00ter View Post
JSWolf, if it's a large book, is there a way to do it without going line by line?
You don't have to go through it line-by-line if the problem is in the CSS. So just look at the CSS and remove every instance of line-height and see what happens. And if it doesn't fix things, then just search for line-height and when you see it, remove it. Then it should be fixed as fat is inconsistent line spacing.
JSWolf is offline   Reply With Quote
Old 04-12-2012, 07:23 PM   #14
sellew
Enthusiast
sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.sellew has a complete set of Star Wars action figures.
 
Posts: 30
Karma: 300
Join Date: Oct 2011
Location: Barcelona
Device: Sony PRS-650, PRS-T2
I also found the same problem with ADE (in Sony PRS650). I handle it by using the 'vertical-align' property in the CSS code, setting it to:

vertical-align: text-top;

then it respects the line spacing.

To be more specific, I assign this property to the <sup> tag or to the class it is using.

Last edited by sellew; 04-12-2012 at 07:25 PM.
sellew is offline   Reply With Quote
Old 04-12-2012, 10:51 PM   #15
N00ter
Member
N00ter began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2012
Device: Kindle
Every line-height: property in the ePub is set to 1.2. All of the vertical-align properties were set to middle.

Here is a new piece of information, because changing those two properties listed above haven't worked. It is the first paragraph under each new section-heading that has the tight spacing. I have examined almost the entire book and am finding very consistently that this is the case. Why would only the first paragraph after a new section heading have this tight spacing?
N00ter is offline   Reply With Quote
Reply

Tags
epub, formatting, spacing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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