View Single Post
Old 07-09-2014, 09:28 AM   #881
tkeo
Connoisseur
tkeo began at the beginning.
 
Posts: 94
Karma: 10
Join Date: Feb 2014
Location: Japan
Device: Kindle PaperWhite, Kobo Aura HD
Hi Kevin,
Quote:
Originally Posted by KevinH View Post
So I propose replacing filenames[dir,filename] with something along the lines of:
fileinfo[key, dir, filename]

So please see KindleUnpack_v072x_test.zip that is attached.
It's great! We move forward based on your proposal.

Alongside opf, I would like to discuss about insertion of cover page and linear attribute in spine.

1. The insertion of cover page to spine is not implemented in your posted code.
I have modified to insert a cover page if it is not in spine.
It is needed to consider to offload from kindleunpack.py.
Not to implement insertion is one of choices.
Attached file rtl_example2.mobi is an example that the cover page is inserted.

2. I worry about that linear attributes might be needed to be stored in K8RESCProcessor for very special case, like attached files rtl_example1.mobi and rtl_example3.mobi.

Take care,
tkeo
Attached Files
File Type: mobi rtl_example2.mobi (183.3 KB, 206 views)
File Type: mobi rtl_example1.mobi (148.6 KB, 210 views)
File Type: mobi rtl_example3.mobi (208.1 KB, 206 views)
File Type: txt kindleunpack_coverinsertion.patch.txt (1.0 KB, 235 views)
tkeo is offline   Reply With Quote