Skip to content

Commit

Permalink
Fix convert_parsel ignoring uppercase 's' char
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-j authored and rrthomas committed Apr 16, 2022
1 parent c9e0305 commit 8b2da08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ebook/1_latex2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ def convert_chapter(s: str) -> str:


def convert_parsel(s: str) -> str:
s = s.replace("ss", "ß").replace("s", "ss").replace("ß", "sss").replace("&nbssp;", " ")
s = s.replace("SS", "ẞ").replace("S", "SS").replace("ẞ", "SSS")
s = s.replace("ss", "ß").replace("s", "ss").replace("ß", "sss")
s = s.replace("&nbssp;", " ")
out = f'<span class="parsel">{s}</span>'
return out

Expand Down

0 comments on commit 8b2da08

Please sign in to comment.