diff --git a/ASCII-canvas-to-PDF.ipynb b/ASCII-canvas-to-PDF.ipynb deleted file mode 100644 index f8f32b0..0000000 --- a/ASCII-canvas-to-PDF.ipynb +++ /dev/null @@ -1,204 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# ASCII Canvas" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "(using Reportlab to export it as a PDF)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "width = 75\n", - "height = 65" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "multipage = False" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "# Simple fill-up of a page, to set the reach of our canvas\n", - "lines = [] # All the lines will be stored here\n", - "\n", - "for linenumber in range(height):\n", - " line = 'x' * width\n", - " lines.append(line)\n", - "\n", - "print('\\n'.join(lines))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "# Another way to fill-up the page\n", - "import random \n", - "\n", - "lines = []\n", - "\n", - "txt = open('txt/language.txt', 'r').read()\n", - "words = txt.split()\n", - "\n", - "for linenumber in range(height):\n", - " word = random.choice(words)\n", - " length_of_word = len(word)\n", - " nr_of_words_fit_in_line = width / length_of_word\n", - " line = word * int(nr_of_words_fit_in_line)\n", - " lines.append(line)\n", - " \n", - "print('\\n'.join(lines))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "scrolled": true - }, - "outputs": [], - "source": [ - "# Same as above + a \"switch\" to make multipaged PDFs\n", - "import random \n", - "\n", - "multipage = True\n", - "number_of_pages = 100\n", - "\n", - "lines = []\n", - "pages = []\n", - "\n", - "txt = open('txt/language.txt', 'r').read()\n", - "words = txt.split()\n", - "\n", - "for page in range(number_of_pages):\n", - " \n", - " for linenumber in range(height):\n", - " word = random.choice(words)\n", - " length_of_word = len(word)\n", - " nr_of_words_fit_in_line = width / length_of_word\n", - " line = word * int(nr_of_words_fit_in_line)\n", - " lines.append(line)\n", - " \n", - " # Add a page\n", - " pages.append(lines)\n", - " lines = []\n", - "\n", - "for page in pages:\n", - " print('\\n'.join(page))\n", - " print('-' * width)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Exporting with Reportlab" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from reportlab.pdfgen.canvas import Canvas\n", - "from reportlab.lib.pagesizes import A4\n", - "from reportlab.lib.units import mm\n", - "\n", - "pagewidth = 210*mm\n", - "pageheight = 297*mm\n", - "\n", - "c = Canvas(\"ASCII-canvas-to-PDF.pdf\", pagesize=(pagewidth, pageheight), bottomup=0)\n", - "c.setFont('Courier', 12)\n", - "\n", - "start_y = 10*mm # start position of the lines\n", - "\n", - "y = start_y\n", - "lineheight = 4*mm\n", - "\n", - "if multipage == True:\n", - " for page in pages:\n", - " for line in page:\n", - " c.drawCentredString(pagewidth/2, y, line)\n", - " y += lineheight\n", - " c.showPage()\n", - " y = start_y\n", - "else:\n", - " for line in lines:\n", - " c.drawCentredString(pagewidth/2, y, line)\n", - " y += lineheight\n", - " \n", - "c.save()" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.3" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/ASCII-patch-making.ipynb b/ASCII-patch-making.ipynb deleted file mode 100644 index 5ec4c71..0000000 --- a/ASCII-patch-making.ipynb +++ /dev/null @@ -1,299 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# ASCII Patch-making" - ] - }, - { - "cell_type": "code", - "execution_count": 38, - "metadata": {}, - "outputs": [], - "source": [ - "characters = 82 # width\n", - "rows = 74 # height" - ] - }, - { - "cell_type": "code", - "execution_count": 47, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚▚\n", - "▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░\n", - "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n", - "▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞\n", - "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n" - ] - } - ], - "source": [ - "# Patch 1\n", - "import random\n", - "\n", - "lines = []\n", - "shapes = ['░','▒','▓','▉','▚','▞']\n", - "\n", - "for linenumber in range(rows):\n", - " line = random.choice(shapes) * characters\n", - " lines.append(line)\n", - "\n", - "patch = '\\n'.join(lines)\n", - "print(patch)" - ] - }, - { - "cell_type": "code", - "execution_count": 50, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "7777777777777777777777777777777777777777777777777777777777777777777777777777777777\n", - "6666666666666666666666666666666666666666666666666666666666666666666666666666666666\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "7777777777777777777777777777777777777777777777777777777777777777777777777777777777\n", - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "6666666666666666666666666666666666666666666666666666666666666666666666666666666666\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "7777777777777777777777777777777777777777777777777777777777777777777777777777777777\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "6666666666666666666666666666666666666666666666666666666666666666666666666666666666\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "8888888888888888888888888888888888888888888888888888888888888888888888888888888888\n", - "0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n", - "7777777777777777777777777777777777777777777777777777777777777777777777777777777777\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "6666666666666666666666666666666666666666666666666666666666666666666666666666666666\n", - "8888888888888888888888888888888888888888888888888888888888888888888888888888888888\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n", - "8888888888888888888888888888888888888888888888888888888888888888888888888888888888\n", - "6666666666666666666666666666666666666666666666666666666666666666666666666666666666\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "7777777777777777777777777777777777777777777777777777777777777777777777777777777777\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "7777777777777777777777777777777777777777777777777777777777777777777777777777777777\n", - "9999999999999999999999999999999999999999999999999999999999999999999999999999999999\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "0000000000000000000000000000000000000000000000000000000000000000000000000000000000\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "4444444444444444444444444444444444444444444444444444444444444444444444444444444444\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "2222222222222222222222222222222222222222222222222222222222222222222222222222222222\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "5555555555555555555555555555555555555555555555555555555555555555555555555555555555\n", - "3333333333333333333333333333333333333333333333333333333333333333333333333333333333\n", - "1111111111111111111111111111111111111111111111111111111111111111111111111111111111\n", - "8888888888888888888888888888888888888888888888888888888888888888888888888888888888\n" - ] - } - ], - "source": [ - "# Patch 2\n", - "lines = []\n", - "\n", - "import random\n", - "numbers = ['0','1','2','3','4','5','6','7','8','9']\n", - "\n", - "for linenumber in range(rows):\n", - " line = random.choice(numbers) * characters\n", - " lines.append(line)\n", - "\n", - "print('\\n'.join(lines))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": 49, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "6141" - ] - }, - "execution_count": 49, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "out = open('patches/shapes-patch.txt', 'w')\n", - "out.write(patch)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.3" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/ASCII-quilt.ipynb b/ASCII-quilt.ipynb deleted file mode 100644 index 4f818ad..0000000 --- a/ASCII-quilt.ipynb +++ /dev/null @@ -1,198 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# ASCII Canvas" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "(using Reportlab to export it as a PDF)" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "width = 75\n", - "height = 65" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "scrolled": true - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", - "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n" - ] - } - ], - "source": [ - "# Simple fill-up of a page, to set the reach of our canvas\n", - "lines = [] # All the lines will be stored here\n", - "\n", - "for linenumber in range(height):\n", - " line = 'x' * width\n", - " lines.append(line)\n", - "\n", - "print('\\n'.join(lines))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Exporting with Reportlab" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": {}, - "outputs": [], - "source": [ - "from reportlab.pdfgen.canvas import Canvas\n", - "from reportlab.lib.pagesizes import A4\n", - "from reportlab.lib.units import mm\n", - "\n", - "pagewidth = 210*mm # = A4[0]\n", - "pageheight = 297*mm # = A4[1]\n", - "\n", - "# It is the same as:\n", - "# pagewidth, pageheight = A4\n", - "\n", - "c = Canvas(\"ASCII-canvas-to-PDF.pdf\", pagesize=(pagewidth, pageheight), bottomup=0) # the 'bottomup' flips the coordinates, and puts the 0,0 at the left top\n", - "c.setFont('Courier', 12)\n", - "\n", - "start_y = 10*mm # start position of the lines\n", - "\n", - "y = start_y\n", - "lineheight = 4*mm\n", - "\n", - "for line in lines:\n", - " c.drawCentredString(pagewidth/2, y, line)\n", - " y += lineheight\n", - "\n", - "c.save()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.3" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/Concordance_Patches/V2_WE_ALL_EMBRACE_CONTINUOUS_LANGAUGE.txt b/Concordance_Patches/V2_WE_ALL_EMBRACE_CONTINUOUS_LANGAUGE.txt deleted file mode 100644 index 667bca8..0000000 --- a/Concordance_Patches/V2_WE_ALL_EMBRACE_CONTINUOUS_LANGAUGE.txt +++ /dev/null @@ -1,74 +0,0 @@ - we -i we h - m we ’ -ce we des -inua we deny - , we we descr -inuity we descri -’ d lik we display -one per we need to -talist Ru we speak abo - often use We see this w - of ‘ arriv we will later -later ‘ arri we arrive at a -omething real We tend to forge -t ‘ home. ’ We we understand as - [ i ] only is we feel ‘ unheimis -gnized it . Or s we are accustomed t - would state , ‘ we think about progr -that one will ‘ ar We can not arrive in -d , as worlds are c We need continuous lan -or mode awaiting you we give to a future tha - i ] presence [ i ] , We need a language that - you about him I love all my heart and my soul W -elative as no genitals all adjectives that she fi - ‘ discovered ’ the Am all the life that was ther -onsidered meaningful o all . It was no life . It -ave – in some way or a all along . Those who arri - common , inspirationa all about the journey ’ fo -d arrival , unless one all is journey. ’ When we -air you are given by T All of these factors helpe -nd upon my arrival I c all worlds and all sides t -val I could forget tha all sides that are always -asonable wealthy and e All would be fine as the s - speaking , but an ete all , allowing everything -eminist practise . Que embrace of what ’ s described -straight one , it is a embrace in which it is unclear -at embraces what : does embrace the listener , does the -ace the listener , does t embrace the description , does th -scription , does the event embrace the continuous language th -gage the event ? It ’ s an embrace with few coordinates . It ’ -ace with few coordinates . I embrace of which it is unsure whethe - which it is unsure whether i embrace . It is moving , taking form -ne and seizable , instead of a continuous thinking she is trying to surf -w attention to ? How can we di continuous time while using language ? La -at is described . It means tha continuous ( well- ) being of what is des -ecause of your positionality . continuous noticing is necessary to re-di -oes the event described embrac continuous language that is trying to lin -, but to acknowledge the world continuous place , instead of believing t -s are constantly arriving . We continuous language . There is no platfor -untered with [ i ] presence [ continuous life . We need a language that - I understood that it was her language that displayed , inhabited , s -ted her love and trust for him language wasn ’ t just a true account of - a true account of her worship , language generated and endorsed the love -the content of this message . I l language . I love language so much that I -s message . I love language . I lo language so much that I can sound very conv -eling submission . In this convince language , by expressing surrender I would e -uld experience surrender because the language of worship and submission is not des -words , but I ’ m very much aimed at language ’ s shortcomings . One of the diffic -comings . One of the difficulties of language I have recently been involved with , - thinking she is trying to surface . Language kills continuation . When we describ - display continuous time while using language ? Language itself is constantly draw -ntinuous time while using language ? Language itself is constantly drawing from th -I was experiencing continuousness of language when I was having sex and feeling my -m a moment in time and space . While language kills what is being described , it e -ng a few dominant narratives – using language to create proximity can just as well -nclear what embraces what : does the language embrace the listener , does the list -ent described embrace the continuous language that is trying to linguistically eng -tantly arriving . We need continuous language . There is no platform waiting for y -ing our arrival ? The future needs a language that does not identify the future as -uture as a separate era . It needs a language in which the deadening force of word - [ i ] , continuous life . We need a language that is not old , nor presents itsel -gitimatize its existence . What does language need ? It needs faith . It needs spe -ivity , who recognize the effects of language , understanding that the expression - the conversation . A feminist queer language may well be that : God-language . A diff --git a/Concordance_Patches/WE_ALL_EMBRACE_CONTINUOUS_LANGUAGE.txt b/Concordance_Patches/WE_ALL_EMBRACE_CONTINUOUS_LANGUAGE.txt deleted file mode 100644 index 869259b..0000000 --- a/Concordance_Patches/WE_ALL_EMBRACE_CONTINUOUS_LANGUAGE.txt +++ /dev/null @@ -1,74 +0,0 @@ -ve ( just as much as it says about what we are conditioned to expect and recognize -irst it made me shy . But the next time we had sex , I noticed how her description - meant value determining . In that case we ’ d encounter the moment when words and -ce . Language kills continuation . When we describe something , we deny the contin -inuation . When we describe something , we deny the continuity of that which we de - , we deny the continuity of that which we describe . When we describe something o -inuity of that which we describe . When we describe something or someone , that so -’ d like to draw attention to ? How can we display continuous time while using lan -one per se – but in order to use a word we need to at least remember its meaning , -talist Ruins [ I ] . [ 5 ] Often , when we speak about progress , progress is not - often used to debunk what was before . We see this with children displaying ‘ que - of ‘ arriving. ’ The expectations that we will later ‘ arrive ’ at a certain insi -later ‘ arrive ’ at a certain insight , we arrive at a better place in our lives , -omething real , an arrival at ‘ home. ’ We tend to forget that what we understand -t ‘ home. ’ We tend to forget that what we understand as real [ i ] is [ i ] and [ - [ i ] only is [ i ] the present . When we feel ‘ unheimisch ’ or ‘ unreal , ’ thi -gnized it . Or so the history narrative we are accustomed to , latently ( but blun - would state , ‘ all is journey. ’ When we think about progress , similar feelings -that one will ‘ arrive ’ in the world . We can not arrive in the world , as worlds -d , as worlds are constantly arriving . We need continuous language . There is no -or mode awaiting your growth . What can we give to a future that is not awaiting o - i ] presence [ i ] , continuous life . We need a language that is not old , nor p - you about him I love him so much with all my heart and my soul With every bone i -elative as no genitals are average and all adjectives that she finds truth in are - ‘ discovered ’ the Americas , meaning all the life that was there before Columbu -onsidered meaningful or even living at all . It was no life . It only became life -ave – in some way or another – existed all along . Those who arrive – whether at - common , inspirational motto ‘ It ’ s all about the journey ’ forgets that the p -d arrival , unless one would state , ‘ all is journey. ’ When we think about prog -air you are given by Thuiszorg . [ 6 ] All of these factors helped me get better -nd upon my arrival I could forget that all worlds and all sides that are always a -val I could forget that all worlds and all sides that are always already out ther -asonable wealthy and educated family . All would be fine as the society I grew up - speaking , but an eternal effort from all , allowing everything to be alive – am -eminist practise . Queer because the embrace of what ’ s described can not be a s -straight one , it is a messy sort of embrace in which it is unclear what embraces -at embraces what : does the language embrace the listener , does the listener emb -ace the listener , does the listener embrace the description , does the event des -scription , does the event described embrace the continuous language that is tryi -gage the event ? It ’ s an amorphous embrace with few coordinates . It ’ s an emb -ace with few coordinates . It ’ s an embrace of which it is unsure whether it is - which it is unsure whether it is an embrace . It is moving , taking form , formi -ne and seizable , instead of as the continuous thinking she is trying to surface . -w attention to ? How can we display continuous time while using language ? Languag -at is described . It means that the continuous ( well- ) being of what is describe -ecause of your positionality . This continuous noticing is necessary to re-direct -oes the event described embrace the continuous language that is trying to linguist -, but to acknowledge the world as a continuous place , instead of believing that o -s are constantly arriving . We need continuous language . There is no platform wai -untered with [ i ] presence [ i ] , continuous life . We need a language that is n - I understood that it was her strong language that displayed , inhabited , shaped -ted her love and trust for him . Her language wasn ’ t just a true account of her - a true account of her worship , the language generated and endorsed the love . Th -the content of this message . I love language . I love language so much that I can -s message . I love language . I love language so much that I can sound very convin -eling submission . In this convinced language , by expressing surrender I would ex -uld experience surrender because the language of worship and submission is not des -words , but I ’ m very much aimed at language ’ s shortcomings . One of the diffic -comings . One of the difficulties of language I have recently been involved with , - thinking she is trying to surface . Language kills continuation . When we describ - display continuous time while using language ? Language itself is constantly draw -ntinuous time while using language ? Language itself is constantly drawing from th -I was experiencing continuousness of language when I was having sex and feeling my -m a moment in time and space . While language kills what is being described , it e -ng a few dominant narratives – using language to create proximity can just as well -nclear what embraces what : does the language embrace the listener , does the list -ent described embrace the continuous language that is trying to linguistically eng -tantly arriving . We need continuous language . There is no platform waiting for y -ing our arrival ? The future needs a language that does not identify the future as -uture as a separate era . It needs a language in which the deadening force of word - [ i ] , continuous life . We need a language that is not old , nor presents itsel -gitimatize its existence . What does language need ? It needs faith . It needs spe -ivity , who recognize the effects of language , understanding that the expression - the conversation . A feminist queer language may well be that : God-language . A diff --git a/Concordance_Patches/atata_patch_final.txt b/Concordance_Patches/atata_patch_final.txt deleted file mode 100644 index f2245b2..0000000 --- a/Concordance_Patches/atata_patch_final.txt +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////The purpose <> the following text is <> present <-> prese -lowing text is <> present <-> preserve the concept <> ATATA : it is a composition -ere <> bring back <> life the ‘ dead ’ word ATATA , so that it is not forgotten . -o present <-> preserve the concept <> ATATA : it is a composition <> two ideogram -ograms <> the Mhuysqa dead language . ATATA can be defined <> ‘ I give myself and -a perspective <> reciprocity ? Why is ATATA a fruitful principle <-> the future s - bring back <> life the ‘ dead ’ word ATATA , so that it is not forgotten . ATATA -ATATA , so that it is not forgotten . ATATA is a palindrome unity made <> two ide -cation bath . This astonishing ritual ATATA was done <> a reminder <> gratitude t -gs asking <-> maintenance <> people . ATATA can be related <--> the Mayan Tseltal -ss where both concepts <> reciprocity ATATA <-> ich´el ta muk´ are present <> bot - the goods <-> something else. ” This means common goods <> everything that exist -0 . The priest Duquesne wrote that Ta means “ tillage , harvest. ” The Ta ideogra -age , harvest. ” The Ta ideogram <--> means the bearing <> fruits , the giving of -ious is an act <> reciprocity , which means that ( inter ) acting <--> within the -esent <-> preserve the concept <> ATATA : it is a composition <> two ideograms in -ions that this essay aims <> answer are : How <> feel-think the future <> food an -ad language . ATATA can be defined <> ‘ I give myself <-> you give yourself , ’ w - Colombian student <> ancient history , I have experience <--> this concept <-> m -o . It was through my PhD research that I experienced <-> looked further <--> the -sqa <-> Mayan legacy . It was <--> that I realized the devastating reality that i -, <-> bio-diversifying forms <> being . I have based my writings <> the perspecti -ctive <> ‘ Heart´s Epistemology. ’ What I mean is that heart <-> brain come toget -ome <> their ancestral ways <> living . I have studied their language , named Mhu -heir language , named Mhuysqhubun , <-> I propose here <> bring back <> life the -ction/cycle <> humans-lagoons-rain-corn I refer <> Tseltal Mayan people , who liv - , <-> memory , alive . [ c ] III [ c ] I feel-think offerings <-> getting water -se through my work <-> my way <> living I am affecting others , known <-> unknown -language . ATATA can be defined <> ‘ I give myself <-> you give yourself , ’ where - be defined <> ‘ I give myself <-> you give yourself , ’ where giving is an act of -rainbow seeds ( varieties <> food ) <> give the future <> much colors <-> flavors -ge . ATATA can be defined <> ‘ I give myself <-> you give yourself , ’ where givin -ious generations . That is why taking myself serious is an act <> reciprocity , wh -se <> the following text is <> present <-> preserve the concept <> ATATA : it is -TATA can be defined <> ‘ I give myself <-> you give yourself , ’ where giving is -the indigenous people <> both Colombia <-> Mexico . It was through my PhD researc -ugh my PhD research that I experienced <-> looked further <--> the Mhuysqa <-> Ma -ed <-> looked further <--> the Mhuysqa <-> Mayan legacy . It was <--> that I real - can be defined <> ‘ I give myself <-> you give yourself , ’ where giving is an a - is an act <> receiving , <-----> what you do <-> others is <--> affecting yourse -In fact , the heart is the place where you keep dreams , hope , joy , <-> pain , -ain , according <> the Mayan culture . You need <> have all these clear <> know w -w what is the kind <> living knowledge you want <> go over . [ 2 ] In the Mhuysqa - responsibility <> taking care <> what you are receiving . One <> the most import -language . ATATA can be defined <> ‘ I give myself <-> you give yourself , ’ where - be defined <> ‘ I give myself <-> you give yourself , ’ where giving is an act of -rainbow seeds ( varieties <> food ) <> give the future <> much colors <-> flavors -ined <> ‘ I give myself <-> you give yourself , ’ where giving is an act <> receiv - you do <-> others is <--> affecting yourself . This exercise <> reciprocity is a -he bearing <> fruits , the giving <> yourself freely , <> <> agriculture labor . I -////////////////////////The purpose <> the following text is <> present <-> prese -lowing text is <> present <-> preserve the concept <> ATATA : it is a composition -ere <> bring back <> life the ‘ dead ’ word ATATA , so that it is not forgotten . -o present <-> preserve the concept <> ATATA : it is a composition <> two ideogram -ograms <> the Mhuysqa dead language . ATATA can be defined <> ‘ I give myself and -a perspective <> reciprocity ? Why is ATATA a fruitful principle <-> the future s - bring back <> life the ‘ dead ’ word ATATA , so that it is not forgotten . ATATA -ATATA , so that it is not forgotten . ATATA is a palindrome unity made <> two ide -cation bath . This astonishing ritual ATATA was done <> a reminder <> gratitude t -gs asking <-> maintenance <> people . ATATA can be related <--> the Mayan Tseltal -ss where both concepts <> reciprocity ATATA <-> ich´el ta muk´ are present <> bot - the goods <-> something else. ” This means common goods <> everything that exist -0 . The priest Duquesne wrote that Ta means “ tillage , harvest. ” The Ta ideogra -age , harvest. ” The Ta ideogram <--> means the bearing <> fruits , the giving of -ious is an act <> reciprocity , which means that ( inter ) acting <--> within the -esent <-> preserve the concept <> ATATA : it is a composition <> two ideograms in -ions that this essay aims <> answer are : How <> feel-think the future <> food an -ad language . ATATA can be defined <> ‘ I give myself <-> you give yourself , ’ w - Colombian student <> ancient history , I have experience <--> this concept <-> m -o . It was through my PhD research that I experienced <-> looked further <--> the -sqa <-> Mayan legacy . It was <--> that I realized the devastating reality that i -, <-> bio-diversifying forms <> being . I have based my writings <> the perspecti - diff --git a/Concordance_Patches/eunaaaaaa_hope.txt b/Concordance_Patches/eunaaaaaa_hope.txt deleted file mode 100644 index 86825eb..0000000 --- a/Concordance_Patches/eunaaaaaa_hope.txt +++ /dev/null @@ -1,74 +0,0 @@ - a -1 a p -fo a Pa -6 , a mes -on h a show -for P a half - thoug A Good N -t Istan a pity th -a pity t a shower i -e was one a context w -wrote : “ a flame in t -n very dark a confidence -ts . It is l a promise. ” O -s located som a bibliography -ddle East . I a “ Hope Syllabu -essively a bibl a response to the - ” I ’ ve been c A Sociology of Hop -Chantal Mouffe ’ a “ democracy to co -nected with the no a cynical withdrawal -ary ? ” Agamben des a particular relation - blinded by its ligh a light that strives b -ontemporary is nostal a particular time yet s - she is aware of her e a certain historical sen -erogeneous , Agamben ar a particular relationship -en hope and remembrance a full engagement with the -w yet persistent work of a social reality larger tha -t sense , being hopeful en a non-linear understanding o -me . In that regard , hope a project-driven world where -and meaning in the journey i a series works since the mid-1 - for Mouffe refers to the set a society is created and govern - to the uncontested hegemony o a rationalist and individualist -ration this antagonistic dimens a compromise among competing inte -negotiate a compromise among com a rational , fully inclusive conse - us/them distinction of antagonis a way that is compatible with the r -tion of pluralism . In other words a democracy that acknowledges the in -wledges the ineradicable dimension a pluralist public space in which the -blish a pluralist public space in wh a nonviolent way . For Mouffe , this e -ails transforming antagonism to “ ago a situation where opposing political su -now an adversary rather than an enemy a final agreement can be reached . Anoth -’ s understanding of the political is “ a hegemonic one established by a series o -cal is “ hegemony. ” Every social order a series of practices and institutions wi -egemonic one established by a series of p a context of contingency . In other word -tutions within a context of contingency . a temporary and precarious articulation - order is a temporary and precarious articu a given moment as ‘ natural ’ or as ‘ -ng order to install another form of hegemony a complex argument into a bite-size p -her form of hegemony . It may not be fair to a bite-size portion , but for this e -of radical democracy as the “ impossibility of a genuinely pluralistic democracy i -s to remain pluralistic at all ) . That is , if a given order it would not be plur -rst place ; there wouldn ’ t be any differences a static situation that could eve - . This would culminate in a static situation tha a totalitarian society . Neverth - ’ s not going to be completely realized , it will a process [ i ] that we work to -eed to despair . Laclau and Mouffe ’ s ideas about a project without an end ” res -our political struggles , without the expectation of a final destination . In the - final destination . In the wake of the Jörg Haider m a right-wing mobilization ag -ddressed the concept of hope and its relation to passi a more direct manner [ 15 ] -material representations that evoke certain meanings an a flag , a song , a style -representations that evoke certain meanings and emotions a song , a style of speak -ations that evoke certain meanings and emotions such as a a style of speaking , et -the origin of racist articulations , the Left has been add a moralistic discourse -exploits . During the Gezi protests in June 2013 , I realiz a futile effort to app -oğan supporters what the protests meant for the participants a “ coupt attempt , ” -protests meant for the participants . It was not a “ coupt at a riot provoked by “ -ed by “ foreign spies. ” Dialogue is possible if all sides sha a square millimeter -13 , the Prime Minister and the pro-government media started to a blatant lie , no -o circulate a blatant lie , now known as the “ Kabataş lie. ” Al a group of toples - topless male Gezi protesters clad in black skinny leather pants a woman in heads -tions failed to come to terms with the phenomenon . I found out Fr a concept for i - Freud ’ s concept of “ illusion ” is mostly about religion , it ’ a useful conce -r helplessness [ 18 ] . Granted our psychological inclination for se a source of p -s the social sciences and the arts , I observe both fields are practi a critical w -f the times—as it has become common practice lately when , for instanc a public sy -ublic symposium on current issues in the contemporary dance field becom a collecti -as become symptomatic of our epoch . Are we , perhaps , equating adoptin a hopeles -nly describing and analyzing the world but also contributing to making it a better diff --git a/Concordance_Patches/hope_again.txt b/Concordance_Patches/hope_again.txt deleted file mode 100644 index bd7c1fc..0000000 --- a/Concordance_Patches/hope_again.txt +++ /dev/null @@ -1,74 +0,0 @@ - a - 1 a p - fo a Pa - 6 , a mes - on h a show - for P a half - thoug A Good N - t Istan a pity th - a pity t a shower i - e was one a context w - wrote : “ a flame in t - n very dark a confidence - ts . It is l a promise. ” O - s located som a bibliography - ddle East . I a “ Hope Syllabu - essively a bibl a response to the - ” I ’ ve been c A Sociology of Hop - Chantal Mouffe ’ a “ democracy to co - nected with the no a cynical withdrawal - ary ? ” Agamben des a particular relation - blinded by its ligh a light that strives b - ontemporary is nostal a particular time yet s - she is aware of her e a certain historical sen - erogeneous , Agamben ar a particular relationship - en hope and remembrance a full engagement with the - w yet persistent work of a social reality larger tha - t sense , being hopeful en a non-linear understanding o - me . In that regard , hope a project-driven world where - and meaning in the journey i a series works since the mid-1 - for Mouffe refers to the set a society is created and govern - to the uncontested hegemony o a rationalist and individualist - ration this antagonistic dimens a compromise among competing inte - negotiate a compromise among com a rational , fully inclusive conse - us/them distinction of antagonis a way that is compatible with the r - tion of pluralism . In other words a democracy that acknowledges the in - wledges the ineradicable dimension a pluralist public space in which the - blish a pluralist public space in wh a nonviolent way . For Mouffe , this e - ails transforming antagonism to “ ago a situation where opposing political - now an adversary rather than an enemy a final agreement can be reached . A - ’ s understanding of the political is “ a hegemonic one established by a se - cal is “ hegemony. ” Every social order a series of practices and institut - egemonic one established by a series of p a context of contingency . In oth - tutions within a context of contingency . a temporary and precarious artic - order is a temporary and precarious articu a given moment as ‘ natural ’ o - ng order to install another form of hegemony a complex argument into a bite - her form of hegemony . It may not be fair to a bite-size portion , but for - of radical democracy as the “ impossibility of a genuinely pluralistic demo - s to remain pluralistic at all ) . That is , if a given order it would not - rst place ; there wouldn ’ t be any differences a static situation that co - . This would culminate in a static situation tha a totalitarian society . - ’ s not going to be completely realized , it will a process [ i ] that we - eed to despair . Laclau and Mouffe ’ s ideas about a project without an en - our political struggles , without the expectation of a final destination . - final destination . In the wake of the Jörg Haider m a right-wing mobiliza - ddressed the concept of hope and its relation to passi a more direct manner - material representations that evoke certain meanings an a flag , a song , a - representations that evoke certain meanings and emotions a song , a style o - ations that evoke certain meanings and emotions such as a a style of speaki - the origin of racist articulations , the Left has been add a moralistic dis - exploits . During the Gezi protests in June 2013 , I realiz a futile effort - oğan supporters what the protests meant for the participants a “ coupt atte - protests meant for the participants . It was not a “ coupt at a riot provok - ed by “ foreign spies. ” Dialogue is possible if all sides sha a square mil - 13 , the Prime Minister and the pro-government media started to a blatant l - o circulate a blatant lie , now known as the “ Kabataş lie. ” Al a group of - topless male Gezi protesters clad in black skinny leather pants a woman i - tions failed to come to terms with the phenomenon . I found out Fr a concep - Freud ’ s concept of “ illusion ” is mostly about religion , it ’ a usefu - r helplessness [ 18 ] . Granted our psychological inclination for se a sour - s the social sciences and the arts , I observe both fields are practi a cri - f the times—as it has become common practice lately when , for instanc a pu - ublic symposium on current issues in the contemporary dance field becom a c - as become symptomatic of our epoch . Are we , perhaps , equating adoptin a - nly describing and analyzing the world but also contributing to making it a diff --git a/Concordance_Patches/hope_sorry.txt b/Concordance_Patches/hope_sorry.txt deleted file mode 100644 index 09da4e2..0000000 --- a/Concordance_Patches/hope_sorry.txt +++ /dev/null @@ -1,74 +0,0 @@ - a - 1 a p - fo a Pa - 6 , a mes - on h a show - for P a half - thoug A Good N - t Istan a pity th - a pity t a shower i - e was one a context w - wrote : “ a flame in t - n very dark a confidence - ts . It is l a promise. ” O - s located som a bibliography - ddle East . I a “ Hope Syllabu - essively a bibl a response to the - ” I ’ ve been c A Sociology of Hop - Chantal Mouffe ’ a “ democracy to co - nected with the no a cynical withdrawal - ary ? ” Agamben des a particular relation - blinded by its ligh a light that strives b - ontemporary is nostal a particular time yet s - she is aware of her e a certain historical sen - erogeneous , Agamben ar a particular relationship - en hope and remembrance a full engagement with the - w yet persistent work of a social reality larger tha - t sense , being hopeful en a non-linear understanding o - me . In that regard , hope a project-driven world where - and meaning in the journey i a series works since the mid-1 - for Mouffe refers to the set a society is created and govern - to the uncontested hegemony o a rationalist and individualist - ration this antagonistic dimens a compromise among competing inte - negotiate a compromise among com a rational , fully inclusive conse - us/them distinction of antagonis a way that is compatible with the r - tion of pluralism . In other words a democracy that acknowledges the in - wledges the ineradicable dimension a pluralist public space in which the - blish a pluralist public space in wh a nonviolent way . For Mouffe , this e - ails transforming antagonism to “ ago a situation where opposing political su - now an adversary rather than an enemy a final agreement can be reached . Anot - ’ s understanding of the political is “ a hegemonic one established by a serie - cal is “ hegemony. ” Every social order a series of practices and institution - egemonic one established by a series of p a context of contingency . In other - tutions within a context of contingency . a temporary and precarious articula - order is a temporary and precarious articu a given moment as ‘ natural ’ or a - ng order to install another form of hegemony a complex argument into a bite-si - her form of hegemony . It may not be fair to a bite-size portion , but for th - of radical democracy as the “ impossibility of a genuinely pluralistic democra - s to remain pluralistic at all ) . That is , if a given order it would not be - rst place ; there wouldn ’ t be any differences a static situation that could - . This would culminate in a static situation tha a totalitarian society . Nev - ’ s not going to be completely realized , it will a process [ i ] that we wor - eed to despair . Laclau and Mouffe ’ s ideas about a project without an end ” - our political struggles , without the expectation of a final destination . In - final destination . In the wake of the Jörg Haider m a right-wing mobilizatio - ddressed the concept of hope and its relation to passi a more direct manner [ - material representations that evoke certain meanings an a flag , a song , a st - representations that evoke certain meanings and emotions a song , a style of s - ations that evoke certain meanings and emotions such as a a style of speaking - the origin of racist articulations , the Left has been add a moralistic discou - exploits . During the Gezi protests in June 2013 , I realiz a futile effort to - oğan supporters what the protests meant for the participants a “ coupt attempt - protests meant for the participants . It was not a “ coupt at a riot provoked - ed by “ foreign spies. ” Dialogue is possible if all sides sha a square millim - 13 , the Prime Minister and the pro-government media started to a blatant lie - o circulate a blatant lie , now known as the “ Kabataş lie. ” Al a group of to - topless male Gezi protesters clad in black skinny leather pants a woman in h - tions failed to come to terms with the phenomenon . I found out Fr a concept f - Freud ’ s concept of “ illusion ” is mostly about religion , it ’ a useful c - r helplessness [ 18 ] . Granted our psychological inclination for se a source - s the social sciences and the arts , I observe both fields are practi a critic - f the times—as it has become common practice lately when , for instanc a publi - ublic symposium on current issues in the contemporary dance field becom a coll - as become symptomatic of our epoch . Are we , perhaps , equating adoptin a hop - nly describing and analyzing the world but also contributing to making it a be diff --git a/Concordance_Patches/othernessandsoon (1).txt b/Concordance_Patches/othernessandsoon (1).txt deleted file mode 100644 index a976bb2..0000000 --- a/Concordance_Patches/othernessandsoon (1).txt +++ /dev/null @@ -1,74 +0,0 @@ - Otherness - in the view of some who most fears otherness -us quo . The work of learning about otherness -Peter and myself , underscoring the otherness -d she even respect this other ( m ) otherness -ct this other ( m ) otherness - the otherness - are many ways in which we confront otherness -me to know ourselves and remove the otherness -xperience that at once embraces the otherness -king towards removing this sense of otherness - we seek with the world around us . Otherness -paradoxical goal of encounters with otherness -urselves with nature to clearly see otherness -clearly see otherness , and we need otherness -table in the absence of the other . Otherness -ng physically and psychologically . Otherness -lues imitation emphasizes our own ‘ otherness -is , at least partially , a fear of otherness -from that preference in contrast to otherness -he ultimate engine of innovation is otherness -it was the only creature to embrace otherness -ploration ; to seek encounters with otherness - oneness with others , as embodied in that ve - Oneness with ourselves and nature – and the - oneness that we seek with the world around u - oneness is the paradoxical goal of encounter - oneness of ourselves with nature to clearly - oneness with the world . Thoreau ignored soc - oneness with the world , nature , and the ot - oneness that we can achieve the best individ - oneness that embraces the unexpected . The t - oneness of the type that motivated Thoreau . - my own ‘ rightness. ’ How fortunate for me - or me that this gentle people disabused me - y psychologist Peter Gordon accompanied me - ahãs , most of them anyway , would give me - a straight head . '' The Pirahãs wanted me - it underscored the gap between them and me - reau was so articulately different from me - king in a language that was so hard for me - world first through our mother . All that w - world . Through Thoreau we encounter the st - world around us . Otherness , as I see it , - world . Thoreau ignored society to know him - world , nature , and the other as part of t - world . This applies to all of us whether w - a hill only to see it roll down at the end - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - . - . - . - . - . - . - . - . - . - . - others - work - price - loss - work - ourselves - context diff --git a/Concordance_Patches/othernessandsoon.txt b/Concordance_Patches/othernessandsoon.txt deleted file mode 100644 index fb2ae7f..0000000 --- a/Concordance_Patches/othernessandsoon.txt +++ /dev/null @@ -1,73 +0,0 @@ - Otherness - in the view of some who most fears otherness -us quo . The work of learning about otherness -Peter and myself , underscoring the otherness -d she even respect this other ( m ) otherness -ct this other ( m ) otherness - the otherness - are many ways in which we confront otherness -me to know ourselves and remove the otherness -xperience that at once embraces the otherness -king towards removing this sense of otherness - we seek with the world around us . Otherness -paradoxical goal of encounters with otherness -urselves with nature to clearly see otherness -clearly see otherness , and we need otherness -table in the absence of the other . Otherness -ng physically and psychologically . Otherness -lues imitation emphasizes our own ‘ otherness -is , at least partially , a fear of otherness -from that preference in contrast to otherness -he ultimate engine of innovation is otherness -it was the only creature to embrace otherness -ploration ; to seek encounters with otherness - oneness with others , as embodied in that ve - Oneness with ourselves and nature – and the - oneness that we seek with the world around u - oneness is the paradoxical goal of encounter - oneness of ourselves with nature to clearly - oneness with the world . Thoreau ignored soc - oneness with the world , nature , and the ot - oneness that we can achieve the best individ - oneness that embraces the unexpected . The t - oneness of the type that motivated Thoreau . - my own ‘ rightness. ’ How fortunate for me - or me that this gentle people disabused me - y psychologist Peter Gordon accompanied me - ahãs , most of them anyway , would give me - a straight head . '' The Pirahãs wanted me - it underscored the gap between them and me - reau was so articulately different from me - king in a language that was so hard for me - world first through our mother . All that w - world . Through Thoreau we encounter the st - world around us . Otherness , as I see it , - world . Thoreau ignored society to know him - world , nature , and the other as part of t - world . This applies to all of us whether w - a hill only to see it roll down at the end - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - . - . - . - . - . - . - . - . - . - . - alterity - interactions - work - pleistocene - edge - context diff --git a/Concordance_Patches/patchericoagain.txt b/Concordance_Patches/patchericoagain.txt deleted file mode 100644 index ee60063..0000000 --- a/Concordance_Patches/patchericoagain.txt +++ /dev/null @@ -1,74 +0,0 @@ - Thousand are than six more there nine more hundred the world languages across. - There six are than more thousand nine more the across languages hundred world. - Are more six thousand than there nine languages hundred world across the more. - There are thousand more six than nine the more hundred world languages across. - Are more six thousand there than nine hundred across the world more languages. - Thousand than there are six more nine the languages world hundred across more. - There than six are thousand more nine world the hundred across more languages. - There more than are thousand six nine the world across hundred languages more. - There are than more thousand six nine the world hundred across more languages. - More six thousand are there than nine world more across the hundred languages. - Than six thousand there are more nine languages more hundred world the across. - Thousand there six are more than nine the languages more across hundred world. - There six thousand than are more nine languages more the hundred across world. - Thousand are six more than there nine world languages across hundred the more. - Six thousand are there than more nine languages more hundred the world across. - More there six are than thousand nine more world languages hundred the across. - There than are thousand six more nine the more world across languages hundred. - More six are thousand than there nine hundred more across world the languages. - More there six than thousand are nine world the languages hundred across more. - Are six there thousand more than nine world hundred languages more the across. - There more six are thousand than nine the languages world across hundred more. - There six thousand more than are nine across world languages more hundred the. - More there than are six thousand nine across the world more hundred languages. - There than are more six thousand nine more across languages the hundred world. - More are thousand there than six nine world hundred across more languages the. - Than six are more thousand there nine languages more the world hundred across. - There are thousand six than more nine across hundred languages the world more. - Six than thousand there are more nine world the languages across more hundred. - More thousand six there are than nine the world more hundred languages across. - Six thousand there than more are nine across languages world hundred more the. - Are there thousand than six more nine the more hundred languages world across. - There thousand more six than are nine more languages world hundred across the. - There six than thousand are more nine more languages world hundred the across. - Thousand than six more there are nine world more the hundred languages across. - There are more six thousand than nine across the world languages hundred more. - Are six than thousand there more nine across more hundred the languages world. - Six thousand there are than more nine hundred across more the world languages. - Than are six there thousand more nine more the world languages across hundred. - Six there than are more thousand nine languages world the hundred across more. - Are more six thousand than there nine the more across world languages hundred. - More are than thousand there six nine the hundred languages world across more. - Thousand more six than are there nine more world languages the across hundred. - Are thousand there more than six nine the more hundred across world languages. - Than there more six are thousand nine the more hundred across world languages. - Thousand six more are there than nine hundred more world the across languages. - Than are there six more thousand nine hundred the more languages across world. - Thousand six there are more than nine more languages world across hundred the. - There thousand more six are than nine hundred across languages more the world. - Six thousand more than there are nine the languages hundred across more world. - Thousand there than more six are nine the languages across hundred world more. - Are thousand six than more there nine the across hundred more world languages. - Than are there thousand more six nine more languages hundred across the world. - More six there thousand than are nine the languages across hundred world more. - Are more six than there thousand nine hundred languages more world across the. - There more are than thousand six nine more hundred languages across the world. - There are more than six thousand nine world across hundred more languages the. - Are thousand six than more there nine world across hundred languages the more. - More than there are six thousand nine world languages more hundred the across. - Six than thousand are there more nine languages the across hundred world more. - Are than more six there thousand nine across more hundred the world languages. - There than are more thousand six nine more across the world hundred languages. - There thousand are more six than nine across more world hundred the languages. - Are more than there thousand six nine the across hundred more world languages. - Six there are than more thousand nine hundred more world languages the across. - There than are six thousand more nine languages more world hundred the across. - Are more than six thousand there nine hundred world the across more languages. - Than six thousand there more are nine the across world languages more hundred. - Six there thousand more than are nine world the hundred across more languages. - More six are there than thousand nine world across languages hundred more the. - Thousand are there six than more nine hundred languages world across more the. - Than thousand are more six there nine across hundred more languages the world. - Are six thousand than there more nine across more world hundred the languages. - There six than are thousand more nine hundred world more languages across the. - Than there six are more thousand nine languages the hundred world more across. \ No newline at end of file diff --git a/Concordance_Patches/patchericofortheconcordance.txt b/Concordance_Patches/patchericofortheconcordance.txt deleted file mode 100644 index f1aa550..0000000 --- a/Concordance_Patches/patchericofortheconcordance.txt +++ /dev/null @@ -1,74 +0,0 @@ - More six than there are thousand nine languages across hundred more the world. - Are there six more than thousand nine world languages across more hundred the. -Are there six more than thousand nine world languages across more hundred the. A -re there six more than thousand nine world languages across more hundred the. Ar -e there six more than thousand nine world languages across more hundred the. Are - there six more than thousand nine world languages across more hundred the. Are -there six more than thousand nine world languages across more hundred the. Are t -here six more than thousand nine world languages across more hundred the. Are th -ere six more than thousand nine world languages across more hundred the. Are the -re six more than thousand nine world languages across more hundred the. Are ther -e six more than thousand nine world languages across more hundred the. Are there - six more than thousand nine world languages across more hundred the. Are there -six more than thousand nine world languages across more hundred the. Are there s -ix more than thousand nine world languages across more hundred the. Are there si -x more than thousand nine world languages across more hundred the. Are there six - more than thousand nine world languages across more hundred the. Are there six -more than thousand nine world languages across more hundred the. Are there six m -ore than thousand nine world languages across more hundred the. Are there six mo -re than thousand nine world languages across more hundred the. Are there six mor -e than thousand nine world languages across more hundred the. Are there six more - than thousand nine world languages across more hundred the. Are there six more -than thousand nine world languages across more hundred the. Are there six more t -han thousand nine world languages across more hundred the. Are there six more th -an thousand nine world languages across more hundred the. Are there six more tha -n thousand nine world languages across more hundred the. Are there six more than - thousand nine world languages across more hundred the. Are there six more than -thousand nine world languages across more hundred the. Are there six more than t -housand nine world languages across more hundred the. Are there six more than th -ousand nine world languages across more hundred the. Are there six more than tho -usand nine world languages across more hundred the. Are there six more than thou -sand nine world languages across more hundred the. Are there six more than thous -and nine world languages across more hundred the. Are there six more than thousa -nd nine world languages across more hundred the. Are there six more than thousan -d nine world languages across more hundred the. Are there six more than thousand - nine world languages across more hundred the. Are there six more than thousand -nine world languages across more hundred the. Are there six more than thousand n -ine world languages across more hundred the. Are there six more than thousand ni -ne world languages across more hundred the. Are there six more than thousand nin -e world languages across more hundred the. Are there six more than thousand nine - world languages across more hundred the. Are there six more than thousand nine -world languages across more hundred the. Are there six more than thousand nine w -orld languages across more hundred the. Are there six more than thousand nine wo -rld languages across more hundred the. Are there six more than thousand nine wor -ld languages across more hundred the. Are there six more than thousand nine worl -d languages across more hundred the. Are there six more than thousand nine world - languages across more hundred the. Are there six more than thousand nine world -languages across more hundred the. Are there six more than thousand nine world l -anguages across more hundred the. Are there six more than thousand nine world la -nguages across more hundred the. Are there six more than thousand nine world lan -guages across more hundred the. Are there six more than thousand nine world lang -uages across more hundred the. Are there six more than thousand nine world langu -ages across more hundred the. Are there six more than thousand nine world langua -ges across more hundred the. Are there six more than thousand nine world languag -es across more hundred the. Are there six more than thousand nine world language -s across more hundred the. Are there six more than thousand nine world languages - across more hundred the. Are there six more than thousand nine world languages -across more hundred the. Are there six more than thousand nine world languages a -cross more hundred the. Are there six more than thousand nine world languages ac -ross more hundred the. Are there six more than thousand nine world languages acr -oss more hundred the. Are there six more than thousand nine world languages acro -ss more hundred the. Are there six more than thousand nine world languages acros -s more hundred the. Are there six more than thousand nine world languages across - more hundred the. Are there six more than thousand nine world languages across -more hundred the. Are there six more than thousand nine world languages across m -ore hundred the. Are there six more than thousand nine world languages across mo -re hundred the. Are there six more than thousand nine world languages across mor -e hundred the. Are there six more than thousand nine world languages across more - hundred the. Are there six more than thousand nine world languages across more -hundred the. Are there six more than thousand nine world languages across more h -undred the. Are there six more than thousand nine world languages across more hu -ndred the. Are there six more than thousand nine world languages across more hun -dred the. Are there six more than thousand nine world languages across more hund -red the. Are there six more than thousand nine world languages across more hundr -ed the. Are there six more than thousand nine world languages across more hundre \ No newline at end of file diff --git a/Concordance_Patches/tryout2 floor.txt b/Concordance_Patches/tryout2 floor.txt deleted file mode 100644 index 91415d5..0000000 --- a/Concordance_Patches/tryout2 floor.txt +++ /dev/null @@ -1,74 +0,0 @@ - women -e women -, women -y t women -e sh women -ety , caste -ocal caste -pon caste -i village -n o village -ha v village -y est village - comes village - born i hierarchical - i self-rule -ine Self-rule -er o self-rule -es ha self-rule -t is a small -Telanga system system - ] , A system system -s , w social -es , f Social - [ 11 ] social -nce move nature -owards othe nature -onal belief in nature -nd the intrinsic nature -ng the conservation nature -feguards – this local s Nature - the earth by reconnecting nature -ns and between humans and the nature -aj [ i ] and RED appear to be ga ground -tion can control them ’ [ i ] , D women -exploited in multiple ways . As women -, over the last three decades , women -y town ) , fought for land rig women -e shunned as Dalits , margina women -es and communities at the ce governance -ed energy production , governance -h is envisioned to governance -trialism , pa other other other other -rganisation th other other other other -. Both in Mendh other other other other -( a government s other other other other -cy change , and p other other other other -y other respects . other other other other -limits of the Earth other other other other - , it quickly found other other other other - , ‘ able ’ ities , s other other other other -ance . Nature , natura other other other other -ties at the centre of g economy -nciple , in which economy -mportant elem economy -cient In people -fiv people -i ] Adivasi [ i ] people , indigeno people -bals ’ . About thirty years ag people -, Dongria Kondh adivasis people -tem ( mostly amongst people -cal Democracy a people -to be gain people -the U Rights -lation rights -nshrined Rights - in a nearb rights -pects the lim rights -conomies , gend rights -d political entit rights -ns , indigenous peo rights - and worldviews relat human -compassing individual t human -ing and requires a holist human --making power at the smalle human diff --git a/PIL-basics.ipynb b/PIL-basics.ipynb deleted file mode 100644 index b93a938..0000000 --- a/PIL-basics.ipynb +++ /dev/null @@ -1,399 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# PIL(low) talk\n", - "\n", - "The \"classic\" Python Image Library (or PIL) is described in the (classic) handbook:\n", - "http://www.effbot.org/imagingbook/pil-index.htm\n", - "\n", - "In fact, the current library that people tend to use is called [Pillow](https://pillow.readthedocs.io/en/stable/), but as a \"friendly fork\" it tries to acts just like the old PIL library, so you don't even notice (and your code still uses the name PIL). The Pillow project also maintains it's own documenation at:\n", - "\n", - "https://pillow.readthedocs.io/en/stable/reference/index.html\n", - "\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from PIL import Image" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im = Image.open(\"camera128.png\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im = Image.open(\"1024px-IBM_Keypunch_Machines_in_use.jpg\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im.size" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im.mode" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im.thumbnail( (320, 320) )" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im.size" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from urllib.request import urlopen" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "f = urlopen(\"https://upload.wikimedia.org/wikipedia/commons/1/10/NOLAPunchCards1938.jpg\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key2 = Image.open(f)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key2.size" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key2.convert(\"1\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key2.thumbnail((1024, 1024))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key2.save(\"keypunch.png\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3 = Image.open( urlopen(\"https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/IBM26.jpg/1024px-IBM26.jpg\") )" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3.size" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3.convert(\"1\", dither=Image.NONE)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3.convert(\"L\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3 = key3.thumbnail((64, 64))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key3 is None" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from PIL import ImageDraw" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "gray.save(\"keypunch_gray.png\")" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "key2.convert?" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import aalib" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "screen = aalib.AsciiScreen(width=640, height=480)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "f = urlopen('https://www.python.org/static/favicon.ico')" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im = Image.open(f)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im = im.convert('L').resize(screen.virtual_size)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "im" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "screen.virtual_size" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "screen.put_image((0, 0), im)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "print (screen.render())" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "resized = key2.convert(\"L\").resize(screen.virtual_size)\n", - "screen.put_image((0, 0), resized)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "screen.render()" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "resized" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.3" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/TheGhostscriptImposition.ipynb b/TheGhostscriptImposition.ipynb deleted file mode 100644 index 86e96cd..0000000 --- a/TheGhostscriptImposition.ipynb +++ /dev/null @@ -1,525 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# The Ghostscript Imposition\n", - "\n", - "> Imposition is one of the fundamental steps in the prepress printing process. It consists of the arrangement of the printed product’s pages on the printer’s sheet, in order to obtain faster printing, simplify binding and reduce paper waste.\n", - "\n", - "> Correct imposition minimizes printing time by maximizing the number of pages per impression, reducing cost of press time and materials. To achieve this, the printed sheet must be filled as fully as possible. \n", - "\n", - "https://en.wikipedia.org/wiki/Imposition\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Paged media: A timeline\n", - "\n", - "**1980s**\n", - "\n", - "[![](https://www.graphic-reseau.com/media/catalog/product/cache/3/small_image/170x170/9df78eab33525d08d6e5fb8d27136e95/l/o/logo-adobepostscript.png)](https://en.wikipedia.org/wiki/PostScript) [![](https://www.ghostscript.com/images/ghostscript_logo.png)](https://en.wikipedia.org/wiki/Ghostscript)\n", - "\n", - "\n", - "**1990s**\n", - "\n", - "[![](https://web.archive.org/web/19970304211647im_/http://www3.adobe.com/GIFS/getacro.gif)](https://en.wikipedia.org/wiki/PDF) [![](https://pzwiki.wdka.nl/mw-mediadesign/images/f/f4/Mosaic.png)](https://en.wikipedia.org/wiki/HTML)\n", - "\n", - "[Dave Raggett's Touch of Style tutorial](https://www.w3.org/MarkUp/Guide/Style) from/updated 2002, is a good introduction to and reflection on using CSS for the web -- notice there's almost no discussion of print -- it's all about how pages get rendered online, aka in a web browser. This is still the focus of CSS today... but...\n", - "\n", - "**TODAY**\n", - "\n", - "![](https://upload.wikimedia.org/wikipedia/commons/thumb/6/61/HTML5_logo_and_wordmark.svg/180px-HTML5_logo_and_wordmark.svg.png) [![](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/CSS3_logo_and_wordmark.svg/180px-CSS3_logo_and_wordmark.svg.png)](https://drafts.csswg.org/css-page-3/) ![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Adobe_PDF.svg/150px-Adobe_PDF.svg.png)\n", - "\n", - "https://en.wikipedia.org/wiki/CSS\n", - "\n", - "CSS3 includes an extensive [Paged Media Specification](https://drafts.csswg.org/css-page-3/) describing how CSS can be *also* used to render \"paged media\" (ie when printed or saved as PDF). Most browsers do not implement these rules (except in some cases when you print a page). The *Weasyprint* python library implements some of these guidelines." - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## The \"UNIX\" philosophy of small tools composed together (and the pipeline)\n", - "![](https://thedailykylie.files.wordpress.com/2013/03/tool-box.jpg)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Use the !shell\n", - "Jupyter (and ipython before it) supports the use of shell commands fluidly along side your python code. When the line starts with a **!** (the exclamation point, often called **bang** by command line users), the command is interpreted as a shell command and performed, the results displayed below, just like with python code. Note that the shell has different rules about what a good structure is. In any case the first word is the name of a command..." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!date" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!whoami" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!ls" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## An zine introduction to the terminal\n", - "\n", - "https://solarpunk.cool/zines/map-is-the-territory/\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## MAN oh MAN" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "A very important concept from the UNIX / Linux / Libre software world is that documentation ought to be seen as an full part of the distribution of software. When software is installed, it often installs a so-called \"man page\" (for manual). You can then read the manual with the \"man\" command followed by the command you are interested in..." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!man gs" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "If you read the manual on the man command itself (type man man)... You see it supports different output formats. The -t option outputs in the Postscript language." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!man -t gs" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Not very pretty, luckily we have **ghostscript** which is the basis of many smaller commands, such as one to convert postscript to pdf. The command is called **ps2pdf**. When can connect the two commands together in so called **pipeline** with the **|** character -- which is called the *pipe* because of this usage." - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "First let's make a folder for our manuals" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!mkdir -p man" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Now let's run man gs and pipe the output to ps2pdf, saving in the file [man/gs.pdf](man/gs.pdf)." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!man -t gs | ps2pdf - man/gs.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## A PDF Toolkit\n", - "\n", - "* python: ReportLab (more for *generation* not pre-existing PDF)\n", - "* [gs](gs.pdf)\n", - "* [ps2pdf](ps2pdf.pdf), [pdf2ps](pdf2ps.pdf)\n", - "* [psnup](psnup.pdf), and [poster](poster.pdf)/[pdfposter](pdfposter.pdf)\n", - "* [pstops](pstops.pdf)\n", - "* [pdfunite](pdfunite.pdf), [pdfseparate](pdfseparate.pdf)\n", - "* pdftk\n", - "* python: [pikepdf](https://github.com/pikepdf/pikepdf) *active project* with [docs](https://pikepdf.readthedocs.io/en/latest/index.html) and a fish logo\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Some links that were used in developing some of this notebook:\n", - "\n", - "* https://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch06s08.html\n", - "* https://wiki.scribus.net/canvas/How_to_make_impositions_with_pstops\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Make some **man**-uals with **ps2pdf**" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!man -t psnup | ps2pdf - man/psnup.pdf\n", - "!man -t pstops | ps2pdf - man/pstops.pdf\n", - "!man -t ps2pdf | ps2pdf - man/ps2pdf.pdf\n", - "!man -t pdf2ps | ps2pdf - man/pdf2ps.pdf\n", - "!man -t pdftk | ps2pdf - man/pdftk.pdf\n", - "!man -t pdfposter | ps2pdf - man/pdfposter.pdf\n", - "!man -t poster | ps2pdf - man/poster.pdf" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# NB These tools are often part of other packages of tools, for instanced:\n", - "# apt install ghostscript psutils pdfposter" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Read the label with **pdfinfo**\n", - "PDFs have useful info like number of pages and the (default) page size, but also can contain various *metadata* like Title, Keywords, and Author, and the \"Producer\" which often indicates what software was used to make the file." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdfinfo txt/language.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Back to the Future with **pdf2ps**\n", - "Many of the commands discussed here have their origins in the 1990s and were written to work with Postscript. Luckily there's also a **pdf2ps** command to go from PDF to Postscript. This command outputs (unless otherwise told) in a file with the same name but extension .ps\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdf2ps txt/language.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "[language.ps](language.ps)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## **psnup** saves trees" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!psnup -2 language.ps psnup.ps" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "To look at it, run the ps2pdf..." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!ps2pdf psnup.ps psnup.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "AND LOOK HERE: [psnup.pdf](psnup.pdf)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!psnup -2 -p a3 -s a3 language.ps psnup.ps" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Repeat the steps above to see it (make sure you close the PDF to reload it).\n", - "\n", - "The -c option lays out in column order (instead of rows). Check out the [manual](man/psnup.pdf)." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!psnup -16 -c language.ps psnup.ps" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!psnup -16 -c -p a0 language.ps psnup.ps" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## **pdftk** is another PDF toolkit\n", - "This command can do many things. Let's use it to extract a page" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdftk A=txt/language.pdf cat A1 output 1.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Scale (among other things) with the multi-faceted **pstops**" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdf2ps 1.pdf 1.ps\n", - "# Scale up A4 to A2, A0\n", - "!pstops \"0@2.0\" -pa2 1.ps 1.output.ps\n", - "!pstops \"0@4.0\" -pa0 1.ps 1.a0.ps" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "NB: When subsequently using **ps2pdf** on a resized postscript file, you should explictly specify the output paper size:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!ps2pdf -sPAPERSIZE=a0 1.a0.ps 1.a0.pdf" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdfinfo 1.a0.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## From pdf to ps and back again with a **pipeline sandwich**\n", - "You might say, what a drag that pstops only scales postscript files and not PDF, well just wrap it in a Pipeline sandwich..." - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdf2ps 1.pdf - | pstops \"0@4.0\" -pa2 | ps2pdf -sPAPERSIZE=a0 - 1.a0.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Make a blank PDF with **python** and reportlab.pdfgen.canvas" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "from reportlab.pdfgen.canvas import Canvas\n", - "from reportlab.lib.pagesizes import A4\n", - "c = Canvas(\"blanka4.pdf\", pagesize=A4, bottomup=0)\n", - "c.showPage()\n", - "c.save()" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Tile and zoom with **poster**" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "From the [poster](msn/poster.pdf) manual:\n", - "\n", - ">*Poster* can be used to create a large poster by building it from multiple pages and/or printing it on large me-dia. Itexpects as input a generic (encapsulated) postscript file, normally printing on a single page.Theoutput is again a postscript file, maybe containing multiple pages together building the poster.The outputpages bear cutmarks and have slightly overlapping images for easier assembling. The input picture will bescaled to obtain the desired size" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#!poster -mA3 -pA0 1.ps | ps2pdf - > poster.poster.pdf\n", - "!poster -v -c0 -iA4 -mA4 -pA0 1.ps | ps2pdf - > poster.poster.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "The newer [pdfposter](man/pdfposter.pdf) works directly with PDF files, and has slightly different options.\n", - "\n", - "For example to prints an A4 input file on 8 A3 pages, forming an A0 poster:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pdfposter -mA3 -pA0 1.pdf pdfposter.pdf" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## **Puzzle**: Combine tools to make a poster with different elements\n", - "![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/15-Puzzle.jpg/330px-15-Puzzle.jpg)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.3" - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/hotseat.ipynb b/hotseat.ipynb index eeff460..bfd46ed 100644 --- a/hotseat.ipynb +++ b/hotseat.ipynb @@ -37,7 +37,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "kendal\n" + "camilo\n" ] } ], diff --git a/nltk-pos-tagger.ipynb b/nltk-pos-tagger.ipynb deleted file mode 100644 index 48c8798..0000000 --- a/nltk-pos-tagger.ipynb +++ /dev/null @@ -1,1588 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# NLTK - Part of Speech" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [], - "source": [ - "import nltk\n", - "import random" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "To complicate things even further, computer science has its own understanding of “operational semantics” in programming languages, for example in the construction of a programming language interpreter or compiler.\n", - "\n" - ] - } - ], - "source": [ - "lines = open('txt/language.txt').readlines()\n", - "sentence = random.choice(lines)\n", - "print(sentence)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Tokens" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['To', 'complicate', 'things', 'even', 'further', ',', 'computer', 'science', 'has', 'its', 'own', 'understanding', 'of', '“', 'operational', 'semantics', '”', 'in', 'programming', 'languages', ',', 'for', 'example', 'in', 'the', 'construction', 'of', 'a', 'programming', 'language', 'interpreter', 'or', 'compiler', '.']\n" - ] - } - ], - "source": [ - "tokens = nltk.word_tokenize(sentence)\n", - "print(tokens)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Part of Speech \"tags\"" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[('To', 'TO'), ('complicate', 'VB'), ('things', 'NNS'), ('even', 'RB'), ('further', 'RB'), (',', ','), ('computer', 'NN'), ('science', 'NN'), ('has', 'VBZ'), ('its', 'PRP$'), ('own', 'JJ'), ('understanding', 'NN'), ('of', 'IN'), ('“', 'NNP'), ('operational', 'JJ'), ('semantics', 'NNS'), ('”', 'VBP'), ('in', 'IN'), ('programming', 'NN'), ('languages', 'NNS'), (',', ','), ('for', 'IN'), ('example', 'NN'), ('in', 'IN'), ('the', 'DT'), ('construction', 'NN'), ('of', 'IN'), ('a', 'DT'), ('programming', 'JJ'), ('language', 'NN'), ('interpreter', 'NN'), ('or', 'CC'), ('compiler', 'NN'), ('.', '.')]\n" - ] - } - ], - "source": [ - "tagged = nltk.pos_tag(tokens)\n", - "print(tagged)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "Now, you could select for example all the type of **verbs**:" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['complicate', 'has', '”']\n" - ] - } - ], - "source": [ - "selection = []\n", - "\n", - "for word, tag in tagged:\n", - " if 'VB' in tag:\n", - " selection.append(word)\n", - "\n", - "print(selection)" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "### Where do these tags come from?" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "> An off-the-shelf tagger is available for English. It uses the Penn Treebank tagset.\n", - "\n", - "From: http://www.nltk.org/api/nltk.tag.html#module-nltk.tag" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "> NLTK provides documentation for each tag, which can be queried using the tag, e.g. nltk.help.upenn_tagset('RB').\n", - "\n", - "From: http://www.nltk.org/book_1ed/ch05.html" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "PRP: pronoun, personal\n", - " hers herself him himself hisself it itself me myself one oneself ours\n", - " ourselves ownself self she thee theirs them themselves they thou thy us\n" - ] - } - ], - "source": [ - "nltk.help.upenn_tagset('PRP')" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "------------" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "An alphabetical list of part-of-speech tags used in the Penn Treebank Project ([link](https://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html)):\n", - "\n", - "
\n",
- " Number \n",
- " | \n",
- " \n",
- " Tag \n",
- " | \n",
- " \n",
- " Description \n",
- " | \n",
- "
1. | \n", - "CC | \n", - "Coordinating conjunction | \n", - "
2. | \n", - "CD | \n", - "Cardinal number | \n", - "
3. | \n", - "DT | \n", - "Determiner | \n", - "
4. | \n", - "EX | \n", - "Existential there | \n", - "
5. | \n", - "FW | \n", - "Foreign word | \n", - "
6. | \n", - "IN | \n", - "Preposition or subordinating conjunction | \n", - "
7. | \n", - "JJ | \n", - "Adjective | \n", - "
8. | \n", - "JJR | \n", - "Adjective, comparative | \n", - "
9. | \n", - "JJS | \n", - "Adjective, superlative | \n", - "
10. | \n", - "LS | \n", - "List item marker | \n", - "
11. | \n", - "MD | \n", - "Modal | \n", - "
12. | \n", - "NN | \n", - "Noun, singular or mass | \n", - "
13. | \n", - "NNS | \n", - "Noun, plural | \n", - "
14. | \n", - "NNP | \n", - "Proper noun, singular | \n", - "
15. | \n", - "NNPS | \n", - "Proper noun, plural | \n", - "
16. | \n", - "PDT | \n", - "Predeterminer | \n", - "
17. | \n", - "POS | \n", - "Possessive ending | \n", - "
18. | \n", - "PRP | \n", - "Personal pronoun | \n", - "
19. | \n", - "PRP\\$ | \n", - "Possessive pronoun | \n", - "
20. | \n", - "RB | \n", - "Adverb | \n", - "
21. | \n", - "RBR | \n", - "Adverb, comparative | \n", - "
22. | \n", - "RBS | \n", - "Adverb, superlative | \n", - "
23. | \n", - "RP | \n", - "Particle | \n", - "
24. | \n", - "SYM | \n", - "Symbol | \n", - "
25. | \n", - "TO | \n", - "to | \n", - "
26. | \n", - "UH | \n", - "Interjection | \n", - "
27. | \n", - "VB | \n", - "Verb, base form | \n", - "
28. | \n", - "VBD | \n", - "Verb, past tense | \n", - "
29. | \n", - "VBG | \n", - "Verb, gerund or present participle | \n", - "
30. | \n", - "VBN | \n", - "Verb, past participle | \n", - "
31. | \n", - "VBP | \n", - "Verb, non-3rd person singular present | \n", - "
32. | \n", - "VBZ | \n", - "Verb, 3rd person singular present | \n", - "
33. | \n", - "WDT | \n", - "Wh-determiner | \n", - "
34. | \n", - "WP | \n", - "Wh-pronoun | \n", - "
35. | \n", - "WP$ | \n", - "Possessive wh-pronoun | \n", - "
36. | \n", - "WRB | \n", - "Wh-adverb \n", - " |
,4+:.pR('"=e!!$1.&LJ)4
+(]_Ab!^SpLJDe4NHifsa!?caji+)p)#goar4jJs_i#i+EJ--q0Jh>7NY>$'[1A#SR6uh>h'MX>?
+";QIF$Xg=O+Q ,4+:.pR('"=e!!$1.&LJ)4
+(]_Ab!^SpLJDe4NHifsa!?caji+)p)#goar4jJs_i#i+EJ--q0Jh>7NY>$'[1A#SR6uh>h'MX>?
+";QIF$Xg=O+Q ,4+:.pR('"=e!!$1.&LJ)4
+(]_Ab!^SpLJDe4NHifsa!?caji+)p)#goar4jJs_i#i+EJ--q0Jh>7NY>$'[1A#SR6uh>h'MX>?
+";QIF$Xg=O+Q ,4+:.pR('"=e!!$1.&LJ)4
+(]_Ab!^SpLJDe4NHifsa!?caji+)p)#goar4jJs_i#i+EJ--q0Jh>7NY>$'[1A#SR6uh>h'MX>?
+";QIF$Xg=O+Q &UcBeo(PA2^LD"iAg\o]b%EDBc\iQ!OXE,!%[cCEL^uStA+?0K;99a%89UGC?7_3V1hfhY2bRDQr$/kmW#U?>bkK\V@nVIBr
+K428_TM^4ZcDLbk0=*Pk@obU"ei@8'Lt::i!Id/8i#2W(*!"SqVh"aM@6Oj'IKaLb!?b8@5Z.Vj
+=93qS!MElpkO5Usa&V,B;\e9a*W'VDRc-SiZ#,.\8)2:D\/dSr%*3^(Z
+@1WhSJq15:)ZYGW@"/gjYtdHLLWT$pO(C:eJ8d#h!%WRZ/:_[j!2q[aVuqZ;#6R3uVuSr1W'Z"77=]=a1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