The utf-8 character for nbsp is displayed by the calibre Editor as a small orange rectangle. One can count it separately from the "traditional" and perform a search/replace from one to another.
Take an average EPUB made with Sigil with named entities and DOCTYPE: Opening it with the calibre's Editor, if you select "fix html" or "Beautify", or if you merge some chapters, the DOCTYPE disappears and the named entities are replaced by the orange rectangle. The standalone element disappears also from the XML declaration.
It's possible to come back to the initial situation using some regexes but it is still unclear for me what to write exactly in the XML declaration: the choice being between standalone='yes' or nothing.
Last edited by roger64; 04-04-2014 at 09:38 AM.
|