def klc_comment(u, mirrored=False, none=mark_safe("<none>")): if not u: return none c = mirror(u, mirrored) mir = " (mirrored)" if c!=u else "" return char_name(c)+mir
def get_pattern(braille_char): temp = char_name(braille_char).split("-") # All the characters except the blank cell will have 2 items in temp if len(temp) == 2: return (int(temp[1])) else: return (0)
def xkb_comment(u, mirrored=False): if not u: return "" c = mirror(u, mirrored) if 32 < ord(c) < 128 and c.isalnum(): return c mir = " (mirrored)" if c!=u else "" return char_name(c)+mir