Practice your manual handwriting skills. Then use the letters you've practiced to convert typed text into a handwritten format! . The application is built using Python, Pygame, and Pillow libraries.
I decided to practice my handwriting schools during medical school to be a more effective clinician. So I made an app that took my handwriting practice sets, and turn them into a way of writing handwritten letters.
- Converts typed text into a handwritten format.
- Supports a variety of characters including alphabets, numbers, and special symbols.
- Renders the handwritten text into an HTML file with customizable styles.
- Randomly selects character styles from a predefined set of images.
- Works great on a tablet or laptop with a touchscreen.
Ensure you have Python installed on your system. Then, install the required dependencies:
pip install pygame pillow
To run the application, execute the following scripts:
- Generate handwritten datasets by running
handwrite.py
. - Render the handwritten text into an HTML file using
handwriteRender.py
.
Each line is rendered as a separate div, and each character is rendered as a separate image. The images are chosen randomly from the images/letters directory,
The "color" of the characters is changed from blue to blackevery time the user types a '#' or '$' character.
The program also adds a background image to the output, which is specified in the style sheet as images/background.png.
The output is written to a file named output.html.
handwrite.py
: Main script for generating handwriting trace datasets.handwriteRender.py
: Script for rendering the handwriting into HTML.images/
: Contains images used for rendering characters.input.txt
: Input text file containing the text to be converted.output.html
: The output file containing the rendered handwritten text.