I've made a number of cosmetic changes along with explicit support for Unicode input. The cosmetic changes make spritz.py fully compliant with PEP8 standards (as tested by pylinter) and offers better documentation. I've also opted for more "Pythonic" methods in a few places (concatenating strings via the str -> list -> str method, etc). I've also altered the behavior around punctuation. Full- and half-stop punctuation is replaced with a single <pause>, while newlines are replaced with two. Then, I've shortened the pause time to 3x the seconds per word.
Other than all of the cosmetic changes tho, it works from the command line exactly as before (but with Unicode support).
I've made a number of cosmetic changes along with explicit support for Unicode input. The cosmetic changes make
spritz.py
fully compliant with PEP8 standards (as tested bypylinter
) and offers better documentation. I've also opted for more "Pythonic" methods in a few places (concatenating strings via the str -> list -> str method, etc). I've also altered the behavior around punctuation. Full- and half-stop punctuation is replaced with a single<pause>
, while newlines are replaced with two. Then, I've shortened the pause time to 3x the seconds per word.Other than all of the cosmetic changes tho, it works from the command line exactly as before (but with Unicode support).