View Single Post
Old 03-14-2020, 04:55 PM   #18
LittleBeard
Member
LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'LittleBeard knows the difference between 'who' and 'whom'
 
Posts: 12
Karma: 10000
Join Date: Mar 2020
Device: Kindle PW 2
Quote:
Originally Posted by ilovejedd View Post
Finally in front of an actual PC.
[LIST][*]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)
Sweet! Yes that's way quicker and more efficient. I like it!

Quote:
Originally Posted by ilovejedd View Post
  • 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
Yes putting the KindleGen.exe into the same folder as the .epub really makes things easy!

Quote:
Originally Posted by ilovejedd View Post
[*]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
Quote:
Originally Posted by j.p.s View Post
Since kindlegen makes a dual mobi (KF7 and KF8 format), the output file is usually
considerably larger than the input EPUB. But it also by default includes a copy of the input EPUB file. Note the in post #14 the -dont_append_source option is listed. Using that option omits the copy of the EPUB from the output dual mobi. The output will likely still be larger than the EPUB, but at least it won't include a full copy of it.
Using the "-dont_append_source" command really makes a good difference!
Its bigger only by margins compared to the original .epub file =)

Quote:
Originally Posted by ilovejedd View Post
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.
Ingenious. I followed your instructions and it works really well.
Just synched my 1st book across devices including annotations and highlights!

Does anyone know if it's possible to move the positions of annotations?
After I've moved the highlights to their correct place, the postitions of the annotations float in mid text with thier offset...

Cheers again =)
LittleBeard is offline   Reply With Quote