'Translate docutils encoding name into latex\'s.
Default fallback method is remove "-" and "_" chars from docutils_encoding.'

def to_latex_encoding(self, docutils_encoding):

    tr = {'iso-8859-1': 'latin1', 'iso-8859-2': 'latin2', 'iso-8859-3': 'latin3', 'iso-8859-4': 'latin4', 'iso-8859-5': 'iso88595', 'iso-8859-9': 'latin5', 'iso-8859-15': 'latin9', 'mac_cyrillic': 'maccyr', 'windows-1251': 'cp1251', 'koi8-r': 'koi8-r', 'koi8-u': 'koi8-u', 'windows-1250': 'cp1250', 'windows-1252': 'cp1252', 'us-ascii': 'ascii'}
    if tr.has_key(docutils_encoding.lower()):
        return tr[docutils_encoding.lower()]
    return docutils_encoding.replace('_', '').replace('-', '').lower()
