From ae9a87d3dc5d2e1dabb6ae5a90353da40563548c Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 29 Jul 2011 14:19:30 -0400 Subject: [PATCH] R CARON is another good one Signed-off-by: Dan Scott --- tools/ebooks/prep_ebook_records.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index 79b1739268..9fd228abea 100644 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -378,14 +378,17 @@ def clean_diacritics(field): # COMBINING CEDILLA tmpsf = tmpsf.replace(u'\xb0c', u'c\u0327') - # S WITH COMBINING ACUTE ACCENT (lowercase) - tmpsf = tmpsf.replace(u'\xd4s', u'\u015b') - # S WITH COMBINING ACUTE ACCENT (uppercase) + # S WITH COMBINING ACUTE ACCENT tmpsf = tmpsf.replace(u'\xd4S', u'\u015a') + tmpsf = tmpsf.replace(u'\xd4s', u'\u015b') # COMBINING BREVE tmpsf = tmpsf.replace(u'\xe6i', u'i\u0306') + # R CARON + tmpsf = tmpsf.replace(u'\xdaR', u'\u0158') + tmpsf = tmpsf.replace(u'\xdar', u'\u0159') + new_field.add_subfield(subfield[0], tmpsf) if r'\x' in repr(tmpsf): global RECORD_COUNT -- 2.11.0