View Single Post
Old 09-25-2020, 03:36 PM   #398
amidcrescentsuns
Junior Member
amidcrescentsuns began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2020
Device: Kindle
Quote:
Originally Posted by jhowell View Post
Documentation for calibre-debug can be found here.

I do not use Linux so I cannot provide exact instructions for your system. In general the steps needed are as follows:
  • Import the book using the calibre GUI. It should import as KFX format. If it shows KFX-ZIP instead then something went wrong with the import process and you will need to correct that before proceeding.
  • Export the book format from calibre using the "Save to disk" function. Choose a destination that you will be able to find later. (Using the option to "Save to disk in a single directory" may make the exported file easier to find.)
  • Launch a terminal window for entry of commands and change to the directory that contains your exported file.
  • Enter the command to invoke the plugin. For example, if your exported file is named Frankenstein - Mary W. Shelley.kfx you can convert to EPUB with the command:
    calibre-debug -r "KFX Input" -- -e "Frankenstein - Mary W. Shelley.kfx"
    Or you can to extract any embedded PDF resources with the command:
    calibre-debug -r "KFX Input" -- -p "Frankenstein - Mary W. Shelley.kfx"
    (Note the a combination of single and double dashes are needed.)

Dear Jhowell,
Thanks so much for this speedy reply. I am afraid that my knowledge is still too amateur to be able to keep up here (I really have no experience using terminal at all). I have succeeded at importing my book into calibre, and exporting it as a .kfx. I also managed to open terminal and change my directory to the folder containing my exported .kfx. However, when I enter the code, terminal says it does not recognize the command "calibre-debug." I even attempted to move the .kfx file into "/Applications/calibre.app/Contents/MacOS", which contains the "calibre-debug" executable, and set this folder as my directory, but terminal still did not recognize the command.

Apologies as i know this is extremely basic stuff for you. But any further assistance would be immensly appreciated. Thank you.
amidcrescentsuns is offline   Reply With Quote