Custom metadata (#10861)

This commit is contained in:
hius07
2023-09-01 08:07:29 +03:00
committed by GitHub
parent 0ef7729678
commit ed2ea6803f
8 changed files with 475 additions and 233 deletions

View File

@@ -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