From 7146acb9d4ad751fc5ced411a2990d0aad17d08f Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 6 Nov 2022 12:50:38 -0800 Subject: String matching no longer relies on spaces Add a `matchStrings` which does basically the same thing as `matchStringList` except it doesn't split the input at space boundaries. I think this should work better for Japanese and Chinese, since they don't use spaces. Doesn't seem to cause any accuracy regressions for English. Also update the README. --- osc_ctrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'osc_ctrl.py') diff --git a/osc_ctrl.py b/osc_ctrl.py index e5a2608..bb6dd87 100644 --- a/osc_ctrl.py +++ b/osc_ctrl.py @@ -119,7 +119,7 @@ def splitMessage(msg): line = "" word_prefix = word[0:BOARD_COLS-1] + "-" word_suffix = word[BOARD_COLS-1:] - print("append prefix {}".format(word_prefix)) + #print("append prefix {}".format(word_prefix)) lines.append(word_prefix) word = word_suffix -- cgit v1.2.3