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:
poire-z
2018-06-28 23:27:03 +02:00
committed by GitHub
parent 6877ade4fd
commit d3d30c405a
3 changed files with 32 additions and 2 deletions

View File

@@ -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()