![]() |
#76 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
|
![]() |
![]() |
![]() |
#77 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#78 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
Yes, the replacement is now happening, but in the output file is a regular space, although I copy the non-breaking space into the command.
![]() |
![]() |
![]() |
![]() |
#79 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 900
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
|
![]() |
![]() |
![]() |
#80 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
|
![]() |
![]() |
Advert | |
|
![]() |
#81 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 900
Karma: 270670
Join Date: Jun 2016
Device: Kobo
|
oops
geek1011, in places the replacement, it adds </span><span class="koboSpan" id="kobo.9.3"> after the space ![]() Last edited by Semwize; 11-27-2018 at 01:40 PM. |
![]() |
![]() |
![]() |
#82 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
cmd when executing the command replaces the non-breaking space with the usual one. PowerShell works correctly, but when I make a .bat file with powershell launch, the launch is performed via cmd and the command is not sent correctly. In addition, kepubify with * .epub does not work in either cmd or powershell. A simple task, but now I don’t understand how to perfom it in windows.
|
![]() |
![]() |
![]() |
#83 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,481
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
@echo off for %%f in (*.epub) do kepubify.exe "%%f" pause Last edited by DNSB; 12-01-2018 at 02:40 AM. Reason: Typos: a never ending resource... |
|
![]() |
![]() |
![]() |
#84 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
I wrote about the problem with .epub for information, of course I can process the entire directory or use the method you suggest. The main problem is that all this is done through cmd.exe, as a result, the symbol of an unbreakable space changes to a simple space. Everything works fine in PowerShell, but I do not want to use the command line, I want to click / drag the file.
|
![]() |
![]() |
![]() |
#85 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,481
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
BTW, IMNSHO, when you write about a problem, including an image of a method that will not work is not the best way to demonstrate the issue. Code:
C:\Users\David\Desktop\oeb>kepubify Convtest Kepubify v2.3.1: Converting 3 books Output folder: C:\Users\David\Desktop\oeb [1/3] Converting 'C:\Users\David\Desktop\oeb\Convtest\The Island Deception - Dan Koboldt.epub' [2/3] Converting 'C:\Users\David\Desktop\oeb\Convtest\The Rogue Retrieval - Dan Koboldt.epub' [3/3] Converting 'C:\Users\David\Desktop\oeb\Convtest\On Basilisk Station - David Weber.epub' 3 total, 3 converted, 0 skipped, 0 erroredkepubify convtest Code:
PS C:\Users\David\desktop\oeb> .\kepubify Convtest Kepubify v2.3.1: Converting 3 books Output folder: C:\Users\David\desktop\oeb [1/3] Converting 'C:\Users\David\desktop\oeb\Convtest\On Basilisk Station - David Weber.epub' [2/3] Converting 'C:\Users\David\desktop\oeb\Convtest\The Island Deception - Dan Koboldt.epub' [3/3] Converting 'C:\Users\David\desktop\oeb\Convtest\The Rogue Retrieval - Dan Koboldt.epub' 3 total, 3 converted, 0 skipped, 0 errored Last edited by DNSB; 12-01-2018 at 02:31 PM. |
|
![]() |
![]() |
![]() |
#86 |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
Here is the book file.
Диккенс Чарльз - .epub It contains non-breaking spaces: After conversion, they are replaced by & # 160; I managed to leave them in their original form only with the help of the command in powershell. Maybe there really is a problem in the system settings, I don’t know. P.S. The presence of characters & # 160; in the text leads to the following result: Last edited by konstantinus; 12-01-2018 at 04:29 PM. |
![]() |
![]() |
![]() |
#87 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,481
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I did some testing with a file which has numerous non-breaking spaces and after conversion to kepub, it didn't matter if I had the character or numeric entity as far as how the display looked. I'll double check this with the book you attached but suspect I will see the same behaviour. 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. 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. Last edited by DNSB; 12-01-2018 at 10:38 PM. |
|
![]() |
![]() |
![]() |
#88 | |
Connoisseur
![]() Posts: 54
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Forma
|
Quote:
The file I attached contains non-breaking spaces. After kepubify, it looks like this: 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;|*" Thanks for the info, this is not a problem for me now. |
|
![]() |
![]() |
![]() |
#89 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,481
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The epub you attached is filled with non-breaking spaces. Sadly, they are the numeric entity form (#160) and not the character entity form (nbsp
![]() Have you checked on the issues with non-breaking spaces in Kobo epub files as described in the thread I linked to? Not worrying about errors in your epub? If you have errors, it is hard to say if one of those errors is the not cause of your issues. |
![]() |
![]() |
![]() |
#90 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,481
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
When I was playing with Konstantius's ebook, I noticed one oddity in the converted kepubs when the end of lines were disappearing. The original code from my test file read:
Code:
<?xml version="1.0" encoding="utf-8"?> <!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> <title>Non-breaking space</title> </head> <body> <h3>This is a test file laden with non-breaking spaces</h3> <p> </p> <p>The first line was created with the character entities.</p> <p>— — — — — — — — — — — — — — — </p> <p> </p><p> </p> <p> </p> <p> </p> <p>The second line was created with numeric entities.</p> <p>— — — — — — — — — — — — — — — </p> <p> </p> </body> </html> Code:
<?xml version="1.0" encoding="utf-8"?><!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> <title>Non-breaking space</title> <style type="text/css">div#book-inner{margin-top: 0;margin-bottom: 0;}</style></head> <body><div class="book-columns"><div class="book-inner"><h3><span class="koboSpan" id="kobo.0.2">This is a test file laden with non-breaking spaces</span></h3><p><span class="koboSpan" id="kobo.1.1">*</span></p><p><span class="koboSpan" id="kobo.2.1">The first line was created with the character entities.</span></p><p><span class="koboSpan" id="kobo.3.1">—*—*—*—*—*—*—*—*—*—*—*—*—*—*—*</span></p><p><span class="koboSpan" id="kobo.4.1">*</span></p><p><span class="koboSpan" id="kobo.5.1">*</span></p><p><span class="koboSpan" id="kobo.6.1">*</span></p><p><span class="koboSpan" id="kobo.7.1">*</span></p><p><span class="koboSpan" id="kobo.8.1">The second line was created with numeric entities.</span></p><p><span class="koboSpan" id="kobo.9.1">***************</span></p><p><span class="koboSpan" id="kobo.10.1">*</span></p></div></div></body></html> |
![]() |
![]() |
![]() |
Tags |
conversion, epub, kepub, kepubify, kobo |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
kepubify - A standalone tool to convert ePubs into Kobo ePubs | geek1011 | Kobo Reader | 114 | 03-04-2018 10:30 AM |
Standalone ebook-convert | kido.resuri | Conversion | 3 | 01-28-2017 06:55 PM |
Kepubs vers Epubs | lohtse | Kobo Reader | 28 | 11-13-2013 06:58 PM |
Pros and Cons of using Kepubs vs ePubs | kaufman | Kobo Reader | 8 | 04-30-2013 04:41 PM |
[Kobo Glo] kepubs and series (or: some kepubs invisible for Calibre) | beedaddy | Devices | 3 | 01-14-2013 02:05 AM |