littleq0903 / spritz-cmd

The command-line version of implementation of a cool reading tool, Spritz.
MIT License
46 stars 5 forks source link

Unicode support and clean up #4

Closed fractaledmind closed 9 years ago

fractaledmind commented 10 years ago

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).