View Single Post
Old 04-22-2021, 10:31 PM   #14
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Tex2002ans View Post
But in the Ebook, that stuff doesn't belong, because there's no such thing as page #s!

Side Note: Over the years, there's been TONS of discussion about this... and a similar idea comes up from "geniuses" who decide to leave the physical book's page numbers smack dab in the middle of text:

Code:
<p>This is a very long sentence that</p>
<p>199</p>
<p>is split between two pages.</p>
When it's visible I assume it's from a careless conversion from print or OCR. Never thought anyone would deliberately do that.

However, you can embed the physical page numbers as anchors, and then an index links to that.

e.g. the index has entries like this:
Code:
<li class="indexmain" id="idx1_34"><span epub:type="index-term">Apollo program,</span> <a epub:type="index-locator" href="../Text/ch50.xhtml#page_417">417</a></li>
that linked to text coded like:
Code:
“Every day felt a bit like a roller coaster, where we <span aria-label="page 417" epub:type="pagebreak" id="page_417" role="doc-pagebreak"></span>discovered a new problem
making an invisible anchor for the beginning of that page.

If DIY, can use simpler anchors like
Code:
<a id="page_417"></a>
The advantage is that the text of the index is the same as the print version.

Last edited by AlanHK; 04-22-2021 at 10:43 PM.
AlanHK is offline   Reply With Quote