initial commit: add Arch Linux scripts
Add a collection of scripts used on Arch Linux for system automation and maintenance.
This commit is contained in:
12
translit_ru_on_us.py
Executable file
12
translit_ru_on_us.py
Executable file
@@ -0,0 +1,12 @@
|
||||
# /// script
|
||||
# requires-python = ">=3.13"
|
||||
# dependencies = [
|
||||
# "transliterate"
|
||||
# ]
|
||||
# ///
|
||||
|
||||
from transliterate import translit
|
||||
while True:
|
||||
ru_text = input("Введите текст на русском: ")
|
||||
us_text = translit(ru_text, language_code='ru', reversed=True)
|
||||
print(f"***\n\n{us_text}\n\n***")
|
||||
Reference in New Issue
Block a user