Custom metadata (#10861)
This commit is contained in:
1 parent
0ef7729678
commit
ed2ea6803f
8 files changed
+475
-233
No files matched your search
@@ -778,7 +778,7 @@ function ReaderTypography:onPreRenderDocument(config)
|
||||
-- This is called after the document has been loaded,
|
||||
-- when we know and can access the document language.
|
||||
local props = self.ui.document:getProps()
|
||||
local doc_language = FileManagerBookInfo.customizeProps(props, self.ui.document.file).language
|
||||
local doc_language = FileManagerBookInfo.extendProps(props, self.ui.document.file).language
|
||||
self.book_lang_tag = self:fixLangTag(doc_language)
|
||||
|
||||
local is_known_lang_tag = self.book_lang_tag and LANG_TAG_TO_LANG_NAME[self.book_lang_tag] ~= nil
|
||||
|
||||
Reference in new issue
Block a user