# vim:encoding=utf-8:fileencoding=utf-8 # # odfrecode # # (c) 2007,2008 Guido Günther # (c) 2008 Torsten Werner # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # import recoder class Georgian(recoder.Recoder): """this class maps georgian to unicode""" encoding = 'georgian' dst_encoding = 'utf-8' character_table = { u'\x43': 'ჩ', u'\x4a': 'ჟ', u'\x52': 'ღ', u'\x53': 'შ', u'\x54': 'თ', u'\x57': 'ჭ', u'\x5a': 'ძ', u'\x61': 'ა', u'\x62': 'ბ', u'\x63': 'ც', u'\x64': 'დ', u'\x65': 'ე', u'\x66': 'ფ', u'\x67': 'გ', u'\x68': 'ჰ', u'\x69': 'ი', u'\x6a': 'ჯ', u'\x6b': 'კ', u'\x6c': 'ლ', u'\x6d': 'მ', u'\x6e': 'ნ', u'\x6f': 'ო', u'\x70': 'პ', u'\x71': 'ქ', u'\x72': 'რ', u'\x73': 'ს', u'\x74': 'ტ', u'\x75': 'უ', u'\x76': 'ვ', u'\x77': 'წ', u'\x78': 'ხ', u'\x79': 'ყ', u'\x7a': 'ზ', }