04-18-2014, 05:43 AM | #1 |
Village idiot
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Why put deprecated element <u> on toolbar?
I use the calibre editor to clean up my epubs.
In my last epub I used the toolbar a lot, especially the underline element <u>. Little did I know that this element is deprecated and gives you an error when validation your epub. Why are there deprecated elements on the toolbar? |
04-18-2014, 06:34 AM | #2 |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because whatever nincompoops deprecated it for HTML 4 were overridden and it is no longer deprecated for HTML 5.
|
Advert | |
|
04-18-2014, 06:46 AM | #3 | ||
Village idiot
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Thank you for your answer.
But I get an error message when I validate my epub. All my instances of Code:
<p><u>some tekst</u></p> So you're saying the validation is incorrect and I should just ignore it? Quote:
Quote:
|
||
04-18-2014, 06:57 AM | #4 |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes. epub validation is an entirely pointless waste of time.
|
04-18-2014, 07:01 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
Advert | |
|
04-18-2014, 07:02 AM | #6 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
04-18-2014, 07:02 AM | #7 | |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
No, there wont. No one in their right mind will ever create a reader that ignores widely used HTML constructs just to comply with a spec, and that too an obsolete spec. Last edited by kovidgoyal; 04-18-2014 at 07:06 AM. |
|
04-18-2014, 07:05 AM | #8 |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What you need for that is a tool that checks the book for known causes of error. Not a mindless tool that validates it against a DTD. The only reason epub validation exists at all is because, it is, quite literally, the simplest thing to program a tool that check HTML against a DTD and pops up lots of meaningless errors, as opposed to writing a tool that intelligently checks the HTML for things that are known to be problematic in real world usage.
|
04-18-2014, 07:13 AM | #9 |
Village idiot
Posts: 157
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
|
Allright, thank you! I'll just leave the <u>'s where they are then.
|
04-18-2014, 08:37 AM | #10 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
04-18-2014, 08:45 AM | #11 | |
Software Developer
Posts: 189
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Well, as far as I've heard, Calibre doesn't support EPUB3 creation (yet?), so you're limited to XHTML 1.1 of EPUB2. Even if Calibre supports EPUB3 in the future, if you don't disable EPUB2 creation, you have to comply with XHTML 1.1 of EPUB2.
I find your position quite scary, because there's more software that works with EPUB files than just e-reading devices, and you deliberately break them by producing invalid EPUB files. So I don't wonder anymore why users of Calibre frequently run into problems when they try to use their Calibre files in serious processing software or services. Quote:
Last edited by skreutzer; 04-18-2014 at 09:27 AM. |
|
04-18-2014, 09:22 AM | #12 | |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
04-18-2014, 09:30 AM | #13 |
Software Developer
Posts: 189
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
So you object to the claim that there is other software for processing EPUB than e-reading devices?
|
04-18-2014, 09:32 AM | #14 |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Really? You picked the most obviously true fragment of your post to ask me if I object to it? I doubt that kind of rhetorical trick will work on anyone other than a politician.
Dig deep, you can do better than that. |
04-18-2014, 09:39 AM | #15 |
Software Developer
Posts: 189
Karma: 89000
Join Date: Jan 2014
Location: Germany
Device: PocketBook Touch Lux 3
|
Sorry, I'm not a native English speaker, so I don't get what your impression is from the words I've wrote. But as far as I understand, you seem to acknowledge that there are many uses for EPUB files. So I can't imagine why it shouldn't be a good concept to validate EPUB input files before further processing in order to make sure that the code doesn't run into unexpected constructs or even non-well-formed XML. It's actually quite common for all kinds of XML applications with standardized or custom XML Schema format specifications, because XML validation can be done off-the-shelf with programming libraries and it clearly points to the various errors in a XML input file, which need to be fixed anyway in order to produce quality output that can be used as input for other applications in the future.
Edit: I really want to encourage everybody to get familiar with the process behind EPUB standardization, see “Introducing ePUB3” by Bill McCoy and “EPUB3: Not Your Father's EPUB” by Bill Kasdorf if you haven't already. Last edited by skreutzer; 04-18-2014 at 10:00 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil 0.7.2 is deprecated? | Gregg Bell | Sigil | 12 | 04-01-2014 01:17 PM |
Deprecated Plugins | BetterRed | Plugins | 2 | 03-17-2014 05:41 AM |
--output-format deprecated? | Robotech_Master | Calibre | 6 | 01-03-2011 10:07 PM |
LrfAppender: IE toolbar similar to "Toolbar for Librie" | mumurik | LRF | 1 | 10-13-2009 04:01 AM |
LrfAppender: IE toolbar similar to "Toolbar for Librie" | mumurik | Sony Reader Dev Corner | 1 | 10-06-2009 03:33 AM |