Quote:
Originally Posted by davidfor
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.