![]() |
#1 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>
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. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It does not convert nbsp to normal spaces, it converts it to the nbsp unicode character. Open your epub in the calibre editor and position your cursor at one of those locations and look at the bottom right corner to see the name of the character.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
Ah, gotcha! So simple, and I really need to study the user guide.
Thanks for the clarification. And especially, thanks for making this great software! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Smarten punctuation | crutledge | Editor | 7 | 04-26-2014 02:02 AM |
Smarten punctuation only? | Psymon | Conversion | 3 | 10-20-2013 09:28 AM |
Smarten punctuation slows conversion | kakkalla | Calibre | 22 | 01-20-2011 07:22 AM |
Simpler Way to Smarten Punctuation | Rand Brittain | Calibre | 3 | 10-10-2010 08:16 PM |
Thanks for new 'Smarten Punctuation' feature | jackie_w | Calibre | 1 | 09-21-2010 02:53 PM |