Skip to content

点訳エンジン: NABCCの場合に数字に続いてアルファベットがあるとスペースが入る #37

Closed

Description

@nishimotz
--- 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':'⠲⠶⠝⠑⠺⠎⠱',
+	},
        ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions