![]() |
#1 | |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2012
Device: none
|
Creating page lists on Windows – EPUBogrify alternative?
I am looking to improve accessibility in my EPUBs by adding a page list.
I was following Laura Brady's workflow (on LinkedIn Learning – here's essentially the same workflow detailed on epubsecrets), but unfortunately stalled at the point when it calls for a MacOS-only application called EPUBogrify at the point after using Pagestaker. Ideally I would like to keep my workflows on my workstation PC. In this MobileRead thread, BeckyEbook mentions that: Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 809
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
Perhaps the simplest replacement for EPUBgrify would be a Sigil plugin that would only do two things:
1. replacement. Find: Code:
<span class="com-rorohiko-pagestaker-style">(\d+)</span> Code:
<span epub:type="pagebreak" id="page\1" title="\1" /> Code:
<li><a href="FILENAME.XHTML#\1">\1</a></li> … … In fact, the only problem is to put this file name in the text file, because there is no variable/placeholder in the "naked" Sigil that would allow you to insert the current file name in the "Replace" field. I do not complain about this lack, but this example only shows that such a need sometimes exists ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How do page lists improve accessibility?
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
We can add a nav page list generator to sigil if we could mark the spans with a sigil_pagelist class or some other way in the first replace.
I will look into itif people are interested. Also doing this in a plugin would be very straight forward. KevinH |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Shameless plug: PageList plugin.
The plugin supports NCX and NAV pagelists. EDIT: The plugin only supports books created with Sigil. If the nav file is not in the same folder as the other XHTML files, the page list hrefs will need to be manually updated. I might fix this limitation in the next version. Last edited by Doitsu; 04-29-2021 at 01:26 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 809
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
|
@Doitsu: Oh, I don't know how I could have forgotten this plugin!
@Monaghan: The first point – replacement. The second point – use the PageList plugin. Good luck! |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Doitsu's plugins really help, but you'd still need to go through and actually mark where page breaks actually occur. - - - If you're working in Microsoft Word, DAISY has since released a tool called "WordToEPUB": https://daisy.org/activities/software/wordtoepub/ and they've also released a few videos about it: Youtube: "WordToEPUB Extended Tutorial – Accessible EPUB in Seconds" (They even mentioned how great Sigil is! ![]() ~38 mins is where they discuss generating page numbers. Same with that though, you have to manually mark your DOCX where pages occur, then the tools will help convert those numbers into the needed <a> or <span> markup. Allows readers to navigate in alternate ways (similar to TOC). Instead of jumping to the next screen/heading, you can navigate by jumping to the next page (think Text-to-Speech). You can also sync together with print-book readers (think a book club, classroom, or citation where they say "On page 45, this this and this occurs [...]") For more details, check out all the previous threads discussing this topic: 2020: "Correct Page Numbers in Kindle?" (Post #20) or do a search in your favorite search engine: Code:
page numbers Tex2002ans Doitsu site:mobileread.com ![]() Last edited by Tex2002ans; 04-29-2021 at 02:23 PM. |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sounds like it all boils down to manually marking where pages occur. The rest can be easily automated (provided it's marked with all the info necessary to create the PageList).
|
![]() |
![]() |
![]() |
#9 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
In Post #5 of "Create index on epub from printed book", I even explained how to:
Quote:
I know there was some InDesign plugin that automatically marked every page with a hidden anchor. But I'm not aware of such a thing for Word/LibreOffice or other programs. Everything I'm aware of is still the ol' manual markings. Last edited by Tex2002ans; 04-29-2021 at 02:38 PM. |
||
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2012
Device: none
|
Thanks, all. This is all very helpful information.
Yes indeed. My workflow EPUB workflow begins with the print book made in InDesign. I have used Pagestaker to mark the beginnings of the pages, so that side of things is sorted. It was the next step I was having issues with, so I have plenty to look into now. Much appreciated, everyone. |
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Export an EPUB from InDesign, then post a few pages of code here (or just attach a sample EPUB). Once I see the pattern, it should be easy to map that over + come up with instructions for Doitsu's plugins. ![]() Last edited by Tex2002ans; 04-30-2021 at 03:19 PM. |
|
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2012
Device: none
|
That's kind of you. It's basically just this tag:
Code:
<span class="com-rorohiko-pagestaker-style">85</span> |
![]() |
![]() |
![]() |
#13 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,478
Karma: 5703586
Join Date: Nov 2009
Device: many
|
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?
In other words using your example, is the Code:
<span class="com-rorohiko-pagestaker-style">85</span> The reason I ask (other than the off by one page issue) is that I have seen ebooks that tried this based on where the physical page number was printed in the pdf (top header or bottom footer) which makes it even more confusing. There must be a convention. Last edited by KevinH; 05-03-2021 at 12:47 PM. |
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
{ "tag": "span", "attribute": "class", "value": "com-rorohiko-pagestaker-style" } Since the plugin will also add missing epub:type and id attributes, you might want to test it with a copy of your book. |
|
![]() |
![]() |
![]() |
#15 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
See DAISY, Accessible Publishing Knowledge Base: "Page Navigation" Quote:
Quote:
Quote:
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"/> 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. |
||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Alternative to swiping to navigate book lists? | tagehring | Kobo Reader | 3 | 05-24-2018 03:00 PM |
Calibre alternative for Windows | Rebelmethod | Reading and Management | 15 | 03-30-2018 02:34 AM |
Windows 10 Jump Lists? | vertex11 | Library Management | 4 | 02-12-2017 07:32 PM |
Creating Book Lists In Calibre | petetx | Calibre | 2 | 08-18-2016 11:28 AM |
windows 7 jump lists | cybmole | Sigil | 17 | 09-17-2011 09:12 AM |