Skip to main content

Transcript generator for Dinosaur Comics

Project description

Dinosaur Comic Parser

A transcript generator for Ryan North's Dinosaur Comics

Installation

Install parse-qwantz with pip

  pip install parse-qwantz

Usage

You need to download the image file for the comic you want transcribed, for example https://qwantz.com/comics/comic2-02.png. Then run parse-qwantz:

$ parse-qwantz comic2-02.png
Panel 1:
T-Rex: Today is a beautiful day to be stomping on things! As a dinosaur, stomping is the best part of my day indeed!

Panel 2:
T-Rex: *gasp*

Panel 3:
T-Rex: What's that, little house? You wish you were back in your own time? THAT IS TOO BAD FOR YOU

Panel 4:
T-Rex: Perhaps you too will get a stomping, little girl!
Utahraptor: WAIT!

Panel 5:
Utahraptor: Is stomping really the answer to your problem(s)?
T-Rex: Problem(s)?

Panel 6:
T-Rex: My only problem(s) have to do with you interrupting my stomping!
T-Rex: (small) crazy utahraptor!

You can also call it with

python -m parse_qwantz

The argument can also be a directory path instead of a file path. In such case the program will run on all files in the specified directory.

Options

--output-dir

By default, the program outputs to stdout and logs to stderr. With this option, when processing file image_name.png it will output to OUTPUT_DIR/image_name.txt and log to OUTPUT_DIR/image_name.log.

Notes

This program will not work on all DC strips. Some are fairly non-standard (including the mirror universe, Morris the bug, guest comics etc.), while others might just not work correctly for more or less apparent reasons: there might be warning or error messages, or it might just generate an inaccurate transcript silently. It should however work correctly for most comics.

This project is in a rather early stage, and while there are no plans to support the mirror universe or arbitrary images, there still might be some new features and some optimization.

Running Tests

To run tests, run the following command:

  pytest test/

Acknowledgments

This program would not be possible without the wonderful comics by Ryan North! Thanks, Ryan, and congratulations on the 20th anniversary of your comics! Btw the anniversary comic will totally not work with this script, haha!

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

parse_qwantz-2023.9.1.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

parse_qwantz-2023.9.1-py3-none-any.whl (62.5 kB view details)

Uploaded Python 3

File details

Details for the file parse_qwantz-2023.9.1.tar.gz.

File metadata

  • Download URL: parse_qwantz-2023.9.1.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for parse_qwantz-2023.9.1.tar.gz
Algorithm Hash digest
SHA256 794f42284996f8e320332ea8469e8a4f467478c97490e12d8cfa86397501df73
MD5 5f2171d855af2caab7fffee58b77bc2c
BLAKE2b-256 a8108c594d313c9bfd7bd8bc136988f1abbcd99b7b41eb35e863b2bb384bd218

See more details on using hashes here.

File details

Details for the file parse_qwantz-2023.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for parse_qwantz-2023.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87931d4932c64215a044d53d215c06c5e97fd1b16284e8406e86635e2bb725d1
MD5 5f81fb5963628e6a62e0b999b0e86f0b
BLAKE2b-256 e98d94eabe3096350ca17204878867c2dc71ebadd786d3f4df88dc1f33c3b810

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