{"id":17384532,"url":"https://github.com/pgdr/textrain","last_synced_at":"2025-08-08T19:24:44.845Z","repository":{"id":139058598,"uuid":"178557639","full_name":"pgdr/textrain","owner":"pgdr","description":"Generate LaTex document and get pngs for each word","archived":false,"fork":false,"pushed_at":"2019-03-31T09:56:53.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T21:18:25.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgdr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-30T12:46:57.000Z","updated_at":"2019-03-31T10:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"66475d50-366e-447b-9235-4527bcd0e9c1","html_url":"https://github.com/pgdr/textrain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pgdr/textrain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Ftextrain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Ftextrain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Ftextrain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Ftextrain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgdr","download_url":"https://codeload.github.com/pgdr/textrain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Ftextrain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262173855,"owners_count":23270312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-16T07:45:47.900Z","updated_at":"2025-06-27T01:36:22.493Z","avatar_url":"https://github.com/pgdr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# textrain\n\nGet png images for words\n\nThe `textrain` module can be run as follows\n\n```bash\ntextrain word1 word2 ... wordn\n```\n\nwhich generates one png file for each word.\n\n## Install\n\nFirst, ensure that you have the required tools\n\n* `pdftotext`\n* `pdflatex`\n* `pdftoppm`\n* `pdfcrop`\n\nwhich on Ubuntu can be obtained by running\n\n`sudo apt install texlive-latex-base texlive-extra-utils poppler-utils`\n\nThen install **textrain** with Pip:\n\n`pip install git+https://github.com/pgdr/textrain`\n\n\n\n\n## Example\n\nRunning\n\n```bash\ntextrain kristian flikka lol\n```\n\ngenerates three images:\n\n* `kristian-1.png`\n* `flikka-1.png`\n* `lol-1.png`\n\n![kristian-1](https://raw.githubusercontent.com/pgdr/textrain/master/assets/kristian-1.png)\n![flikka-1](https://raw.githubusercontent.com/pgdr/textrain/master/assets/flikka-1.png)\n![lol-1](https://raw.githubusercontent.com/pgdr/textrain/master/assets/lol-1.png)\n\n\nGenerating a pangram:\n```\ntextrain the quick brown fox jumps over the lazy dog\n```\n\nTo generate all the letters in the alphabet, you might have to do a silly hack.\nThe command `textrain a b c d e` will unfortunately interpret \"abcde\" as the\nonly word, instead of three 1-letter words.  This can be circumvented by running\n`textrain omg a b c d e ...`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgdr%2Ftextrain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgdr%2Ftextrain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgdr%2Ftextrain/lists"}