
| Current Path : /var/www/web-klick.de/dsh/ |
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/web-klick.de/dsh/161101.businesscard_cgabriel_shenzhen.py0 |
# coding: utf8
import re,os,sys
text= '''
<svg id="card1" width="100%" height="100%" viewBox="0 0 120 80"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
background="#ffffff">
<style type="text/css">
text.header { font-family: Arial; font-size: 5.5px; fill: #00acdf; }
text.name { font-family: Arial; font-size: 5.5px; font-weight: bold; }
text.pos { font-family: Arial; font-size: 4.5px; }
text.text { font-family: Arial; font-size: 3.6px; }
text.chin { font-family: Arial; font-size: 3.6px; letter-spacing: -0.1px; }
</style>
<rect width="0.3" height="11" x="59" y="60" fill="#00acdf" />
<image width="27" height="27" x="5" y="5" xlink:href="iftlogo1.svg"/>
<text class="header" x="112" y="10" text-anchor="end">Institute for Technology Transfer </text>
<text class="header" x="112" y="15" text-anchor="end">in Informatics GmbH </text>
<text class="name" x="68" y="41" text-anchor="middle">Dr. Christian Gabriel </text>
<text class="pos" x="68" y="47" text-anchor="middle">CEO / X X X </text>
<text class="text" x="56" y="63" text-anchor="end" >A03, 21st Floor, Block B</text>
<text class="text" x="56" y="67" text-anchor="end" >Jingfengcheng Building, No. 15 </text>
<text class="text" x="56" y="71" text-anchor="end" >Shenzhen / Luohu-District, China </text>
<text class="chin" x="62" y="63" text-anchor="start" >广东省深圳市罗湖区桂园街道新围 </text>
<text class="chin" x="62" y="67" text-anchor="start" >社区深南东路5015号金丰城大厦 </text>
<text class="text" x="62" y="71" text-anchor="start" >B座21整层A03, +86 15266466862 </text>
</svg>
'''
(y1,y2,y3) = (30,90,110)
g = 40
(x5,x6,x1) = (0,99,198)
m = 49
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 xx.png -w 500 " + file + ".svg")
os.system("inkscape -A " + file + ".pdf -d 300 " + file + ".svg")