-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdictionaries.py
117 lines (105 loc) · 2.17 KB
/
dictionaries.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Author ......: Sotirios M. Roussis aka. xtonousou <xtonousou@gmail.com>
# Date ........: 20170628
"""
Dictionary library for grklsh.py
"""
def get_char_dict():
"""
Returns char dictionary
@return char_dict: Greek <-> Greeklish character dictionary
"""
char_dict = {
'Ά': 'A',
'Α': 'A',
'ά': 'a',
'α': 'a',
'Έ': 'E',
'Ε': 'E',
'έ': 'e',
'ε': 'e',
'Ή': 'H',
'Η': 'H',
'ή': 'h',
'η': 'h',
'Ϊ': 'I',
'Ί': 'I',
'Ι': 'I',
'ΐ': 'i',
'ϊ': 'i',
'ί': 'i',
'ι': 'i',
'Ό': 'O',
'Ο': 'O',
'ό': 'o',
'ο': 'o',
'Ϋ': 'Y',
'Ύ': 'Y',
'Υ': 'Y',
'ΰ': 'y',
'ϋ': 'y',
'ύ': 'y',
'υ': 'y',
'Ώ': 'W',
'Ω': 'W',
'ώ': 'w',
'ω': 'w',
'Β': 'B',
'β': 'b',
'Γ': 'G',
'γ': 'g',
'Δ': 'D',
'δ': 'd',
'Ζ': 'Z',
'ζ': 'z',
'Θ': '8',
'θ': '8',
'Κ': 'K',
'κ': 'k',
'Λ': 'L',
'λ': 'l',
'Μ': 'M',
'μ': 'm',
'Ν': 'N',
'ν': 'n',
'Ξ': '3',
'ξ': '3',
'Π': 'P',
'π': 'p',
'Ρ': 'R',
'ρ': 'r',
'Σ': 'S',
'σ': 's',
'ς': 's',
'Τ': 'T',
'τ': 't',
'Φ': 'F',
'φ': 'f',
'Χ': 'X',
'χ': 'x',
'Ψ': 'Ps',
'ψ': 'ps',
';': '?',
'·': ';',
'«': '<<',
'»': '>>',
'…': '...'
}
return char_dict
def get_color_dict():
"""
Returns colors dictionary
@return color_dict: dictionary containing all available colors
"""
color_dict = {
'HEADER': '\033[95m',
'OKBLUE': '\033[94m',
'OKGREEN': '\033[92m',
'WARNING': '\033[93m',
'FAIL': '\033[91m',
'ENDC': '\033[0m',
'BOLD': '\033[1m',
'UNDERLINE': '\033[4m'
}
return color_dict