diff --git a/.~lock.data_trees.csv# b/.~lock.data_trees.csv# new file mode 100644 index 0000000..17afa3e --- /dev/null +++ b/.~lock.data_trees.csv# @@ -0,0 +1 @@ +,ana,anafoor,16.10.2022 14:07,file:///home/ana/.config/libreoffice/4; \ No newline at end of file diff --git a/__pycache__/app.cpython-310.pyc b/__pycache__/app.cpython-310.pyc index 538f083..bb1f7b9 100644 Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ diff --git a/__pycache__/settings.cpython-310.pyc b/__pycache__/settings.cpython-310.pyc index cb2b41b..4f5d955 100644 Binary files a/__pycache__/settings.cpython-310.pyc and b/__pycache__/settings.cpython-310.pyc differ diff --git a/app.py b/app.py index d0cd8de..5a07797 100644 --- a/app.py +++ b/app.py @@ -36,9 +36,9 @@ app = Flask(__name__) """ Shows the index page of the application """ -@app.route('/') -def index(): - return render_template('index.html') +# @app.route('/') +# def index(): +# return render_template('index.html') @@ -47,7 +47,7 @@ def index(): the app.route is the webaddress you need to create the template in templates, and specify what variables you want to use in that template """ -@app.route('/step1') +@app.route('/') def step_1(): locations = [] for element in data: @@ -100,7 +100,7 @@ def generate (): else: final_textlist = in_between(tokenized_text, nouns) final_text = " ".join(final_textlist) - print(final_textlist) + """ Insert your own Python code in this function. @@ -120,7 +120,7 @@ def generate (): r = Response(pdf, mimetype='application/pdf') r.headers.extend({ - 'Content-Disposition': 'attachment; filename="Title of the.pdf"' + 'Content-Disposition': 'attachment; filename="Dreaming with {} in {}.pdf"'.format(dream_tree, place) }) return r diff --git a/settings.py b/settings.py index e9824e1..f368c1f 100644 --- a/settings.py +++ b/settings.py @@ -1,3 +1,6 @@ +from pickle import FALSE + + PAGEDJS_BINARY_PATH = 'pagedjs-cli' # os.path.join(os.path.dirname(__file__), 'node_modules/pagedjs-cli/bin/paged') # Path to the pagedjs-cli executable # Find it on linux with `whereis pagedjs-cli` diff --git a/static/style.css b/static/style.css index c7c7f27..cf83d33 100644 --- a/static/style.css +++ b/static/style.css @@ -3,6 +3,10 @@ h1 { break-after: always; } +pre { + white-space: pre-wrap; +} + /** @page { size: 210mm 297mm; diff --git a/templates/book.html b/templates/book.html index 16d88d8..9507a2a 100644 --- a/templates/book.html +++ b/templates/book.html @@ -10,23 +10,24 @@ {% endif %} - Generated book + Dreaming with {{ dream_tree }} in {{ place }}

Dreaming with {{ dream_tree }} in {{ place }}

{{description_tree}}

-

Trees absorb CO2 from the air and generate oxygen. \ - In forests and parks, the concentration of trees is high and CO2 emissions are often low,\ - because traffic is inexistant. The air quality for humans is therefore generally better.\ - The hypothesis exists that the high concentration of trees allows for more lucid dreaming.\ - It is said as well that a personal relationship to a tree can enhance lucid dreaming as well,\ +

Trees absorb CO2 from the air and generate oxygen. + In forests and parks, the concentration of trees is high and CO2 emissions are often low, + because traffic is inexistant. The air quality for humans is therefore generally better. + The hypothesis exists that the high concentration of trees allows for more lucid dreaming. + It is said as well that a personal relationship to a tree can enhance lucid dreaming as well, even if the tree is living in an urban area

ENJOY YOUR DREAMS!

-

{{final_text}}

+
{{final_text}}

Credits

This work was developed by Ipek Burçak and An Mertens during the Anaïs Berck residency at Meyboom, Brussels in Sept-Oct 2022.

The dreams are a selection of Pandemic Dreams Archive, a project by Erick Felinto, Fabiane M. Borges, Lívia Diniz, Rafael Frazão and Tiago F. Pimentel.

+

Thanks to Gijs de Heij for the technical teaching & help!

\ No newline at end of file