Skip to content

Instantly share code, notes, and snippets.

@mh-firouzjah
Last active August 2, 2021 09:48
Show Gist options
  • Save mh-firouzjah/607eae217470d5c4ac107de451e0ae9e to your computer and use it in GitHub Desktop.
Save mh-firouzjah/607eae217470d5c4ac107de451e0ae9e to your computer and use it in GitHub Desktop.
box-drawing characters and their representations in Unicode Strings

Unicode characters

Braille

2880  0  1 2 3 4 5  6 7 8 9  a b c d e f

2880⠀⠀               

2810                

2820                

2830                

2840                

2850                

2860                

2870                

2880                

2890                

28A0                

28B0                

28C0                

28D0                

28E0                

28F0                
28F0 0  1 2 3 4 5  6 7 8 9  a b c d e  f

BoxDrawing Characters

special charcters to create box or table.

BOX_DRAWING_CHARS = {
    "left_top_single": (u'\u250c', '┌'),
    "top_middle_single": (u'\u252C', '┬'),
    "right_top_single": (u'\u2510', '┐'),
    "left_middle_single": (u'\u251C', '├'),
    "middle_single": (u'\u253C', '┼'),
    "right_middle_single": (u'\u2524', '┤'),
    "left_bottom_single": (u'\u2514', '└'),
    "bottom_middle_single": (u'\u2534', '┴'),
    "right_bottom_single": (u'\u2518', '┘'),
    "horizontal_single": (u'\u2500', '─'),
    "vertical_pipe_single": (u'\u2502', '│'),
    "left_top_doubled": (u'\u2554', '╔'),
    "top_middle_doubled": (u'\u2566', '╦'),
    "right_top_doubled": (u'\u2557', '╗'),
    "left_middle_doubled": (u'\u2560', '╠'),
    "middle_doubled": (u'\u256C', '╬'),
    "right_middle_doubled": (u'\u2563', '╣'),
    "left_bottom_doubled": (u'\u255a', '╚'),
    "bottom_middle_doubled": (u'\u2569', '╩'),
    "right_bottom_doubled": (u'\u255d', '╝'),
    "horizontal_doubled": (u'\u2550', '═'),
    "vertical_pipe_doubled": (u'\u2551', '║'),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment