Compare commits
10 Commits
550aba123e
...
f8cdd693d0
Author | SHA1 | Date | |
---|---|---|---|
f8cdd693d0 | |||
0eeaa9b618 | |||
c0791eee85 | |||
2800d6091e | |||
16121afcc9 | |||
41748c286a | |||
f5aca0d4cd | |||
b5341a04c7 | |||
38dd39e06b | |||
342de158af |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
dist
|
57
box_6.csv
Normal file
57
box_6.csv
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
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
Executable file
26
process
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/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()
|
20
to_notecards.sh
Executable file
20
to_notecards.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/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