View Single Post
Old 04-03-2014, 09:19 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
standalone and the editors

Hi

One of the good things about switching from one editor to another (here from Sigil to the calibre's Editor) is that you have to look at some things you never looked at before and took for granted. This is about the xml declaration:
- The calibre Editor does not use willingly named entities like &bsp;
So it does not use a DOCTYPE, and does not even need to include a useless standalone="no" in the XML declaration. Fine.
- This behaviour triggers a mistake in Sigil's display. For a reason: Sigil accepts the use of named entities (among others  ), which requires a DOCTYPE, and even adds systematically a standalone element when you open a document with it.

It seems like when a couple is fighting for the same cover on a cold night... The latter is always right. Happily regexes and a clever option in the Editor help us find a solution.

I only have one question about it. It's important for French as a 100 000 word book may include close to 10 000 nbsp; or their utf-8 equivalents.

If I keep using &bsp; in my books, I will of course need to insert a DOCTYPE, but do I need also to insert a standalone="yes" element in the XML declaration?

Last edited by roger64; 04-03-2014 at 09:38 PM.
roger64 is offline   Reply With Quote