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
# -*- coding: cp1252 -*-
#!/usr/bin/env python
# Imports
import argparse
import os
import os.path
translations = {'se': [('\\200', 'å'),
('\\201', 'ä'),
('\\202', 'ö'),
('\\203', 'Å'),
('\\204', 'Ä'),
('\\205', 'Ö')],
'fr': [('\\200', 'à'),
('\\201', 'è'),
('\\202', 'è')],
'de': [('\\200', 'Ä'),
('\\201', 'ä'),
('\\202', 'Ö'),
('\\203', 'ö'),
('\\204', 'Ü'),
('\\205', 'ü'),
('\\206', 'ß'),
('\\207', '°')],
'cz': [('\\200', 'á'),
('\\201', 'è'),
('\\202', 'é'),
('\\203', 'ì'),
('\\204', 'í'),
('\\205', 'ó'),
('\\206', 'ø'),
('\\207', '¹'),
('\\210', 'ú'),
('\\211', 'ù'),
('\\212', 'ý'),
('\\213', 'Á'),
('\\214', 'Í'),
('\\215', 'Ø'),
('\\216', 'Ý'),
('\\217', '®')],
translations = {'cz': [('\\200', 'á'),
('\\201', 'c<'),
('\\202', 'é'),
('\\203', 'e<'),
('\\204', 'í'),
('\\205', 'ó'),
('\\206', 'r<'),
('\\207', 's<'),
('\\208', 'ú'),
('\\209', 'ù'),
('\\210', 'ý'),
('\\211', 'Á'),
('\\212', 'Í'),
('\\213', 'R<'),
('\\214', 'Ý'),
('\\215', 'Z<'),
('\\216', 'É')],
'de': [('\\200', 'Ä'),
('\\201', 'ä'),
('\\202', 'Ö'),
('\\203', 'ö'),
('\\204', 'Ü'),
('\\205', 'ü'),
('\\206', 'ß')],
'es': [('\\200', 'Ñ'),
('\\201', 'ñ')],
'fr': [('\\200', 'é'),
('\\201', 'è'),
('\\202', 'à'),
('\\203', 'î'),
('\\204', 'ç')],
'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