From 7d67a9a0d9a993f39dffb81af63725dba945f8a4 Mon Sep 17 00:00:00 2001 From: BlueNexus Date: Fri, 20 Apr 2018 12:30:41 +0100 Subject: [PATCH] The transliterator now works properly --- tools/languageconverter/transliterator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/languageconverter/transliterator.py b/tools/languageconverter/transliterator.py index 13afc0ae570..86a8fd6594e 100644 --- a/tools/languageconverter/transliterator.py +++ b/tools/languageconverter/transliterator.py @@ -13,7 +13,7 @@ def convert(mes): result = "" counter = 0 for char in mes: - if(char == 'd' and mes[counter + 1] == 'ʒ'): + if(len(mes) > counter + 1 and char == 'd' and mes[counter + 1] == 'ʒ'): result += 'N' else: result += pholet[char] if char in pholet else ''