Skip to content

iterating/HandwrittenLetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert typed text to handwritten letters

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.

Practice handwriting, and use all the letters you've practiced to create something touching

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.

Features

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

Installation

Ensure you have Python installed on your system. Then, install the required dependencies:

pip install pygame pillow

Usage

To run the application, execute the following scripts:

  1. Generate handwritten datasets by running handwrite.py.
  2. 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.

Directory Structure

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

About

Digitize your own handwriting font and use it in your emails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published