adding the files for printing the envelopes

main
mb 1 year ago
parent 9f8e49a90d
commit c1eb1e6bec

@ -0,0 +1,24 @@
friends, ArtEZ - Graphic Design, , Onderlangs 9, 6812 CE, Arnhem, NL
friends, ArtEZ - Design Art Technology, , Onderlangs 9, 6812 CE, Arnhem, NL
Ruben Pater, KABK, Ruben Pater, Prinsessegracht 4, 2514 AN, Den Haag, NL
friends, Gerrit Rietveld Academie - Graphic Design, , Frederik Roeskestraat 96, 1076 ED, Amsterdam, NL
friends, Gerrit Rietveld Academie - Graphic Design, the Rietveld library, Frederik Roeskestraat 96, 1076 ED, Amsterdam, NL
David Bennewith, Gerrit Rietveld Academie - Graphic Design, David Bennewith, Frederik Roeskestraat 96, 1076 ED, Amsterdam, NL
friends, Minerva Academie, , Gedempte Zuiderdiep 158, 9711 HN, Groningen, NL
Davide Bevilacqua, servus.at, Davide Bevilacqua, Kirchengasse 4, 4040, Linz, AT
Andreas Zingerle, mur.at, Andreas Zingerle, Leitnergasse 7, 8010, Graz, AT
Ruth Schnell, die Angewandte - Digitale Kunst, zH. Ruth Schnell, Georg-Coch-Platz 2 od. Rosenbursenstraße 3, A-1010, Wien, AT
Holunder Heiss, UFG Linz - Zeitbasierte und Interaktive Medienkunst, zH. Holunder Heiss, Hauptplatz 8/III, 4020, Linz, AT
Anja Kaiser, HGB Leipzig, Anja Kaiser, Wächterstraße 11, 04107, Leipzig, DE
Ivan Weiss & Michael Kryenbühl, HfG Karlsruhe, Ivan Weiss & Michael Kryenbühl, Lorenzstr. 15, 76135, Karlsruhe, DE
Marco Cadioli, Accademia di Belle Arti di Brera, Marco Cadioli, Via Brera 28, 20121, Milano MI, IT
Winnie Soon, London South Bank University, CSNI Winnie Soon, 103 Borough Rd, SE1 0AA, London , UK
David Young, Royal Holloway - University of London Egham Hill, David Young, Egham Surrey, TW20 0EX, London, UK
Anne Laforet, Haute école des arts du Rhin, Anne Laforet, 1 rue de lAcadémie CS 10032, 67082, Strasbourg cedex, FR
Alexia De Visscher & Stéphanie Vilayphiou & Ludivine Loiseau, ERG (école de recherche graphique), Alexia De Visscher & Stéphanie Vilayphiou & Ludivine Loiseau, 87 rue du Page, 1050, Bruxelles, BE
Peter Westenberg, KASK, Peter Westenberg, Louis Pasteurlaan 2, 9000, Gent, BE
Ricardo Lafuente, ESAP-Escola Superior Artística do Porto, Ricardo Lafuente, Largo S. Domingos n. 80, 4050-545, Porto, PT
Birgit Bachler, FH JOANNEUM, Design & Kommunikation, zH. Birgit Bachler, Alte Poststraße 152, 8020 Graz, AT
Julien Bidoret, Ésad Pyrénées, Julien Bidoret, 2 rue Mathieu Lalanne, 64000, Pau, FR
Quentin Juhel, École supérieure d'Art et Design, Quentin Juhel, Place des Beaux-Arts CS 40074, 26903, Valence (cedex 9), FR
Matthias Görlich, University of Art and Design Halle, Matthias Görlich, P.O. Box 200252, D-06003, Halle (Saale), DE
1 friends ArtEZ - Graphic Design Onderlangs 9 6812 CE Arnhem NL
2 friends ArtEZ - Design Art Technology Onderlangs 9 6812 CE Arnhem NL
3 Ruben Pater KABK Ruben Pater Prinsessegracht 4 2514 AN Den Haag NL
4 friends Gerrit Rietveld Academie - Graphic Design Frederik Roeskestraat 96 1076 ED Amsterdam NL
5 friends Gerrit Rietveld Academie - Graphic Design the Rietveld library Frederik Roeskestraat 96 1076 ED Amsterdam NL
6 David Bennewith Gerrit Rietveld Academie - Graphic Design David Bennewith Frederik Roeskestraat 96 1076 ED Amsterdam NL
7 friends Minerva Academie Gedempte Zuiderdiep 158 9711 HN Groningen NL
8 Davide Bevilacqua servus.at Davide Bevilacqua Kirchengasse 4 4040 Linz AT
9 Andreas Zingerle mur.at Andreas Zingerle Leitnergasse 7 8010 Graz AT
10 Ruth Schnell die Angewandte - Digitale Kunst zH. Ruth Schnell Georg-Coch-Platz 2 od. Rosenbursenstraße 3 A-1010 Wien AT
11 Holunder Heiss UFG Linz - Zeitbasierte und Interaktive Medienkunst zH. Holunder Heiss Hauptplatz 8/III 4020 Linz AT
12 Anja Kaiser HGB Leipzig Anja Kaiser Wächterstraße 11 04107 Leipzig DE
13 Ivan Weiss & Michael Kryenbühl HfG Karlsruhe Ivan Weiss & Michael Kryenbühl Lorenzstr. 15 76135 Karlsruhe DE
14 Marco Cadioli Accademia di Belle Arti di Brera Marco Cadioli Via Brera 28 20121 Milano MI IT
15 Winnie Soon London South Bank University CSNI Winnie Soon 103 Borough Rd SE1 0AA London UK
16 David Young Royal Holloway - University of London Egham Hill David Young Egham Surrey TW20 0EX London UK
17 Anne Laforet Haute école des arts du Rhin Anne Laforet 1 rue de l’Académie CS 10032 67082 Strasbourg cedex FR
18 Alexia De Visscher & Stéphanie Vilayphiou & Ludivine Loiseau ERG (école de recherche graphique) Alexia De Visscher & Stéphanie Vilayphiou & Ludivine Loiseau 87 rue du Page 1050 Bruxelles BE
19 Peter Westenberg KASK Peter Westenberg Louis Pasteurlaan 2 9000 Gent BE
20 Ricardo Lafuente ESAP-Escola Superior Artística do Porto Ricardo Lafuente Largo S. Domingos n. 80 4050-545 Porto PT
21 Birgit Bachler FH JOANNEUM Design & Kommunikation zH. Birgit Bachler Alte Poststraße 152 8020 Graz AT
22 Julien Bidoret Ésad Pyrénées Julien Bidoret 2 rue Mathieu Lalanne 64000 Pau FR
23 Quentin Juhel École supérieure d'Art et Design Quentin Juhel Place des Beaux-Arts CS 40 074 26 903 Valence (cedex 9) FR
24 Matthias Görlich University of Art and Design Halle Matthias Görlich P.O. Box 200252 D-06003 Halle (Saale) DE

