Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-20-2020, 05:05 PM   #46
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 496
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by geek1011 View Post
Yes, that should work, but note that you can repeat the CSS argument multiple times with a single string each, like "--css 'css1' --css 'css2'".
Ah, that's more readable. Thanks!

One last dumb question about --replace. Say I want to replace every instance of 'monospace' in the css with something like '"Courier Prime", monospace' instead (to work around the monospace font issue in kepubs). I know the argument is a string, but how do I escape the " characters in the string? Should I be using \ characters? Or something else?

Is this correct?

Code:
--replace "monospace|\"Courier Prime\", monospace"
I noticed that kepubify ate the " characters in my previous question (i.e. "kern" and "liga" became kern and liga in the output) so how do I preserve the " characters?

Last edited by rtiangha; 01-20-2020 at 05:21 PM.
rtiangha is offline   Reply With Quote
Old 01-20-2020, 05:15 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: 2,730
Karma: 6678757
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by rtiangha View Post
Ah, that's more readable. Thanks!

One last dumb question about --replace. Say I want to replace every instance of 'monospace' in the css with something like '"Courier Prime", monospace' instead (to work around the monospace font issue in kepubs). I know the argument is a string, but how do I escape the " characters in the string? Should I be using \ characters? Or something else?

Is this correct?

Code:
--replace "monospace|\"Courier Prime\", monospace"
Yes, that's correct, but note that replace only replaces inside the documents, not any external stylesheets.
geek1011 is offline   Reply With Quote
Old 01-20-2020, 05:16 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: 2,730
Karma: 6678757
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by JSWolf View Post
Embedded CSS could cause the HTML to become larger then the size required for the mobile ePub spec. Also, it's more difficult to edit the CSS.
But, the embedded CSS will never be large enough to do that. And, you aren't meant to edit the generated KEPUBs in general.
geek1011 is offline   Reply With Quote
Old 01-30-2020, 07:42 AM   #49
BaronMoe
Member
BaronMoe began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2019
Device: Kobo Libra
I downloaded the windows.exe, unblocked it, made sure windowsdefender isnt messing it. But when I run the exe, it just auto closes in a split second.
BaronMoe is offline   Reply With Quote
Old 01-30-2020, 07:48 AM   #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: 2,730
Karma: 6678757
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by BaronMoe View Post
I downloaded the windows.exe, unblocked it, made sure windowsdefender isnt messing it. But when I run the exe, it just auto closes in a split second.
You need to either run it from the command line or drag-drop your epub files onto it.
geek1011 is offline   Reply With Quote
Old 02-08-2020, 02:29 PM   #51
avresbo
Enthusiast
avresbo began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jan 2010
Device: Kobo Glo HD / Kobo Libra H2O
What´s the diference between a file converted with "kepubify" and another one that just has been manually renamed to xxx.kepub.epub?

There are a lot of <span class="koboSpan" id="kobo.x.x">. What are they for?

Thank you very much for your converter.
avresbo is offline   Reply With Quote
Old 02-08-2020, 04:52 PM   #52
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Well, one is an ePub, the other is a Kobo ePub.

If you don't know/get the difference, you probably don't need this?
NiLuJe is offline   Reply With Quote
Old 02-08-2020, 05:05 PM   #53
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,206
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by avresbo View Post
There are a lot of <span class="koboSpan" id="kobo.x.x">. What are they for?
Someone correct me if I'm wrong but I believe that without the kobospans a xxx.kepub.epub book
- won't keep track of where you're up to in the book
- won't let you highlight/annotate
- won't let you use the dictionaries
jackie_w is offline   Reply With Quote
Old 02-09-2020, 07:06 AM   #54
avresbo
Enthusiast
avresbo began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jan 2010
Device: Kobo Glo HD / Kobo Libra H2O
thank you for your answer
avresbo is offline   Reply With Quote
Old 02-19-2020, 06:00 PM   #55
jxall
Enthusiast
jxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beautyjxall does all things with Zen-like beauty
 
jxall's Avatar
 
Posts: 46
Karma: 32534
Join Date: Jan 2020
Device: Kobo Clara HD (patched, 100% kepubs); Calibre 5 (Win10)
How do I customize the options if I am using Kepubify on Windows?

