diff --git a/layout/.DS_Store b/layout/.DS_Store
index 39297fd..146a27c 100644
Binary files a/layout/.DS_Store and b/layout/.DS_Store differ
diff --git a/layout/index.html b/layout/index.html
index effb198..b83c935 100644
--- a/layout/index.html
+++ b/layout/index.html
@@ -4,7 +4,7 @@
-
+
Booklet
diff --git a/layout/nltking.py b/layout/nltking.py
new file mode 100644
index 0000000..847eb89
--- /dev/null
+++ b/layout/nltking.py
@@ -0,0 +1,37 @@
+import nltk
+
+with open('speech.txt','r') as result:
+ r = result.read()
+
+r = r.replace('','').replace('\n','. ')
+
+l=nltk.word_tokenize(r)
+pos = nltk.pos_tag(l)
+
+html = '''
+
+
+
+
+
+
+
+ Booklet
+
+
+'''
+
+for x in pos:
+ if x[0] == '.':
+ html += ". \n"
+ else:
+ html += " "+x[0]+"\n"
+
+
+html += '''
+'''
+
+html = html.replace(' .','.').replace(" '", "'")
+
+with open('index.html','w') as index:
+ index.write(html)
diff --git a/layout/nuovo.html b/layout/nuovo.html
new file mode 100644
index 0000000..9003f6d
--- /dev/null
+++ b/layout/nuovo.html
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+ Booklet
+
+
+ok let's talk in English for awhile what are we eating
+
+or not so it is starting again
+
+ok navigate
+
+you need to rest sometimes
+
+also implemented that implementing
+
+he's a sentence and we are not interested
+
+remember
+
+so basically sentence
+
+where is to go a couple and then you put the adult
+
+a bit easier to understand
+
+actually maybe people just don't just
+
+I'm just thinking it's not the centres don't put the dot and just put a couple
+
+because then
+
+they are talking they are a booklet but they are not writing
+
+so it is just fine
+
+so are you done
+
+and now is f***** up
+
+
+
\ No newline at end of file
diff --git a/layout/picDownload.py b/layout/picDownload.py
new file mode 100644
index 0000000..45ecb0d
--- /dev/null
+++ b/layout/picDownload.py
@@ -0,0 +1,71 @@
+import DuckDuckGoImages as ddg
+import os
+import shutil
+
+with open('speech.txt','r') as speech:
+ qq = speech.readlines()
+
+html = ''
+
+html = '''
+
+
+
+
+
+
+
+ Booklet
+
+
+'''
+
+if os.path.isdir('./images/') is True:
+ shutil.rmtree('./images/')
+
+os.mkdir('./images/')
+
+
+for q in qq:
+ if q == '''''':
+ continue
+
+ qDDG = q.replace(' ','+')
+ qBinded = q.replace(' ','')
+ print(qDDG)
+ qBinded = qBinded.replace("\n","")
+ os.mkdir(f'./images/{qBinded}')
+ ddg.download(qDDG, folder= f"./images/{qBinded}/", max_urls=10, thumbnails=True)
+ normalize = os.listdir(f"./images/{qBinded}/")
+
+ print(len(os.listdir(f"./images/{qBinded}/")))
+
+ if len(os.listdir(f"./images/{qBinded}/")) == 0:
+ html += f'{q}
'
+ os.rmdir(f'./images/{qBinded}/')
+ continue
+
+
+ print('NORMALIZE', normalize)
+ normalize = normalize[0]
+
+ splitExtension = os.path.splitext(normalize)
+ print('ESTENSIONE', splitExtension)
+
+
+ os.rename(f'./images/{qBinded}/{normalize}', f'./images/{qBinded}/{qBinded}')
+ os.replace(f'./images/{qBinded}/{qBinded}', f'./images/{qBinded}.jpg')
+ shutil.rmtree(f'./images/{qBinded}/')
+
+ html += f"""{q}"""
+ html += f""""""
+
+
+
+html += '''
+'''
+
+html = html.replace(' .','.').replace(" '", "'")
+
+with open('picindex.html','w') as index:
+ index.write(html)
\ No newline at end of file
diff --git a/layout/picLinks.py b/layout/picLinks.py
new file mode 100644
index 0000000..2a15c64
--- /dev/null
+++ b/layout/picLinks.py
@@ -0,0 +1,49 @@
+import DuckDuckGoImages as ddg
+from duckduckgo_images_api import search
+import os
+import shutil
+
+with open('speech.txt','r') as speech:
+ qq = speech.readlines()
+
+html = ''
+
+html = '''
+
+
+
+
+
+
+
+ Booklet
+
+
+'''
+
+
+
+for q in qq:
+ q = q.strip()
+ if q == '''''':
+ continue
+
+ q = q.replace("\n","")
+
+ qDDG = q.replace(' ','+')
+
+ results = search(q, max_results=1)
+ r = results["results"][0]["thumbnail"]
+
+ html += f""" {q} \n"""
+ html += f"""\n"""
+
+
+
+html += '''
+'''
+
+html = html.replace(' .','.').replace(" '", "'")
+
+with open('nuovo.html','w') as index:
+ index.write(html)
\ No newline at end of file
diff --git a/layout/styles/1.css b/layout/styles/1.css
index 2628598..fa34b8e 100644
--- a/layout/styles/1.css
+++ b/layout/styles/1.css
@@ -28,12 +28,20 @@
}
body{
- font-size: 1.5vw;
+ font-size: 2vw;
text-align: justify;
text-justify: inter-word;
line-height: 1.8vw;
color: rgb(0,0,0)
}
+
+ span{
+ color: rgba(0,0,0,0.5)
+ }
+
+ /* .dot{
+ color: black;
+ } */
span.CC{
@@ -180,9 +188,6 @@
background-color: #008080
}
- .dot{
- color: black;
- }
/* Rules for everything */
@@ -197,9 +202,7 @@
}
-span{
- color: white
-}
+
}
\ No newline at end of file
diff --git a/layout/styles/2.css b/layout/styles/2.css
index bbfc119..6086055 100644
--- a/layout/styles/2.css
+++ b/layout/styles/2.css
@@ -26,6 +26,31 @@
}
+
+ body{
+ font-size: 1.5vw;
+ text-align: justify;
+ text-justify: inter-word;
+ line-height: 1.8vw;
+ /* color: rgb(0,0,0) */
+ }
+
+ span{
+ color: white
+ }
+
+ span.CC{
+ font-size: 3vw;
+ color: chartreuse;
+ }
+
+ span.VB{
+ color: black;
+ }
+
+ .dot{
+ color: black;
+ }
/* Rules for everything */
@@ -40,15 +65,7 @@
}
- p{
- text-align: left;
- font-size: 12px;
- line-height: 15.5px;
- }
-
- h1{
- text-align: center;
- }
+
}
\ No newline at end of file
diff --git a/layout/styles/3.css b/layout/styles/3.css
index bbfc119..46f6008 100644
--- a/layout/styles/3.css
+++ b/layout/styles/3.css
@@ -6,6 +6,7 @@
size: 148mm 210mm;
marks: crop cross;
bleed: 5mm;
+ margin: 1cm;
}
/* Custom font */
@@ -39,16 +40,17 @@
box-sizing: border-box;
}
-
- p{
- text-align: left;
- font-size: 12px;
- line-height: 15.5px;
+ span{
+ font-size: 20px;
+ line-height: 60px;
}
- h1{
- text-align: center;
+ img {
+ margin: 0 5px;
+ height: 50px;
+ vertical-align:middle;
+
}
-
+
}
\ No newline at end of file
diff --git a/todo.txt b/todo.txt
index f6b26f6..f43f8bb 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,4 +1,3 @@
-> rendering css capire cosa e non cosa
> preparare domande x parte teorica
> prep mail da mandare in anticipo con istru git
@@ -7,8 +6,10 @@
> prep cose fatte in precedenza da fa vedere
+
info su git
vscode
py + nltk
console
chrome :(
+easybooklet
\ No newline at end of file