KeyHandler // Bind mgrPrefs.useScoreBalancing option.

This commit is contained in:
ShikiSuen 2022-05-22 09:54:11 +08:00
parent 2b786b2356
commit 51fa28557b
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ class KeyHandler {
// of the best possible Mandarin characters given the input syllables,
// using the Viterbi algorithm implemented in the Megrez library.
// The walk() traces the grid to the end, hence no need to use .reversed() here.
_walkedNodes = _builder.walk(at: _builder.grid.width, nodesLimit: 10, balanced: true)
_walkedNodes = _builder.walk(
at: _builder.grid.width, nodesLimit: 10, balanced: mgrPrefs.useScoreBalancing
)
}
var popOverflowComposingTextAndWalk: String {