Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2011, 08:28 AM   #106
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 cybmole View Post
So what is the current thinking & the longer term plan here
They are treated just like any auxiliary file. Ignored. There are no plans to support files other than ebooks within calibre.

Quote:
Originally Posted by cybmole View Post
also, I have the calibre plug in that brings in the Kindle book & strips its DRM in the process - do I have to worry about DRM in the associated apnx ?
No. The APNX files do not support / require / deal with DRM in any way. The APNX is based on file offsets in the uncompressed HTML contained within the MOBI file. So as long as you don't modify the HTML content the APNX will be correct for the file with or without DRM.
user_none is offline   Reply With Quote
Old 04-08-2011, 08:46 AM   #107
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by user_none View Post
They are treated just like any auxiliary file. Ignored. There are no plans to support files other than ebooks within calibre.

.
I could argue that they contain data which is "part" of the ebook, so should they not just be imported & passively stored.

otherwise calibre no longer holds a backup of "all" my kindle content ?
cybmole is offline   Reply With Quote
Advert
Old 04-08-2011, 08:52 AM   #108
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 cybmole View Post
I could argue that they contain data which is "part" of the ebook, so should they not just be imported & passively stored.
Not going to happen anytime soon.

Quote:
Originally Posted by cybmole View Post
otherwise calibre no longer holds a backup of "all" my kindle content ?
Backing up all Kindle or all ebook reader content for that matter isn't and never has been a feature or priority. Some device interfaces support a few device specific features but storing those files with the ebook as part of your library is not supported.
user_none is offline   Reply With Quote
Old 05-27-2011, 05:53 AM   #109
Daermond
Member
Daermond has a complete set of Star Wars action figures.Daermond has a complete set of Star Wars action figures.Daermond has a complete set of Star Wars action figures.Daermond has a complete set of Star Wars action figures.
 
Posts: 22
Karma: 300
Join Date: Oct 2010
Device: none
Custom APNX generation

Hi.

My question is for user_none.
I love your APNX gen plugin for calibre.
I have an idea that I think not a difficult to implement, but useful.

My request is for the accurate page number generation. How here and in the source code also, you mention that the accurate page number generation based on that a book has 70 characters and 32 lines per page. My question is that it is possible that there could be an option to change these variables by users needs. So it would be nice to have an option at the plugins customization for a Custom accurate page number generation option where I can set the number of lines and the number of characters per page.
I think it will be useful. So everyone could fine tune the page number parameter by his/her needs.
I have a kindle with custom font (Liberation Sans) with second size font and with small line spacing. With these layout configuration I could count the lines per page and an average characters per line, and based on these custom data I could set the APNX generations parameter. I could get a closer Kindle page numbering result, so I would get a closer result how page turns left from a chapter and approximately how much kindle page the book has.
I know that it will not gives a precise result but it would be fare more closer to the real kindle pages by my settings. May a few pages difference per 100 pages.
And these settings could be useful for paper book conversation of course if the lines and character numbers are known.

If it is possible please implement it in the future version.
Thanks,
Daermond.
Daermond is offline   Reply With Quote
Old 05-30-2011, 11:28 AM   #110
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
@Daermond, having page numbers gives two things. A way to keep your place that makes more sense than location 828002 and to give a comparison between books. Having user configurable page sizes would remove the second advantage of having page numbers. I personally don't see user configurable amounts necessary and I don't have plans to add it. If someone else wants to they can.

I would rather spend my time making the more accurate parser even more accurate than making it configurable.
user_none is offline   Reply With Quote
Advert
Old 05-31-2011, 12:46 PM   #111
Daermond
Member
Daermond has a complete set of Star Wars action figures.Daermond has a complete set of Star Wars action figures.Daermond has a complete set of Star Wars action figures.Daermond has a complete set of Star Wars action figures.
 
Posts: 22
Karma: 300
Join Date: Oct 2010
Device: none
Yes you have right what gives page numbering. What I want with the configurable lines and characters per page is that for my custom Kindle settings I could compare books, how much "Kindle Pages" it has and a better way instead of locations, where I'm in the book and how much turns are left from a chapter.
That is ok that you don't feel these optin neccessary or that these option is not good.
By the way I'm happy that the parser will be more accurate in the future.

