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

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2011, 11:08 AM   #1
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
[GUI Plugin] APNX Generator

Create Amazon APNX page mapping file from within calibre without having to send them to a Kindle.

Main Features
  • Create APNX from selected book in the calibre library.
  • Create APNX from files outside calibre library.

Change Log
  • 1.1.0
    • Restructure to work with new plugin loading API.
  • 1.0.1
    • Sanitize file name.
    • Use the 'Save to disk' template for generating file names for items in library.
  • 1.0.0
    • Initial release.

Special Notes
  • Requires calibre version 0.7.53 or later.

Usage
  • Using calibre library:
    1. Select books.
    2. Click APNX button.
    3. Specify location to save generated APNX files.
  • Using files outside of calibre:
    1. Click down arrow next to APNX button.
    2. Select file any MOBI, AZW or PRC file stored on your computer.
    3. Specify location to save generated APNX file.
Attached Files
File Type: zip plugin_apnx_generator-1.1.0.zip (13.8 KB, 213070 views)

Last edited by user_none; 04-11-2011 at 07:27 AM.
user_none is offline   Reply With Quote
Old 03-19-2011, 12:00 PM   #2
mrsquash
Connoisseur
mrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enough
 
Posts: 78
Karma: 648
Join Date: Jul 2009
Location: USA
Device: K4-NT, Sony T1
Thank you! I've been waiting for this. I didn't want to have to re-send and re-index hundreds of books that were already on my K3. I've got a lot of public-domain books, as well as many epub books that I purchased for my Sony, de-DRMed, and converted to mobi for the Kindle so naturally they don't have Amazon-generated apnx files.

Previous to this plug-in I've re-sent several books at the top of my TBR list to the Kindle in order to get the calibre-generated apnx files. They were all re-indexed by the Kindle, which took time and got me wondering as to whether the Kindle's index database was clearing out the junk from the previous, overwritten version before adding the data from the newly re-indexed versions I had just sent. Some posts I've seen here seem to suggest that there was a good chance that it wasn't, and that this could possibly slow down searches and perhaps other Kindle functions, but I was too lazy to really try to find out.

I've used goaspy's apnx generator on a few titles and just added the resulting apnx file to the K3 and that worked fine (thanks goaspy!), no re-indexing, but the prospect of going to Amazon to look up the number of pages, and then loading the book to get the location count, for hundreds of books, made that option less than attractive. More laziness, I guess.

And I've got nothing against locations. I was perfectly happy with them, but if you can have both, why not? I find myself using page numbers more than the locations these days; saves me a little mental arithmetic.

Thanks again!
mrsquash is offline   Reply With Quote
Advert
Old 03-19-2011, 11:31 PM   #3
sapphiresilver
Connoisseur
sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!sapphiresilver , Klaatu Barada Niktu!
 
Posts: 51
Karma: 5368
Join Date: Aug 2009
Location: Australia
Device: Amazon Oasis 2, Kobo Clara HD, iPad Pro
Anybody know how to get page numbers working on kindle for ipad? Most of the books I've bought don't have page numbers, so it would be great if I could use this plugin to make the APNX files for my mobi books in Calibre. I just don't know where to put the files on the ipad, or what to name them.
sapphiresilver is offline   Reply With Quote
Old 03-20-2011, 01:42 AM   #4
tamahome
Member
tamahome began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2011
Device: ipad
Hi. I still can't get the page numbers to show up, even by converting the Calibre Quick Start Guide to mobi, and putting both the mobi and apnx in the Kindle for PC folder (My Kindle Content) . I've given them the same basenames, and even tried renaming the mobi file to azw.
tamahome is offline   Reply With Quote
Old 03-20-2011, 09:02 AM   #5
Ron.
Evangelist
Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.
 
Ron.'s Avatar
 
Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
Thanks for the plug in , but calibre generated apnx files don't work with kindle for PC or the kindle iPhone app. I have tried them before, must be something different about them.
Ron. is offline   Reply With Quote
Advert
Old 03-20-2011, 09:23 AM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Ron. View Post
Thanks for the plug in , but calibre generated apnx files don't work with kindle for PC or the kindle iPhone app. I have tried them before, must be something different about them.
There exactly the same as what's sent to the Kindle and they work on the Kindle. I will look into why they don't work for apps.
user_none is offline   Reply With Quote
Old 03-20-2011, 09:39 AM   #7
Ron.
Evangelist
Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.
 
Ron.'s Avatar
 
Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
Quote:
Originally Posted by user_none View Post
There exactly the same as what's sent to the Kindle and they work on the Kindle. I will look into why they don't work for apps.
I meant different from the amazon generated apnx files
Ron. is offline   Reply With Quote
Old 03-20-2011, 10:27 AM   #8
mrsquash
Connoisseur
mrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enoughmrsquash will become famous soon enough
 
