You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: