]> git.sommitrealweird.co.uk Git - rss2maildir.git/commitdiff
More entities
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 2 Mar 2008 19:41:50 +0000 (19:41 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 2 Mar 2008 19:41:50 +0000 (19:41 +0000)
rss2maildir.py

index dce6c3c7a6c9afb7578887f8296575a0b32bcb42..d36b48967a433761e622c43b660a57f4dc92af9e 100755 (executable)
@@ -137,6 +137,39 @@ class HTML2Text(HTMLParser):
         u'THORN': u'Þ',
         u'eth': u'ð',
         u'ETH': u'Ð',
+        u'mdash': u'—',
+        u'ndash': u'–',
+        u'sect': u'§',
+        u'para': u'¶',
+        u'uarr': u'↑',
+        u'darr': u'↓',
+        u'larr': u'←',
+        u'rarr': u'→',
+        u'dagger': u'†',
+        u'Dagger': u'‡',
+        u'permil': u'‰',
+        u'prod': u'∏',
+        u'infin': u'∞',
+        u'radic': u'√',
+        u'there4': u'∴',
+        u'int': u'∫',
+        u'asymp': u'≈',
+        u'ne': u'≠',
+        u'equiv': '≡',
+        u'le': u'≤',
+        u'ge': u'≥',
+        u'loz': u'⋄',
+        u'sum': u'∑',
+        u'part': u'∂',
+        u'prime': u'′',
+        u'Prime': u'″',
+        u'harr': u'↔',
+        u'micro': u'µ',
+        u'not': u'¬',
+        u'plusmn': u'±',
+        u'divide': u'÷',
+        u'cent': u'¢',
+        u'euro': u'€',
         }
 
     blockleveltags = [