10-20-2012, 01:18 PM | #1 |
Techno-geek
Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
No class <spans>
I have have an ePub in which literally every tag has a span within it without a class attribute. For example, <p class="xxx"><span>Some text</span></p>.
What purpose could those spans serve? I am considering remove them all.--MH |
10-20-2012, 02:09 PM | #2 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Wild guess: having it displayed correctly in iBooks. Obviously it is a bad coding habit but also those who coded rendering engines not adhering to the standards did a poor job... (See this recent thread: https://www.mobileread.com/forums/showpost.php?p=2272513 )
|
Advert | |
|
10-20-2012, 02:18 PM | #3 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Note that there may be selectors targeting those spans without class, for example "p span" means any <span> within a <p>, with or without class.
But of course, if the code is so crappy, I doubt the CSS has such a sophistication. |
10-20-2012, 07:01 PM | #4 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Save your epub with another name and then pull out all the junk.
Then see what you have and whether you like it. Be sure to display it in your reader or in the Sony Library. Sigil is not a reliable guide to how things will display. |
10-26-2012, 03:11 PM | #5 |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
do you know which program was used to generate the epub? i'm not totally certain, but feel like i've seen an over-abundance of <span> tags sometimes produced by indesign's export to epub. also completely a wild guess, but perhaps there had been a style applied to the text in indesign, but the indesign style itself contained no information...?
but yes, back up, try removing them all and see if it changes the layout. |
Advert | |
|
11-02-2012, 10:42 AM | #6 |
Techno-geek
Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
I have removed the <span>s with no ill effects. I have not tried this ePub on an iPad mostly because I don't have one.
Not sure what generated the file. It is a published ebook I am trying to remove some annoying artifacts from. --MH |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hi from the new kid in class | Steven Stickler | Introduce Yourself | 3 | 02-17-2012 08:01 PM |
Kindle Life Spans | sirmaru | Amazon Kindle | 11 | 12-24-2011 12:31 PM |
PRS-650 SD Card Importance? SDHC, SDHC Class 4, Class 10 etc is it important | Renji | Sony Reader | 11 | 12-03-2011 12:30 PM |
SD Class support | drdman | Astak EZReader | 6 | 10-30-2009 12:42 AM |
TeX class | nsg | Sony Reader | 3 | 11-05-2007 07:58 PM |