@@ -41,12 +41,12 @@ def get_unicode_index(symbol, math=True):
41
41
Parameters
42
42
----------
43
43
symbol : str
44
- A single unicode character, a TeX command (e.g. r'\pi') or a Type1
44
+ A single (Unicode) character, a TeX command (e.g. r'\pi') or a Type1
45
45
symbol name (e.g. 'phi').
46
46
math : bool, default: True
47
- If False, always treat as a single unicode character.
47
+ If False, always treat as a single Unicode character.
48
48
"""
49
- # for a non-math symbol, simply return its unicode index
49
+ # for a non-math symbol, simply return its Unicode index
50
50
if not math :
51
51
return ord (symbol )
52
52
# From UTF #25: U+2212 minus sign is the preferred
@@ -56,7 +56,7 @@ def get_unicode_index(symbol, math=True):
56
56
# length, usually longer than a hyphen.
57
57
if symbol == '-' :
58
58
return 0x2212
59
- try : # This will succeed if symbol is a single unicode char
59
+ try : # This will succeed if symbol is a single Unicode char
60
60
return ord (symbol )
61
61
except TypeError :
62
62
pass
@@ -482,7 +482,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
482
482
except ValueError :
483
483
uniindex = ord ('?' )
484
484
found_symbol = False
485
- _log .warning ("No TeX to unicode mapping for {!a}." .format (sym ))
485
+ _log .warning ("No TeX to Unicode mapping for {!a}." .format (sym ))
486
486
487
487
fontname , uniindex = self ._map_virtual_font (
488
488
fontname , font_class , uniindex )
0 commit comments