'comment': 'braille code (with space) should not be changed.',\r
},\r
{\r
+ 'text': '⠒⠓⠔⠕⠖⠗⠘⠙あ⠚⠛⠜⠝⠞⠟ ',\r
+ 'input': '⠒⠓⠔⠕⠖⠗⠘⠙ア⠚⠛⠜⠝⠞⠟ ',\r
+ 'comment': 'braille code (with space) should not be changed.',\r
+ },\r
+\r
+\r
+ {\r
'text': '⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿',\r
'input': '⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿',\r
'output': '⠠⠡⠢⠣⠤⠥⠦⠧⠨⠩⠪⠫⠬⠭⠮⠯⠰⠱⠲⠳⠴⠵⠶⠷⠸⠹⠺⠻⠼⠽⠾⠿',\r
li[i-1].sepflag = should_separate(prev2_mo, prev_mo, li[i], next_mo, nabcc=nabcc)\r
\r
# do not translate if string is unicode braille\r
- for mo in li:\r
- if all((0x2800 <= ord(c) <= 0x28ff or c == ' ') for c in mo.hyouki):\r
- mo.output = mo.hyouki\r
+ for i in xrange(0, len(li)):\r
+ mo = li[i]\r
+ if all((0x2800 <= ord(c) <= 0x28ff or c == '\u3000') for c in mo.hyouki):\r
+ mo.output = mo.hyouki.replace('\u3000', ' ')\r
mo.sepflag = False\r
+ if i > 0:\r
+ li[i-1].sepflag = False\r
\r
for mo in li:\r
mo.write(logwrite)\r