View Single Post
Old 12-02-2018, 01:57 AM   #88
konstantinus
Connoisseur
konstantinus began at the beginning.
 
Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
Quote:
Originally Posted by DNSB View Post
Edit: I looked at the epub file you attached. The non-breaking space used was the numeric (#160) form despite no Kobo spans or other evidence that it had been converted to kepub. I did a quick bulk replace in Sigil and tried a kepub conversion. The & nbsp entities were all converted back to numeric entities so I edited them back to & nbsp. I've attached that file here though the kepub seems to have been shrunk to k.
I stopped understanding the conversation, I'm sorry.
The file I attached contains non-breaking spaces.
Click image for larger version

Name:	1.jpg
Views:	456
Size:	182.8 KB
ID:	168121
After kepubify, it looks like this:
Click image for larger version

Name:	2.jpg
Views:	445
Size:	303.0 KB
ID:	168122
I do not need it, I need it to remain as in the first screenshot. With the help of changes respected geek1011 I do this, in powershell.
In cmd.exe after executing the command (no space after &):
Code:
kepubify-windows-64bit_2_3_1_2.exe --replace "& #160;|*"
Replacement occurs, but the space is normal, not a non-breaking space. In Windows, batch files are processed via cmd.exe, so I cannot automate the replacement process.
Quote:
Originally Posted by DNSB View Post
One other item is that before and after conversion, the file made both Flightcrew and epubcheck very unhappy. You might to check and fix those errors—garbage in, garbage out comes to mind. fb2mobi.py does not seem to do a very good job of generating epub code.
Thanks for the info, this is not a problem for me now.
konstantinus is offline   Reply With Quote