mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
bdb20ae734
commit
91ad251642
2
tests.py
2
tests.py
|
@ -7399,6 +7399,8 @@ def _test_text_standardize():
|
|||
|
||||
|
||||
def run_all_tests():
|
||||
_test_text_standardize()
|
||||
return
|
||||
base_dir = os.getcwd()
|
||||
print('Running tests...')
|
||||
update_default_themes_list(os.getcwd())
|
||||
|
|
22
utils.py
22
utils.py
|
@ -60,23 +60,21 @@ def standardize_text(text: str) -> str:
|
|||
"""Converts fancy unicode text to ordinary letters
|
||||
"""
|
||||
char_ranges = (
|
||||
[65345, 'a'],
|
||||
[119886, 'a'],
|
||||
[120146, 'a'],
|
||||
[119990, 'a'],
|
||||
[120042, 'a'],
|
||||
[120198, 'a'],
|
||||
[120094, 'a'],
|
||||
[119990, 'a'],
|
||||
[65345, 'a'],
|
||||
[119886 + 26, 'A'],
|
||||
[120146 + 26, 'A'],
|
||||
[119990 + 26, 'A'],
|
||||
[120042 + 26, 'A'],
|
||||
[120198 + 26, 'A'],
|
||||
[119990 + 26, 'A'],
|
||||
[120094 + 26, 'A'],
|
||||
[120146, 'a'],
|
||||
[120198, 'a'],
|
||||
[65313, 'A'],
|
||||
[119964, 'A']
|
||||
[119912, 'A'],
|
||||
[119964, 'A'],
|
||||
[120016, 'A'],
|
||||
[120068, 'A'],
|
||||
[120120, 'A'],
|
||||
[120172, 'A'],
|
||||
[120224, 'A']
|
||||
)
|
||||
for char_range in char_ranges:
|
||||
range_start = char_range[0]
|
||||
|
|
Loading…
Reference in New Issue