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 09-30-2020, 10:52 AM   #166
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,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by steveparry View Post
Using "kepubify --inplace <path to epub>" puts the output in my Home folder, so doesn't work.

Using DNSB's suggestion doesn't work either. See below:

" steveparry@MacBook-Pro ~ % kepubify -o ./Desktop/Kepubifiying/Awaiting Conversion/ /Users/steveparry/Desktop/Kepubifiying/Awaiting\ Conversion/The\ Rarest\ of\ the\ Rare\ Vanishing\ Animals\,\ Timeless\ Worlds\ by\ Diane\ Ackerman.epub
Error: scan input "Conversion/": stat Conversion/: no such file or directory
steveparry@MacBook-Pro ~ %

Nb Kepubify is in my Applications folder.

Steve
I meant to use it with DNSB's suggestion of the --output option. If you set the output directory to the same folder as topmost input folder and use the --inplace option, the files will be converted to the same directory they were originally in, just with the .kepub.epub extension. Note that for this to work, you need to specify input folders, not files.
geek1011 is offline   Reply With Quote
Old 09-30-2020, 11:48 AM   #167
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: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by steveparry View Post
Using "kepubify --inplace <path to epub>" puts the output in my Home folder, so doesn't work.

Using DNSB's suggestion doesn't work either. See below:

" steveparry@MacBook-Pro ~ % kepubify -o ./Desktop/Kepubifiying/Awaiting Conversion/ /Users/steveparry/Desktop/Kepubifiying/Awaiting\ Conversion/The\ Rarest\ of\ the\ Rare\ Vanishing\ Animals\,\ Timeless\ Worlds\ by\ Diane\ Ackerman.epub
Error: scan input "Conversion/": stat Conversion/: no such file or directory
steveparry@MacBook-Pro ~ %

Nb Kepubify is in my Applications folder.

Steve
Interesting since it works for me. See the two attached images for the terminal session and the input/output directory. One item is I think you will need to escape the space in "Awaiting Conversion" i.e.

-o ./Desktop/Kepubifiying/Awaiting\ Conversion/

One reason why I still like using _ in names. Awaiting_Conversion as an example.
Attached Thumbnails
Click image for larger version

Name:	terminal_01.png
Views:	184
Size:	38.3 KB
ID:	182356   Click image for larger version

Name:	folder_02.png
Views:	165
Size:	44.6 KB
ID:	182357  
DNSB is offline   Reply With Quote
Advert
Old 09-30-2020, 12:16 PM   #168
steveparry
Connoisseur
steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.
 
Posts: 70
Karma: 513524
Join Date: Dec 2019
Device: none
David

Thank you so much - that fixed it.

Steve
steveparry is offline   Reply With Quote
Old 09-30-2020, 12:19 PM   #169
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,790
Karma: 13412766
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro
--inplace doesn't do what one is likely to guess that it does:

> -i, --inplace Don't add the _converted suffix to converted files and directories
twowheels is offline   Reply With Quote
Old 10-02-2020, 11:37 AM   #170
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,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
kepubify v3.1.5

I've released kepubify 3.1.5.

This release skips text in svg/math tags during content transformation.
geek1011 is offline   Reply With Quote
Advert
Old 10-02-2020, 02:54 PM   #171
steveparry
Connoisseur
steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.
 
Posts: 70
Karma: 513524
Join Date: Dec 2019
Device: none
FAO twowheels: I just downloaded Patrick's latest version after deleting the previous one. When I do those two commands you mention above Terminal asks for my password which I input. Then I go back to my Downloads folder and the (now executable) file is gone... I can't find it on my Mac anywhere. You said the second command would put Kepubify "where executables are expected to be found"... Where is that? It's definitely not in the most obvious place; the Applications folder.

Nb. I tested the command lines to convert an epub and it works dumping the .kepub.epub file in my Home folder. When converting I always drag the file into the Terminal window after the command rather than typing out its location which is extremely tedious. But I keep my books in many different folders in Dropbox. Is there some generic text I can add in the command line to place it in the same folder as its originator?

Last edited by steveparry; 10-02-2020 at 03:14 PM.
steveparry is offline   Reply With Quote
Old 10-02-2020, 03:41 PM   #172
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: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by steveparry View Post
FAO twowheels: I just downloaded Patrick's latest version after deleting the previous one. When I do those two commands you mention above Terminal asks for my password which I input. Then I go back to my Downloads folder and the (now executable) file is gone... I can't find it on my Mac anywhere. You said the second command would put Kepubify "where executables are expected to be found"... Where is that? It's definitely not in the most obvious place; the Applications folder.
From terminal, type echo $PATH

This will show you the path on which MacOS will automatically search for an executable. You should see /usr/local/bin in the list of : separated entries. Since you seem to have run kepubify from your Applications directory, I suspect you will find :/Applications as the last entry in the list.

type cd /usr/local/bin
type ls k*

and you should see kepubify there.

As for placing the outfile in the same directory as the infile, perhaps an enhancement request for that as an option?
DNSB is offline   Reply With Quote
Old 10-02-2020, 03:59 PM   #173
steveparry
Connoisseur
steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.steveparry ought to be getting tired of karma fortunes by now.
 
Posts: 70
Karma: 513524
Join Date: Dec 2019
Device: none
DNSB: I can't see the Kepubify file anywhere on my Mac - it's not in Applications. Typing the above I get:

