ReaderTypeset: tweak Style> menu logic and defaults

- Reword and document most menu items.
- Handle internally two default styles, one applying only
  to FB2/FB2 books, and the other to all other formats.
- Also don't reset the stylesheet to epub.css when
  toggling Embedded Styles to off.
This commit is contained in:
poire-z
2024-03-10 12:21:49 +01:00
parent 93b3e3504d
commit 9467034f3f
2 changed files with 79 additions and 17 deletions

View File

@@ -173,6 +173,7 @@ function CreDocument:init()
self.default_css = "./data/epub.css"
if file_type == "fb2" or file_type == "fb3" then
self.default_css = "./data/fb2.css"
self.is_fb2 = true -- FB2 won't look good with any html-oriented stylesheet
end
-- This mode must be the same as the default one set as ReaderView.view_mode