mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Use setStringProperty method to set hyphenation dictionary.
This commit is contained in:
@@ -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