diff --git a/src/calibre/ebooks/conversion/preprocess.py b/src/calibre/ebooks/conversion/preprocess.py index 0f804cc208..dc10a60f2f 100644 --- a/src/calibre/ebooks/conversion/preprocess.py +++ b/src/calibre/ebooks/conversion/preprocess.py @@ -343,7 +343,7 @@ class HTMLPreProcessor(object): (re.compile(u'`\s*()*\s*O', re.UNICODE), lambda match: u'Ò'), (re.compile(u'`\s*()*\s*u', re.UNICODE), lambda match: u'ù'), (re.compile(u'`\s*()*\s*U', re.UNICODE), lambda match: u'Ù'), - + # ` with letter before (re.compile(u'a\s*()*\s*`', re.UNICODE), lambda match: u'à'), (re.compile(u'A\s*()*\s*`', re.UNICODE), lambda match: u'À'), @@ -405,7 +405,7 @@ class HTMLPreProcessor(object): # ˙ (re.compile(u'˙\s*()*\s*z', re.UNICODE), lambda match: u'ż'), (re.compile(u'˙\s*()*\s*Z', re.UNICODE), lambda match: u'Ż'), - + # ˇ (re.compile(u'ˇ\s*()*\s*c', re.UNICODE), lambda match: u'č'), (re.compile(u'ˇ\s*()*\s*C', re.UNICODE), lambda match: u'Č'), @@ -425,11 +425,11 @@ class HTMLPreProcessor(object): (re.compile(u'ˇ\s*()*\s*T', re.UNICODE), lambda match: u'Ť'), (re.compile(u'ˇ\s*()*\s*z', re.UNICODE), lambda match: u'ž'), (re.compile(u'ˇ\s*()*\s*Z', re.UNICODE), lambda match: u'Ž'), - + # ° (re.compile(u'°\s*()*\s*u', re.UNICODE), lambda match: u'ů'), (re.compile(u'°\s*()*\s*U', re.UNICODE), lambda match: u'Ů'), - + # If pdf printed from a browser then the header/footer has a reliable pattern (re.compile(r'((?<=)\s*file:/{2,4}[A-Z].*
|file:////?[A-Z].*
(?=\s*
))', re.IGNORECASE), lambda match: ''), diff --git a/src/calibre/gui2/wizard/__init__.py b/src/calibre/gui2/wizard/__init__.py index 841fc6181a..494266b424 100644 --- a/src/calibre/gui2/wizard/__init__.py +++ b/src/calibre/gui2/wizard/__init__.py @@ -80,7 +80,7 @@ class Kindle(Device): output_profile = 'kindle' output_format = 'MOBI' - name = 'Kindle 1, 2, 3 or 4' + name = 'Kindle 1-4 and Touch' manufacturer = 'Amazon' id = 'kindle'