|  09-16-2014, 10:17 PM | #1 | 
| Junior Member  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. | 
|   |   | 
|  09-16-2014, 10:51 PM | #2 | 
| Addict            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. | 
|   |   | 
|  09-17-2014, 02:35 AM | #3 | ||
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | Quote: 
 Quote: 
   | ||
|   |   | 
|  09-17-2014, 03:20 AM | #4 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 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.
		 | 
|   |   | 
|  09-19-2014, 03:29 PM | #5 | |
| Junior Member  Posts: 2 Karma: 10 Join Date: Sep 2014 Device: Nook Simple Touch | Quote: 
 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. | |
|   |   | 
|  09-22-2014, 01:21 AM | #6 | 
| Curmudgeon            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.... | 
|   |   | 
|  09-22-2014, 04:48 AM | #7 | 
| Addict            Posts: 398 Karma: 96448 Join Date: Dec 2013 Device: iPad | |
|   |   | 
|  09-22-2014, 08:20 AM | #8 | 
| Color me gone            Posts: 2,089 Karma: 1445295 Join Date: Apr 2008 Location: Central Oregon Coast Device: PRS-300 | 
			
			<a name="whatever"> should be <a id="whatever">.
		 | 
|   |   | 
|  09-25-2014, 12:12 AM | #9 | |
| Curmudgeon            Posts: 629 Karma: 1623086 Join Date: Jan 2012 Device: iPad, iPhone, Nook Simple Touch | Quote: 
   | |
|   |   | 
|  09-25-2014, 12:18 AM | #10 | 
| Curmudgeon            Posts: 629 Karma: 1623086 Join Date: Jan 2012 Device: iPad, iPhone, Nook Simple Touch | |
|   |   | 
|  09-25-2014, 02:10 PM | #11 | |
| Addict            Posts: 398 Karma: 96448 Join Date: Dec 2013 Device: iPad | Quote: 
 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. | |
|   |   | 
|  09-25-2014, 02:24 PM | #12 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 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.
		 | 
|   |   | 
|  09-27-2014, 07:55 PM | #13 | 
| Curmudgeon            Posts: 629 Karma: 1623086 Join Date: Jan 2012 Device: iPad, iPhone, Nook Simple Touch | |
|   |   | 
|  | 
| 
 | 
|  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 |