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

Not Working with Given Bangla Text #3

Open
AbhilashPal opened this issue Jun 24, 2019 · 1 comment
Open

Not Working with Given Bangla Text #3

AbhilashPal opened this issue Jun 24, 2019 · 1 comment

Comments

@AbhilashPal
Copy link

bt = 'চৌধুরী বলে দেন আমরা মধ্যস্থতা করতে ব্যর্থ সরকার এ বার যা করার'
bjt = test.convertUnicodeToBijoy(bt)
bjt

Output :


IndexError Traceback (most recent call last)
in ()
1 bt = 'চৌধুরী বলে দেন আমরা মধ্যস্থতা করতে ব্যর্থ সরকার এ বার যা করার'
2 print(len(bt))
----> 3 bjt = test.convertUnicodeToBijoy(bt)
4 bjt

c:\python35\lib\site-packages\bijoy2unicode\converter.py in convertUnicodeToBijoy(self, srcString)
576
577 # make correction
--> 578 srcString = self.reArranceUnicodeTextForASCI(srcString)
579
580 #inv_conversionMap = {v: k for k, v in conversionMap.items()}

c:\python35\lib\site-packages\bijoy2unicode\converter.py in reArranceUnicodeTextForASCI(self, str)
447
448 while True:
--> 449 if self.IsBanglaBanjonborno(util.mbCharAt(str,i+j)) and self.IsBanglaHalant(util.mbCharAt(str,i+j+1)):
450 j+=2
451

c:\python35\lib\site-packages\bijoy2unicode\util.py in mbCharAt(str, i)
12 def mbCharAt(str, i):
13 # return mb_substr(str, i, 1)
---> 14 return str[i]
15
16 # returns the javascript 'substring' method equivalent

IndexError: string index out of range

@roundspecs
Copy link

I am facing the same error 😞

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

2 participants