Skip to content

A simple program to generate dictionary style definitions on PNG images

License

Notifications You must be signed in to change notification settings

ghomem/definitive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

definitive

A simple program to generate dictionary style definitions on a PNG file.

usage

This is an example of how definitive can be used on Ubuntu 20.04 / 22.04:

sudo apt update
sudo apt install python3-matplotlib fonts-freefont-ttf
git clone https://github.com/ghomem/definitive.git
cd definitive

# from https://grugbrain.dev/#grug-on-complexity
DEFINITION='Spirit demon that enter codebase through well-meaning but ultimately very clubbable; Very, very bad.'
python3 definitive.py -w complexity -c noun -d "$DEFINITION" -s autokafka -o /tmp/definitive-definition.png

To inspect the self-explanatory command line options we can simply run:

python3 definitive.py -h

If the text is not fitting the canvas please make sure there are not font caching issues by removing:

  • /home/YOURUSER/.config/matplotlib/
  • /home/YOURUSER/.cache/matplotlib/

About

A simple program to generate dictionary style definitions on PNG images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages