mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-12 03:45:34 +00:00
fix(common/models): forgot DummyModel.tokenize
This commit is contained in:
parent
2953a909e6
commit
af4e03662d
1 changed files with 5 additions and 0 deletions
|
|
@ -82,6 +82,11 @@ namespace models {
|
|||
}
|
||||
}
|
||||
|
||||
tokenize(context: Context): USVString[] {
|
||||
let words = wordBreakers.default_(context.left);
|
||||
return words.map(span => span.text);
|
||||
}
|
||||
|
||||
wordbreak(context: Context): USVString {
|
||||
let words = wordBreakers.default_(context.left);
|
||||
if (words.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue