Character mapping updated and corrected to cover all existing translations

This commit is contained in:
kjell.kernen@gmail.com
2013-06-18 13:06:23 +00:00
parent 5e5b093a2f
commit fea4145271
+71 -38
View File
@@ -1,47 +1,80 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: cp1252 -*-
# Imports # Imports
import argparse import argparse
import os import os
import os.path import os.path
translations = {'se': [('\\200', 'å'), translations = {'cz': [('\\200', 'á'),
('\\201', 'ä'), ('\\201', 'c<'),
('\\202', 'ö'), ('\\202', 'é'),
('\\203', 'Å'), ('\\203', 'e<'),
('\\204', 'Ä'), ('\\204', 'í'),
('\\205', 'Ö')], ('\\205', 'ó'),
('\\206', 'r<'),
'fr': [('\\200', 'à'), ('\\207', 's<'),
('\\201', 'è'), ('\\208', 'ú'),
('\\202', 'è')], ('\\209', 'ù'),
('\\210', 'ý'),
'de': [('\\200', 'Ä'), ('\\211', 'Á'),
('\\201', 'ä'), ('\\212', 'Í'),
('\\202', 'Ö'), ('\\213', 'R<'),
('\\203', 'ö'), ('\\214', 'Ý'),
('\\204', 'Ü'), ('\\215', 'Z<'),
('\\205', 'ü'), ('\\216', 'É')],
('\\206', 'ß'),
('\\207', '°')], 'de': [('\\200', 'Ä'),
('\\201', 'ä'),
'cz': [('\\200', 'á'), ('\\202', 'Ö'),
('\\201', 'è'), ('\\203', 'ö'),
('\\202', 'é'), ('\\204', 'Ü'),
('\\203', 'ì'), ('\\205', 'ü'),
('\\204', 'í'), ('\\206', 'ß')],
('\\205', 'ó'),
('\\206', 'ø'), 'es': [('\\200', 'Ñ'),
('\\207', '¹'), ('\\201', 'ñ')],
('\\210', 'ú'),
('\\211', 'ù'), 'fr': [('\\200', 'é'),
('\\212', 'ý'), ('\\201', 'è'),
('\\213', 'Á'), ('\\202', 'à'),
('\\214', 'Í'), ('\\203', 'î'),
('\\215', 'Ø'), ('\\204', 'ç')],
('\\216', 'Ý'),
('\\217', '®')], 'it': [('\\200', 'à'),
('\\201', 'ù')],
'pt': [('\\200', 'Á'),
('\\201', 'á'),
('\\202', 'Â'),
('\\203', 'â'),
('\\204', 'Ã'),
('\\205', 'ã'),
('\\206', 'À'),
('\\207', 'à'),
('\\210', 'Ç'),
('\\211', 'ç'),
('\\212', 'É'),
('\\213', 'é'),
('\\214', 'Ê'),
('\\215', 'ê'),
('\\216', 'Í'),
('\\217', 'í'),
('\\218', 'Ó'),
('\\219', 'ó'),
('\\220', 'Ô'),
('\\221', 'ô'),
('\\222', 'Õ'),
('\\223', 'õ'),
('\\224', 'Ú'),
('\\225', 'ú'),],
'se': [('\\200', 'å'),
('\\201', 'ä'),
('\\202', 'ö'),
('\\203', 'Å'),
('\\204', 'Ä'),
('\\205', 'Ö')],
} }
# Take care of command line options # Take care of command line options