brown.utils.smufl

methods

get_basic_glyph_info (name) permalink view source

Find the {"codepoint", "description"} dict for a canonical glyph name.

arguments:

name (str): The name of the glyph

returns:

dict {"codepoint": str, "description": str}: Information on the glyph

char_from_glyph_name (name) permalink view source

Find the unicode character for a given glyph name

arguments:

name (str): The name of the glyph

returns:

str: The unicode character corresponding to the glyph name

description_from_glyph_name (name) permalink view source

Find the description for a given glyph name

arguments:

name (str): The name of the glyph

returns:

str: The glyph's short description

get_glyph_range_key (name) permalink view source

Find the range the glyph with name belongs to.

arguments:

name (str): The name of the glyph

returns:

str: The key for ranges of the range the glyph belongs in

get_glyph_classes (name) permalink view source

Find all of the classes the glyph with name belongs in.

arguments:

name (str): The name of the glyph

returns:

set[str]: The classes the glyph belongs in

warning:

This is potentially a slow function. If it starts being used a lot, probably consider building a more efficient data structure around this look-up.