Add ReaderHandmade: support for custom TOC and hidden flows

Checkboxes under TOC>Settings> allow enabling Custom TOC
and Custom hidden flows (similar to "Hide non-linear fragments"
available with some EPUBs).
Handled by a new ReaderHandmade module.
Adding and removing TOC chapters is done in PageBrowser
with long-press on a page thumbnail, and for chapters also
in the popup dialog after selecting some text in a page.

ReaderToc: add a symbol in title when the TOC is the
alternative TOC or the custom TOC.
This commit is contained in:
poire-z
2023-10-08 17:51:56 +02:00
parent c51b0c7bb9
commit ea3f8951a3
8 changed files with 858 additions and 18 deletions

View File

@@ -31,14 +31,18 @@ local order = {
"go_to_next_location",
},
navi_settings = {
"toc_alt_toc",
"----------------------------",
"toc_ticks_level_ignore",
"----------------------------",
"toc_items_per_page",
"toc_items_font_size",
"toc_items_with_dots",
"----------------------------",
"toc_alt_toc",
"----------------------------",
"handmade_toc",
"handmade_hidden_flows",
"handmade_settings",
"----------------------------",
"bookmarks_settings",
},
typeset = {