Posts: 78
Karma: 648
Join Date: Jul 2009
Location: USA
Device: K4-NT, Sony T1
Quote:
Originally Posted by tamahome View Post
Hi. I still can't get the page numbers to show up, even by converting the Calibre Quick Start Guide to mobi, and putting both the mobi and apnx in the Kindle for PC folder (My Kindle Content) . I've given them the same basenames, and even tried renaming the mobi file to azw.
Yeah, there's something strange going on there. I chose an Amazon-purchased book that had no page number file (Scott Nicholson's excellent "The First") and generated an APNX for it using the new calibre plugin, then copied that to the "My Kindle Content" folder. Kindle4PC displayed page numbers for the book, no problem.

I then took a non-Amazon mobi file, generated the APNX, and copied both to the "My Kindle Content" folder. This time, no page numbers displayed in K4PC. However, when I copied that book and APNX file to my K3, the page numbers did display.

This is no problem for me, since I only use K4PC to check out samples and for its usefulness in deDRMing my purchases. What little reading of mobi files that I do on my PC is done with mobipocket's reader, which generates its own page numbers. I read pretty much all of my books on the Kindle, but can see where this could be a problem for others who use apps.
mrsquash is offline   Reply With Quote
Old 03-20-2011, 11:12 AM   #9
tamahome
Member
tamahome began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2011
Device: ipad
I really want it to work on iPad, but I figure the pc/mac application is a good test. Even giving both files the same timestamp didn't work. Hmmm...
tamahome is offline   Reply With Quote
Old 03-20-2011, 11:21 AM   #10
Shack70
Guru
Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.
 
Shack70's Avatar
 
Posts: 775
Karma: 1043626
Join Date: Dec 2010
Location: York, Pa
Device: Kindle Fire 10", Honor 8 Android Phone
Can't get plugin to install. Get this when I do:
Quote:
calibre, version 0.7.49
ERROR: Unhandled exception: <b>InvalidPlugin</b>:No valid plugin found in C:/Users/Robert Shacklock/Downloads/plugin_apnx_generator.zip

Traceback (most recent call last):
File "site-packages\calibre\gui2\preferences\plugins.py", line 281, in add_plugin
File "site-packages\calibre\customize\ui.py", line 379, in add_plugin
File "site-packages\calibre\customize\ui.py", line 94, in load_plugin
InvalidPlugin: No valid plugin found in C:/Users/Robert Shacklock/Downloads/plugin_apnx_generator.zip
Running Windows 7
Shack70 is offline   Reply With Quote
Old 03-20-2011, 11:26 AM   #11
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by Shack70 View Post
Can't get plugin to install. Get this when I do:
Read the special notes in red.
user_none is offline   Reply With Quote
Old 03-20-2011, 12:18 PM   #12
Shack70
Guru
Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.Shack70 ought to be getting tired of karma fortunes by now.
 
Shack70's Avatar
 
Posts: 775
Karma: 1043626
Join Date: Dec 2010
Location: York, Pa
Device: Kindle Fire 10", Honor 8 Android Phone
Quote:
Originally Posted by user_none View Post
Read the special notes in red.
Updated and now working thanks
Shack70 is offline   Reply With Quote
Old 03-20-2011, 12:58 PM   #13
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Page mapping in the Kindle for Mac app is dependent on two things. An encrypted question and answer between the app and https://kindle-app-services.amazon.com. A value which appears to be a result of this exchange is written to ~/Library/Application Support/Kindle/storage/.kindle-info .

The .kindle-info file holds a variety of different things. For instance, on my system removing the following will cause the app to ask me to agree to the Terms of Use.
Code:
[0TB-ZJBABgbzb3ZgZPBKZP0vbs0gB4Zb:bK0B0hZOBHbYZNBtZDBablZYZKbUbk0U]
When I agree it writes it back to the file. The .kindle-info file appears to be a settings file with encrypted values.

At this point I can't see taking the time to look into this further as it's highly application specific and the APNX's work on the Kindle. This tells me that the files APNX's that are being generated are fine but Amazon is doing more within the app before it will use an APNX. Worst case when you open a book it checks with Amazon if it's one of theirs and will only load the APNX if this is the case. If this is the case then there isn't really any way around it.
user_none is offline   Reply With Quote
Old 03-20-2011, 01:09 PM   #14
Ron.
Evangelist
Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.
 
Ron.'s Avatar
 
Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
Understandable, thanks for taking the time to look into it.
Ron. is offline   Reply With Quote
Old 03-20-2011, 02:57 PM   #15
tamahome
Member
tamahome began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jan 2011
Device: ipad
Amazon!!! *shakes his fist*
tamahome 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
[GUI Plugin] Search the Internet kiwidude Plugins 424 Yesterday 12:16 PM
[GUI Plugin] User Category kiwidude Plugins 123 03-16-2024 11:59 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-16-2024 11:47 PM
[GUI Plugin] Open With kiwidude Plugins 402 03-16-2024 11:44 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 10:58 AM.


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