@ -0,0 +1,246 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="paged.js/paged.polyfill.js"></script>
<link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="print.css">
</head>
<body>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>ArtEZ - Graphic Design</div>
<div>Onderlangs 9</div>
<div>6812 CE Arnhem (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>ArtEZ - Design Art Technology</div>
<div>Onderlangs 9</div>
<div>6812 CE Arnhem (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>KABK</div>
<div><em>for Ruben Pater</em></div>
<div>Prinsessegracht 4</div>
<div>2514 AN Den Haag (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Gerrit Rietveld Academie - Graphic Design</div>
<div>Frederik Roeskestraat 96</div>
<div>1076 ED Amsterdam (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Gerrit Rietveld Academie - Graphic Design</div>
<div><em>for the Rietveld library</em></div>
<div>Frederik Roeskestraat 96</div>
<div>1076 ED Amsterdam (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Gerrit Rietveld Academie - Graphic Design</div>
<div><em>for David Bennewith</em></div>
<div>Frederik Roeskestraat 96</div>
<div>1076 ED Amsterdam (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Minerva Academie</div>
<div>Gedempte Zuiderdiep 158</div>
<div>9711 HN Groningen (NL)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>servus.at</div>
<div><em>for Davide Bevilacqua</em></div>
<div>Kirchengasse 4</div>
<div>4040 Linz (AT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>mur.at</div>
<div><em>for Andreas Zingerle</em></div>
<div>Leitnergasse 7</div>
<div>8010 Graz (AT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>die Angewandte - Digitale Kunst</div>
<div><em>for zH. Ruth Schnell</em></div>
<div>Georg-Coch-Platz 2 od. Rosenbursenstraße 3</div>
<div>A-1010 Wien (AT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>UFG Linz - Zeitbasierte und Interaktive Medienkunst</div>
<div><em>for zH. Holunder Heiss</em></div>
<div>Hauptplatz 8/III</div>
<div>4020 Linz (AT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>HGB Leipzig</div>
<div><em>for Anja Kaiser</em></div>
<div>Wächterstraße 11</div>
<div>04107 Leipzig (DE)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>HfG Karlsruhe</div>
<div><em>for Ivan Weiss & Michael Kryenbühl</em></div>
<div>Lorenzstr. 15</div>
<div>76135 Karlsruhe (DE)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Accademia di Belle Arti di Brera</div>
<div><em>for Marco Cadioli</em></div>
<div>Via Brera 28</div>
<div>20121 Milano MI (IT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>London South Bank University</div>
<div><em>for CSNI Winnie Soon</em></div>
<div>103 Borough Rd</div>
<div>SE1 0AA London (UK)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Royal Holloway - University of London Egham Hill</div>
<div><em>for David Young</em></div>
<div>Egham Surrey</div>
<div>TW20 0EX London (UK)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Haute école des arts du Rhin</div>
<div><em>for Anne Laforet</em></div>
<div>1 rue de lAcadémie CS 10032</div>
<div>67082 Strasbourg cedex (FR)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>ERG (école de recherche graphique)</div>
<div><em>for Alexia De Visscher & Stéphanie Vilayphiou & Ludivine Loiseau</em></div>
<div>87 rue du Page</div>
<div>1050 Bruxelles (BE)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>KASK</div>
<div><em>for Peter Westenberg</em></div>
<div>Louis Pasteurlaan 2</div>
<div>9000 Gent (BE)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>ESAP-Escola Superior Artística do Porto</div>
<div><em>for Ricardo Lafuente</em></div>
<div>Largo S. Domingos n. 80</div>
<div>4050-545 Porto (PT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>FH JOANNEUM</div>
<div><em>for Design & Kommunikation</em></div>
<div>zH. Birgit Bachler</div>
<div>Alte Poststraße 152 8020 Graz (AT)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>Ésad Pyrénées</div>
<div><em>for Julien Bidoret</em></div>
<div>2 rue Mathieu Lalanne</div>
<div>64000 Pau (FR)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>École supérieure d'Art et Design</div>
<div><em>for Quentin Juhel</em></div>
<div>Place des Beaux-Arts CS 40074</div>
<div>26903 Valence (cedex 9) (FR)</div>
</section>
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>University of Art and Design Halle</div>
<div><em>for Matthias Görlich</em></div>
<div>P.O. Box 200252</div>
<div>D-06003 Halle (Saale) (DE)</div>
</section>
</div>
</body>
</html>

Binary file not shown.

@ -0,0 +1,44 @@
from urllib import request
import csv
import jinja2
# pad = "https://pad.xpub.nl/p/XPUB-promo-strategies.addresses/export/txt"
# addresses = request.urlopen(pad).read().decode()
# print(addresses)
# with open("addresses.csv", "w") as out:
# out.write(addresses)
# print("saved: addresses.csv")
db = {}
with open("addresses.csv", newline="\n") as csvfile:
addresses = csv.reader(csvfile, delimiter=',', quotechar='"')
print("opened: addresses.csv")
for x, entry in enumerate(addresses):
friends = entry[0].strip()
school = entry[1].strip()
contactperson = entry[2].strip()
street = entry[3].strip()
postcode = entry[4].strip()
city = entry[5].strip()
country = entry[6].strip()
print("added:", school)
db[x] = {}
db[x]["friends"] = friends
db[x]["name"] = school
db[x]["contactperson"] = contactperson
db[x]["street"] = street
db[x]["postcode"] = postcode
db[x]["city"] = city
db[x]["country"] = country
env = jinja2.Environment(loader=jinja2.FileSystemLoader("."))
template = env.get_template("template.html")
html = template.render(db=db)
output = open("addresses.html", "w")
output.write(html)
output.close()
print("saved: addresses.html (open it with a local server running!)")

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -0,0 +1,180 @@
/* CSS for Paged.js interface v0.4 */
/* Change the look */
:root {
--color-background: whitesmoke;
--color-pageSheet: #cfcfcf;
--color-pageBox: violet;
--color-paper: white;
--color-marginBox: transparent;
--pagedjs-crop-color: black;
--pagedjs-crop-shadow: white;
--pagedjs-crop-stroke: 1px;
}
/* To define how the book look on the screen: */
@media screen, pagedjs-ignore {
body {
background-color: var(--color-background);
}
.pagedjs_pages {
display: flex;
width: calc(var(--pagedjs-width) * 2);
flex: 0;
flex-wrap: wrap;
margin: 0 auto;
}
.pagedjs_page {
background-color: var(--color-paper);
box-shadow: 0 0 0 1px var(--color-pageSheet);
margin: 0;
flex-shrink: 0;
flex-grow: 0;
margin-top: 10mm;
}
.pagedjs_first_page {
margin-left: var(--pagedjs-width);
}
.pagedjs_page:last-of-type {
margin-bottom: 10mm;
}
.pagedjs_pagebox{
box-shadow: 0 0 0 1px var(--color-pageBox);
}
.pagedjs_left_page{
z-index: 20;
width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width))!important;
}
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop {
border-color: transparent;
}
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
width: 0;
}
.pagedjs_right_page{
z-index: 10;
position: relative;
left: calc(var(--pagedjs-bleed-left)*-1);
}
/* show the margin-box */
.pagedjs_margin-top-left-corner-holder,
.pagedjs_margin-top,
.pagedjs_margin-top-left,
.pagedjs_margin-top-center,
.pagedjs_margin-top-right,
.pagedjs_margin-top-right-corner-holder,
.pagedjs_margin-bottom-left-corner-holder,
.pagedjs_margin-bottom,
.pagedjs_margin-bottom-left,
.pagedjs_margin-bottom-center,
.pagedjs_margin-bottom-right,
.pagedjs_margin-bottom-right-corner-holder,
.pagedjs_margin-right,
.pagedjs_margin-right-top,
.pagedjs_margin-right-middle,
.pagedjs_margin-right-bottom,
.pagedjs_margin-left,
.pagedjs_margin-left-top,
.pagedjs_margin-left-middle,
.pagedjs_margin-left-bottom {
box-shadow: 0 0 0 1px inset var(--color-marginBox);
}
/* uncomment this part for recto/verso book : ------------------------------------ */
/*
.pagedjs_pages {
flex-direction: column;
width: 100%;
}
.pagedjs_first_page {
margin-left: 0;
}
.pagedjs_page {
margin: 0 auto;
margin-top: 10mm;
}
.pagedjs_left_page{
width: calc(var(--pagedjs-bleed-left) + var(--pagedjs-pagebox-width) + var(--pagedjs-bleed-left))!important;
}
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-crop{
border-color: var(--pagedjs-crop-color);
}
.pagedjs_left_page .pagedjs_bleed-right .pagedjs_marks-middle{
width: var(--pagedjs-cross-size)!important;
}
.pagedjs_right_page{
left: 0;
}
*/
/*--------------------------------------------------------------------------------------*/
/* uncomment this par to see the baseline : -------------------------------------------*/
/* .pagedjs_pagebox {
--pagedjs-baseline: 22px;
--pagedjs-baseline-position: 5px;
--pagedjs-baseline-color: cyan;
background: linear-gradient(transparent 0%, transparent calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) calc(var(--pagedjs-baseline) - 1px), var(--pagedjs-baseline-color) var(--pagedjs-baseline)), transparent;
background-size: 100% var(--pagedjs-baseline);
background-repeat: repeat-y;
background-position-y: var(--pagedjs-baseline-position);
} */
/*--------------------------------------------------------------------------------------*/
}
/* Marks (to delete when merge in paged.js) */
.pagedjs_marks-crop{
z-index: 999999999999;
}
.pagedjs_bleed-top .pagedjs_marks-crop,
.pagedjs_bleed-bottom .pagedjs_marks-crop{
box-shadow: 1px 0px 0px 0px var(--pagedjs-crop-shadow);
}
.pagedjs_bleed-top .pagedjs_marks-crop:last-child,
.pagedjs_bleed-bottom .pagedjs_marks-crop:last-child{
box-shadow: -1px 0px 0px 0px var(--pagedjs-crop-shadow);
}
.pagedjs_bleed-left .pagedjs_marks-crop,
.pagedjs_bleed-right .pagedjs_marks-crop{
box-shadow: 0px 1px 0px 0px var(--pagedjs-crop-shadow);
}
.pagedjs_bleed-left .pagedjs_marks-crop:last-child,
.pagedjs_bleed-right .pagedjs_marks-crop:last-child{
box-shadow: 0px -1px 0px 0px var(--pagedjs-crop-shadow);
}

@ -0,0 +1,35 @@
@page{
size: 229mm 162mm;
margin: 5mm;
}
section.envelope{
font-family: "unifont";
font-size: 24px;
display: block;
margin: 50mm auto;
width: 135mm;
break-after: always;
line-height: 1.5;
}
section#xpub{
position: absolute;
top: 0;
left: 70mm;
font-family: "header";
font-size: 32px;
}
em{
font-family: "italic";
font-size: 20px;
line-height: 1;
letter-spacing: 0.04em;
}
@font-face{
font-family: "header";
src:url("komika.woff");
}
@font-face{
font-family: "italic";
src:url("LibreBaskerville-Italic.ttf");
font-style: italic;
}

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script src="paged.js/paged.polyfill.js"></script>
<link href="paged.js/pagedjs.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="print.css">
</head>
<body>
{% for _, school in db.items() %}
<section class="envelope">
<section id="xpub">XPUB.NL</section>
<div>{{ school.name }}</div>
{% if school.contactperson | length > 1 %}
<div><em>for {{ school.contactperson }}</em></div>
{% endif %}
<div>{{ school.street }}</div>
<div>{{ school.postcode }} {{ school.city }} ({{ school.country }})</div>
</section>
{% endfor %}
</div>
</body>
</html>
Loading…
Cancel
Save