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 04-11-2011, 07:36 AM   #31
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,588
Karma: 2089838
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@user_none - it crossed my mind to do something like that a little while ago but went no further with it. You might also consider something a little more generic that would allow pulling other metadata from the book as well into a custom column - such as the request by dwanthny to get the Calibre version used to convert the EPUB, Only if it fits in with what you have in mind of course.
kiwidude is offline   Reply With Quote
Old 04-11-2011, 07:59 AM   #32
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
I'm glad you've found a way to get it working with Kindle4PC. A lot of people are going to be happy about this. Unfortunately I can't get this method to work with the Kindle for Mac app

It doesn't work with calibre generated ASIN numbers, why I don't know, to many characters who knows...

I uploaded a sample.
Attached Files
File Type: zip Tales Of Space and Time.zip (252.0 KB, 490 views)
Ron. is offline   Reply With Quote
Advert
Old 04-11-2011, 08:24 AM   #33
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by user_none View Post
Let me think about how to go about making a new plugin that will calculate page count. I don't want to limit it to only MOBI files.
Thank you for taking this under consideration. It would be a great addition to Calibre.
Nyssa is offline   Reply With Quote
Old 04-11-2011, 08:29 AM   #34
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
It doesn't work with calibre generated ASIN numbers, why I don't know, to many characters who knows...
I uploaded a sample.
Page numbers on Kindle for Mac are only shown after the application contacs amazon over an encrypted connection. It will then write value. So far I have only been able to see page numbers for Amazon provided files. Page numbers will show on Amazon files using calibre genrated APNX.
user_none is offline   Reply With Quote
Old 04-15-2011, 01:01 PM   #35
adamselene
Enthusiast
adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.adamselene can tame squirrels without the assistance of a chair or a whip.
 
Posts: 42
Karma: 11050
Join Date: Nov 2009
Device: Kindle Paperwhite, Kindle Touch, Kindle 2
Quote:
Originally Posted by user_none View Post
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]
That's an encoding of a variable called “eulaVersionAccepted”. I can't test the OSX app right now, but if you tell me what the other value is that got added, I can tell you what the name of the variable is.
adamselene is offline   Reply With Quote
Advert
Old 04-15-2011, 10:33 PM   #36
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 adamselene View Post
That's an encoding of a variable called “eulaVersionAccepted”. I can't test the OSX app right now, but if you tell me what the other value is that got added, I can tell you what the name of the variable is.
Here are the variables it writes to the .kindle-info file.

Code:
0Gb3bsZaZ4bOBS010B04ZMbNZ80a0Kb8:b80K0cZy0vBO0bBabRB5bm0MZu0pbr0S
0TB-ZJBABgbzb3ZgZPBKZP0vbs0gB4Zb:bK0B0hZOBHbYZNBtZDBablZYZKbUbk0U
BPBJbcbIZdZiZvZeZR04Bj0ibv0bB_Bj:ZI03ZxbMbtBp0-BaZfBsb7Bq0mZuBSbhZ3Bs09bg0_Z-0T0pbwZt05ZFBeZFZP0wB1BpbdZXBqZDbgbZBcbGbjbyBEZfZYbm0CB1ZI04ZLBQbmbfb70Lbt02ba0a08BsZxbjZiZLZTZI0VZRbb07ZhBy0bBib8bXb5ZDbZBRB4ZhbXBHZK0nbcBJbE0ABU0yBjZ9bRZyB0BG0S0q05B_bibjBFbQ0B08BV0cZQBD0NBqb6Z2BdBcbw0cbXBiZIZpByBAZnZIbhZgB3BV0lBA08bNBE0h0SbV
ZlBg0yZyB5ZBBEbkBXBLZZZH0GZabNBf:BXb50_BwbR0PZw02b1BuBHBEBVba0hBZBE0xBW0NZZB0Zu0Nbt0k0cbcbVB9bYBd
I don't think knowing what these values are is going to be much help. What we know is the calibre APNX files work on the Kindle. They work wtih Amazon provided ebooks. calibre APNX and Amazon APNX files do not work with calibre MOBI files.

We also know that Amazon controls the display of page numbers and won't display them until the Kindle for Mac app has communicated with Amazon first. So either Amazon is actively blocking page number from displaying with non-Amazon content. Or there is something that the Kindle for Mac app doesn't like with the calibre MOBI files that is preventing the feature form working.
user_none is offline   Reply With Quote
Old 04-21-2011, 12:38 PM   #37
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 227
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
Fast vs. Accurate Method for Page # Plug-In

