Compare commits
No commits in common. "f8cdd693d03f701019591fb930ec833d4d0b517e" and "550aba123eacabf3898b553b155e21cf02a289d9" have entirely different histories.
f8cdd693d0
...
550aba123e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
dist
|
57
box_6.csv
57
box_6.csv
@ -1,57 +0,0 @@
|
||||
Keyword , Text Output , Sound Name
|
||||
chuu , chuu , chuu-10dB
|
||||
yipppieee , yipppieee , yyyyyiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiipppppppppppppppiiiiiiiii-10dB
|
||||
aminal , aminal , aminal-10dB
|
||||
party , party , party-10dB
|
||||
/kisskissu , kiss kissu , kiss kissu-10dB
|
||||
strawb , strawb , strawb-10dB
|
||||
hay2 , hey hey , hey hey-10dB
|
||||
baltimare , baltimare , baltimare-10dB
|
||||
coolbeans , coolbeans , coolbeans-10dB
|
||||
low , low , low-10dB
|
||||
hi , hi , hay-10dB
|
||||
sniiiiif , sniiiiif , sniiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiif-10dB
|
||||
/lovezem , i love them , i love zem-10dB
|
||||
year , year , year-10dB
|
||||
/myfetish , this is my fetish , this is my fetish-10dB
|
||||
eve , eve , eve-10dB
|
||||
/hearthswarming , Hearth's Warming , hearth's warming-10dB
|
||||
hearthwarming , hearthwarming , hearthwarming-10dB
|
||||
cmere , cmere , cmere-10dB
|
||||
hay , hay , hey-10dB
|
||||
/shecantdothat , "she cant do that, she's got no hands!" , "she cant do that, she's got no hands!"-10dB
|
||||
powy , powy , powy-10dB
|
||||
speaks , speaks , spiiiiiks-10dB
|
||||
smol , smol , smol-10dB
|
||||
autist , autist , autist-10dB
|
||||
autism , autism , autism-10dB
|
||||
mass , mass , mass-10dB
|
||||
horse , horse , horse-10dB
|
||||
) , sloot badum tiss , )-10dB
|
||||
yes , yes , yes-10dB
|
||||
huhh , huhh , huh-10dB
|
||||
/ahshi , ah shi , ah shi-10dB
|
||||
/weback , we're back , we're back-10dB
|
||||
AAA , AAA , AAA-10dB
|
||||
ahh , ahh , ahh-10dB
|
||||
aah , aah , aah-10dB
|
||||
pussy , pussy , pussy-10dB
|
||||
neet , neet , neet-10dB
|
||||
smelly , smelly , smelly-10dB
|
||||
/goback , you need to go back , you need to go back-10dB
|
||||
skisu , skisu , skies-10dB
|
||||
e , e , e-10dB
|
||||
sill , sill , sill-10dB
|
||||
bej , bej , bej-10dB
|
||||
lul , lul , lul-10dB
|
||||
die , die , die-10dB
|
||||
hip , hip , hip-10dB
|
||||
/analvore , anal vore , anal vore-10dB
|
||||
/pizzarolltoll , "you gotta pay the pizza roll toll, if you want this baby foalsoul" , "you gotta pay the pizza roll toll, if you want this baby foalsoul"-10dB
|
||||
your , your , your-10dB
|
||||
amre , amre , amre-10dB
|
||||
/hingadingadurgen , hinga dinga durgen , hinga dinga durgen-10dB
|
||||
/skillissue , skill issue , skill issue-10dB
|
||||
cider , cider , cider-10dB
|
||||
new , new , new-10dB
|
||||
/lurkmoar , lurk moar , lurk moar-10dB
|
Can't render this file because it contains an unexpected character in line 22 and column 59.
|
26
process
26
process
@ -1,26 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import csv
|
||||
|
||||
# Strip whitespace left and right of a string
|
||||
def strip(s: str):
|
||||
return s.rstrip().lstrip()
|
||||
|
||||
def main():
|
||||
filepaths = sys.argv[1:]
|
||||
# print(f'{filepaths=}')
|
||||
|
||||
delim=','
|
||||
quotechar='"'
|
||||
|
||||
for file in filepaths:
|
||||
with open(file, newline='') as csvfile:
|
||||
reader = csv.reader(csvfile, delimiter=delim, quotechar=quotechar, skipinitialspace=True)
|
||||
next(reader) # Skip the first row
|
||||
for row in reader:
|
||||
# Strip any whitespace in the csv file
|
||||
stripped = map(strip, row)
|
||||
[keyword, text, sound] = stripped
|
||||
print(f'{keyword}|{text}|{sound}')
|
||||
main()
|
@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
files=(
|
||||
"box_1.csv"
|
||||
"box_2.csv"
|
||||
"box_3.csv"
|
||||
"box_4.csv"
|
||||
"box_5.csv"
|
||||
"box_6.csv"
|
||||
)
|
||||
|
||||
OUTPUT_DIR=dist
|
||||
|
||||
# Ensure the output directory exists
|
||||
mkdir -p $OUTPUT_DIR
|
||||
|
||||
# Pipe and redirect python output to files
|
||||
for file in ${files[@]}; do
|
||||
./process "$file" > "$OUTPUT_DIR/${file%.csv}.note"
|
||||
done
|
Loading…
Reference in New Issue
Block a user