Created
June 10, 2015 15:57
-
-
Save anonymous/7749ab028c4165afeaae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEXT = 'i sprawdĚŠco ciekawego dla Ciebie dzieje siĂ w najbliĚźszym czasie.' | |
MAP = ( | |
('ą', ''), | |
('ć', ''), | |
('ę', 'ĂÂ'), | |
('ł', ''), | |
('ń', ''), | |
('ó', ''), | |
('ś', ''), | |
('ź', 'ÄšĹ'), | |
('ż', 'Ěź'), | |
) | |
text = TEXT | |
for c, x in MAP: | |
if x: | |
text = text.replace(x, c) | |
print text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment