pycon configuration

This commit is contained in:
MaZderMind 2014-07-19 10:02:50 +02:00
parent 2df8c4888f
commit e082f8bca8
3 changed files with 348 additions and 0 deletions

108
pycon14/__init__.py Normal file
View file

@ -0,0 +1,108 @@
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# URL to Schedule-XML
scheduleUrl = 'https://ep2014.europython.eu/schedule.frab.xml'
# For (really) too long titles
titlemap = {
}
def pyconFrames():
givenFrame = 0
frames = 168
for i in range(0, frames):
givenFrame += 1
yield (
('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)),
('text', 'style', 'opacity', 0),
)
frames = 16
for i in range(0, frames):
givenFrame += 1
yield (
('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)),
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames)),
)
frames = 113
for i in range(0, frames):
givenFrame += 1
yield (
('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)),
('text', 'style', 'opacity', 1),
)
frames = 14
for i in range(0, frames):
givenFrame += 1
yield (
('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)),
('text', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)),
)
frames = 66
for i in range(0, frames):
givenFrame += 1
yield (
('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)),
('text', 'style', 'opacity', 0),
)
def debug():
render(
'intro.svg',
'../intro.dv',
pyconFrames,
{
'$id': 93,
'$title': 'Deploying and managing FreeBSD jails with mr.awsome, fabric and ansible',
'$subtitle': '',
'$personnames': 'tomster'
}
)
# render(
# 'outro.svg',
# '../outro.dv',
# outroFrames
# )
# render('pause.svg',
# '../pause.dv',
# pauseFrames
# )
def tasks(queue):
# iterate over all events extracted from the schedule xml-export
for event in events():
# generate a task description and put them into the queue
queue.put((
'intro.svg',
str(event['id'])+".dv",
introFrames,
{
'$id': event['id'],
'$title': event['title'],
'$subtitle': event['subtitle'],
'$personnames': event['personnames']
}
))
# # place a task for the outro into the queue
# queue.put((
# 'outro.svg',
# 'outro.dv',
# outroFrames
# ))
# # place the pause-sequence into the queue
# queue.put((
# 'pause.svg',
# 'pause.dv',
# pauseFrames
# ))

View file

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1920"
height="1080"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="intro.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="771.68876"
inkscape:cy="678.01559"
inkscape:document-units="px"
inkscape:current-layer="text"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="993"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true">
<sodipodi:guide
orientation="1,0"
position="241.78572,895.35715"
id="guide3015" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,27.63782)">
<image
sodipodi:absref="/home/peter/AAA-VOC/intro-outro-generator/pycon14/artwork/given-frames/frame0264.png"
xlink:href="given-frames/frame0264.png"
x="0"
id="bg"
height="1080"
width="1920"
y="-27.637819" />
<g
id="text"
transform="translate(-1.2423857,-0.25253814)">
<flowRoot
transform="translate(0,-37.280677)"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#00b2e0;fill-opacity:1;stroke:none;font-family:Sans"
id="flowRoot3004"
xml:space="preserve"><flowRegion
id="flowRegion3006"><rect
y="200"
x="241.42857"
height="198.18274"
width="1478.9181"
id="rect3008"
style="fill:#00b2e0;fill-opacity:1" /></flowRegion><flowPara
style="font-size:78px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:121.00000380999999550%;font-family:Mark Pro;-inkscape-font-specification:Mark Pro;fill:#00b2e0;fill-opacity:1"
id="flowPara3010">Deploying and managing FreeBSD jails with mr.awsome, fabric and ansible</flowPara></flowRoot> <flowRoot
transform="translate(1.5906057,148.89422)"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ed6d46;fill-opacity:1;stroke:none;font-family:Sans"
id="flowRoot3004-6"
xml:space="preserve"><flowRegion
id="flowRegion3006-2"><rect
y="200"
x="241.42857"
height="198.18274"
width="1478.9181"
id="rect3008-1"
style="fill:#ed6d46;fill-opacity:1" /></flowRegion><flowPara
style="font-size:78px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Mark Pro;-inkscape-font-specification:Mark Pro;fill:#ed6d46;fill-opacity:1"
id="flowPara3010-2">Tom Lazar</flowPara></flowRoot> <flowRoot
transform="translate(-0.4093943,-132.74243)"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"
id="flowRoot3004-3"
xml:space="preserve"><flowRegion
id="flowRegion3006-0"><rect
y="200"
x="241.42857"
height="198.18274"
width="1478.9181"
id="rect3008-2"
style="fill:#ffffff;fill-opacity:1" /></flowRegion><flowPara
style="font-size:78px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Mark Pro;-inkscape-font-specification:Mark Pro;fill:#ffffff;fill-opacity:1"
id="flowPara3010-1">next</flowPara></flowRoot> </g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

125
pycon14/artwork/intro.svg Normal file
View file

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1024"
height="576"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="intro.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.979899"
inkscape:cx="441.8117"
inkscape:cy="345.68203"
inkscape:document-units="px"
inkscape:current-layer="text"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="993"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
showguides="true"
inkscape:guide-bbox="true">
<sodipodi:guide
orientation="1,0"
position="127.67857,526.07143"
id="guide3015" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-476.36218)">
<image
sodipodi:absref="/home/peter/AAA-VOC/intro-outro-generator/pycon14/artwork/given-frames/frame0264.png"
xlink:href="given-frames/frame0264.png"
x="0"
id="bg"
height="576"
width="1024"
y="476.36218" />
<g
id="text"
transform="translate(-117.5281,435.89032)">
<flowRoot
transform="translate(4.5267843,-57.318929)"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:120.00000477%;letter-spacing:0px;word-spacing:0px;fill:#00b1e0;fill-opacity:1;stroke:none;font-family:Sans"
id="flowRoot3004"
xml:space="preserve"><flowRegion
id="flowRegion3006"><rect
y="200"
x="241.42857"
height="118.45249"
width="798.78961"
id="rect3008"
style="line-height:120.00000477%;fill:#00b1e0;fill-opacity:1" /></flowRegion><flowPara
style="font-size:41.5px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:120.00000477%;fill:#00b1e0;fill-opacity:1;font-family:Mark Pro;-inkscape-font-specification:Mark Pro"
id="flowPara3010">$title</flowPara></flowRoot> <flowRoot
transform="translate(3.9062785,-109.56312)"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"
id="flowRoot3004-3"
xml:space="preserve"><flowRegion
id="flowRegion3006-0"><rect
y="200"
x="241.42857"
height="54.741077"
width="779.89252"
id="rect3008-2"
style="fill:#ffffff;fill-opacity:1" /></flowRegion><flowPara
style="font-size:42px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#ffffff;fill-opacity:1;font-family:Mark Pro;-inkscape-font-specification:Mark Pro"
id="flowPara3010-1">next</flowPara></flowRoot> <flowRoot
xml:space="preserve"
id="flowRoot3007"
style="fill:black;stroke:none;stroke-opacity:1;stroke-width:1px;stroke-linejoin:miter;stroke-linecap:butt;fill-opacity:1;font-family:Sans;font-style:normal;font-weight:normal;font-size:40px;line-height:125%;letter-spacing:0px;word-spacing:0px"><flowRegion
id="flowRegion3009"><rect
id="rect3011"
width="24.285715"
height="58.57143"
x="922.14288"
y="211" /></flowRegion><flowPara
id="flowPara3013" /></flowRoot> <flowRoot
transform="translate(4.1263129,42.252202)"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:120.00000477%;letter-spacing:0px;word-spacing:0px;fill:#eb6c48;fill-opacity:1;stroke:none;font-family:Sans"
id="flowRoot3004-1"
xml:space="preserve"><flowRegion
id="flowRegion3006-5"><rect
y="200"
x="241.42857"
height="118.45249"
width="798.78961"
id="rect3008-6"
style="line-height:120.00000477%;fill:#eb6c48;fill-opacity:1" /></flowRegion><flowPara
style="font-size:41.5px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:120.00000477%;fill:#eb6c48;fill-opacity:1;font-family:Mark Pro;-inkscape-font-specification:Mark Pro"
id="flowPara3010-5">$personnames</flowPara></flowRoot> </g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.2 KiB