Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2013, 07:11 AM   #1
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Error: no declaration found for element 'u'

I'm pretty sure I remember using just <u> and </u> tags for underlined text in the past. But now it seems Sigil will always spit out an error about any 'u' tags used anywhere.

If you turn on HTML Tidy and let it change all underlines, italics, bold, etc. to sgc-# for each page, you no longer get the error. I prefer not using HTML Tidy though since the sgc-# for italics, bold or underline can change for each page, making it more difficult to find if you're making corrections.

Is there no way to use the plain 'u' tag any longer?
Ripplinger is offline   Reply With Quote
Old 03-09-2013, 08:38 AM   #2
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
I found this message from pdurrant:
Quote:
ePub is based on XHTML 1.1. http://www.w3.org/TR/xhtml11/

The underline <u> tag was deprecated in XHTML 1.0 Transitional, and removed from XHTML 1.0 Strict and XHTML 1.1
Since 1.1 is the declaration at the top of Sigil epubs, it looks like you are out of luck with <u>.

CSS answers though:

http://www.w3schools.com/cssref/pr_t...decoration.asp

It can also be used as a span style as well.
mrmikel is offline   Reply With Quote
Old 03-09-2013, 01:37 PM   #3
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
That explains it, thanks for the info.
Ripplinger is offline   Reply With Quote
Old 03-09-2013, 01:54 PM   #4
jugaor
Enthusiast
jugaor began at the beginning.
 
jugaor's Avatar
 
Posts: 30
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
I think that you can use the <ins> ... </ins> tags for this task.
jugaor is offline   Reply With Quote
Old 03-09-2013, 02:12 PM   #5
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
I think you are right about <ins>, for now. But its purpose is not decorating text, but showing where text has been inserted, as texts of laws which have been revised. So if it works now, it might now work in the future.
mrmikel is offline   Reply With Quote
Old 03-09-2013, 02:43 PM   #6
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,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
As you say, <ins> is intended for inserted text, the fact that it's usually rendered as underlined by default should not be relied upon. If one wants underlined text, it's better to use <span> with a class, or maybe a styled <em> (emphasized), with or without class, if that's what the underlined text represents:

Code:
An <span class="uline">underlined</span> word.
An <em>underlined</em> word.
An <em class="uline">underlined</span> word.
All will look the same if you use these styles:

Code:
span.uline { text-decoration: underline }
em { text-decoration: underline; font-style: normal }
em.uline { text-decoration: underline; font-style: normal }
of course, the third is redundant if you also use the second, but it may be useful if you have some emphasized words in italics, for instance, and others underlined.
Jellby is offline   Reply With Quote
Old 03-09-2013, 08:20 PM   #7
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
Presumably, though it will offend the technically minded, you could future proof <ins> by listing it in the stylesheet, just as you have defined <em> above.

But if the document were one that needed to be searched, this trick could cause you grief. Things that you meant only to emphasize could be picked up as added phrases when that is not the case.

I can imagine a lover's note where you emphasized the phrases but the machine says they were all an afterthought!
mrmikel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ePub validation error help "attribute border is not declared for element img bmacklin ePub 12 11-06-2015 11:00 AM
"Error importing EPUB. EOCD not found. Not a ZIP archive? (Error Code 1068)" oren Android Devices 1 02-20-2012 04:10 AM
Unfinished Element error Vagabondista ePub 3 09-14-2010 12:12 PM


All times are GMT -4. The time now is 02:08 AM.


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