@@ -41,12 +41,12 @@ def get_unicode_index(symbol, math=True):
4141 Parameters
4242 ----------
4343 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
4545 symbol name (e.g. 'phi').
4646 math : bool, default: True
47- If False, always treat as a single unicode character.
47+ If False, always treat as a single Unicode character.
4848 """
49- # for a non-math symbol, simply return its unicode index
49+ # for a non-math symbol, simply return its Unicode index
5050 if not math :
5151 return ord (symbol )
5252 # From UTF #25: U+2212 minus sign is the preferred
@@ -56,7 +56,7 @@ def get_unicode_index(symbol, math=True):
5656 # length, usually longer than a hyphen.
5757 if symbol == '-' :
5858 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
6060 return ord (symbol )
6161 except TypeError :
6262 pass
@@ -482,7 +482,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
482482 except ValueError :
483483 uniindex = ord ('?' )
484484 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 ))
486486
487487 fontname , uniindex = self ._map_virtual_font (
488488 fontname , font_class , uniindex )
0 commit comments