Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-16-2014, 10:17 PM   #1
Watashi
Junior Member
Watashi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2014
Device: Nook Simple Touch
All text underlined in epub - help!

Hi,

I'm trying to hand-fix a failed azw4-to-pdf-to-epub book using an html source file. (That's bad enough in and of itself, right?) But after conversion to an epub from the html, the text is underlined for most of the book. I'm using Dreamweaver CS5. The design view there looks fine. The html preview in Firefox looks fine.

I converted it into an epub using calibre. The calibre view of the epub looks fine. I viewed it in Adobe Digital Editions. Half of chapter 3 and into chapter 4 was underlined.

Then on my Nook Simple Touch, everything from chapter 3 onward is underlined! I don't understand. This is all the same file, just different programs. I've checked for underlining markings in the source code, but there's nothing.

Can anyone help??? I am so frustrated.
Watashi is offline   Reply With Quote
Old 09-16-2014, 10:51 PM   #2
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
There can only be two options.
1. Your epub contains styling for underline that you missed.
2. Your epub contains styling for underline that you missed.



Upload the file if you want us to check it.
odedta is offline   Reply With Quote
Old 09-17-2014, 02:35 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Watashi View Post
I converted it into an epub using calibre. The calibre view of the epub looks fine. I viewed it in Adobe Digital Editions. Half of chapter 3 and into chapter 4 was underlined.
Calibre will automatically correct some errors that ADE chokes on when displaying ePubs. Open your ePub with Sigil and click the large green checkmark button to check the ePub with FlightCrew.

Quote:
Originally Posted by odedta View Post
There can only be two options.
1. Your epub contains styling for underline that you missed.
2. Your epub contains styling for underline that you missed.
Actually, it might also be an <a> tag with a missing or incorrectly placed closing tag.
Doitsu is offline   Reply With Quote
Old 09-17-2014, 03:20 AM   #4
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: 79,029
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
When I've had underlined text, it was a lopsided <a> tag.
JSWolf is offline   Reply With Quote
Old 09-19-2014, 03:29 PM   #5
Watashi
Junior Member
Watashi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2014
Device: Nook Simple Touch
Quote:
Originally Posted by Doitsu View Post
Actually, it might also be an <a> tag with a missing or incorrectly placed closing tag.
Oh my gosh, that was it! All the named anchors from the table of contents are wrong. (They look like <a name = "link"/>, which is apparently flubbing everything up.)

I love how smart the people on this site are! I would never have figured that out on my own.



Edit: In case anyone else has a problem like mine, I have since learned that <a name = "link"/> is XML coding. What I need is <a name = "link"></a>, which is supported by HTML4.
Source: http://stackoverflow.com/questions/4...ith-name-or-id

Last edited by Watashi; 09-20-2014 at 04:59 PM.
Watashi is offline   Reply With Quote
Old 09-22-2014, 01:21 AM   #6
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
What you're seeing is caused by two separate bugs in Adobe Digital Editions:

1. It incorrectly treats the contents of name anchors (without an href) as links, and underlines them. (This one is already listed in the EPUB tips section on the Wiki in the "general" section, though now that there's a separate ADE area, it should probably be mentioned there as well.)

2. Apparently, ADE also doesn't properly support the self-closing tag syntax, which is also clearly a bug, because EPUB books are XHTML (XML), not HTML. I've added a note about that to the EPUB tips section.

I'm assuming the MIME type in your metadata.opf file is "application/xhtml+xml" rather than "text/html", correct? Because if you mis-specify that, ADE's behavior is technically legal, though archaic. Then again, I'd be surprised it worked at all if you did that, so....
dgatwood is offline   Reply With Quote
Old 09-22-2014, 04:48 AM   #7
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by dgatwood View Post
I'm assuming the MIME type in your metadata.opf file is "application/xhtml+xml" rather than "text/html", correct?
I thought any HTML file in my epub supposed to contain the "application/xhtml+xml" MIMETYPE...?
odedta is offline   Reply With Quote
Old 09-22-2014, 08:20 AM   #8
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
<a name="whatever"> should be <a id="whatever">.
mrmikel is offline   Reply With Quote
Old 09-25-2014, 12:12 AM   #9
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by odedta View Post
I thought any HTML file in my epub supposed to contain the "application/xhtml+xml" MIMETYPE...?
It is supposed to, yes. I was speculating that if you had inadvertently (and incorrectly) used text/html, ADE might have interpreted it according to the legacy HTML rules, using an old, broken parser that acts like Netscape 3.x....
dgatwood is offline   Reply With Quote
Old 09-25-2014, 12:18 AM   #10
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by mrmikel View Post
<a name="whatever"> should be <a id="whatever">.
If you're doing HTML 5 (EPUB 3), yes. Otherwise, both are equivalent. Is this EPUB 3?
dgatwood is offline   Reply With Quote
Old 09-25-2014, 02:10 PM   #11
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Quote:
Originally Posted by dgatwood View Post
If you're doing HTML 5 (EPUB 3), yes. Otherwise, both are equivalent. Is this EPUB 3?
If i'm not mistaken the name attribute is not allowed both in EPUB2 and EPUB3.
If it is allowed then, it won't work if you're using Javascript for sure, getElementsByName will not work for example.

Last edited by odedta; 09-26-2014 at 06:16 AM.
odedta is offline   Reply With Quote
Old 09-25-2014, 02:24 PM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Epub 2 uses XHTML, which requires "id" and not "name". I think any validator will report "name" as a not-allowed attribute.
Jellby is offline   Reply With Quote
Old 09-27-2014, 07:55 PM   #13
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Jellby View Post
Epub 2 uses XHTML, which requires "id" and not "name". I think any validator will report "name" as a not-allowed attribute.
D'oh. You're right. My bad.
dgatwood is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB 3 multi column text reading order across pages for epub laksathish ePub 13 11-13-2018 05:18 AM
Blue underlined text jimb949 Sigil 6 07-01-2014 04:00 PM
Text in converted epub is bold, underlined - How to make regular? frank14612 Conversion 5 02-22-2014 09:45 AM
Generate epub using text-recognized text in PDF not Pictures. lordofazeroth Conversion 0 09-19-2013 04:16 PM
epub: links in toc should not be underlined ... NASCARaddicted Calibre 2 06-15-2010 06:26 PM


All times are GMT -4. The time now is 11:48 PM.


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