Skip to main content

Convert text to custom handwriting

Project description

Handwrite - Type in your Handwriting!

Ever had those long-winded assignments, that the teacher always wants handwritten? Is your written work messy, cos you think faster than you can write? Now, you can finish them with the ease of typing in your own font!

Handwrite makes typing written assignments efficient, convenient and authentic.

Handwrite generates a custom font based on your handwriting sample, which can easily be used in text editors and word processors like Microsoft Word & Libre Office Word!

Handwrite is also helpful for those with dysgraphia.

Installing

  1. Install fontforge

  2. Install Potrace

  3. Install handwrite:

    pip install handwrite

Usage

Creating your Handwritten Sample

  1. Take a printout of the sample form.

  2. Fill the form using the image below as a reference.

  3. Scan the filled form using a scanner, or Adobe Scan in your phone.

  4. Save the .jpg image in your system.

Your form should look like this:

Creating your font

  1. Make sure you have installed handwrite, potrace & fontforge.

  2. In a terminal type handwrite (PATH_TO_IMAGE) (OUTPUT_DIRECTORY). (You can also type handwrite -h, to see all the arguments you can use).

  3. Your font will be created as OUTPUT_DIRECTORY/OUTPUT_FONT_NAME.ttf. Install the font in your system.

  4. Select your font in your word processor and get to work!

Here's the end result!

Development

Linux

  1. Install Potrace using apt

    $ sudo apt-get install potrace
    
  2. Install fontforge using apt

    sudo apt-get install potrace
    
  3. Clone the repository or your fork

    git clone https://github.com/cod-ed/handwrite`
    
  4. (Optional) Make a virtual environment and activate it

    python -m venv .venv
    source .venv/bin/activate
    
  5. In the project directory run:

    pip install -e .
    
  6. Make sure the tests run:

    python setup.py test
    

You are ready to go!

Windows

  1. Install Potrace and make sure it's in your PATH.

  2. Install fontforge and make sure scripting is enabled.

  3. Clone the repository or your fork

    git clone https://github.com/cod-ed/handwrite
    
  4. (Optional) Make a virtual environment and activate it

    python -m venv .venv
    .venv\Scripts\activate
    
  5. In the project directory run:

    pip install -e .
    
  6. Make sure the tests run:

    python setup.py test
    

You are ready to go!

Credits and Reference

  1. Potrace algorithm and package has been immensely helpful.

  2. Fontforge for packaging and adjusting font parameters.

  3. Sacha Chua's project proved to be a great reference for fontforge python.

  4. All credit for svgtottf converter goes to this project by pteromys. We made a quite a lot of modifications of our own, but the base script idea was derived from here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

handwrite-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

handwrite-0.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file handwrite-0.1.0.tar.gz.

File metadata

  • Download URL: handwrite-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for handwrite-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60ec79bd9b2a1ba00616b8887ade384a3e57d1099af0ee3daa74808825614064
MD5 32e9a5ccc41a85843909fc9dd19e4dd4
BLAKE2b-256 9ff95b18216a74bd9c7e4d32dd722f43cf41b3ab7919accb0f9fafe6422233ba

See more details on using hashes here.

File details

Details for the file handwrite-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: handwrite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for handwrite-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f8410b559b48c1c6af719e7cb29058d964aeba793bb9493748c9ec12d2070f8
MD5 5b7b83d395aeab62736e0f8728721b02
BLAKE2b-256 9636c95d5c782a12fbf2d015c9e89f67e2fc9e0968628a3fe4698b635b88d7bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page