Beta

Convert irregular characters

Description:

In this kata, your task is to replace all of the irregular characters with regular ones, following such example:

'ťēхţ' -> 'text'
'ĵõľĺÿ' -> 'jolly'
'sØMetНiпǦ' -> 'sOMetHinG'

All of the irregular characters in this kata are neatly compiled in the IRREGULAR list:

IRREGULAR = [
    'aàáâäæãɑå', 'AÀÁÂÄÆÅА', #A
    'вбbβ', 'BВ', #B
    'çĉċčćс', 'CÇĆČĈС', #C
    'dðďд', 'DÐĎ', #D
    'eèéêëėęēе', 'EÈÉÊËĘĖĒЕ', #E
    'ʄϝᶂᶠ', 'F𝕱Ꞙ', #F
    'gğĝġǧģ', 'GĞĜĠǦ', #G
    'ĥнħĥ', 'HĦĤН', #H
    'iìíīîïįıі', 'IÌÍÎÏĮİІ', #I
    'jĵ', 'JĴJ̃', #J
    'kķǩк', 'KĶǨК', #K
    'llłĺľ', 'LŁĹĽ', #L
    'мϻm', 'MМ', #M
    'nñńņňnп', 'NÑŃŅŇ', #N
    'oòóőоôõơoōöøœ', 'OÒÓÔÖØŒО', #O
    'ppþр', 'PÞР', #P
    'q𐞥q̃q̇', 'QꞯɊꟴ', #Q
    'rřŗŕг', 'RŘŖŔ', #R
    'sßśşšŝ', 'SŚŠŜ', #S
    'tŧţťт', 'TŦŢŤТ', #T
    'uùúûüųűů', 'UÙÚÛÜŲŰŮ', #U
    '۷ࡐʋv̇ṽ', 'VV̇ṾṼꝞ', #V
    'ԝաŵ', 'WŴ', #W
    'хx', 'XХ', #X
    'yÿýŷу', 'УYŸÝŶ', #Y
    'zźžż', 'ZŹŽŻ', #Z
    
]
Strings
Algorithms

Stats:

CreatedNov 18, 2024
PublishedNov 18, 2024
Warriors Trained60
Total Skips9
Total Code Submissions117
Total Times Completed27
Python Completions27
Total Stars1
% of votes with a positive feedback rating72% of 16
Total "Very Satisfied" Votes9
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes2
Total Rank Assessments16
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • aerowide Avatar
Ad