Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
/ garfield.csv Public archive

Python script that converts comic transcripts from john.ccac.rwth-aachen.de (like Garfield.txt) into CSV files

License

Notifications You must be signed in to change notification settings

Dobby233Liu/garfield.csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

garfield.csv

Python-based tools that converts comic transcripts from john.ccac.rwth-aachen.de (like Garfield.txt) into CSV files.

Archived

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

.github/workflows/generate.yml

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.

(file list)

Modules

enc_convert

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]

encs 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)

main

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.

convert

The module that is used internally by main.

sanitize

The script to sanitize the output CSV file. Not for you.

Source Code

Source code is located at GitHub: https://github.com/Dobby233Liu/garfield.csv

License

MIT