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

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2014, 08:07 PM   #16
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,248
Karma: 83049305
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.
eschwartz is offline   Reply With Quote
Old 11-27-2018, 05:38 AM   #17
toancv
Junior Member
toancv began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite
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 03:58 AM.
toancv is offline   Reply With Quote
Old 01-02-2019, 10:39 PM   #18
toancv
Junior Member
toancv began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite
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?
toancv is offline   Reply With Quote
Old 01-03-2019, 07:59 AM   #19
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,381
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by toancv View Post
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?
Batch file AZW3 conversion would require Python post-processing with KindleUnpack without Calibre.

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)
(The KFX Output plugin also uses KindleGen and only changes the original .epub file, if it'd otherwise not compile with KindleGen.)
Doitsu is offline   Reply With Quote
Old 01-07-2019, 01:30 AM   #20
toancv
Junior Member
toancv began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite
Thanks Doitsu!

I have Python installed in PC and Kindle Unpacked installed in Calibre. Is there any way to batch converting epub to azw3?
toancv is offline   Reply With Quote
Old 01-09-2019, 07:01 AM   #21
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,381
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by toancv View Post
I have Python installed in PC and Kindle Unpacked installed in Calibre. Is there any way to batch converting epub to azw3?
I've attached a simple Python 3.x script that'll convert all .epub files to .azw3 files with KindleGen and KindleUnpack. To use it simply extract convert.py and the kindleunpack folder from the attached .zip file to the folder that contains the .epub files that you want to convert and double-click convert.py.
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
to:

Code:
    add_asin = False
Attached Files
File Type: zip epub2azw3.zip (15.1 KB, 10 views)
Doitsu is offline   Reply With Quote
Old 01-11-2019, 05:50 AM   #22
toancv
Junior Member
toancv began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite
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:
C:\Users\toancv\Downloads\Epub to azw3>converter.py
Traceback (most recent call last):
File "C:\Users\toancv\Downloads\Epub to azw3\converter.py", line 10, in <module>
from mobi_split import mobi_split
File "C:\Users\toancv\Downloads\Epub to azw3\kindleunpack\mobi_split.py", line 11, in <module>
from unipath import pathof
File "C:\Users\toancv\Downloads\Epub to azw3\kindleunpack\unipath.py", line 29, in <module>
from compatibility_utils import PY2, PY3, text_type, binary_type
File "C:\Users\toancv\Downloads\Epub to azw3\kindleunpack\compatibility_utils.py", line 51, in <module>
_h = HTMLParser()
NameError: name 'HTMLParser' is not defined
toancv is offline   Reply With Quote
Old 01-11-2019, 06:34 AM   #23
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 4,381
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by toancv View Post
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:
The error that you got is only displayed, if converter.py is executed with a Python 2 interpreter.

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"
BTW, if Sigil is installed on your computer, you should also be able to use the bundled Python 3 interpreter:

Code:
"C:\Program Files\Sigil\python3.exe" "D:\books\epub2azw3\converter.py"
(Obviously, you'll need to adjust all paths.)
Doitsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting ebook-convert for batch parallel processing? joewiz Conversion 9 03-15-2013 06:34 AM
Tag editor with batch processing semenoof General Discussions 0 01-17-2013 04:12 AM
Batch processing of PDB files? Asterra iRex 6 12-04-2007 02:10 PM


All times are GMT -4. The time now is 02:47 PM.


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