Use setStringProperty method to set hyphenation dictionary.

This commit is contained in:
Andrey Golovizin
2014-11-15 12:22:47 +01:00
parent 7dbe940b71
commit 99eecde875
2 changed files with 9 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ function ReaderHyphenation:init()
text = _("Change Hyphenation to ")..v,
})
self:_changeSel(k)
cre.setHyphDictionary(v)
self.ui.document:setHyphDictionary(v)
self.ui.toc:onUpdateToc()
end
})
@@ -43,7 +43,7 @@ end
function ReaderHyphenation:onReadSettings(config)
local hyph_alg = config:readSetting("hyph_alg")
if hyph_alg then
cre.setHyphDictionary(hyph_alg)
self.ui.document:setHyphDictionary(hyph_alg)
end
self.hyph_alg = cre.getSelectedHyphDict()
for k,v in ipairs(self.hyph_table) do