Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2011, 02:53 PM   #1
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
HTML recipe output

The absence of a <!doctype...> declaration in HTML output for a recipe puts IE9 into quirks mode. I don't see any way to control this via the recipe API. Is this something that accomodated? IE9 quirks mode is so antiquated a lot of CSS doesn't work the way it should. I'm thinking ahead to KF8 which is HTML5/CSS3 (apparently) and wondering if the absence of the doctype will be an issue.
nickredding is offline   Reply With Quote
Old 11-05-2011, 10:12 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Why do we care about IE9? The HTML output from the recipe system is not guaranteed to be any specific thing (it depends on the HTML offered by the source website, so adding a doctype isn't really feasible).
kovidgoyal is offline   Reply With Quote
Advert
Old 11-05-2011, 11:19 PM   #3
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Quote:
Originally Posted by kovidgoyal View Post
Why do we care about IE9? The HTML output from the recipe system is not guaranteed to be any specific thing (it depends on the HTML offered by the source website, so adding a doctype isn't really feasible).
Well, we don't care specifically about IE9. But we should care about ereaders that want to be HTML/CSS compliant, and they might look at doctype to decide how to render the content.

The point is, as far as I can see calibre DELETES the doctype of the source. The easiest resolution (and most general) would be to retain the doctype.
nickredding is offline   Reply With Quote
Old 11-05-2011, 11:39 PM   #4
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 327
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
One other thing along the same lines--news.py currently replaces the HTML5 tags ('article', 'aside', 'header', 'footer', 'nav', 'figcaption', 'figure', 'section') with 'div' -- something which should probably be controlled by a recipe API parameter in the near future.
nickredding is offline   Reply With Quote
Old 11-06-2011, 01:12 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sure, if it turns out that it is necessary for something, changes could always be made. Note that currently no reader that I know of requires a doctype. EPUB (the only current format where this would be relevant), requires XHTML 1.1 so the doctype is superfluous.

Ebook reader application typically dont have to care about the long legacy of html soup present on the larger web.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTMLZ - Single HTML File Output user_none Calibre 22 05-19-2011 02:33 AM
Calibre Recipe HTML content differs from raw html of index.html. krunk Calibre 4 09-20-2010 09:48 PM
Mixed fonts in Calibre output (HTML to anything) jasonb57 Calibre 2 09-06-2010 11:01 AM
Is it possible to specify output format in recipe file madcow_x2 Calibre 3 01-07-2010 04:10 PM
Is there an intermediate html output? Seabound Calibre 2 01-27-2009 01:46 AM


All times are GMT -4. The time now is 04:51 AM.


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