From 14d8707ac315b56f893c722d6bd495fdc1a74bfb Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 4 May 2002 13:21:08 +0000 Subject: [PATCH] translation parsing problem, ansel decoding svn: r957 --- gramps/src/GenericFilter.py | 6 ++++-- gramps/src/latin_ansel.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gramps/src/GenericFilter.py b/gramps/src/GenericFilter.py index bb4f9f6ce..18d872ca6 100644 --- a/gramps/src/GenericFilter.py +++ b/gramps/src/GenericFilter.py @@ -755,11 +755,13 @@ class FilterParser(handler.ContentHandler): pass self.gfilter_list.add(self.f) elif tag == "rule": - name = _(u2l(attrs['class'])) + c = attrs['class'] + name = _(u2l(c)) self.a = [] self.cname = tasks[name] elif tag == "arg": - self.a.append(u2l(attrs['value'])) + c = attrs['value'] + self.a.append(u2l(c)) def endElement(self,tag): if tag == "rule": diff --git a/gramps/src/latin_ansel.py b/gramps/src/latin_ansel.py index 75d7c3b0e..97dea5e16 100644 --- a/gramps/src/latin_ansel.py +++ b/gramps/src/latin_ansel.py @@ -66,7 +66,7 @@ _t1 = { _s0 = { 0xCF : 0xDF, 0xA4 : 0xDE, 0xB4 : 0xFE, 0xA2 : 0xD8, 0xC0 : 0xB0, - 0xB3 : 0xF8, 0xA5 : 0xC6, 0xB5 : 0xE6, 0xBA : 0xF0 } + 0xB3 : 0xF8, 0xA5 : 0xC6, 0xB5 : 0xE6, 0xBA : 0xF0, 0xB2 : 0xF8 } _t0 = { 0xDF : chr(0xCF), 0xDE : chr(0xA4), 0xFE : chr(0xB4),