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

@@ -313,6 +313,13 @@ function CreDocument:setFontFace(new_font_face)
end
end
function CreDocument:setHyphDictionary(new_hyph_dictionary)
if new_hyph_dictionary then
DEBUG("CreDocument: set hyphenation dictionary", new_hyph_dictionary)
self._document:setStringProperty("crengine.hyphenation.directory", new_hyph_dictionary)
end
end
function CreDocument:clearSelection()
DEBUG("clear selection")
self._document:clearSelection()