View Single Post
Old 08-08-2013, 03:33 PM   #21
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by gbm View Post
Bedlam Boyz by Ellen Guon in the Baen Free Library.
That book is missing the DOCTYPE in every chapter:

Code:
<?xml version='1.0' encoding='utf-8'?>
should be

Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

EDIT:
And to expand on that - if you set your preferences to NOT clean on open, then you will get the error messages. The book will still open in Sigil, allowing you to see your files are missing the DOCTYPE. And if you have Preview on, then you will see it is identifying a line with an nbsp entity as causing the error.

If you set your preferences to clean on open, then the DOCTYPE will be added for you and the files will display ok.

The issue is, as I think was mentioned previously, that your file contains some nbsp characters (353 of them I believe) which in 0.7.2 were probably converted to normal spaces, but in 0.7.3 those nbsp characters are now correctly being converted to the nbsp entity &nbsp; But since the files are missing the DOCTYPE header, Sigil does not know how to display that entity.

You can let Sigil clean the file for you. Or if you want to make sure nothing else is touched, you can open it without cleaning and then use Find&Replace to add the DOCTYPE line to every file.

Last edited by meme; 08-08-2013 at 04:00 PM.
meme is offline   Reply With Quote