tmpsf = tmpsf.replace(u'\xe6g', u'\u011f')
# I BREVE
- tmpsf = tmpsf.replace(u'\xe6I', u'i\u012c')
- tmpsf = tmpsf.replace(u'\xe6i', u'i\u012d')
+ tmpsf = tmpsf.replace(u'\xe6I', u'\u012c')
+ tmpsf = tmpsf.replace(u'\xe6i', u'\u012d')
# COMBINING DOT ABOVE
tmpsf = tmpsf.replace(u'\xfeI', u'I\u0307')
tmpsf = tmpsf.replace(u'\xf0', u'\u02b9')
new_field.add_subfield(subfield[0], tmpsf)
+ global RECORD_COUNT
if r'\x' in repr(tmpsf):
- global RECORD_COUNT
print " * %d Hex value found in %s:%s - [%s] [%s]" % (
RECORD_COUNT, field.tag, subfield[0], tmpsf.encode('utf8'), repr(tmpsf)
)
+ if (repr(subfield[1]) != repr(tmpsf)):
+ print "* %d\tOld: [%s]\tNew: [%s]" % (
+ RECORD_COUNT, subfield[1].encode('utf8'), tmpsf.encode('utf8')
+ )
+
return new_field