Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2018, 11:29 AM   #46
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
When I use kepubify, I drag and drop the .epub file onto kepubify.exe into windows, as a result the non-breaking space character & #160; is added to the .kepub file. Because of it, Russian hyphens work incorrectly in my kobo - the last letter is transferred to the next line. Can I avoid this?
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	135
Size:	14.4 KB
ID:	166870  

Last edited by konstantinus; 10-12-2018 at 01:09 PM.
konstantinus is offline   Reply With Quote
Old 10-12-2018, 01:56 PM   #47
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Quote:
Originally Posted by konstantinus View Post
When I use kepubify, I drag and drop the .epub file onto kepubify.exe into windows, as a result the non-breaking space character & #160; is added to the .kepub file. Because of it, Russian hyphens work incorrectly in my kobo - the last letter is transferred to the next line. Can I avoid this?
I would need to see the original epub file to figure this out. Can you PM or email it to me?
geek1011 is offline   Reply With Quote
Advert
Old 10-12-2018, 03:35 PM   #48
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
I received your PM. The issue is that the spaces are actually non-breaking spaces. See the screenshot (I searched for ordinary spaces).

The reason why the book worked fine before the conversion is because some parsers would ignore that was, as it should be escaped. Kepubify will try to make non-compliant html compliant (and as a result, converts nbsp chars to their escaped equivalent).
Attached Thumbnails
Click image for larger version

Name:	spaces.png
Views:	207
Size:	568.7 KB
ID:	166873  
geek1011 is offline   Reply With Quote
Old 10-12-2018, 03:44 PM   #49
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by geek1011 View Post
...The issue is that the spaces are actually non-breaking spaces...
Thanks for the explanation, I will look for a way to fix it.
konstantinus is offline   Reply With Quote
Old 10-12-2018, 03:47 PM   #50
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Quote:
Originally Posted by konstantinus View Post
Thanks for the explanation, I will look for a way to fix it.
I could add an option to kepubify to do a find and replace on all files. I'll fix a copy of your epub and send it to you.
geek1011 is offline   Reply With Quote
Advert
Old 10-17-2018, 08:08 AM   #51
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by geek1011 View Post
I could add an option to kepubify to do a find and replace on all files. I'll fix a copy of your epub and send it to you.
I have now solved my problem by removing all non-breaking spaces from the .epub. But this is wrong, they should be in these places. Is it possible to make kepubify not replace these characters with & # 160; ? For example, an additional option? Although I still do not know how kobo will react to these characters in .kepub. In .epub everything is correct.
konstantinus is offline   Reply With Quote
Old 10-23-2018, 06:20 PM   #52
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Quote:
Originally Posted by konstantinus View Post
I have now solved my problem by removing all non-breaking spaces from the .epub. But this is wrong, they should be in these places. Is it possible to make kepubify not replace these characters with & # 160; ? For example, an additional option? Although I still do not know how kobo will react to these characters in .kepub. In .epub everything is correct.
Do you want me to add an option?
geek1011 is offline   Reply With Quote
Old 10-23-2018, 06:21 PM   #53
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Kepubify now includes a Debian/Ubuntu package repository for simpler installation. See https://deb.geek1011.net/packages/stable/ for installation instructions.
geek1011 is offline   Reply With Quote
Old 10-23-2018, 09:16 PM   #54
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by geek1011 View Post
Do you want me to add an option?
If possible.
konstantinus is offline   Reply With Quote
Old 11-04-2018, 03:09 PM   #55
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
I have released kepubify v0.3.1.

This release includes a workaround for the issues with kepub stylesheets in firmware 4.11.11976. See this post for more information.
geek1011 is offline   Reply With Quote
Old 11-22-2018, 12:20 PM   #56
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by geek1011 View Post
Do you want me to add an option?
Will you do this? Would be very grateful if yes.
konstantinus is offline   Reply With Quote
Old 11-22-2018, 07:27 PM   #57
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Quote:
Originally Posted by konstantinus View Post
Will you do this? Would be very grateful if yes.
Yes. Sorry about the delay, I forgot about it earlier. I'll do it next week.
geek1011 is offline   Reply With Quote
Old 11-23-2018, 02:39 AM   #58
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 5,558
Karma: 25303977
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, Tolino epos
Quote:
Originally Posted by konstantinus View Post
I have now solved my problem by removing all non-breaking spaces from the .epub. But this is wrong, they should be in these places. Is it possible to make kepubify not replace these characters with & # 160; ? For example, an additional option? Although I still do not know how kobo will react to these characters in .kepub. In .epub everything is correct.
One problem is that the & #160; IS a non-breaking space. In an epub2, it is treated exactly the same as a &nbsp ;. With an epub3, named character entities — such as &nbsp ; for non-breaking spaces and &mdash ; for em dashes — are no longer supported though you can use them after defining them. This means using &nbsp ; should be avoided though the numeric entities for a non-breaking space either &#x000A0 ; or & #160; are allowed. The only exceptions are the quotation mark ", apostrophe ', ampersand &, less-than < and greater-than > since they must be escaped in the content and metadata though some sites seem to indicate that even for these, using the numeric entities is preferred.

Since a kepub is rendered on a Kobo ereader using an epub3 compliant (more or less) renderer, using named character entities should be avoided.

Last edited by DNSB; 11-23-2018 at 02:45 AM.
DNSB is offline   Reply With Quote
Old 11-24-2018, 06:25 PM   #59
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 1,134
Karma: 2582511
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Kobo Aura Edition 2, Moto G5
Quote:
Originally Posted by konstantinus View Post
Will you do this? Would be very grateful if yes.
Done. I haven't released it yet, as I'm in the middle of a refactor, but here is a build with the new replace option.
geek1011 is offline   Reply With Quote
Old 11-25-2018, 01:01 PM   #60
konstantinus
Enthusiast
konstantinus began at the beginning.
 
Posts: 39
Karma: 10
Join Date: May 2018
Device: Kobo Glo HD, Kobo Aura One
Quote:
Originally Posted by geek1011 View Post
Done. I haven't released it yet, as I'm in the middle of a refactor, but here is a build with the new replace option.
Do I need to use this option to get the non-breakable space character that was in the original epub and delete the "& # 160;"?
konstantinus is offline   Reply With Quote
Reply

Tags
conversion, epub, kepub, kepubify, kobo

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:05 PM.


MobileRead.com is a privately owned, operated and funded community.