Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3969

Calibre Polish (Smarten Punctuation) Ate My NBSP

$
0
0
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.

Viewing all articles
Browse latest Browse all 3969

Trending Articles