A simple desktop application that normalizes whitespace and optionally autocorrects text. Designed specifically for use with Frontline IEP Direct and Frontline 504.
- Normalize whitespace by removing excessive spaces, tabs, and trailing whitespace
- Convert various quote types to standard single quotes
- Optional spell-checking and autocorrection
- Automatic clipboard copying for easy pasting
- Simple and intuitive GUI interface
- Python 3.13 or higher
- Poetry package manager
-
Clone the repository
git clone https://github.com/Pathos315/whitespace-normalizer.git cd whitespace-normalizer
-
Install dependencies using Poetry
poetry install
Run the application:
poetry run python main.py- Paste text with irregular spacing into the left input area
- Toggle the "Enable Autocorrect" checkbox if you want spell checking
- Click "Normalize" to process the text
- The normalized text will appear in the right output area and be automatically copied to your clipboard
- Paste the normalized text where needed
main.py- Application entry pointsrc/- Source code directorycore.py- Core text processing functionsgui.py- GUI implementation with Tkinterlog.py- Logging functionality
tests/- Unit tests
Run the tests using pytest:
poetry run pytestSome tests are currently skipped with @pytest.mark.skip and need to be updated.
- Built with Python's Tkinter for the GUI
- Uses
pyspellcheckerfor autocorrection capabilities - Implements
pyperclipfor clipboard interaction - Features a custom logging system with rotation capabilities
MIT License
Copyright (c) 2025 John Fallot
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contributions are welcome! Please feel free to submit a Pull Request.