For my needs I have made some changes in your APNX Generator GUI plugin if you don't mind.
I have added the apnx.py from Calibre source with my custom settings into your plugin and modified to call the APNXBuilder routine from the apnx.py in the plugin rather than from Calibre built in kindle interface plugin.
The result was what I expected!
With my custom settings I could create an apnx file where was just a few pages differece per 100 kindle page turns.
Now I can see that how long (how much kindle page turns) is a book and how much turns left from a chapter to finish the reading and go to sleep.
So I made it.
Thanks for the plugins! And I wait to a more accurate parser.
Daermond is offline   Reply With Quote
Old 09-04-2011, 04:11 PM   #112
philmate
Junior Member
philmate began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
Quote:
Originally Posted by user_none View Post
There is no publically avaliable information that maps places in an ebook to a page in a print edition. The only sources right now are purchased books. If you buy the book with this info there is no need to generate an APNX (or NCX) yourself to approximate.
Hi. I'm new here and a newbie when it comes to formatting ebooks. Sorry for resurrecting an old thread, but I have a particular interest in it.

There are cases where there is a need to generate references to page numbers in a print edition, and I am working on such a case now, for Kindle Direct Publishing. The book concerned is non-fiction -- hence the desirability of being able to cite it with page references. It is out of print, but there is likely to be a renewed interest in it when a new book that is now in preparation is published (in print and ebook form).

I can live without a publicly available map of pagination information. I am prepared to manually identify page starts in the text by comparing with the out-of-print paper version. Time-consuming maybe, but it would be worth it to me. Is there any way of inserting that information into an APNX file? Of course, if Amazon would tell us how to do it, that would be preferable, but they haven't seen fit to ...

Any help greatly appreciated.
philmate is offline   Reply With Quote
Old 09-04-2011, 04:17 PM   #113
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by philmate View Post
Hi. I'm new here and a newbie when it comes to formatting ebooks. Sorry for resurrecting an old thread, but I have a particular interest in it.

There are cases where there is a need to generate references to page numbers in a print edition, and I am working on such a case now, for Kindle Direct Publishing. The book concerned is non-fiction -- hence the desirability of being able to cite it with page references. It is out of print, but there is likely to be a renewed interest in it when a new book that is now in preparation is published (in print and ebook form).

I can live without a publicly available map of pagination information. I am prepared to manually identify page starts in the text by comparing with the out-of-print paper version. Time-consuming maybe, but it would be worth it to me. Is there any way of inserting that information into an APNX file? Of course, if Amazon would tell us how to do it, that would be preferable, but they haven't seen fit to ...

Any help greatly appreciated.
The data can be placed in the toc.ncx file. See the wiki for details on apnx and ncx.

Dale
DaleDe is offline   Reply With Quote
Old 09-04-2011, 05:22 PM   #114
philmate
Junior Member
philmate began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
Quote:
Originally Posted by DaleDe View Post
The data can be placed in the toc.ncx file. See the wiki for details on apnx and ncx.

Dale
Wow -- a reply in 6 minutes! Thank you so much, Dale.

I located references in the wiki to what KindleGen needs to generate an APNX file at https://wiki.mobileread.com/wiki/APNX. It will take me more than 6 minutes to get my head around the toc.ncx pageList feature (see https://wiki.mobileread.com/wiki/NCX) or alternatively the separate page-map.xml file (see https://wiki.mobileread.com/wiki/Adob...tions#Page-map), but I will persevere.

Reading that stuff made me realize that it might be necessary to test what I do by getting the files onto my device rather than just using Kindle Previewer.

Thanks once again, Phil
philmate is offline   Reply With Quote
Old 09-05-2011, 01:02 PM   #115
philmate
Junior Member
philmate began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
Quote:
Originally Posted by DaleDe View Post
The data can be placed in the toc.ncx file. See the wiki for details on apnx and ncx.

Dale
@Dale:

Sorry to be a pain, but I now have a further question that I haven't been able to find an answer to on the forum or the wiki (or anywhere else, for that matter).

I understand that the NCX file needs to include a pageList section, an example of which is set out in the wiki entry on NCX. However, I presume that the appropriate tags or anchors also need to be included in the HTML text of the book itself at the beginning of each "page". Can you possibly explain the syntax that those tags or anchors need to comply with, or refer me to somewhere that will explain?

