Compare commits

...

11 Commits

Author SHA1 Message Date
03f89d0a67 Add license 2023-07-09 03:44:06 -07:00
f8cdd693d0 Fix delim for notecard output 2023-07-09 03:35:13 -07:00
0eeaa9b618 Replace csv extension in to_notecards.sh 2023-07-09 03:26:20 -07:00
c0791eee85 Add script to process all the files 2023-07-09 03:23:57 -07:00
2800d6091e Ignore dist directory 2023-07-09 03:23:35 -07:00
16121afcc9 Comment out log statement 2023-07-09 03:23:22 -07:00
41748c286a Format output with commas 2023-07-09 03:15:16 -07:00
f5aca0d4cd Add simple process script 2023-07-09 03:14:12 -07:00
b5341a04c7 Complete box 6 sounds 2023-07-09 02:38:40 -07:00
38dd39e06b Use plugin to align text in csv file 2023-07-08 01:23:08 -07:00
342de158af Add some of the sounds for box 6 2023-07-07 23:20:44 -07:00
5 changed files with 126 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist

22
LICENSE Normal file
View File

@ -0,0 +1,22 @@
MIT License
Copyright (c) 2023-Present
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

57
box_6.csv Normal file
View 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
View 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
View 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