+
+
diff --git a/rosas.txt b/rosas.txt
new file mode 100644
index 0000000..567c8ad
--- /dev/null
+++ b/rosas.txt
@@ -0,0 +1,20 @@
+This publication is the initial result of a research project that began
+in 2010 when Anne Teresa De Keersmaeker addressed the following question
+to me . I paraphrase: I am reviving my four early works in which I myself
+will dance for the last time . Is this an occasion to write these choreographies down? Fase, Four Movements to the Music of Steve Reich (1982) ,
+Rosas danst Rosas (1983) , Elena's Aria (1984) , and Bartok/Mikrokosmos
+(originally called Mikrokosmos, 1 987) were to be performed in a row for
+the first time . The series formed under the title "Early Works" was going
+to enable a reflective insight into four distinctive directions in the
+development of choreography in a large oeuvre. Fase was De Keersmaeker ' s
+first programmatic statement of formal-abstract choreography to the music
+of a composer who will return several times in her oeuvre; Rosas danst
+Rosas confirmed a rigorous structural approach to choreographic composition as well as dramaturgical development with solely choreographic
+means and gave rise to a new dance idiom and style known as Rosas;
+Elena's Aria pointed to the theatrical strain of composing words close
+to movement and uncovered choreographic structure in the absence of
+music; the choreography to Bart6k' s String Quartet No. 4 reasserted the
+choreographer' s conunitment to classical music, a case of dexterous intertwining of distinct compositional principles of music and dance which
+is nowadays becoming rather exceptional . These four works introduce four
+lines that run through more than forty choreographies De Keersmaeker has
+made to this day .
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..8133d10
--- /dev/null
+++ b/style.css
@@ -0,0 +1,21 @@
+html {
+ font-size: 2rem;
+}
+
+.text {
+ text-align: justify;
+ max-width: 60ch;
+ margin: 50px auto;
+}
+
+span::after {
+ content: " ";
+}
+
+.text1 {
+ color: red;
+}
+
+.text2 {
+ color: blue;
+}
diff --git a/unthought.txt b/unthought.txt
new file mode 100644
index 0000000..5060532
--- /dev/null
+++ b/unthought.txt
@@ -0,0 +1,19 @@
+The epigraph, from Ursula Le Guin’s science fiction novel The Left
+Hand of Darkness, describes the encounter of protagonist Genly Ai with
+Faxe, acolyte of the Zen- like cult of the Handdarata and their tradition
+of unlearning (57). Given to negatives (57), the Handdarata would
+immediately recognize unthought as indicating a kind of thinking
+without thinking. There is thought, but before it is unthought: a mode
+of interacting with the world enmeshed in the eternal present that
+forever eludes the belated grasp of consciousness.
+Unthought may also be taken to refer to recent discoveries in
+neuroscience confirming the existence of nonconscious cognitive processes inaccessible to conscious introspection but nevertheless essential for consciousness to function. Understanding the full extent of
+their power requires a radical rethinking of cognition from the ground
+up. In addition, because the very existence of nonconscious cognitive
+processes is largely unknown in the humanities, unthought indicates the terra incognita that beckons beyond our received notions of
+how consciousness operates. Gesturing toward the rich possibilities
+that open when nonconscious cognition is taken into account, unthought also names the potent force of conceptualizing interactions
+between human and technical systems that enables us to understand more clearly the political, cultural, and ethical stakes of living in contemporary developed societies.
+The first step toward actualizing this potential is terminological
+ground clearing about conscious, unconscious, and nonconscious
+mental processes.
\ No newline at end of file
diff --git a/weave.py b/weave.py
new file mode 100644
index 0000000..3e9e93e
--- /dev/null
+++ b/weave.py
@@ -0,0 +1,88 @@
+import nltk
+from nltk.tokenize import word_tokenize
+
+# open two text files as text1 and text2
+with open('./rosas.txt', 'r') as result1:
+ text1 = result1.read()
+
+with open('./unthought.txt', 'r') as result2:
+ text2 = result2.read()
+
+
+# HTML TOKENIZER (word + span)
+# return a list of tag from a text
+# each item in the list is transformed into a html tag,
+# with the class defined by the text_class argument
+#
+# es: to_html('Lorem ipsum dolor', 'test')
+# return
+# [
+# "Lorem",
+# "ipsum",
+# "dolor"
+# ]
+
+def to_html(text, text_class):
+ text_html = []
+ text_list = word_tokenize(text)
+ for word in text_list:
+ text_html += ['' + word + '']
+ return text_html
+
+
+# WEAVER
+# weave two texts following a pattern structured as a string of A and B
+# es: ABABAAAABBBB
+# the repetition argument specifies how many times the pattern is repeated
+# the start1 and start2 arguments specify the starting point in the texts' array
+# it returns a string
+
+def weave(text1, text2, pattern, repetition, start1=0, start2=0):
+ embroidery = ''
+ text1_cursor = start1
+ text2_cursor = start2
+ repeated_pattern = pattern * repetition
+ for choice in repeated_pattern:
+ if choice == 'A':
+ embroidery += text1[text1_cursor]
+ text1_cursor += 1
+ if choice == 'B':
+ embroidery += text2[text2_cursor]
+ text2_cursor += 1
+ return embroidery
+
+# DEMO
+
+
+text_a = to_html(text1, 'text1')
+text_b = to_html(text2, 'text2')
+text_embroidery = weave(text_a, text_b, 'AAAABBBBABABAAABBB', 16)
+
+# BASIC HTML5 boilerplate
+html_boilerplate = '''
+
+
+
+
+
+
+ Document
+
+
+
+
+
+ {{{contents}}}
+
+
+
+
+'''
+
+
+# the {{{contents}}} line will be replaced with our text_embroidery
+html_out = html_boilerplate.replace('{{{contents}}}', text_embroidery)
+
+# Write the results in the index.html file
+with open('result.html', 'w') as index:
+ index.write(html_out)