123456789101112131415161718192021222324252627 |
- '''Created Jan 16, 2023 deeejas'''
- import os
- from subprocess import run
- chars = {u'ă': 'a',
- u'ș': 's',
- u'ş': 's',
- u'î': 'i',
- u'ț': 't',
- u'ţ': 't',
- u'â': 'a'}
- with open('text.txt')as texts:
- text = texts.read()
- # text = u'''
- # Următoarele venituri cumulate lunar nu reprezintă venit impozabil în înțelesul impozitului pe venit, în limita plafonului lunar de cel mult 33% din salariul de bază corespunzător locului de muncă ocupat sau din solda lunară/salariul lunar acordată/acordat potrivit legii:
- # '''
- copyq = os.getenv('COPYQ', 'copyq')
- new_text = ''
- for char, repl in chars.items():
- text = text.replace(char, repl)
- text = text.replace(char.upper(), repl.upper())
- run([copyq, 'add', text])
|