View Single Post
Old 04-12-2014, 10:01 AM   #982
Anak
Fanatic
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Quote:
Originally Posted by PeterT View Post
The other issue with going by page number is HOW to define said page number?
That is not an issue. The numbering of pages in digital publications for epubs is very clear but also far from perfect. Entering a page number instead of using a slider to go to a specific page gives the same result. It is the same 'calculated' page number or better said the same position or location in a book. Kobo readers use the "slider" method other ereaders allow manual input of the desired page number. Both methods work.
My personal experience is that the slider is very sensitive which makes it hard to slide exactly to the desired page number. But I have big fingers.

Your issue here, i guess, is that the page numbing of a fysical, paper book doesn't match with it's digital cousin.

page-map
Therefore Adobe developed an extension called page-map, documented in the Best Practices Guide, that provides a solution. To implement page-map, the creator includes a special page-map file in the ePub and references that file in the OPF metadata. This file gives a (page #) name to each pointer to a specific location within the content.

An other alternative is pageList.
The NCX spec provides an alternative to the page-map extension, the pageList. This aptly named "container for pagination information," provides a mechanism for giving a label (navLabel) to a point in the ePub (the pageTarget).

If page-map or pageList are not available then ADE falls back to its own synthetic page numbering:
"When page map is not available in the document, Adobe Digital Editions will synthesize a page-map based on the document content. The approach used isthe following:
  • Determine a compressed byte length of each resource which is referenced in the spine, subtracting any known encryption overhead (IV size)
  • Assume that there is a page for each 1024 bytes

General solution
A better general solution (which should also work with non-Adobe devices) is by using the proper IDs. Examples of exisiting IDs are:
Chapters (<a id="c0"/>)
Heading 2(<a id="c0-00"/>
Figures (<a id="fig0.0"/>)
Tables (<a id="tab0.0"/>)
Pages (<a id="page_0"/>)
Reference (<a id="ref_0"/>)

Some publishers already add IDs to their digital publications, such as page identification by adding <a id="page_0"/> tags. Then the page numbering of the physical and digital book do match. If not (or done properly) blame the publisher as it is not a device issue per se.

Some other ID examples, for:
Links
Chapters (<a href="Chapter00.html#c0">Caption</a>)
Figures (<a href="Chapter00.html#fig0.0">Caption</a>)
Tables (<a href="Chapter00.html#tab0.0">Caption</a>)
Pages (<a href="Chapter00.html#page_0">Caption</a>)
Reference (<a href="Chapter00.html#ref_0">Caption</a>)

Copyright
1st hierarchy <p class="cpytxt">
2nd hierarchy <p class="cpytxt1">
3rd hierarchy <p class="cpytxt2">
4th hierarchy <p class="cpytxt3">

Contents
1st hierarchy <p class="toc">
2nd hierarchy <p class="toc1">
3rd hierarchy <p class="toc2">
4th hierarchy <p class="toc3">

Index
1st hierarchy <p class="index">
2nd hierarchy <p class="index1">
3rd hierarchy <p class="index2">
4th hierarchy <p class="index3">

Note:
  • NCX file needs to capture up to level 1 after Chapter title.
  • All the entities need to captured in UNICODE
  • Graphics size needs to maintain so it looks good in e-PUB
  • All the links should be valid and linked properly

Last edited by Anak; 04-12-2014 at 10:16 AM.
Anak is offline   Reply With Quote