View Single Post
Old 06-15-2020, 12:17 PM   #19
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,255
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by ZodWallop View Post
Given the 'one screen = one page' nature of kepub now (a change I prefer, honestly), would it be possible for your TOC hack to update the page numbers based on that?
No, I'm afraid not, it's a one-time hack re-write of the NCX and/or NAV file during calibre send-to-device. I never claimed this was classy.
Quote:
Originally Posted by ZodWallop View Post
For example, the Kobo knows to change the total page count from 400 pages to 538 pages when I increase the font. It is also able to recalculate the pages per chapter. So the Kobo knows that Chapter Four use to start on page 56, but now starts on 64. I wonder if that could be used to add the page number to the TOC?
I wouldn't even know where to start to do a TOC re-calc on-the-fly every time the line-height/font-size/margins were changed. It doesn't necessarily mean that someone more technically adept than me wouldn't, though. I do wonder what negative impact it might have on performance. Also, the TOC has always been central, in some way, to how Kobo has chosen to do things. So I do wonder whether having fluid TOC contents is even possible.
jackie_w is offline   Reply With Quote