Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nishimotz opened this issue Apr 21, 2017 · 0 comments
Milestone

Comments

@nishimotz
Copy link
Member

nishimotz commented Apr 21, 2017

--- 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':'⠲⠶⠝⠑⠺⠎⠱',
+	},
        ]
nishimotz added a commit that referenced this issue Apr 21, 2017
nishimotz added a commit that referenced this issue Apr 21, 2017
nishimotz added a commit that referenced this issue Apr 21, 2017
nishimotz added a commit that referenced this issue Apr 21, 2017
nishimotz added a commit that referenced this issue Apr 21, 2017
@nishimotz nishimotz added this to the 2017.2jp milestone Apr 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant