(aboutmenu += m_Bugs; OnBugs +): New menu item, contains contact info
(ond, one): renamed to OnD and OnE, respectively.
(decode +- transcode.decode, sfilter +- transcode.processor, encode +- transcode.encode; OnD, OnE, OnClear): Fixed a bug that prevented the decode button from clearing the text area's contents when said contents consisted of--at least--a single space.
(license +- info.license, version +- info.version, Version, License): provide the same support for xhsz.py that info.py provided.
(- lookfor): No longer requires external python modules (wxPython is still a dependency).
Added lots of comments.
(OnStat; defs +): Replaced most instances of True, False, or debug (in the context of determining whether to print debugging info) with defs.debug
hsz.py
(main +- encode): Replaced encode() with main().
(main): Fixed a bug that prevented hsz.py from being able to encode spaces, regardless of how they were escaped.
(error +): New error handling function
(helpme +): New usage/help message printing function
(pf +?): Possibly new pretty-form function--adds pretty single quotes to the string passed to it.
(- lookfor): No longer requires any external python modules
Added lots of comments.
Now uses getopt to parse command-line switches/args.
unhsz.py
(main +- decode): Replaced decode() with main().
(main): Fixed a bug that prevented unhsz.py from decoding anything.
(error +): New error handling function
(helpme +): New usage/help message printing function
(pf +?): Possibly new pretty-form function--adds pretty single quotes to the string passed to it.
(- lookfor): Removed lookfor()--does not require external python modules any more.
Added lots of comments.
Now uses getopt to parse command-line switches/args.
Windows
hsz.py
(aboutmenu += m_Bugs; OnBugs +): New menu item, contains contact info
(ond, one): renamed to OnD and OnE, respectively.
(decode +- transcode.decode, sfilter +- transcode.processor, encode +- transcode.encode; OnD, OnE, OnClear): Fixed a bug that prevented the decode button from clearing the text area's contents when said contents consisted of--at least--a single space.
(license +- info.license, version +- info.version, Version, License): provide the same support for hsz.py that info.py provided.
(- lookfor): No longer requires external python modules (wxPython is still a dependency, I believe).
Added lots of comments.
(OnStat; defs +): Replaced most instances of True, False, or debug (in the context of determining whether to print debugging info) with defs.debug
A General Breakdown
Changes to the hsz.py file:
New contact info menu item attached to the help menu.
Ond() and One() have been renamed to OnD() and OnE(), respectively.
transcode.decode, transcode.encode, and transcode.processor have each been replaced by decode, encode, and sfilter, respectively.
NOTE as a result of this change--and the next change--, libs/info.py and libs/transcode.py are no longer required or used. The lookfor() function has also been removed.
Both info.license and info.version have been replaced by the license and version classes, respectively.
A lot of comments have been added to improve readability and to explain functionality.
All True and False constants that enable or disable debug-mode--in previous versions--have been replaced with defs.debug, which provides a global implementation of debug-mode. Debug-mode is enabled or disabled when the User checks or unchecks the Show Stats item in the Debug submenu, which resides in the Help menu.