(Specifically I just want to add
Code:
--calibre
to make files Calibre compatible)
jxall is offline   Reply With Quote
Old 02-19-2020, 07:51 PM   #56
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: 2,730
Karma: 6678757
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jxall View Post
How do I customize the options if I am using Kepubify on Windows?

(Specifically I just want to add
Code:
--calibre
to make files Calibre compatible)
You can either use it from the command line, or make a batch file like:

Code:
@cd %~dp0
@kepubify*.exe --calibre %*
geek1011 is offline   Reply With Quote
Old 03-03-2020, 12:31 AM   #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: 2,730
Karma: 6678757
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
kepubify v3.1.0

I've released kepubify 3.1.0.

This release adds:
  • seriesmeta: Support for updating the Series ID column (for the Series tab in 4.20.14601).
  • kepubify: A new --copy option which allows copying a specified file extension as-is (e.g. kepubify --output /path/to/kobo/kepubify --update --copy .pdf /path/to/books/).
In addition, an issue with kepubify where too many error messages may be shown if 1 or more errors have occurred has been fixed.
geek1011 is offline   Reply With Quote
Old 03-03-2020, 06:26 AM   #58
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,894
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by geek1011 View Post
kepubify v3.1.0

I've released kepubify 3.1.0.

This release adds:
  • seriesmeta: Support for updating the Series ID column (for the Series tab in 4.20.14601).
  • kepubify: A new --copy option which allows copying a specified file extension as-is (e.g. kepubify --output /path/to/kobo/kepubify --update --copy .pdf /path/to/books/).
In addition, an issue with kepubify where too many error messages may be shown if 1 or more errors have occurred has been fixed.
Does the new seriesmeta feature work for ePub already side loaded? If so, what is the command to do this? Thanks.
JSWolf is offline   Reply With Quote
Old 03-03-2020, 07:56 AM   #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: 2,730
Karma: 6678757
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by JSWolf View Post
Does the new seriesmeta feature work for ePub already side loaded? If so, what is the command to do this? Thanks.
Yes. Just run seriesmeta the same way as you would for anything else.
geek1011 is offline   Reply With Quote
Old 03-04-2020, 02:00 PM   #60
strindberg
Junior Member
strindberg began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2011
Device: Kindle
I have a couple of epub files that refuse to convert using kepubify. The problem seems to be that they contain too many files. Is this a known problem?

Example output:

❯*kepubify -i -v --smarten-punctuation .
Kepubify 3.0.0

[ 1/ 1] Converting Mastering PostgreSQL 9.6 - Hans-Jurgen Schonig.epub
=> Mastering PostgreSQL 9.6 - Hans-Jurgen Schonig.kepub.epub
Error: transform content: open content file "/var/folders/0k/j_n2m4x1489ck97y60vbkqvm0000gn/T/kepubify415134906/unpacked/b9a63f89-743e-4c02-a803-d3eddf192558.xhtml": open /var/folders/0k/j_n2m4x1489ck97y60vbkqvm0000gn/T/kepubify415134906/unpacked/b9a63f89-743e-4c02-a803-d3eddf192558.xhtml: too many open files

1 total: 0 converted, 0 skipped, 1 errored

Errors:
"Mastering PostgreSQL 9.6 - Hans-Jurgen Schonig.epub"
=> "Mastering PostgreSQL 9.6 - Hans-Jurgen Schonig.kepub.epub"
Error: <nil>
strindberg is offline   Reply With Quote
Reply

Tags
conversion, epub, kepub, kepubify


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kepubify 2.0 - A standalone tool to convert ePubs to Kepubs geek1011 Kobo Reader 149 10-03-2020 04:12 PM
kepubify - A standalone tool to convert ePubs into Kobo ePubs geek1011 Kobo Reader 114 03-04-2018 10:30 AM
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) SJC-Caron ePub 18 04-21-2016 11:10 AM
Kindle Comic Converter can now create KEPUB files AcidWeb Kobo Reader 16 06-28-2015 01:14 PM
Aspose standalone converter Word to Epub ErikG ePub 1 05-25-2011 02:13 AM


All times are GMT -4. The time now is 07:00 AM.


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