JH Rostock

This commit is contained in:
Daniel Molkentin 2019-06-16 14:38:26 +02:00
parent 75f81fc7ca
commit 5c7914d430
3 changed files with 24 additions and 36 deletions

View file

@ -10,20 +10,11 @@ scheduleUrl = 'https://gist.githubusercontent.com/danimo/9c4cd61461435791b205d2b
# For (really) too long titles
titlemap = {
7: "Metawahl",
8: "Radmesser",
4: "Flask",
10: "RIOT",
9: "API Reverse-Engineering",
13: "Eduship Bock auf mehr Hackathons",
14: "Programmier-Praxistipps",
6: "Musik machen mit Code",
20: "Abschlusspraesentation",
26: "VKS",
# 26: "VKS",
}
personmap = {
20 : "",
# 20 : "",
}
def introFrames(parameters):
@ -182,9 +173,6 @@ def debug():
def tasks(queue, args, idlist, skiplist):
# iterate over all events extracted from the schedule xml-export
for event in events(scheduleUrl):
if event['room'] not in ('Technologiezentrum'):
print("skipping room %s (%s [%s])" % (event['room'], event['title'], event['id']))
continue
if not (idlist==[]):
if 000000 in idlist:
print("skipping id (%s [%s])" % (event['title'], event['id']))
@ -193,20 +181,20 @@ def tasks(queue, args, idlist, skiplist):
print("skipping id (%s [%s])" % (event['title'], event['id']))
continue
# generate a task description and put them into the queue
projectname = event['title']
id = event['id']
queue.put(Rendertask(
infile = 'intro.svg',
outfile = str(event['id'])+".ts",
sequence = introFrames,
parameters = {
# '$id': event['id'],
'$PROJECTNAME': titlemap[id].upper() if id in titlemap else projectname.upper(),
# '$subtitle': event['subtitle'],
'$prenames': personmap[id] if id in personmap else event['personnames']
}
))
# generate a task description and put them into the queue
projectname = event['title']
id = event['id']
queue.put(Rendertask(
infile = 'intro.svg',
outfile = str(event['id'])+".ts",
sequence = introFrames,
parameters = {
# '$id': event['id'],
'$PROJECTNAME': titlemap[id].upper() if id in titlemap else projectname.upper(),
# '$subtitle': event['subtitle'],
'$prenames': personmap[id] if id in personmap else event['personnames']
}
))
# place a task for the outro into the queue
queue.put(Rendertask(

View file

@ -39,13 +39,13 @@
id="namedview1000"
showgrid="false"
inkscape:zoom="0.4404686"
inkscape:cx="637.93302"
inkscape:cx="349.52467"
inkscape:cy="749.77007"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg998"
showguides="true"
showguides="false"
inkscape:guide-bbox="true">
<sodipodi:guide
position="597.09137,-229.30125"
@ -3308,7 +3308,11 @@
transform="translate(600,927.87)"
id="text976"
style="font-size:37.33000183px;font-family:ModernLEDBoard-7, 'Modern LED Board-7';isolation:isolate;fill:#ffffff"
inkscape:label="#projectname">$RROJECTNAME</text>
inkscape:label="#projectname">
<tspan
style="-inkscape-font-specification:'Ebisu, Normal';font-family:Ebisu;font-weight:normal;font-style:normal;font-stretch:normal;font-variant:normal;font-size:64px;text-anchor:start;text-align:start;writing-mode:lr;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal"
id="tspan1367">$PROJECTNAME</tspan>
</text>
</g>
<g
id="alpaca"
@ -3353,8 +3357,6 @@
id="style1831"
type="text/css">
.st0{fill:#B5DDDF;}
.st1{clip-path:url(#SVGID_2_);fill:#0DA5DE;}
.st2{clip-path:url(#SVGID_2_);fill:#FFFFFF;}
.st3{fill:#FFFFFF;}
.st4{font-family:'Ebisu';}
.st5{font-size:37px;}
@ -3428,7 +3430,7 @@
id="prenames"
style="font-size:37.33000183px;font-family:ModernLEDBoard-7, 'Modern LED Board-7';isolation:isolate;fill:#ffffff">
<tspan
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:29.33333397px;font-family:ModernLEDBoard-7, 'Modern LED Board-7';-inkscape-font-specification:'ModernLEDBoard-7, Modern LED Board-7, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.66666667px;font-family:Ebisu;-inkscape-font-specification:'Ebisu, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr;text-anchor:start"
id="tspan5094">$prenames</tspan>
</text>
</g>

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View file

@ -1895,8 +1895,6 @@
id="style1407"
type="text/css">
.st0{fill:#B5DDDF;}
.st1{clip-path:url(#SVGID_2_);fill:#0DA5DE;}
.st2{clip-path:url(#SVGID_2_);fill:#FFFFFF;}
.st3{fill:#FFFFFF;}
.st4{font-family:'Ebisu';}
.st5{font-size:37px;}

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB