Fix layout and qr code
This commit is contained in:
parent
2e391bace6
commit
64a6e1a890
3 changed files with 92 additions and 52 deletions
|
|
@ -7,16 +7,6 @@ description 'Create SVG file with content of given event'
|
||||||
class CreateFlyer < ::Nanoc::CLI::CommandRunner
|
class CreateFlyer < ::Nanoc::CLI::CommandRunner
|
||||||
require 'rqrcode_png'
|
require 'rqrcode_png'
|
||||||
|
|
||||||
# Monkey-patch qr generator
|
|
||||||
module RQRCodePNG
|
|
||||||
class Sequence
|
|
||||||
def border_width()
|
|
||||||
# No boundary around image
|
|
||||||
0
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def get_qr(data)
|
def get_qr(data)
|
||||||
qr = nil
|
qr = nil
|
||||||
size = 7
|
size = 7
|
||||||
|
|
|
||||||
|
|
@ -46,9 +46,9 @@
|
||||||
inkscape:window-height="838"
|
inkscape:window-height="838"
|
||||||
id="namedview551"
|
id="namedview551"
|
||||||
showgrid="false"
|
showgrid="false"
|
||||||
inkscape:zoom="0.79554925"
|
inkscape:zoom="0.56253827"
|
||||||
inkscape:cx="162.21481"
|
inkscape:cx="12.294723"
|
||||||
inkscape:cy="731.4535"
|
inkscape:cy="528.73359"
|
||||||
inkscape:window-x="0"
|
inkscape:window-x="0"
|
||||||
inkscape:window-y="27"
|
inkscape:window-y="27"
|
||||||
inkscape:window-maximized="1"
|
inkscape:window-maximized="1"
|
||||||
|
|
@ -56,18 +56,61 @@
|
||||||
units="mm"
|
units="mm"
|
||||||
inkscape:document-units="mm" /><g
|
inkscape:document-units="mm" /><g
|
||||||
inkscape:groupmode="layer"
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
inkscape:label="Raster"
|
||||||
|
sodipodi:insensitive="true"
|
||||||
|
style="display:none"><rect
|
||||||
|
transform="translate(7.3563763e-6,632.83526)"
|
||||||
|
style="fill:none;stroke:#000000;stroke-opacity:1;display:inline"
|
||||||
|
id="rect4400"
|
||||||
|
width="371.92697"
|
||||||
|
height="526.35352"
|
||||||
|
x="0.062492646"
|
||||||
|
y="-632.77277"
|
||||||
|
inkscape:tile-cx="186.02599"
|
||||||
|
inkscape:tile-cy="263.23925"
|
||||||
|
inkscape:tile-w="371.92697"
|
||||||
|
inkscape:tile-h="526.35351"
|
||||||
|
inkscape:tile-x0="0.062507358"
|
||||||
|
inkscape:tile-y0="0.062493886" /><use
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
inkscape:tiled-clone-of="#rect4400"
|
||||||
|
xlink:href="#rect4400"
|
||||||
|
transform="translate(0,526.35351)"
|
||||||
|
id="use5232"
|
||||||
|
width="744.09448"
|
||||||
|
height="1052.3622" /><use
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
inkscape:tiled-clone-of="#rect4400"
|
||||||
|
xlink:href="#rect4400"
|
||||||
|
transform="translate(371.92697,0)"
|
||||||
|
id="use5234"
|
||||||
|
width="744.09448"
|
||||||
|
height="1052.3622" /><use
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
inkscape:tiled-clone-of="#rect4400"
|
||||||
|
xlink:href="#rect4400"
|
||||||
|
transform="translate(371.92697,526.35351)"
|
||||||
|
id="use5236"
|
||||||
|
width="744.09448"
|
||||||
|
height="1052.3622" /></g><g
|
||||||
|
inkscape:groupmode="layer"
|
||||||
id="layer3"
|
id="layer3"
|
||||||
inkscape:label="Inhalt"
|
inkscape:label="Inhalt"
|
||||||
style="display:inline"
|
style="display:inline"
|
||||||
transform="translate(0,632.83527)"><g
|
transform="translate(0,632.83527)"><g
|
||||||
id="g5456"
|
id="g4295"
|
||||||
inkscape:tile-cx="186.02598"
|
transform="matrix(0.96030446,0,0,0.96030446,3.3050107,-14.671317)"
|
||||||
|
inkscape:tile-cx="184.02598"
|
||||||
inkscape:tile-cy="263.23926"
|
inkscape:tile-cy="263.23926"
|
||||||
inkscape:tile-w="371.92697"
|
inkscape:tile-w="319.19509"
|
||||||
inkscape:tile-h="526.35351"
|
inkscape:tile-h="442.61835"
|
||||||
inkscape:tile-x0="0.062500002"
|
inkscape:tile-x0="24.577164"
|
||||||
inkscape:tile-y0="0.062503886"><g
|
inkscape:tile-y0="42.066777"><g
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,-1.4399623,-632.4935)"
|
transform="matrix(1.2596909,0,0,1.2596909,-3.4399623,-632.4935)"
|
||||||
id="g5356"
|
id="g5356"
|
||||||
style="display:inline"><path
|
style="display:inline"><path
|
||||||
id="path5"
|
id="path5"
|
||||||
|
|
@ -154,7 +197,7 @@
|
||||||
d="m 57.756996,159.3095 c -1.494,0 -2.971,-0.076 -4.426,-0.225 l -2.686,232.45 h 14.804 l -2.686,-232.517 c -1.642,0.192 -3.313,0.292 -5.006,0.292 l 0,0 z"
|
d="m 57.756996,159.3095 c -1.494,0 -2.971,-0.076 -4.426,-0.225 l -2.686,232.45 h 14.804 l -2.686,-232.517 c -1.642,0.192 -3.313,0.292 -5.006,0.292 l 0,0 z"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
style="fill:#dbdbdb" /></g><flowRoot
|
style="fill:#dbdbdb" /></g><flowRoot
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,-1.2556883,-633.89306)"
|
transform="matrix(1.2596909,0,0,1.2596909,-3.2556883,-633.89306)"
|
||||||
style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
style="font-size:8px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
||||||
id="flowRoot4936"
|
id="flowRoot4936"
|
||||||
xml:space="preserve"><flowRegion
|
xml:space="preserve"><flowRegion
|
||||||
|
|
@ -169,16 +212,16 @@
|
||||||
sodipodi:linespacing="125%"
|
sodipodi:linespacing="125%"
|
||||||
id="text4944"
|
id="text4944"
|
||||||
y="-529.76562"
|
y="-529.76562"
|
||||||
x="64.145561"
|
x="62.145561"
|
||||||
style="font-size:17.63567162px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
style="font-size:17.63567162px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
||||||
xml:space="preserve"><tspan
|
xml:space="preserve"><tspan
|
||||||
style="font-weight:600;-inkscape-font-specification:TitilliumText25L Semi-Bold"
|
style="font-weight:600;-inkscape-font-specification:TitilliumText25L Semi-Bold"
|
||||||
y="-529.76562"
|
y="-529.76562"
|
||||||
x="64.145561"
|
x="62.145561"
|
||||||
id="tspan4946"
|
id="tspan4946"
|
||||||
sodipodi:role="line">Vortragsreihe des CCCS</tspan></text>
|
sodipodi:role="line">Vortragsreihe des CCCS</tspan></text>
|
||||||
<flowRoot
|
<flowRoot
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,-0.0404023,-639.25384)"
|
transform="matrix(1.2596909,0,0,1.2596909,-2.0404023,-639.25384)"
|
||||||
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
||||||
id="flowRoot4994"
|
id="flowRoot4994"
|
||||||
xml:space="preserve"><flowRegion
|
xml:space="preserve"><flowRegion
|
||||||
|
|
@ -200,7 +243,7 @@
|
||||||
style="font-size:8px">Neckarstraße 168b</flowPara><flowPara
|
style="font-size:8px">Neckarstraße 168b</flowPara><flowPara
|
||||||
id="flowPara5010"
|
id="flowPara5010"
|
||||||
style="font-size:8px">70190 Stuttgart</flowPara></flowRoot><g
|
style="font-size:8px">70190 Stuttgart</flowPara></flowRoot><g
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,12.843668,-627.58636)"
|
transform="matrix(1.2596909,0,0,1.2596909,10.843668,-627.58636)"
|
||||||
id="g461"
|
id="g461"
|
||||||
style="display:inline"><defs
|
style="display:inline"><defs
|
||||||
id="defs463"><rect
|
id="defs463"><rect
|
||||||
|
|
@ -220,6 +263,7 @@
|
||||||
id="use3779" /></clipPath><g
|
id="use3779" /></clipPath><g
|
||||||
clip-path="url(#SVGID_2_)"
|
clip-path="url(#SVGID_2_)"
|
||||||
id="g469"><image
|
id="g469"><image
|
||||||
|
sodipodi:absref="/mnt/vault/home/sts/daten/privat/ccc/website/content/_data/${qrcode}"
|
||||||
xlink:href="${qrcode}"
|
xlink:href="${qrcode}"
|
||||||
id="image471"
|
id="image471"
|
||||||
transform="matrix(0.3013,0,0,0.3013,204.4551,322.7842)"
|
transform="matrix(0.3013,0,0,0.3013,204.4551,322.7842)"
|
||||||
|
|
@ -227,7 +271,7 @@
|
||||||
width="216"
|
width="216"
|
||||||
overflow="visible"
|
overflow="visible"
|
||||||
style="overflow:visible" /></g></g><flowRoot
|
style="overflow:visible" /></g></g><flowRoot
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,-1.8036543,-633.89304)"
|
transform="matrix(1.2596909,0,0,1.2596909,-3.8036543,-633.89304)"
|
||||||
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
||||||
id="flowRoot4948"
|
id="flowRoot4948"
|
||||||
xml:space="preserve"><flowRegion
|
xml:space="preserve"><flowRegion
|
||||||
|
|
@ -241,7 +285,7 @@
|
||||||
id="flowPara4954">${date}</flowPara><flowPara
|
id="flowPara4954">${date}</flowPara><flowPara
|
||||||
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L Heavy"
|
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L Heavy"
|
||||||
id="flowPara4956">${speakers}: ${title}</flowPara></flowRoot><flowRoot
|
id="flowPara4956">${speakers}: ${title}</flowPara></flowRoot><flowRoot
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,0.3494727,-633.89304)"
|
transform="matrix(1.2596909,0,0,1.2596909,-1.6505273,-633.89304)"
|
||||||
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
||||||
id="flowRoot4966"
|
id="flowRoot4966"
|
||||||
xml:space="preserve"><flowRegion
|
xml:space="preserve"><flowRegion
|
||||||
|
|
@ -263,7 +307,7 @@
|
||||||
style="font-size:8px" /><flowPara
|
style="font-size:8px" /><flowPara
|
||||||
id="flowPara4982"
|
id="flowPara4982"
|
||||||
style="font-size:8px">Eintritt frei, um einen freiwilligen Unkostenbeitrag wird gebeten.</flowPara></flowRoot><flowRoot
|
style="font-size:8px">Eintritt frei, um einen freiwilligen Unkostenbeitrag wird gebeten.</flowPara></flowRoot><flowRoot
|
||||||
transform="matrix(1.2596909,0,0,1.2596909,-0.7215793,-633.89304)"
|
transform="matrix(1.2596909,0,0,1.2596909,-2.7215793,-633.89304)"
|
||||||
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
style="font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;display:inline;font-family:TitilliumText25L;-inkscape-font-specification:TitilliumText25L"
|
||||||
id="flowRoot4984"
|
id="flowRoot4984"
|
||||||
xml:space="preserve"><flowRegion
|
xml:space="preserve"><flowRegion
|
||||||
|
|
@ -286,33 +330,28 @@
|
||||||
id="flowPara3135"
|
id="flowPara3135"
|
||||||
style="font-size:8px">${calendar.4}</flowPara><flowPara
|
style="font-size:8px">${calendar.4}</flowPara><flowPara
|
||||||
id="flowPara3137"
|
id="flowPara3137"
|
||||||
style="font-size:8px">${calendar.5}</flowPara></flowRoot><rect
|
style="font-size:8px">${calendar.5}</flowPara></flowRoot></g><use
|
||||||
y="-632.77277"
|
|
||||||
x="0.062492646"
|
|
||||||
height="526.35352"
|
|
||||||
width="371.92697"
|
|
||||||
id="rect4400"
|
|
||||||
style="fill:none;stroke:none;stroke-width:0.12028150000000000;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /></g><use
|
|
||||||
x="0"
|
x="0"
|
||||||
y="0"
|
y="0"
|
||||||
inkscape:tiled-clone-of="#g5456"
|
inkscape:tiled-clone-of="#g4295"
|
||||||
xlink:href="#g5456"
|
xlink:href="#g4295"
|
||||||
id="use5527" /><use
|
transform="translate(7.3669642e-6,526.3535)"
|
||||||
|
id="use5240"
|
||||||
|
width="744.09448"
|
||||||
|
height="1052.3622" /><use
|
||||||
x="0"
|
x="0"
|
||||||
y="0"
|
y="0"
|
||||||
inkscape:tiled-clone-of="#g5456"
|
inkscape:tiled-clone-of="#g4295"
|
||||||
xlink:href="#g5456"
|
xlink:href="#g4295"
|
||||||
transform="translate(0,526.35351)"
|
transform="translate(371.92698,-1.0474851e-5)"
|
||||||
id="use5529" /><use
|
id="use5242"
|
||||||
|
width="744.09448"
|
||||||
|
height="1052.3622" /><use
|
||||||
x="0"
|
x="0"
|
||||||
y="0"
|
y="0"
|
||||||
inkscape:tiled-clone-of="#g5456"
|
inkscape:tiled-clone-of="#g4295"
|
||||||
xlink:href="#g5456"
|
xlink:href="#g4295"
|
||||||
transform="translate(371.92697,0)"
|
transform="translate(371.92698,526.3535)"
|
||||||
id="use5531" /><use
|
id="use5244"
|
||||||
x="0"
|
width="744.09448"
|
||||||
y="0"
|
height="1052.3622" /></g></svg>
|
||||||
inkscape:tiled-clone-of="#g5456"
|
|
||||||
xlink:href="#g5456"
|
|
||||||
transform="translate(371.92697,526.35351)"
|
|
||||||
id="use5533" /></g></svg>
|
|
||||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
11
lib/qrpatch.rb
Normal file
11
lib/qrpatch.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
require 'rqrcode_png'
|
||||||
|
|
||||||
|
# Monkey-patch qr generator
|
||||||
|
module RQRCodePNG
|
||||||
|
class Sequence
|
||||||
|
def border_width()
|
||||||
|
# No boundary around image
|
||||||
|
0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue