aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorbenadha <benawiadha@gmail.com>2022-01-07 07:04:33 +0700
committerbenadha <benawiadha@gmail.com>2022-01-07 07:04:33 +0700
commitcd3d7d0814f579116c4593d67fa6fe6beda23994 (patch)
tree44faeaaa96408e1f002cc6158295b5426ef4baca /epy.py
parentf5b6200d7785d847784380f6cf292d4854b74561 (diff)
downloadepy-cd3d7d0814f579116c4593d67fa6fe6beda23994.tar.gz
Add (sup|sub)script lookup table
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/epy.py b/epy.py
index 9c5a346..0ade925 100755
--- a/epy.py
+++ b/epy.py
@@ -801,6 +801,8 @@ class HTMLtoLines(HTMLParser):
ital = {"i", "em"}
bold = {"b", "strong"}
# hide = {"script", "style", "head", ", "sub}
+ sup_lookup = "⁰¹²³⁴⁵⁶⁷⁸⁹"
+ sub_lookup = "₀₁₂₃₄₅₆₇₈₉"
attr_bold = curses.A_BOLD
try: