diff options
| -rw-r--r-- | BibTeX.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -624,6 +624,7 @@ ACCENT_MAP = { "'" : 'acute', '"' : 'uml', "c" : 'cedil', } +UNICODE_MAP = { 'ń' : 'ń', } HTML_LIGATURE_MAP = { 'AE' : 'Æ', 'ae' : 'æ', @@ -641,7 +642,8 @@ def _unaccent(m): accent,char = m.groups() if char[0] == '{': char = char[1] - return "&%s%s;" % (char, ACCENT_MAP[accent]) + accented = "&%s%s;" % (char, ACCENT_MAP[accent]) + return UNICODE_MAP.get(accented, accented) def _unlig_html(m): return "%s%s"%(HTML_LIGATURE_MAP[m.group(1)],m.group(2)) def htmlize(s): |
