From 19bb5e07d7beec79f898eb8eec4fd5657e279fa3 Mon Sep 17 00:00:00 2001 From: jahorton Date: Wed, 15 Jan 2020 12:24:12 +0700 Subject: [PATCH] change(web): api compat with LMLayer SMP fixes --- web/source/text/prediction/modelManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/source/text/prediction/modelManager.ts b/web/source/text/prediction/modelManager.ts index 89025ce869..567b272ed6 100644 --- a/web/source/text/prediction/modelManager.ts +++ b/web/source/text/prediction/modelManager.ts @@ -108,9 +108,9 @@ namespace com.keyman.text.prediction { // Establishes KMW's platform 'capabilities', which limit the range of context a LMLayer // model may expect. let capabilities: Capabilities = { - maxLeftContextCodeUnits: 64, + maxLeftContextCodePoints: 64, // Since the apps don't yet support right-deletions. - maxRightContextCodeUnits: keyman.isEmbedded ? 0 : 64 + maxRightContextCodePoints: keyman.isEmbedded ? 0 : 64 } if(!this.canEnable()) {