Created
November 24, 2025 21:31
-
-
Save me-suzy/a37841f417dfcea73feac65293a7e77d to your computer and use it in GitHub Desktop.
remove_emojis.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script pentru a inlocui emoji-urile din SIMPLU.py | |
| # Folosire: python remove_emojis.py | |
| import re | |
| # Dictionarul de inlocuiri emoji -> text | |
| emoji_replacement = { | |
| 'π': '[DIR]', | |
| 'π': '[INFO]', | |
| 'β ': '[OK]', | |
| 'β': '[EROARE]', | |
| 'π¨': '[ATENTIE]', | |
| 'π―': '[TARGET]', | |
| 'ποΈ': '[FOLDER]', | |
| 'π§': '[SETUP]', | |
| 'β ': '[WARNING]', | |
| 'π': '[NOU]', | |
| 'π': '[STATS]', | |
| 'π': '[DIR]', | |
| 'π': '[PDF]', | |
| 'π': '[DOC]', | |
| 'π': '[FILE]', | |
| 'π': '[WEB]', | |
| 'π': '[EDIT]', | |
| 'π': '[SEARCH]', | |
| 'π': '[LOCK]', | |
| 'π': '[START]', | |
| 'β³': '[WAIT]', | |
| 'πͺ': '[WINDOW]', | |
| 'πΎ': '[SAVE]', | |
| 'ποΈ': '[VIEW]', | |
| 'π': '[RELOAD]', | |
| 'βοΈ': '[SKIP]', | |
| 'π·οΈ': '[TAG]', | |
| } | |
| # Citeste fisierul | |
| print("Citesc fisierul SIMPLU.py...") | |
| with open('+FINAL 3 - asta pornesti SIMPLU.py', 'r', encoding='utf-8') as f: | |
| content = f.read() | |
| # Inlocuieste fiecare emoji | |
| print("Inlocuiesc emoji-urile...") | |
| replaced_count = 0 | |
| for emoji, replacement in emoji_replacement.items(): | |
| count = content.count(emoji) | |
| if count > 0: | |
| content = content.replace(emoji, replacement) | |
| replaced_count += count | |
| print(f" {emoji} -> {replacement} ({count} aparitii)") | |
| # Salveaza fisierul | |
| print("Salvez fisierul modificat...") | |
| with open('+FINAL 3 - asta pornesti SIMPLU.py', 'w', encoding='utf-8') as f: | |
| f.write(content) | |
| print(f"\n[OK] Total {replaced_count} emoji-uri inlocuite cu succes!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment