Closed
Description
--- a/jptools/harness.py
+++ b/jptools/harness.py
@@ -5582,4 +5582,17 @@ tests = [
'input':"イマサラ ツカッテ ミタケド、80's ヲ サイゲン デキル",
'output':' ',
},
+ # NABCCの場合に数字に続いてアルファベットがあるとスペースが入る
+ {
+ 'text':'30adac67',
+ 'input':'30adac67',
+ },
+ {
+ 'text':'[0-9A-Za-z]',
+ 'input':'⠦[0-9A-Za-z]⠴',
+ },
+ {
+ 'text':'47news:',
+ 'input':'⠦47news:⠴',
+ },
]
diff --git a/jptools/nabccHarness.py b/jptools/nabccHarness.py
index 9dbe0d4..d58d2c1 100644
--- a/jptools/nabccHarness.py
+++ b/jptools/nabccHarness.py
@@ -223,4 +223,23 @@ tests = [
'input': "how are you",
'output': ' ',
},
+ # 数字に続いてアルファベットがあるとスペースが入る
+ {
+ 'mode':'NABCC',
+ 'text':'30adac67',
+ 'input':'30adac67',
+ 'output':'⠒⠴⠁⠙⠁⠉⠖⠶',
+ },
+ {
+ 'mode':'NABCC',
+ 'text':'[0-9A-Za-z]',
+ 'input':'[0-9A-Za-z]',
+ 'output':'⡪⠴⠤⠔⡁⠤⡵⠁⠤⠵⡻',
+ },
+ {
+ 'mode':'NABCC',
+ 'text':'47news:',
+ 'input':'47news:',
+ 'output':'⠲⠶⠝⠑⠺⠎⠱',
+ },
]
Metadata
Metadata
Assignees
Labels
No labels