X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=doc%2Fmakehelp.py;h=bbd317b37fc61874bcb79b19828178943bf6e5c4;hb=f606175c8feb56e1858ebdfd7873a261e0a2163a;hp=460fef14dde3fb6a5474eb971c6d0853bc60efd6;hpb=6230cf44c697419e67ab3b879acd8103a29c7d2d;p=super-star-trek.git diff --git a/doc/makehelp.py b/doc/makehelp.py index 460fef1..bbd317b 100755 --- a/doc/makehelp.py +++ b/doc/makehelp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Generate an on-line help file for SST 2K from the text generated from # the XML documentation. @@ -37,6 +37,10 @@ while True: line = line.replace("%", "%%") # Hack Unicode non-breaking spaces into ordinary spaces line = line.replace("\xc2\xa0", " ").replace("\240", "") + # Hack right and left quotes into regular ASCII quotes + line = line.replace("\xe2\x80\x9c", '"').replace("\xe2\x80\x9d", '"') + # Hack dashes and bullets (Hmmm...might want to handle this in curses) + line = line.replace("\xe2\x80\x94", "-").replace("\xe2\x97\x8f", "*"); if line.startswith("Mnemonic:"): while not savetext[-1].strip(): savetext.pop()