Use setStringProperty method to set hyphenation dictionary.
This commit is contained in:
1 parent
7dbe940b71
commit
99eecde875
2 files changed
+9
-2
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user