View Single Post
Old 01-04-2016, 06:28 AM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Calibre Polish (Smarten Punctuation) Ate My NBSP

I created an epub in Sigil, which had many nbsp (non-breaking space) entities.

The header included a Doctype declaration, as follows:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="../Styles/pagestyles.css" rel="stylesheet" type="text/css"/>
    <link href="../Styles/main.css" rel="stylesheet" type="text/css"/>
    <title>Unknown</title>
    </head>
  <body>
I loaded the epub into Calibre (version 2.28), called Polish, and selected to "Smarten Punctuation", no other tasks. [EDIT TO ADD: Using Calibre PORTABLE version 2.28 on Win8, if that matters]


When Polish was finshed, it had converted all the nbsp entities to regular spaces, and deleted the Doctype declaration out of the html header:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link href="../Styles/pagestyles.css" rel="stylesheet" type="text/css"/>
    <link href="../Styles/main.css" rel="stylesheet" type="text/css"/>
    <title>Unknown</title>
    </head>
  <body>

What did I do wrong? Did I have an error in my header information?

(Incidentally, the Smarten Punctuation is a wonderful too. I've never had nbsp in the epub to be smartened before, so never had this problem. )


Thanks for any advice.

Last edited by GrannyGrump; 01-04-2016 at 06:41 AM.
GrannyGrump is offline   Reply With Quote