Here's an odd one. On some of the books I buy from Amazon (that don't come with their own .apnx files), when I send the book (without DRM) to my K3 from Calibre using the fast parser method, all is good. For example, R.J. Ellory's "A Quiet Belief in Angels" comes out at 563 pages -- more than the 416 pages that Amazon's UK site lists -- but still usable as a reference point. If, however, I check the plug-in box to generate an apnx with a more accurate page count (albeit more slowly), when I open the book, no matter where (e.g. preface, chapter 1 or chapter 12), I'm always on page 1 of 2. Same result if I use the more recent stand-alone apnx generator plug-in.

This is not the case with all books -- just some. Most of the time the more accurate and slower method is exactly that. But I cannot figure out why, in some instances, I need to turn off that option to get a meaningful page count.
rogerinnyc is offline   Reply With Quote
Old 04-21-2011, 12:45 PM   #38
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 rogerinnyc View Post
If, however, I check the plug-in box to generate an apnx with a more accurate page count (albeit more slowly), when I open the book, no matter where (e.g. preface, chapter 1 or chapter 12), I'm always on page 1 of 2. Same result if I use the more recent stand-alone apnx generator plug-in.
The pluging is just an interface to the Kindle interfaces APNX generator. The only difference is the plugin should always default to the more accurate parser.

Can you open a bug at https://bugs.launchpad.net/calibre and attach on or two of the problem files? Once you open a bug you can mark it as private so the files are not publically accessible. If you're not comfortable doing this can you email me the files at john at nachtimwald.com
user_none is offline   Reply With Quote
Old 04-21-2011, 02:42 PM   #39
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 227
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
Files emailed to you. Thanks for any enlightenment you can provide.
rogerinnyc is offline   Reply With Quote
Old 04-21-2011, 06:53 PM   #40
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
Found the issue. The MOBI file you sent me does not use <p> tags. It only uses <div> tags. The accurate parser assumed all paragraphs are <p> tags. I modified the parser to include tags that start with d. This will throw off the output a little bit (del tags for instance) but the trade off is worth it. The parser will need to be rewritten in the future to truly accommodate div tags. This change should be in calibre 0.7.57.
user_none is offline   Reply With Quote
Old 04-21-2011, 10:20 PM   #41
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 227
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
I wouldn't know a <p> tag from a <div> tag if it bit me on the leg, but thanks for the sleuthing and Calibre fix/update to come. Your program -- and the support you provide -- is amazing! Thanks again.
rogerinnyc is offline   Reply With Quote
Old 04-23-2011, 11:08 PM   #42
saxondawg
Connoisseur
saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!saxondawg is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 65
Karma: 50952
Join Date: Mar 2010
Device: kindle paperwhite
Pardon me if this has already been asked. When I let Calibre send a book to my Kindle via e-mail--which is free through wireless--the .apnx is not sent with it. Yet I don't believe I can e-mail an .apnx by itself from Calibre, can I? Is there a way to have the .apnx generated and e-mailed with the book?

Many thanks.
saxondawg is offline   Reply With Quote
Old 04-23-2011, 11:41 PM   #43
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 saxondawg View Post
Is there a way to have the .apnx generated and e-mailed with the book?
No. (making message longer due to minimum length limit).
user_none is offline   Reply With Quote
Old 05-03-2011, 03:49 PM   #44
elblong
Junior Member
elblong began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2011
Device: Kindle 3
Dear User_none,

is there any way to tell the plugin to start the count from a defined page?
Usually the pdf's start with cover, index etc.
When the book comes with pg one the pdf is already at pg nine.

Is there any way to shuffle this?

Greetings from germany... Cheers!

Elblong
elblong is offline   Reply With Quote
Old 05-05-2011, 02:48 PM   #45
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 elblong View Post
Dear User_none,
is there any way to tell the plugin to start the count from a defined page?
No. There is a tool in another APNX thread somwhere around here that lets you specify page locations.

Also, I had to remove the change that included div tags in the more accurate calculation. It was causing very wrong numbers in too many books.
user_none 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] User Category kiwidude Plugins 123 03-16-2024 11:59 PM
[GUI Plugin] Search the Internet kiwidude Plugins 408 03-16-2024 11:57 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 02:58 AM.


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