![]() |
#1 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 1510058
Join Date: Dec 2008
Device: Various Kobo readers, Sony readers from the past.
|
Underlining
I needed to underline a section of text, so I selected it, and clicked on the underline icon. The tags "<u>" and /u duly appeared.
When I run F7, this throws up two errors: 'no declaration found for element 'u' ' and 'element 'u' is not allowed for content model '(a|br|span|bdo|map|object|img|svg|tt|i|b|big|smal l|em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acro nym|sub|sup|input|select|textarea|label|button|ins |del|script)' The paragraph in question is simply: Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Is this with the latest Sigil-0.9.0? If not, which version? Also, did you add the underline in BookView mode? If so, if you look in CodeView, were "u" beginning and end tags inserted anyplace else but inside the p tag?
KevinH Last edited by KevinH; 11-22-2015 at 12:28 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 1510058
Join Date: Dec 2008
Device: Various Kobo readers, Sony readers from the past.
|
Version 0.7.4.
It was added in codeview, and the appearance in code view is as above. |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Well, <u> is supposed to be deprecated in favor of styles. I don't think Epubcheck will accept it, so it makes sense that Flightcrew will complain too...
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 1510058
Join Date: Dec 2008
Device: Various Kobo readers, Sony readers from the past.
|
Removed 0.7.4 and installed 0.9.
Problem disappeared. Any way of scrubbing this thread? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,488
Karma: 5703586
Join Date: Nov 2009
Device: many
|
No,
Actually you did not run Flightcrew in Sigil-0.9.0, Your ran sanitycheck. If you want to run FlightCrew you must load its plugin and launch it. Sanitycheck just checks if the source is parseable, it is **not** an epub2 validator. If you want to validate in Sigil-0.9.0 you must load either the epubcheck plugin or the flightcrew plugin. As for the u tag, it exists in html4 but is deprecated, it exists in xhtml 1.0, it does not exist in xhtml 1.1, but now it is back in html5, xhtml5 but with a more restricted meaning and use. Flightcrew uses the official xhtml 1.1.dtd when validating the epub and it does not allow the u tag. Hope this explains things. KevinH Last edited by KevinH; 11-22-2015 at 01:24 PM. |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 36
Karma: 1510058
Join Date: Dec 2008
Device: Various Kobo readers, Sony readers from the past.
|
Thanks. Flightcrew now installed.
I'll use a <span style=""> for underlining. |
![]() |
![]() |
![]() |
#8 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,686
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Unfortunately, if you use <u> in ePub2 books, it'll fail epubcheck, however, you can use it in ePub3 books.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,365
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I honestly don't think there will ever be a browser/renderer/reader that doesn't honor <u></u> ... regardless of whether the document claims to be (x)html4|5. But specs are specs.
![]() |
![]() |
![]() |
![]() |
#11 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,208
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Can't you declare "u" in your css? I often do that for "em" and "strong"
u {text-decoration: underline} |
![]() |
![]() |
![]() |
#12 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
And as DiapDealer said, the chances of any browser or ereader or any piece of code designed to render HTML NOT supporting it is... unlikely. But if you want to conform to the spec and thus pass Epubcheck, you need to follow the silly rule. And if you want to submit an ebook to a store that demands you pass Epubcheck, you gotta conform to the spec... That just forces the renderer to use the right styling for em/strong/u/b (in case it had a different default for some odd reason) -- but the element itself is still going to get noticed and trip a silly error. |
|
![]() |
![]() |
![]() |
#13 |
A curiosus lector!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
The funny thing is that Sigil insert the codes <u></u>, the less funny thing is, as Doitsu and eschwartz said, epubcheck as well as FlightCrew do not like those codes... And specs are specs
![]() |
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,365
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
My personal preference would be to give U tags a free pass in Sigil's well-formed check, if at all possible. Let the epub validators do all the barking about them. Short of that, I guess I'd like to see it (the button) made unavailable in documents where Sigil/gumbo deems them un-spec-worthy. Good stuff! ![]() |
|
![]() |
![]() |
![]() |
#15 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
But you can re-define <em>, for example (if you are underlining, it is probably because you want to emphasize), or give it a class: Code:
em {text-decoration: underline; font-style: normal} em.u {text-decoration: underline; font-style: normal} |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD How to view all underlining and annotations | n3xtITA | Kobo Reader | 9 | 02-27-2014 01:54 PM |
underlining question | gumalcan | Onyx Boox | 3 | 10-28-2012 02:38 PM |
Review from the point of heavy underlining | jjonas | Sony Reader | 3 | 03-12-2010 01:46 PM |
Underlining in pdf files - problem | nhimclc | iRex | 4 | 05-03-2009 04:45 AM |
underlining text in LRF? | curiouser | Sony Reader | 2 | 03-31-2007 09:09 PM |