Last login: Fri Oct 2 20:37:25 on ttys000
steveparry@MacBook-Pro ~ % echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
steveparry@MacBook-Pro ~ % cd /usr/local/bin
steveparry@MacBook-Pro bin % ls k*
kepubify
steveparry@MacBook-Pro bin %


Steve
steveparry is offline   Reply With Quote
Old 10-02-2020, 06:24 PM   #174
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: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by steveparry View Post
DNSB: I can't see the Kepubify file anywhere on my Mac - it's not in Applications. Typing the above I get:

Last login: Fri Oct 2 20:37:25 on ttys000
steveparry@MacBook-Pro ~ % echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
steveparry@MacBook-Pro ~ % cd /usr/local/bin
steveparry@MacBook-Pro bin % ls k*
kepubify
steveparry@MacBook-Pro bin %


Steve
And there it is. In one of the places that a Unix based OS would place an executable. Even things like the directory/file lister ls is in one of those directories. I suppose you could rename it to Kepubify from kepubify but I can't see any good reason to bother.

If you do a cd / in Terminal and then type ls, you should see the 6 directories you see when you open your hard drive plus a collection of other directories you don't normally see in the GUI.
DNSB is offline   Reply With Quote
Old 10-02-2020, 08:05 PM   #175
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,790
Karma: 13412766
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro
Steve,

The mv command moved the file from your Downloads folder to /usr/local/bin. As David pointed out, you were able to see it with the ls command (list files), which you showed with your pasted output -- see how kepubify shows up even though you told it to list k*? (which means all files that start with lowercase k, and anything after that).

Now that it's in /usr/local/bin, you don't need to care where it's at anymore, since it's in a folder listed in your PATH variable (which David gave instructions on how to view). So, now you can just type kepubify from anywhere, in any folder, and it'll just run. So, you can use the cd command (change directory) to change to the directory that holds the epub files that you want to convert, and then convert them, per my instructions above, where I gave the instructions on how to change to the Downloads folder.


EDIT: If just typing kepubify anywhere in the terminal doesn't run and give you the Usage instructions, then double check that you did the chmod command correctly by typing:

ls -l /usr/local/bin/kepubify

You should see something like:

-rwxr-xr-x 1 username username 40 May 7 17:37 /usr/local/bin/kepubify

The exact content of that result doesn't matter as long as the first part has an rwx, not dashes where the r and x are... if you don't see an r and x in those first 4 positions, then type:

sudo chmod +rx /usr/local/bin/kepubify

(it'll ask for your password, that's expected)

...then it'll run just fine per the instructions given above.

Last edited by twowheels; 10-02-2020 at 08:09 PM.
twowheels is offline   Reply With Quote
Old 10-09-2020, 03:27 AM   #176
jugaor
Enthusiast
jugaor began at the beginning.
 
jugaor's Avatar
 
Posts: 30
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
Quote:
Originally Posted by JSWolf View Post
There is a bug in the KePubify.

__________________________________________________
Quote:
Originally Posted by jackie_w View Post
Can I make a suggestion that before you release your new version of KTE that you correct the included hyphenation.css file.

The existing file has always contained invalid webkit CSS properties:
Code:
-webkit-hyphenate-after: 3;
-webkit-hyphenate-before: 3;
-webkit-hyphenate-lines: 2;
For kepubs those property names should be:
Code:
-webkit-hyphenate-limit-after: 3;
-webkit-hyphenate-limit-before: 3;
-webkit-hyphenate-limit-lines: 2;
I don't use the last one, -webkit-hyphenate-limit-lines, myself but the first 2 seem to respond OK when you change the values.
__________________________________________________

Yes this quote if from the KoboTouchExtended driver thread but KePubify uses the same incorrect code.
Hi everyone.
I just wanted to remind this bug report.
The latest kepubify (3.1.5) continues to generate the first three lines.

Thank you very much.
jugaor is offline   Reply With Quote
Old 10-09-2020, 12:19 PM   #177
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
I also use that CSS in the KePub plugins, but a compliant user agent should ignore unknown properties. Is that not happening?

I wonder if the older ones were (incorrectly) used or recommended at one time and now the newer property names are used?
jgoguen is offline   Reply With Quote
Old 10-09-2020, 12:54 PM   #178
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: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
From what I can tell from a quick search on a couple of CSS sites is that:
Quote:
-webkit-hyphenate-after: 3;
-webkit-hyphenate-before: 3;
-webkit-hyphenate-lines: 2;
are considered as obsolete and should be replaced by:

Quote:
-webkit-hyphenate-limit-after: 3;
-webkit-hyphenate-limit-before: 3;
-webkit-hyphenate-limit-lines: 2;
Sadly, the W3C stylesheet validator calls all them unknown vendor extensions.
DNSB is offline   Reply With Quote
Old 10-09-2020, 05:00 PM   #179
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: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can Kepubify have an options to dump the third line for hyphenation? I don't see a need for it.
JSWolf is offline   Reply With Quote
Old 10-11-2020, 02:21 AM   #180
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,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by JSWolf View Post
Can Kepubify have an options to dump the third line for hyphenation? I don't see a need for it.
You can add the CSS with the --css option.
geek1011 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 09:34 AM.


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