View Single Post
Old 05-03-2021, 04:00 PM   #15
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by KevinH View Post
One related question I have always had, if you look at the actual printed book, does the position of this tag end that page number or start that page number?
It always goes at the very beginning of the page, before the first text.

See DAISY, Accessible Publishing Knowledge Base: "Page Navigation"

Quote:
Does the page number reflect the page that is ending or the page that is starting?

The page number always reflects the page that is starting.

Should the page break marker placement follow the print position?

No, page break markers are always placed at the start of the page's content, regardless of whether the page number is printed at the top or bottom of the page in the print edition. When a user jumps to a specific page, they want to jump to the start of the content for that page, not the end.

Where do I put the page break if a word is hyphenated across a page?

Place the page marker after the word. Do not retain the print hyphenation and insert the number in the middle of the word.
Quote:
Originally Posted by Doitsu View Post
I updated my Sigil PageList plugin.
Fantastic.

Quote:
Originally Posted by Monaghan View Post
That's kind of you. It's basically just this tag:

Code:
<span class="com-rorohiko-pagestaker-style">85</span>
But do let me know if you need more code!
Then you can use this regex (EPUB3):

Find: <span class="com-rorohiko-pagestaker-style">(\d+)</span>
Replace: <span epub:type="pagebreak" id="page\1" title="\1"/>

That will convert that span into:

Code:
<span epub:type="pagebreak" id="page85" title="85"/>
which can then be fed into Doitsu's plugin.

Note: You may also wants a separate regex to deal with frontmatter with roman numeral page numbers (no idea how EPUBOgrify generates those).

I usually use the ol':

\b[xiv]+\b

to find lowercase roman numerals... but definitely don't do a mass Search/Replace unless you know what you're doing. :P

If EPUBOgrify uses the same code, it'll be:

Find: <span class="com-rorohiko-pagestaker-style">(\b[xiv]+\b)</span>

Last edited by Tex2002ans; 05-03-2021 at 04:02 PM.
Tex2002ans is offline   Reply With Quote