Python-based tools that converts comic transcripts from john.ccac.rwth-aachen.de (like Garfield.txt) into CSV files.
I have decided to stop maintaining this project for an indefinite amount of time, as it has seen no use for a long time.
Pre-converted files are provided by the gh-pages branch. It is also online for file downloading. Source code for the workflow that drives this. Files are rebuilt at 00:05 UTC+2 every day.
This script converts a text file with a encoding to a text file with another encoding.
Syntax:
python enc_convert.py <old_file> <new_file> [old_enc|detect] [new_enc|utf-8] [fallback_for_detect|ISO-8859-1]
enc
s have to be a string pointing to a encoding that Python supports.
Using detect
as old_enc
requires chardet
to be installed.
fallback_for_detect
will be a placeholder when the detecting process goes badly (errors out/has low confindenity).
Run this on a original script file downloaded from John (the server) to correctly run the script through main
.
(You may not need to use this; Workflow job has been changed to use iconv instead)
The CLI. Specify -h
as a argument while running this script to get help.
Outputs a CSV file ready for gpt-2-simple
usage and general parsing/querying/listing/reading/etc.
The module that is used internally by main
.
The script to sanitize the output CSV file. Not for you.
Source code is located at GitHub: https://github.com/Dobby233Liu/garfield.csv
MIT