1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!python3
"""
The most boring yet indispensable function: print!
Because you can print on Windows console without being sure the script won’t crash…
Windows console don’t accept many characters.
"""
import sys
_CHARMAP = str.maketrans({ 'œ': 'ö', 'Œ': 'Ö', 'ʳ': "r", 'ᵉ': "e", '…': "_", \
'“': '"', '”': '"', '„': '"', '‘': "'", '’': "'", \
'ā': 'â', 'Ā': 'Â', 'ē': 'ê', 'Ē': 'Ê', 'ī': 'î', 'Ī': 'Î', \
'ō': 'ô', 'Ō': 'Ô', 'ū': 'û', 'Ū': 'Û', 'Ÿ': 'Y', \
'ś': 's', 'ŝ': 's', \
'—': '-', '–': '-'
})
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!python3
"""
The most boring yet indispensable function: print!
Because you can print on Windows console without being sure the script won’t crash…
Windows console don’t accept many characters.
"""
import sys
_CHARMAP = str.maketrans({ 'œ': 'ö', 'Œ': 'Ö', 'ʳ': "r", 'ᵉ': "e", 'ˢ': "s", 'ᵈ': "d", '…': "_", \
'“': '"', '”': '"', '„': '"', '‘': "'", '’': "'", \
'ā': 'â', 'Ā': 'Â', 'ē': 'ê', 'Ē': 'Ê', 'ī': 'î', 'Ī': 'Î', \
'ō': 'ô', 'Ō': 'Ô', 'ū': 'û', 'Ū': 'Û', 'Ÿ': 'Y', \
'ś': 's', 'ŝ': 's', \
'—': '-', '–': '-'
})
|