Debian Codegraph @

character_sets.go

raw
1 // Copyright (c) 2022 Brian J. Downs
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package spinner
16
17 const (
18 clockOneOClock = '\U0001F550'
19 clockOneThirty = '\U0001F55C'
20 )
21
22 // CharSets contains the available character sets
23 var CharSets = map[int][]string{
24 0: {"←", "↖", "↑", "↗", "→", "↘", "↓", "↙"},
25 1: {"▁", "▃", "▄", "▅", "▆", "▇", "█", "▇", "▆", "▅", "▄", "▃", "▁"},
26 2: {"▖", "▘", "▝", "▗"},
27 3: {"┤", "┘", "┴", "└", "├", "┌", "┬", "┐"},
28 4: {"◢", "◣", "◤", "◥"},
29 5: {"◰", "◳", "◲", "◱"},
30 6: {"◴", "◷", "◶", "◵"},
31 7: {"◐", "◓", "◑", "◒"},
32 8: {".", "o", "O", "@", "*"},
33 9: {"|", "/", "-", "\\"},
34 10: {"◡◡", "⊙⊙", "◠◠"},
35 11: {"⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"},
36 12: {">))'>", " >))'>", " >))'>", " >))'>", " >))'>", " <'((<", " <'((<", " <'((<"},
37 13: {"⠁", "⠂", "⠄", "⡀", "⢀", "⠠", "⠐", "⠈"},
38 14: {"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"},
39 15: {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"},
40 16: {"▉", "▊", "▋", "▌", "▍", "▎", "▏", "▎", "▍", "▌", "▋", "▊", "▉"},
41 17: {"■", "□", "▪", "▫"},
42
43 18: {"←", "↑", "→", "↓"},
44 19: {"╫", "╪"},
45 20: {"⇐", "⇖", "⇑", "⇗", "⇒", "⇘", "⇓", "⇙"},
46 21: {"⠁", "⠁", "⠉", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠤", "⠄", "⠄", "⠤", "⠠", "⠠", "⠤", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋", "⠉", "⠈", "⠈"},
47 22: {"⠈", "⠉", "⠋", "⠓", "⠒", "⠐", "⠐", "⠒", "⠖", "⠦", "⠤", "⠠", "⠠", "⠤", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋", "⠉", "⠈"},
48 23: {"⠁", "⠉", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠤", "⠄", "⠄", "⠤", "⠴", "⠲", "⠒", "⠂", "⠂", "⠒", "⠚", "⠙", "⠉", "⠁"},
49 24: {"⠋", "⠙", "⠚", "⠒", "⠂", "⠂", "⠒", "⠲", "⠴", "⠦", "⠖", "⠒", "⠐", "⠐", "⠒", "⠓", "⠋"},
50 25: {"ヲ", "ァ", "ィ", "ゥ", "ェ", "ォ", "ャ", "ュ", "ョ", "ッ", "ア", "イ", "ウ", "エ", "オ", "カ", "キ", "ク", "ケ", "コ", "サ", "シ", "ス", "セ", "ソ", "タ", "チ", "ツ", "テ", "ト", "ナ", "ニ", "ヌ", "ネ", "ノ", "ハ", "ヒ", "フ", "ヘ", "ホ", "マ", "ミ", "ム", "メ", "モ", "ヤ", "ユ", "ヨ", "ラ", "リ", "ル", "レ", "ロ", "ワ", "ン"},
51 26: {".", "..", "..."},
52 27: {"▁", "▂", "▃", "▄", "▅", "▆", "▇", "█", "▉", "▊", "▋", "▌", "▍", "▎", "▏", "▏", "▎", "▍", "▌", "▋", "▊", "▉", "█", "▇", "▆", "▅", "▄", "▃", "▂", "▁"},
53 28: {".", "o", "O", "°", "O", "o", "."},
54 29: {"+", "x"},
55 30: {"v", "<", "^", ">"},
56 31: {">>--->", " >>--->", " >>--->", " >>--->", " >>--->", " <---<<", " <---<<", " <---<<", " <---<<", "<---<<"},
57 32: {"|", "||", "|||", "||||", "|||||", "|||||||", "||||||||", "|||||||", "||||||", "|||||", "||||", "|||", "||", "|"},
58 33: {"[ ]", "[= ]", "[== ]", "[=== ]", "[==== ]", "[===== ]", "[====== ]", "[======= ]", "[======== ]", "[========= ]", "[==========]"},
59 34: {"(*---------)", "(-*--------)", "(--*-------)", "(---*------)", "(----*-----)", "(-----*----)", "(------*---)", "(-------*--)", "(--------*-)", "(---------*)"},
60 35: {"█▒▒▒▒▒▒▒▒▒", "███▒▒▒▒▒▒▒", "█████▒▒▒▒▒", "███████▒▒▒", "██████████"},
61 36: {"[ ]", "[=> ]", "[===> ]", "[=====> ]", "[======> ]", "[========> ]", "[==========> ]", "[============> ]", "[==============> ]", "[================> ]", "[==================> ]", "[===================>]"},
62 39: {"🌍", "🌎", "🌏"},
63 40: {"◜", "◝", "◞", "◟"},
64 41: {"⬒", "⬔", "⬓", "⬕"},
65 42: {"⬖", "⬘", "⬗", "⬙"},
66 43: {"[>>> >]", "[]>>>> []", "[] >>>> []", "[] >>>> []", "[] >>>> []", "[] >>>>[]", "[>> >>]"},
67 44: {"♠", "♣", "♥", "♦"},
68 45: {"➞", "➟", "➠", "➡", "➠", "➟"},
69 46: {" | ", ` \ `, "_ ", ` \ `, " | ", " / ", " _", " / "},
70 47: {" . . . .", ". . . .", ". . . .", ". . . .", ". . . . ", ". . . . ."},
71 48: {" | ", " / ", " _ ", ` \ `, " | ", ` \ `, " _ ", " / "},
72 49: {"⎺", "⎻", "⎼", "⎽", "⎼", "⎻"},
73 50: {"▹▹▹▹▹", "▸▹▹▹▹", "▹▸▹▹▹", "▹▹▸▹▹", "▹▹▹▸▹", "▹▹▹▹▸"},
74 51: {"[ ]", "[ =]", "[ ==]", "[ ===]", "[====]", "[=== ]", "[== ]", "[= ]"},
75 52: {"( ● )", "( ● )", "( ● )", "( ● )", "( ●)", "( ● )", "( ● )", "( ● )", "( ● )"},
76 53: {"✶", "✸", "✹", "✺", "✹", "✷"},
77 54: {"▐|\\____________▌", "▐_|\\___________▌", "▐__|\\__________▌", "▐___|\\_________▌", "▐____|\\________▌", "▐_____|\\_______▌", "▐______|\\______▌", "▐_______|\\_____▌", "▐________|\\____▌", "▐_________|\\___▌", "▐__________|\\__▌", "▐___________|\\_▌", "▐____________|\\▌", "▐____________/|▌", "▐___________/|_▌", "▐__________/|__▌", "▐_________/|___▌", "▐________/|____▌", "▐_______/|_____▌", "▐______/|______▌", "▐_____/|_______▌", "▐____/|________▌", "▐___/|_________▌", "▐__/|__________▌", "▐_/|___________▌", "▐/|____________▌"},
78 55: {"▐⠂ ▌", "▐⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂▌", "▐ ⠠▌", "▐ ⡀▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐ ⠠ ▌", "▐ ⠂ ▌", "▐ ⠈ ▌", "▐ ⠂ ▌", "▐ ⠠ ▌", "▐ ⡀ ▌", "▐⠠ ▌"},
79 56: {"¿", "?"},
80 57: {"⢹", "⢺", "⢼", "⣸", "⣇", "⡧", "⡗", "⡏"},
81 58: {"⢄", "⢂", "⢁", "⡁", "⡈", "⡐", "⡠"},
82 59: {". ", ".. ", "...", " ..", " .", " "},
83 60: {".", "o", "O", "°", "O", "o", "."},
84 61: {"▓", "▒", "░"},
85 62: {"▌", "▀", "▐", "▄"},
86 63: {"⊶", "⊷"},
87 64: {"▪", "▫"},
88 65: {"□", "■"},
89 66: {"▮", "▯"},
90 67: {"-", "=", "≡"},
91 68: {"d", "q", "p", "b"},
92 69: {"∙∙∙", "●∙∙", "∙●∙", "∙∙●", "∙∙∙"},
93 70: {"🌑 ", "🌒 ", "🌓 ", "🌔 ", "🌕 ", "🌖 ", "🌗 ", "🌘 "},
94 71: {"☗", "☖"},
95 72: {"⧇", "⧆"},
96 73: {"◉", "◎"},
97 74: {"㊂", "㊀", "㊁"},
98 75: {"⦾", "⦿"},
99 76: {"ဝ", "၀"},
100 77: {"▌", "▀", "▐▄"},
101 78: {"⠈⠁", "⠈⠑", "⠈⠱", "⠈⡱", "⢀⡱", "⢄⡱", "⢄⡱", "⢆⡱", "⢎⡱", "⢎⡰", "⢎⡠", "⢎⡀", "⢎⠁", "⠎⠁", "⠊⠁"},
102 79: {"________", "-_______", "_-______", "__-_____", "___-____", "____-___", "_____-__", "______-_", "_______-", "________", "_______-", "______-_", "_____-__", "____-___", "___-____", "__-_____", "_-______", "-_______", "________"},
103 80: {"|_______", "_/______", "__-_____", "___\\____", "____|___", "_____/__", "______-_", "_______\\", "_______|", "______\\_", "_____-__", "____/___", "___|____", "__\\_____", "_-______"},
104 81: {"□", "◱", "◧", "▣", "■"},
105 82: {"□", "◱", "▨", "▩", "■"},
106 83: {"░", "▒", "▓", "█"},
107 84: {"░", "█"},
108 85: {"⚪", "⚫"},
109 86: {"◯", "⬤"},
110 87: {"▱", "▰"},
111 88: {"➊", "➋", "➌", "➍", "➎", "➏", "➐", "➑", "➒", "➓"},
112 89: {"½", "⅓", "⅔", "¼", "¾", "⅛", "⅜", "⅝", "⅞"},
113 90: {"↞", "↟", "↠", "↡"},
114 }
115
116 func init() {
117 for i := rune(0); i < 12; i++ {
118 CharSets[37] = append(CharSets[37], string([]rune{clockOneOClock + i}))
119 CharSets[38] = append(CharSets[38], string([]rune{clockOneOClock + i}), string([]rune{clockOneThirty + i}))
120 }
121 }