YourAKShaw / text-to-handwriting-script

This repo contains a few scripts that automate the usage of an app that converts text to handwriting!
https://saurabhdaware.github.io/text-to-handwriting/
MIT License
10 stars 1 forks source link
selenium selenium-python text-to-handwriting txt-to-handwriting

Text-to-handwriting title image
Contributions Welcome
GitHub License MIT Twitter Follow

Me and my friend Saurabh hate writing assignments, so he made a tool that converts text to an image that looks like handwriting 😛, and I further coded a few scripts that automate the app's usage 🤪.

Checkout his work here and here's his Twitter handle.

💫 Output

Sample image of output

INFO

line-of-text-to-handwriting-script converts a hard coded line of text to handwriting.

USAGE: Make your adjustments in the code of script.py and run the script.

lines-of-text-from-a-text-file-to-handwriting-script takes a text file as input, having lines of text on separate lines, and converts all the lines to handwriting, one image for one line.

USAGE: Add your lines in lines.txt and make your adjustments in the code of script.py and run the script.

text-file-[single page]-to-handwriting-script takes a text file as input and converts it to handwriting. This script is for a text file that has the tendency to give a single page as the result.

USAGE: Add your text in file.txt and make your adjustments in the code of script.py and run the script.

Selenium web automation is used to achieve this. Furthermore, the chrome browser used can be made hidden, i.e., the script can run the tasks in the background, and hence giving the illusion of a feel of using the command line to get the desired result. Further improvements to the script are welcome, as only a few of the options have been scripted.

🤝 Contributing

Interested peeps, kindly checkout the Contribution Guide.

DEPENDENCIES

$ pip install selenium

[Note: In the given script, we've used ChromeDriver. You're free to use the webdriver for your preferred browser. Also change the CHROMEDRIVER_PATH if required, if you're going with ChromeDriver that is.]