View Single Post
Old 01-11-2016, 09:17 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,687
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Clancolin View Post
I'm trying to convert PDFs to ePub, but automatic converters produce tons of extraneous code . I'm using Sigil and checking my hand-code with Flightcrew but also trying to comply with accessibility features as much as possible.
Quote:
Originally Posted by Clancolin View Post
[...] but if I ignore namespace doctypes in html5 and use "<!DOCTYPE html>", that produces multiple different types of errors from Flightcrew.
Flightcrew is an ePub2 validator and will display error messages for all ePub3 specific attributes. (ePubCheck will display similar error messages.)

Quote:
Originally Posted by Clancolin View Post
P.S. I did have a subsidiary question for Sigil buffs: when making a "New" ePub2 page in Sigil (version 0.9.2), even with no other code entered FlightCrew complains about missing "language" and "title" elements. What's the best way to sort that out?
Simply press F8, enter a book title and click OK. That'll take care of that error message.

Until the next Sigil version becomes available, I'd recommend the following ePub3 workflow:

1. Change the default doctype in XHTML files

from:

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
to:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
This'll allow you to use Book View/Preview with your books.

2. Once you've finished your ePub2 book export it with the ePub3 plugin.

3. Validate your ePub3 with pagina EPUB-Checker and preview it in ADE 4.5, Azardi or Gitden Reader.
Doitsu is offline   Reply With Quote