Skip to content

Commit d3934b9

Browse files
committed
Replace Devanagari numerals with Arabic numerals
1 parent 4c096ba commit d3934b9

File tree

2 files changed

+29
-30
lines changed

2 files changed

+29
-30
lines changed

mathparse/mathparse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import Union
66
from . import mathwords
77
import re
8-
import unicodedata
98

109

1110
class PostfixTokenEvaluationException(Exception):

mathparse/mathwords.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -376,35 +376,35 @@
376376
'गुण्या करण्यासाठी': '^'
377377
},
378378
'numbers': {
379-
'शून्य': '0',
380-
'एक': '१',
381-
'दोन': '२',
382-
'तीन': '३',
383-
'चार': '४',
384-
'पाच': '५',
385-
'सहा': '६',
386-
'सात': '७',
387-
'आठ': '८',
388-
'नऊ': '९',
389-
'दहा': '१०',
390-
'अकरा': '११',
391-
'बारा': '१२',
392-
'तेरा': '१३',
393-
'चौदा': '१४',
394-
'पंधरा': '१५',
395-
'सोळा': '१६',
396-
'सतरा': '१७',
397-
'अठरा': '१८',
398-
'एकोणीस': '१९',
399-
'वीस': '२०',
400-
'तीस': '३०',
401-
'चाळीस': '४०',
402-
'पन्नास': '५०',
403-
'साठ': '६०',
404-
'सत्तर': '७०',
405-
'ऐंशी': '८०',
406-
'नव्वद': '९०',
407-
'शंभर': '१००'
379+
'शून्य': 0,
380+
'एक': 1,
381+
'दोन': 2,
382+
'तीन': 3,
383+
'चार': 4,
384+
'पाच': 5,
385+
'सहा': 6,
386+
'सात': 7,
387+
'आठ': 8,
388+
'नऊ': 9,
389+
'दहा': 10,
390+
'अकरा': 11,
391+
'बारा': 12,
392+
'तेरा': 13,
393+
'चौदा': 14,
394+
'पंधरा': 15,
395+
'सोळा': 16,
396+
'सतरा': 17,
397+
'अठरा': 18,
398+
'एकोणीस': 19,
399+
'वीस': 20,
400+
'तीस': 30,
401+
'चाळीस': 40,
402+
'पन्नास': 50,
403+
'साठ': 60,
404+
'सत्तर': 70,
405+
'ऐंशी': 80,
406+
'नव्वद': 90,
407+
'शंभर': 100
408408
},
409409
'scales': {
410410
'शंभर': 100,

0 commit comments

Comments
 (0)