mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine: fix handling of soft-hyphens (#4025)
Adds a new Hyphenation method: Soft-hyphens only. Adds a new toggable option, usable with Algorithm and language based methods: Trust soft hyphens (if enabled, if soft hyphens found in word: use them and skip regular method).
This commit is contained in:
@@ -454,6 +454,11 @@ function CreDocument:setHyphRightHyphenMin(value)
|
||||
self._document:setIntProperty("crengine.hyphenation.right.hyphen.min", value or 2)
|
||||
end
|
||||
|
||||
function CreDocument:setTrustSoftHyphens(toggle)
|
||||
logger.dbg("CreDocument: set hyphenation trust soft hyphens", toggle and 1 or 0)
|
||||
self._document:setIntProperty("crengine.hyphenation.trust.soft.hyphens", toggle and 1 or 0)
|
||||
end
|
||||
|
||||
function CreDocument:clearSelection()
|
||||
logger.dbg("clear selection")
|
||||
self._document:clearSelection()
|
||||
|
||||
Reference in New Issue
Block a user