fix
This commit is contained in:
parent
11f48f6ffc
commit
7b1d166f45
16
owo/owo.py
16
owo/owo.py
@ -1,7 +1,21 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from pyowo import owo
|
|
||||||
import argparse, sys
|
import argparse, sys
|
||||||
|
from re import compile, sub
|
||||||
|
|
||||||
|
replacements = [
|
||||||
|
(compile(r"(?:r|l)"), "w"),
|
||||||
|
(compile(r"(?:R|L)"), "W"),
|
||||||
|
(compile(r"n([aeiou])"), "ny\\1"),
|
||||||
|
(compile(r"N([aeiou])"), "Ny\\1"),
|
||||||
|
(compile(r"N([AEIOU])"), "NY\\1"),
|
||||||
|
(compile(r"ove"), "uv"),
|
||||||
|
]
|
||||||
|
|
||||||
|
def owo(text: str) -> str:
|
||||||
|
for r in replacements:
|
||||||
|
text = sub(r[0], r[1], text)
|
||||||
|
return text
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser("owo")
|
parser = argparse.ArgumentParser("owo")
|
||||||
|
3
setup.py
3
setup.py
@ -8,8 +8,7 @@ setup(
|
|||||||
entry_points = {
|
entry_points = {
|
||||||
"console_scripts": ['owo = owo.owo:main']
|
"console_scripts": ['owo = owo.owo:main']
|
||||||
},
|
},
|
||||||
install_requires=['pyowo==1.0.1'],
|
version = "0.2.3",
|
||||||
version = "0.2.0",
|
|
||||||
description = "owoify any text from the command line",
|
description = "owoify any text from the command line",
|
||||||
author = "Alfie King",
|
author = "Alfie King",
|
||||||
author_email = "acetheking987@gmail.com"
|
author_email = "acetheking987@gmail.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user