View Single Post
Old 03-14-2020, 03:31 AM   #14
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by LittleBeard View Post
Spoiler:
  1. I've installed the "Kindle Unpack - The Plugin (0.82.1) by DiapDealer" via Calibre.
    It's available by searching "KindleUnpack" in the plugins on Calibre.
    A yellow exploding triangle appears in the main menu bar.
    I've configured the output option via "Customize Plugin": epub output version: ePub2, then selected a book had on my previous Kindle in .azw3 format, clicked on "KindleUnpack", selected "AZW3" and "Unpack AZW3".
    Opening the folder, it was saved in I got my epub file.

  2. Following the instructions for KindleGen I firstly tried doing it with the Kindle Previewer because I couldn’t get the KindleGen.exe working with the command prompt:
    https://kindlegen.s3.amazonaws.com/Readme.txt:

    - Download the Kindle Previewer from http://www.amazon.com/kindleformat/kindlepreviewer
    - Once the download is finished, install the Kindle Previewer
    - If you need further instruction on how to install Kindle Previewer, please refer http://kindlepreviewer.s3.amazonaws.com/UserGuide.pdf
    - Once the install is complete, launch Kindle Previewer
    - Click on "Open book" link in Kindle Previewer
    - Select the EPUB/HTML/OPF to convert to Kindle ebook
    - Follow the instructions to convert the book and preview
    - The converted eBook with extension ".mobi" can be obtained from the folder Compiled-filename from the same folder as the source HTML/EPUB.

    Then I did manage to do it with KindleGen directly with the help of this thread:
    https://www.mobileread.com/forums/sh...d.php?t=169427
    with the following command line in command prompt:
    kindlegen "ebook_name.epub" -c1 -o "ebook_name.mobi"

    The output file is a .mobi almost double in size to the .epub file.

  3. Then I uploaded that .mobi file with Send to Kindle for PC to my Kindle.
    My question is if that generated file is the mentioned "dual-format" MOBI?
    Since there is no other mobi file... I guess it must be?!
Finally in front of an actual PC.
  1. I don't actually use the standard "Unpack AZW3" option. Instead, I do the ff:
    • Select all AZW3 files I want to process
    • Use "KF8 to ePub..." option in KindleUnpack (adds the EPUB for all selected books with AZW3 format directly to the library)
    • Save to disk -> Save single format to disk... -> EPUB (I use a flat structure as Save to disk template for saving to the kindlegen folder)
  2. Sorry, I don't use Kindle Previewer so can't help with that.

    Tested this and it works for converting a bunch of EPUBs in the same folder. Make sure kindlegen.exe is either in the same folder as your EPUB files or in Windows' PATH (still on Win7 so dunno how to add this on Win10).
    Code:
    Command:
    forfiles /m *.epub /c "cmd /c kindlegen.exe <options> @file"
    
    
    Options:
      -c0                   No compression
      -c1                   Standard DOC compression (fast: default)
      -c2                   Huffdic compression (smallest file sizes but very slow)
      -dont_append_source   Don't include the EPUB source file in the MOBI output
  3. Yep. Dual-format in this case means you have two formats inside that single MOBI file: KF6 (old MOBI) and KF8 (AZW3). That's part of the reason the file sizes are so big. In your case, the generated file also includes the original EPUB input so that's actually 3 files: KF6, KF8 and EPUB.

    Here are the results for some compression tests I previously did for kindlegen if you wish to slim those down.

    Code:
    EPUB source
    ~700 KB: 1.78 MB uncompressed, ~275,000 words, 65KB cover image
    
    forfiles /m *.epub /c "cmd /c kindlegen.exe -c1 @file"
    2.73 MB, 2-3 seconds processing time on Core i5-3450S 2.80 GHz
    
    forfiles /m *.epub /c "cmd /c kindlegen.exe -c1 -dont_append_source @file"
    2.05 MB, 2-3 seconds
    
    forfiles /m *.epub /c "cmd /c kindlegen.exe -c2 @file"
    2.04 MB, 1 minute 28 seconds
    
    forfiles /m *.epub /c "cmd /c kindlegen.exe -c2 -dont_append_source @file"
    1.36 MB, 1 minute 28 seconds

By the way, I just tested this on my devices.
  1. Created annotations on an unregistered PW3.
  2. Copied the sidecar files from PW3 to a registered PW4 (with WhisperSync enabled and already had a copy of the AZW3 ebook/doc from Kindle cloud archive)
  3. Renamed azw3r/f files to add the user id.
  4. Fiddled with annotations on PW4 (select annotation, move the end marker a little and immediately return it to its original position)
  5. Closed ebook and manually ran sync.
  6. Checked on registered PW2 and Kindle for iOS (iPad) and the annotations I fiddled with were uploaded.

Note, you do need to fiddle with every single annotation to get it uploaded. Since the highlights are off by a bit, fixing them by hand on the Kindle would upload all the annotations you've fixed.

Conversion and upload of dual MOBI is pretty simple so if I were you, I'd just do that first followed by copy/rename of the old sidecar files. Then just fix/upload the highlights at leisure.
ilovejedd is offline   Reply With Quote