diff --git a/src/libprs500/ebooks/lrf/html/convert_from.py b/src/libprs500/ebooks/lrf/html/convert_from.py
index 6e41b78285..b2fe675cbd 100644
--- a/src/libprs500/ebooks/lrf/html/convert_from.py
+++ b/src/libprs500/ebooks/lrf/html/convert_from.py
@@ -93,6 +93,19 @@ class HTMLConverter(object):
]
+ # Fix Book Designer markup
+ BOOK_DESIGNER = [
+ # Create header tags
+ (re.compile('
(.*?)', re.IGNORECASE|re.DOTALL),
+ lambda match : '%s
'%(match.group(1),)),
+ (re.compile('(.*?)', re.IGNORECASE|re.DOTALL),
+ lambda match : '%s
'%(match.group(1),)),
+ (re.compile('(.*?)', re.IGNORECASE|re.DOTALL),
+ lambda match : '%s
'%(match.group(1),)),
+ (re.compile('(.*?)', re.IGNORECASE|re.DOTALL),
+ lambda match : '%s
'%(match.group(1),)),
+ ]
+
def __hasattr__(self, attr):
if hasattr(self.options, attr):
return True
diff --git a/src/libprs500/gui2/dialogs/lrf_single.py b/src/libprs500/gui2/dialogs/lrf_single.py
index 40d9f468fc..df71096618 100644
--- a/src/libprs500/gui2/dialogs/lrf_single.py
+++ b/src/libprs500/gui2/dialogs/lrf_single.py
@@ -207,6 +207,7 @@ class LRFSingleDialog(QDialog, Ui_LRFSingleDialog):
ph = 'Preprocess the file before converting to LRF. This is useful if you know that the file is from a specific source. Known sources:'
ph += '- baen - Books from BAEN Publishers
'
ph += '- pdftohtml - HTML files that are the output of the program pdftohtml
'
+ ph += '- book-designer - HTML0 files from Book Designer
'
self.preprocess.setToolTip(ph)
self.preprocess.setWhatsThis(ph)
for profile in self.PARSER.get_option('--profile').choices: