From a8a72eef1444cfdd0598b909e45cd1213221a575 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 19 Mar 2008 21:24:07 +0000 Subject: [PATCH] --- src/libprs500/ebooks/lrf/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libprs500/ebooks/lrf/__init__.py b/src/libprs500/ebooks/lrf/__init__.py index c6d2ea22cc..285a23a042 100644 --- a/src/libprs500/ebooks/lrf/__init__.py +++ b/src/libprs500/ebooks/lrf/__init__.py @@ -332,6 +332,8 @@ def Book(options, logger, font_delta=0, header=None, def entity_to_unicode(match, exceptions=[], encoding='cp1252'): ''' + @param match: A match object such that '&'+match.group(1)';' is the entity. + @param exceptions: A list of entities to not convert (Each entry is the name of the entity, for e.g. 'apos' or '#1234' @param encoding: The encoding to use to decode numeric entities between 128 and 256. If None, the Unicode UCS encoding is used. A common encoding is cp1252. '''