Thanks tons.

Last edited by philmate; 09-06-2011 at 05:12 AM.
philmate is offline   Reply With Quote
Old 09-06-2011, 08:01 PM   #116
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by philmate View Post
I understand that the NCX file needs to include a pageList section, an example of which is set out in the wiki entry on NCX. However, I presume that the appropriate tags or anchors also need to be included in the HTML text of the book itself at the beginning of each "page". Can you possibly explain the syntax that those tags or anchors need to comply with, or refer me to somewhere that will explain?
The format in the NCX file is, for example:
Code:
  <pageTarget type="normal" id="pagetarget000007" value="7" playOrder="7">
    <navLabel>
      <text>7</text>
    </navLabel>
    <content src="part0000.html#page-7"/>
  </pageTarget>
So you would include an anchor in part0000.html indicating where page 7 starts as follows:
Code:
<a name="page-7"></a>
wallcraft is offline   Reply With Quote
Old 09-08-2011, 11:11 AM   #117
philmate
Junior Member
philmate began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
Thanks tons, Wallcraft. I'll give it a try. Phil
philmate is offline   Reply With Quote
Old 09-08-2011, 07:09 PM   #118
philmate
Junior Member
philmate began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
@wallcroft:

I tried it and couldn't get the result. But I think I'm making a mistake in the next step. Could you possibly explain to me how to render the (various) file(s), and how to test them? Can I send the file(s) to my kindle email? Which files? Zipped? Or should upload the file(s) to KDP? I'm sorry to be a nuisance asking dumb questions, but I can't seem to find the answers by looking at either the Amazon site or the forums.
philmate is offline   Reply With Quote
Old 09-21-2011, 01:19 PM   #119
philmate
Junior Member
philmate began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Sep 2011
Device: Kindle 3
The real page number navigation feature is still eluding me. There IS a need for it, I think, for being able to cite passages from academic books that have previously been published on print.

Kindle Direct Publishing will add real page numbers after uploading onto KDP, but only in defined circumstances, which do not appear to include books that have already gone out of print. That's a pity, because one might expect that to be a common reason for wanting to publish an ebook version.

I have added a pageList section to the NCX file and anchors in the source file, but no luck so far. The NCX and APNX entries in the Wiki give a helpul lead, but they don't explain how to get to the end result in a practical way.

If anyone has any practical success in getting that to work, it would be great to hear about it here.

Phil
philmate is offline   Reply With Quote
Old 10-02-2011, 09:38 AM   #120
kundor
Junior Member
kundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toyskundor shares his or her toys
 
Posts: 5
Karma: 5998
Join Date: Oct 2011
Device: Kindle 3
Philmate,
I really don't know anything about it, so sorry if you're way past this. But I think you have to include the ncx file in the ePub file (add it to the zip archive), include it in the manifest, "reference it in the spine toc attribute", and replace the content pages with your modified ones with anchors. Then you feed the modified ePub file to the command-line kindlegen program.

Note that the wiki says "KindleGen version 1.2 does not generate an APNX file directly; it creates a PAGE section in the MobiPocket file which is then stripped and converted to an APNX file by Amazon's publishing service. The KindleGen input can use either a NCX pageList or page-map xml.

Kindle Previewer, as of version 1.5, does not display page numbers. In addition, Kindle for PC and Kindle for Mac, while they do display page numbers using .apnx files, are unable to read them from a MobiPocket file generated by KindleGen. This makes testing the page number feature somewhat problematic for publishers."
kundor is offline   Reply With Quote
Reply

Tags
apnx, page numbers


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware Update Kindle adds Page Numbers (and more) koland Amazon Kindle 304 07-02-2011 03:54 AM
Kindle adds Page Numbers (and more) koland News 53 03-03-2011 04:30 PM
Is there a hack for displaying page numbers rather than location numbers? nesler Kindle Developer's Corner 16 02-15-2011 12:00 AM
Epub to Kindle and page numbers apropos Calibre 11 12-09-2010 01:42 PM
Page numbers in iphone vs Real Kindle palex481 Amazon Kindle 26 03-16-2009 05:28 PM


All times are GMT -4. The time now is 01:57 PM.


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