NVDA with Japanese branch
リビジョン | 06b83642dd0ef5bc76783281606a4c9235609762 (tree) |
---|---|
日時 | 2015-07-31 21:32:55 |
作者 | Takuya Nishimoto <nishimotz@gmai...> |
コミッター | Takuya Nishimoto |
fix issue regarding ti33823
@@ -1593,7 +1593,9 @@ def speakWithoutPauses(speechSequence,detectBreaks=True): | ||
1593 | 1593 | for pos, item in enumerate(finalSpeechSequence): |
1594 | 1594 | if isinstance(item,basestring): |
1595 | 1595 | if currSentTextIsAsian: |
1596 | - c = item.lstrip()[0] | |
1596 | + c = item.lstrip() | |
1597 | + if c: | |
1598 | + c = c[0] | |
1597 | 1599 | if c and unicodedata.east_asian_width(c) == 'W': |
1598 | 1600 | currSentText = currSentText.rstrip() + item.lstrip() |
1599 | 1601 | log.debug("updated currSentText(%d)(%s)" % (currSentPos, currSentText)) |