Skip to content

Instantly share code, notes, and snippets.

@horvatha
Created November 3, 2025 09:45
Show Gist options
  • Select an option

  • Save horvatha/941320a97ecc3e56c1d2b5de60e6ab3b to your computer and use it in GitHub Desktop.

Select an option

Save horvatha/941320a97ecc3e56c1d2b5de60e6ab3b to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
from pathlib import Path
from string import ascii_letters
fs = "🌼🌺🌷🪻🌹🥀🪷🌸🌻🍄🎂🎹"
text = Path("MARTI.txt").read_text()
text = text.replace(".", fs[4]).replace("\\", fs[0]).replace("?", fs[4])
chars = set(ascii_letters + "öéűáőüíóúÖÉŰÁŐÜÍÓÚ!")
for ch in chars:
if ch in text:
text = text.replace(ch, f"{ch} ")
print(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment