Register Guidelines E-Books Search Today's Posts Mark Forums Read

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: 2,022
Karma: 2233955
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350: 3 Silver, 2 Blue!; Kobo Glo
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
Book Twiddler
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: 1,685
Karma: 1356787
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: 2,022
Karma: 2233955
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350: 3 Silver, 2 Blue!; Kobo Glo
That explains it, thanks for the info.
Ripplinger is offline   Reply With Quote
Old 03-09-2013, 01:54 PM   #4
jugaor
Junior Member
jugaor began at the beginning.
 
jugaor's Avatar
 
Posts: 2
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Nook Kindle
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
Book Twiddler
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: 1,685
Karma: 1356787
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: 5,789
Karma: 4027751
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
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
Book Twiddler
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: 1,685
Karma: 1356787
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11 09-20-2012 07:22 PM
"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 09:18 AM.


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