Chardetails is a python library to get details of the charecters of a given unicode encoded string.
Shows the Unicode Character Details of a given character
Gives details of all charecters in the given string.
Parameters: | text (str.) – The unicode string to be examined. |
---|---|
Returns: | dictionary with details. |
>>> import chardetails.getInstance
>>> a = getInstance()
>>> a.getdetails(u"run")
{'Characters': [u'r', u'u', u'n'],
u'n': {'AlphaNumeric': 'True',
'Alphabet': 'True',
'Canonical Decomposition': '',
'Code point': "u'n'",
'Digit': 'False',
'HTML Entity': '110',
'Name': 'LATIN SMALL LETTER N'},
u'r': {'AlphaNumeric': 'True',
'Alphabet': 'True',
'Canonical Decomposition': '',
'Code point': "u'r'",
'Digit': 'False',
'HTML Entity': '114',
'Name': 'LATIN SMALL LETTER R'},
u'u': {'AlphaNumeric': 'True',
'Alphabet': 'True',
'Canonical Decomposition': '',
'Code point': "u'u'",
'Digit': 'False',
'HTML Entity': '117',
'Name': 'LATIN SMALL LETTER U'}}
Returns an instance of CharDetails class.