04-25-2014, 07:07 PM | #16 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Just saw your edit.
|
11-27-2018, 04:38 AM | #17 |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
This post really save a lot of time running the kindlegen and kindlestrip in bulk. Thanks Doitsu!
Last edited by toancv; 12-27-2018 at 02:58 AM. |
Advert | |
|
01-02-2019, 09:39 PM | #18 |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
I am just wondering if we can batch coverting epub to azw3 by this similar, without using Caliber as Caliber tend to change the css after conversion?
|
01-03-2019, 06:59 AM | #19 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
However, if you install Kindle Previewer and the Calibre KFX Output plugin, you could use the following command to convert all your .epub books to .kfx books. Code:
FOR %%f IN ("*.epub") DO (calibre-debug -r "KFX Output" "%%f" >> conversion.log) |
|
01-07-2019, 12:30 AM | #20 |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
Thanks Doitsu!
I have Python installed in PC and Kindle Unpacked installed in Calibre. Is there any way to batch converting epub to azw3? |
Advert | |
|
01-09-2019, 06:01 AM | #21 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If you didn't install Kindle Previewer or didn't install it in the default location, you'll also need to copy kindlegen.exe or kindlegen to the folder. If books fail to convert, have a look at the KindleGen warning and error messages in errors.txt. (If nothing happens after you double-click convert.py, you'll have to manually execute the script in a command prompt/terminal window.) BTW, the script will also add (fake) ASIN numbers to azw3 files by default. If you don't want it to add ASIN numbers, change the following line in convert.py from: Code:
add_asin = True Code:
add_asin = False |
|
01-11-2019, 04:50 AM | #22 | |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
Thanks for Doitsu!. Try your script without success. I installed python 3.7.2 and Kindle Previewer latest version. There is no .txt file created when I double click 'converter.py'. When I use command line, the follwoing error show up:
Quote:
|
|
01-11-2019, 05:34 AM | #23 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Open a command prompt window and enter the full Python 3 path before convert.py. For example: Code:
"C:\Python37\python.exe" "D:\books\epub2azw3\converter.py" Code:
"C:\Program Files\Sigil\python3.exe" "D:\books\epub2azw3\converter.py" |
|
01-24-2019, 04:24 AM | #24 | |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
Hi Doitsu,
I tried many times but still could not succeed. Here is the error: Quote:
|
|
01-24-2019, 04:40 AM | #25 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
>>> "C:\Users\toancv\Downloads\Epub2azw3\converter .py" Code:
"C:\Program Files\Sigil\python3.exe" "C:\Users\toancv\Downloads\Epub2azw3\converter.py" |
|
01-24-2019, 07:36 AM | #26 |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
Thanks. I successfully managed to create the azw3 file as your instruction. However, with kindlegen plugin in Sigil, I can reserve the mobi-asin in original epub file when creating azw3 file by choosing "Add fake ASIN". For this method, the original mobi-asin has been replaced by the new created mobi-asin. Any way to fix it?
Edit: It works ok with epub2. But it cannot reserve original mobi-asin with my epub3. Last edited by toancv; 01-24-2019 at 08:08 AM. |
01-24-2019, 08:09 AM | #27 |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
01-24-2019, 09:31 PM | #28 |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
Doitsu, thanks for your clarification and help!
|
01-25-2019, 10:01 AM | #29 |
Grand Sorcerer
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sigil's bundled Python won't really work (reliably) as a standalone Python environment without a lot of environment variables and paths being properly set before-hand. Sigil's plugin-launcher makes certain the environment is correct (and isolated) before running any python scripts.
It may work in most cases, but I wouldn't trust it all that much outside of Sigil's plugin framework. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scripting ebook-convert for batch parallel processing? | joewiz | Conversion | 9 | 03-15-2013 05:34 AM |
Tag editor with batch processing | semenoof | General Discussions | 0 | 01-17-2013 03:12 AM |
Batch processing of PDB files? | Asterra | iRex | 6 | 12-04-2007 01:10 PM |