|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Just a Cow
![]() Posts: 11
Karma: 10
Join Date: Mar 2022
Location: Pasture
Device: Kobo Sage
|
![]()
I have a glossary at the end of my book. The TOC is enormous and it's a hassle to use that to jump to the glossary.
I'd like to have a floating SVG icon link that stays fixed in place in the top-right corner, to quickly jump down to the glossary no matter where I'm reading. When I try to add an element with fixed positioning, it renders properly in sigil and stays put when I scroll (as it should), but on my reader (kobo sage), the fixed floating button only renders on the first "page" of the document. Code:
.float-button { position: fixed; top: 0.5em; right: 0.5em; padding: 0.25em; z-index: 100; } Is this kind of thing typically problematic on e-readers? And a secondary question.. I'd also like to have a "back" button on the glossary page, so that I can jump back to wherever I left off if I tapped the glossary button. Is there a "best practice" for this, or something that should be avoided? ![]() |
![]() |
![]() |
![]() |
#2 |
Just a Cow
![]() Posts: 11
Karma: 10
Join Date: Mar 2022
Location: Pasture
Device: Kobo Sage
|
I can't edit my post but I wanted to include a screenshot of how it's intended to look (for testing I just have the glossary shortcut on the glossary document... I will move it later)
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
I know of no way to do that as "paging" is dynamic in readers. Perhaps someone else knows a way.
Some readers actually load the "epub" via javascript based reading software and iframe tags. So page sizes are unknown until layout. So the best you can do is the top and/or bottom of every file/chapter. Also some reader TOCs are limited in size (some to less than 100 links) so creating too large a TOC is problematic in and of itself. Perhaps making your glossary a guide or nav landmark (set semantics)may be you best choice as guide/nav landmark links are often a separate menu on readers independent of the ncx/nav menu. |
![]() |
![]() |
![]() |
#4 | |
Just a Cow
![]() Posts: 11
Karma: 10
Join Date: Mar 2022
Location: Pasture
Device: Kobo Sage
|
Quote:
Good to know about the TOC limits, thanks for that. I just reduced my TOC from 1430 items to 83. It was a nightmare to scroll through it anyway, so I'm glad you mentioned that. Thank you for the information |
|
![]() |
![]() |
![]() |
#5 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
One way around the TOC limitation is to limit it to high level items but at the top of file that is the destination of a high level link, create a much richer inline html toc that shows the level of detail you want just for that chapter or section.
That way, a click on the official ToC gets brings you automatically to a new html toc so that a second click gets you any where you want inside that destination chapter/file. FWIW, Epub3 does support fixed page layout (but Sigil does not) but frankly multi-reader support is poor due to differing screen sizes. A pdf is therefore often a better choice instead of a fixed layout epub3. Fixed layout epub3s are often used to target children's picture books. Sigil targets the more accessible reflowable epub2 and epub3 formats. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,986
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#7 | ||
Just a Cow
![]() Posts: 11
Karma: 10
Join Date: Mar 2022
Location: Pasture
Device: Kobo Sage
|
Quote:
I originally had every testament/book/chapter as its own TOC item, and all in, that came to 1430 items (combination book of OT, NT, and Apocrypha). So instead I took out the chapters and put those as links on the individual book covers and I think it looks/functions great like this. I couldn't find a readable digital copy of this translation (font readability+eyesight issues), so I decided to undertake my own massive data scraping operation to pull all the data together and assemble my own epub out of it. Due to the translation from 14th century Middle English to modern English, there's a pretty massive glossary of terms that I need to reference a lot.. hence I was hoping to give myself some quick links to make it as easy as possible to reference the glossary. I think I will just add a shortcut to the glossary on each chapter title, as well as on each of the book covers. Quote:
|
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Position and/or page number | mhbeyle | Kindle Developer's Corner | 3 | 01-02-2017 05:34 AM |
Aura CBR CBZ - Zoomed page position | matteo.piccioni | Kobo Reader | 0 | 09-14-2016 02:59 AM |
PDF reader: how to lock position page | mortimer7 | Kobo Reader | 0 | 02-19-2016 05:36 PM |
What ePub page/position calculation methods are there? | mattcurtis | ePub | 22 | 06-01-2013 10:48 AM |
blank TOC page - attribute 'link' not declared for element 'body' | wyatt650 | Sigil | 4 | 04-18-2013 01:41 PM |