View Single Post
Old 02-26-2019, 08:35 PM   #188
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,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by davidfor View Post
There are going to be two problems with doing this. One is changing the layout of the screen to show the ToC levels. The other is to get the levels. The latter is what I know about.

The ToC is built from the database. The database is populated when importing the books for sideloading, or when the books are downloaded from the Kobo server. There is a column in the database that appears to be for the ToC levels (content.Depth), but it is not populated for sideloaded books (always zero). It appears to be set for purchased books. Populating the column for sideloaded books wouldn't be that hard. But, whether this is read and put somewhere that can be used when building the ToC screen, I don't know.
Rather than trying to wrangle the Kobo firmware it might be easier to add it as an extra option in KoboTouch to be called during send-to-device. A bit like 'Modify CSS', but this would be 'Modify TOC'.

I think calibre's TOC functions could be used to add some kind of pseudo-indentation padding as a prefix to each TOC entry's text.

This would only work for sideloaded epub/kepub, of course. Not necessarily the most elegant solution, but it might suffice.
jackie_w is offline   Reply With Quote