View Single Post
Old 08-09-2020, 12:50 AM   #28
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by David Kudler View Post
Just to be sure I understand what I have to do to make this work:
  1. Paste the epub:type="pagebreak" clip at the location where each pagebreak occurs in the physical copy
  2. Run the plugin

That's it, right?
For the clip to work, you need to insert the page number, highlight it and then select the clip.

For example, if you insert 12, highlight it, and apply the clip you'll get:

Code:
<span epub:type="pagebreak" id="page12">12</span>
The plugin will use this information for generating the pagelist entries.

If there already are anchor tags with page numbers and ids in your book, you can modify the PageList.json preference file to re-use them. For example, the following preferences

Code:
{
  "tag": "a",
  "attribute": "class",
  "value": "page"
}
tells the plugin to look for:

Code:
<a class="page" id="page1">1</a>
However, in epub3 books, you'll need to manually add the epub:type="pagebreak" attributes.

Last edited by Doitsu; 08-09-2020 at 04:35 AM.
Doitsu is offline   Reply With Quote