36c3: bauchbinden
This commit is contained in:
parent
cc595fd37d
commit
e38e77ecb9
4 changed files with 1557 additions and 0 deletions
48
36c3/__init__.py
Normal file
48
36c3/__init__.py
Normal file
|
@ -0,0 +1,48 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import subprocess
|
||||
import os.path
|
||||
from renderlib import *
|
||||
from easing import *
|
||||
import svg.path
|
||||
|
||||
|
||||
personmap = {
|
||||
}
|
||||
|
||||
taglinemap = {
|
||||
}
|
||||
|
||||
# URL to Schedule-XML
|
||||
scheduleUrl = 'https://fahrplan.events.ccc.de/congress/2019/Fahrplan/schedule.xml'
|
||||
|
||||
|
||||
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 ('Ada', 'Borg', 'Clarke', 'Dijkstra', 'Eliza'):
|
||||
print("skipping room %s (%s)" % (event['room'], event['title']))
|
||||
continue
|
||||
|
||||
if (event['id'] in idlist or not idlist):
|
||||
# generate a task description and put them into the queue
|
||||
idx=0
|
||||
for idx, person in enumerate(persons(scheduleUrl, personmap, taglinemap, event['id'])):
|
||||
queue.put(Rendertask(
|
||||
infile = 'insert.svg',
|
||||
outfile = 'event_{}_person_{}.png'.format(str(event['id']), str(person['id'])),
|
||||
parameters = {
|
||||
'$person': person['person'],
|
||||
'$tagline': person['tagline'],
|
||||
}
|
||||
))
|
||||
|
||||
if idx > 0:
|
||||
queue.put(Rendertask(
|
||||
infile = 'insert.svg',
|
||||
outfile = 'event_{}_persons.png'.format(str(event['id'])),
|
||||
parameters = {
|
||||
'$person': event['personnames'],
|
||||
'$tagline': '',
|
||||
}
|
||||
))
|
516
36c3/artwork/bauchbinde_links.svg
Normal file
516
36c3/artwork/bauchbinde_links.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 53 KiB |
477
36c3/artwork/bauchbinde_rechts.svg
Normal file
477
36c3/artwork/bauchbinde_rechts.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 50 KiB |
516
36c3/artwork/insert.svg
Normal file
516
36c3/artwork/insert.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 52 KiB |
Loading…
Add table
Reference in a new issue