1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# vim:encoding=utf-8:fileencoding=utf-8
#
# odfrecode
#
# (c) 2007,2008 Guido Günther <agx@sigxcpu.org>
# (c) 2008 Torsten Werner <twerner@debian.org>
#
# 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': 'ზ',
}
|