diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..139ed98 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.db +*.py[cod] +.web +__pycache__/ +assets/external/ diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/Cat2Text.iml b/.idea/Cat2Text.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/Cat2Text.iml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="PYTHON_MODULE" version="4"> + <component name="NewModuleRootManager"> + <content url="file://$MODULE_DIR$" /> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ +<component name="InspectionProjectProfileManager"> + <settings> + <option name="USE_PROJECT_PROFILE" value="false" /> + <version value="1.0" /> + </settings> +</component> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a6218fe --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Black"> + <option name="sdkName" value="Python 3.11" /> + </component> + <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11" project-jdk-type="Python SDK" /> +</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..bac0eab --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/.idea/Cat2Text.iml" filepath="$PROJECT_DIR$/.idea/Cat2Text.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="" vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/Cat2Text.py b/Cat2Text.py new file mode 100644 index 0000000..005f226 --- /dev/null +++ b/Cat2Text.py @@ -0,0 +1,18 @@ +alphabet = ["a","b","c"] + +def translate(data): + data = data.lower() + data = data.replace("meow","0").replace("mrrp", "1").replace("mreow", "2").replace("mrow", "3").replace(" ", "") + seperatewords = data.split(";") + finalwordlist = [] + for i in seperatewords: + letters = [i[e:e+3] for e in range(0, len(i), 3)] + lettersinword = [] + for x in letters: + letternum = int(x,4) + letter = chr(ord('`') + letternum) + lettersinword.append(letter) + finalwordlist.append(''.join(lettersinword)) + return ' '.join(finalwordlist) +catspeak = input("Please input the cat's words: ") +print(translate(catspeak)) \ No newline at end of file diff --git a/README.md b/README.md index c4b4e30..c7004a8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # Cat2Text -It translates Meow's that are in base 4 to text :3 +Translates cat meows in a sort of base 4 into english with really bad code! +# Format +This requires all of your data to add up to the letter number in the english language ex. a = 1, z = 26. The data is practically in base 4 where meow = 0 mrrp = 1 mreow = 2 and mrow = 3, you do need leading 0's btw. + +An example would be ```Meow mreow mrrp; meow mrow meow meow mrow mrow mrrp mrrp mreow meow mrrp mrrp; meow meow mrow meow meow mrrp mrrp mrrp meow mrrp meow mrow```. +Which converts to "i love cats" + +More could be added on later but for now this is all. \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4c4a9af --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +reflex==0.6.4