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 "FOLDER_PATH"

Replace FOLDER_PATH with the path containing the manga files. 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

  • Upload to PyPi and make usage much easier and simpler
  • 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.1.12.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

manga_wordlist_extractor-0.1.12-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for manga_wordlist_extractor-0.1.12.tar.gz
Algorithm Hash digest
SHA256 81efb88f5cb0ff885d15b651fb2f7b6e54ba5fabe14f6c0d922f87bc3491c009
MD5 92823a590b51af0d8af5274c5181f441
BLAKE2b-256 20f2907109ffe4ef4a42bf332d96c96973bcd9cd69581e549d6d6e4c2eb8a5f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for manga_wordlist_extractor-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 44fa31c0ea3ec11fb6f832ce833c13700a77e92ec8eb27f8b644edd63c4878aa
MD5 2e21b12ca82d17ace607fa93bead444a
BLAKE2b-256 c628f80d7591571072c6949d17a37b6f611ae0f2b60f352c9165faa83706a912

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