mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
KeyValuePage: configurable items per page
Tweak building to start from items per page instead of a fixed item height. Guess the best font size that fit. Update separator specification from using a "----" to the now generic separator=true (this allows not wasting a slot for each separator in the page and not have only 12 items and 2 small lines in a 14 items page).
This commit is contained in:
@@ -807,7 +807,7 @@ function ReaderTypography:onPreRenderDocument(config)
|
||||
-- Add a menu item to language sub-menu, whether the lang is known or not, so the
|
||||
-- user can see it and switch from and back to it easily
|
||||
table.insert(self.language_submenu, 1, {
|
||||
text = T(_("Book language: %1"), self.book_lang_tag or _("n/a")),
|
||||
text = T(_("Book language: %1"), self.book_lang_tag or _("N/A")),
|
||||
callback = function()
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = T(_("Changed language for typography rules to book language: %1."), BD.wrap(self.book_lang_tag)),
|
||||
|
||||
Reference in New Issue
Block a user