Skip to main content

A utility to extract vocabulary lists from manga.

Project description

Manga Wordlist Extractor

This script allows you to automatically scan through manga and generate a csv with all contained words.

It is intended to be used with the community deck feature of Bunpro, hence the csv format. Once the csv import feature will be published, I will adjust the format of the csv. If any other outputs are desired, let me know!

Installation

You need to have python installed (ideally Python 3.12).

Using pip

Install the package using

pip install manga-wordlist-extractor

Using the source code directly

Download this repository (using the "code -> download zip" option above the files list at the top). Open a command prompt in the downloaded folder after extracting.

Run this to install all dependencies:

pip install -r requirements.txt

You can now run the tool from the src/main/main.py file.

Usage

manga-wordlist-extractor [-h] [--parent] folder

Replace folder with the path containing the manga files. Make sure to surround it with quotation marks if there are spaces in the path!

If you enter a parent folder containing multiple volumes, add "--parent" before the folder path.

This will generate a vocab.csv file containing all words.

Notices

If you run into errors, look into the mokuro repository linked at the bottom. There might be some issues with python version compatibility.

Also important: This script is not perfect. The text recognition can make mistakes and some of the extracted vocab can be wrong. If this proves to be a big issue I will look for a different method to parse vocabulary from the text.

TODO

  • Live Output from Mokuro (it can take very long)
  • Separate outputs for each volume
  • Added translations through dictionary lookup?

Acknowledgements

This is hardly my work, I just stringed together some amazing libraries:

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

manga_wordlist_extractor-0.2.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

manga_wordlist_extractor-0.2.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file manga_wordlist_extractor-0.2.0.tar.gz.

File metadata

File hashes

Hashes for manga_wordlist_extractor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 96ca4ca42d1e6b0c2bcb2296d2420f91750a25e2c74410e4e89d562ed250d982
MD5 767c93eff4ad33d1aec1aedd3c349c48
BLAKE2b-256 0a7f9e08cc1ddb5676d4007673e38c9ec946fd0eb829619895f96eba47f6bf69

See more details on using hashes here.

File details

Details for the file manga_wordlist_extractor-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for manga_wordlist_extractor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c12d960170480023210f3f7c80c99d0c3fa0266e99952800e5535110b162552
MD5 b36b456ccfa9835a1d0d12503fe55032
BLAKE2b-256 babfe447be0f5d500988b67f50d1e3f38cc0163777fbf3c54191fa1294acf361

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