Permalink
Browse files

[offline-renderer] fix off by one error in Japanese index

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent f4a823f commit 275692b7bb2483aded1076f5e2d4f9e216b878b4 @hxw hxw committed Mar 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 host-tools/offline-renderer/ArticleIndex.py
@@ -847,7 +847,7 @@ def romanise(self, text):
duplicate = False
last = len(text) - 1
while i <= last:
- key = text[i:i + 1]
+ key = text[i:i + 2] # extract a pair of phonetics
if not (i < last and key in self.KANA_TO_ROMAN):
key = text[i]

0 comments on commit 275692b

Please sign in to comment.