From cd3d7d0814f579116c4593d67fa6fe6beda23994 Mon Sep 17 00:00:00 2001 From: benadha Date: Fri, 7 Jan 2022 07:04:33 +0700 Subject: Add (sup|sub)script lookup table --- epy.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epy.py') 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: -- cgit