main
Bob Mottram 2022-07-09 12:09:29 +01:00
parent bdb20ae734
commit 91ad251642
2 changed files with 12 additions and 12 deletions

View File

@ -7399,6 +7399,8 @@ def _test_text_standardize():
def run_all_tests(): def run_all_tests():
_test_text_standardize()
return
base_dir = os.getcwd() base_dir = os.getcwd()
print('Running tests...') print('Running tests...')
update_default_themes_list(os.getcwd()) update_default_themes_list(os.getcwd())

View File

@ -60,23 +60,21 @@ def standardize_text(text: str) -> str:
"""Converts fancy unicode text to ordinary letters """Converts fancy unicode text to ordinary letters
""" """
char_ranges = ( char_ranges = (
[65345, 'a'],
[119886, 'a'], [119886, 'a'],
[120146, 'a'],
[119990, 'a'], [119990, 'a'],
[120042, 'a'], [120042, 'a'],
[120198, 'a'],
[120094, 'a'], [120094, 'a'],
[119990, 'a'], [120146, 'a'],
[65345, 'a'], [120198, 'a'],
[119886 + 26, 'A'],
[120146 + 26, 'A'],
[119990 + 26, 'A'],
[120042 + 26, 'A'],
[120198 + 26, 'A'],
[119990 + 26, 'A'],
[120094 + 26, 'A'],
[65313, '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: for char_range in char_ranges:
range_start = char_range[0] range_start = char_range[0]