![]() |
#1 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Empty Spans for iBooks compatibility
Why do you have empty spans? They don't do anything for anyone and all they do is bloat the eBook.
|
![]() |
![]() |
![]() |
#2 | |
Voracious reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 14644
Join Date: Oct 2009
Device: Kobo Aura One, Sony PRS T2, iPhone 6, Cybook Orizon, Cybook Gen3
|
Thanks Kevin
![]() Quote:
If nothing has changed since I've last checked, iBooks needs a (semantically unnecessary) tag inside paragraph tags to actually listen to CSS rules about alignment. EDIT: http://www.pigsgourdsandwikis.com/20...ooks-bugs.html Last edited by sbin; 12-17-2015 at 03:18 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,368
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Unless you have specific knowledge that they're no longer required, Jon, let's just let people create books in the manner their research indicates is necessary. There's no need for people to experiment if they have a working method (unless they want to).
|
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I just loaded an ePub into iTunes and the chapter titles are centered without empty spans. So that means the empty spans are not needed because text-align works without them. Say goodbye to empty spans in iBooks.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Are you looking at that on a first-gen iPad, in iBooks? Because we have found that first-gens still seem to need the empty-span and surrounding empty span trick. You? Hitch |
||
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If we were talking ePub where some feature in the old RMDSK (ADE) used on Sony readers didn't work the same as a feature in newer RMDSK on current Readers, I'd say to cut loose Sony Readers. |
|
![]() |
![]() |
![]() |
#8 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Well, that's just great for you. However, I don't have the luxury of telling a client that I'm too snotty to make a book that will work on first-gen iPads. FYI, I lost a nicely lucrative client over this bloody very issue. (FWIW: he had a first-gen iPad. He was promoting and selling autobiographical coffee-table type eBooks to a specific clientele. Long story short, the first-gen didn't [and still does not] support floating images at the top of a page, if there's a column of text next to it. I explained this until I was blue in the face, but because we couldn't make the file look like what he wanted--what his client wanted--he went somewhere else. Don't know how they fixed it, either, but the moral of the story is: there are people out there with 1st-Gen iPads that still work.) There are a large number of authors in the group of 1st-Gen iPad owners. So: she's not "wrong" to use the empty span trick. Nobody is. That it doesn't agree with your ideas of right and wrong, sure. But it's not "wrong" any more than using empty paragraphs is actually "wrong" by the standards. It may not fit our ideas of elegance in the code/markup, but...it is what it is, Jon. Don't castigate her for trying to make her book work across ALL major devices. Hitch |
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I don't recall needing to span stuff to get alignment to work and that was when I had my 1st gen iPad. Is that correct with that version iBooks?
|
![]() |
![]() |
![]() |
#10 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Recollect ye not the kerfuffle with iBooks? The bloody thing wouldn't align text--rather notoriously, centering, specifically--without empty spans around the element. It had two big bugs: it ignored any font information conveyed in spans, IIRC, (and...paragraphs and divs, I think--not 100% sure I remember everything), and it absolutely, positively, ignored the text-align CSS when full-justification was on. That presented pretty much everyone with a huge problem because the default shipping value for iBooks in 1st-Gen iPads was, you guessed it--ON. For reasons that nobody--anywhere--understands, you had to put empty spans inside the <p></p> tags surrounding the paragraph element--and then iBooks would honor the text-align instructions that were carried on the P tags. (IIRC, you also had to do this for any of the h1-h6 tags, too). I kid thee not. I don't believe that it's ever been fixed. We have fallen out of the habit of doing it for each and every ePUB, for most of our clients aren't distributing to iBooks. We ask; if they are, or are using SW, etc., we put those little buggers right back in. Hitch |
|
![]() |
![]() |
![]() |
#11 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
|
Without looking at the stylesheet its impossible to decide if spans are unnecessary or not.
Code:
span { font-weight: 500; } Code:
div span { font-style: italic; } And both will not be listed in Sogil's reporting as they do not have a class. @Hitch: would a plugin put any value which adds empty spans to <p> and <divs> and <h1>? Last edited by rubeus; 12-18-2015 at 02:08 AM. |
![]() |
![]() |
![]() |
#12 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
![]() It seems silly to want someone to do all that work when, as Wolfie rightly points out, with Apple's penchant for dropping hardware, software, OSes, etc., it's realistic to think that sometime in the near future, all the 1stGen iPads will be placed on a space-bound craft heading for the heart of the Sun. Or something like that. Lemme cogitate on that one. Good idea, Rube. Hitch |
||
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,687
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
You're, yet again, wrong. font-weight can have a numerical value.
|
![]() |
![]() |
![]() |
#15 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,205
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Image slider in iBooks (NOT iBooks Author) | stevenc | ePub | 8 | 07-01-2013 12:28 PM |
Why all the spans in rtf to epub conversions? | Berzelius | Conversion | 6 | 12-31-2012 06:19 PM |
No class <spans> | dynabook | ePub | 5 | 11-02-2012 10:42 AM |
Apple's iBooks 2, iBooks Author: Bids to own publishing's future | wannabee | News | 0 | 01-19-2012 07:33 PM |
Kindle Life Spans | sirmaru | Amazon Kindle | 11 | 12-24-2011 12:31 PM |