Beispiel #1
0
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
Beispiel #2
0
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)
Beispiel #3
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