
| Current Path : /var/www/html_old/abe/web/sites/qwe/files/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/abe/web/sites/qwe/files/12park-de.py |
import re,sys,os
text = '''
<svg id="id2" width="100%" height="100%" viewBox="0 0 65 25">
<style type="text/css">
text.park { font-family: Arial; font-weight: bold; font-size: 20px; fill: #4ba943; }
text.domain { font-family: Arial; font-size: 15px; fill: #000000; }
</style>
<text class="park" x="1" y="20" >1</text>
<text class="park" x="9" y="20" >2</text>
<text class="park" x="20" y="16" >park</text>
<text class="domain" x="40" y="55" transform="scale(1,0.4)">.de</text>
</svg>
'''
(y1,y2,y3) = (30,90,170)
while (0 == 0):
m1 = re.search(r"^(.*?)\[(.*?)\](.*)$",text,re.DOTALL)
if not m1:
break
exec("erg = " + m1.group(2))
text = m1.group(1) + str(erg) + m1.group(3)
file = re.sub(r"\.([^\.]+)$","",sys.argv[0])
open(file+".svg","w").write(text[1:])
os.system("inkscape -e " + file + ".png -w 400 " + file + ".svg")