atomic14 / diy-esp32-epub-reader

An ESP32 e-reader
MIT License
340 stars 47 forks source link

Handle nested table of contents #70

Closed cgreening closed 2 years ago

cgreening commented 2 years ago

How should we display this on the TOC list? Indentation/font styles?

martinberlin commented 2 years ago

I would make it easy:

  1. Main category in bold
  2. Sub-categories indentated two spaces right and normal font

Ex.

My main category __ sub-category title

I've only seen so far books with 2 levels (Poetry book) and just flat 1 level. Maybe there are most complex examples. We can also not use indentation and just display main category in bold. But only if there is at least 2 levels, otherwise all in bold, will be too much.