Changed css for pint

master^2
jvdhorst 7 years ago
parent 9e1f618b68
commit 23f0e7e32d

@ -77,9 +77,13 @@ reading_structure: ocr/output.txt ## Analyzes OCR'ed text using a Part of Speech
cp src/reading_structure/jquery.min.js output/reading_structure cp src/reading_structure/jquery.min.js output/reading_structure
cp src/reading_structure/script.js output/reading_structure cp src/reading_structure/script.js output/reading_structure
cp src/reading_structure/style.css output/reading_structure cp src/reading_structure/style.css output/reading_structure
cp src/reading_structure/print.css output/reading_structure
cat $< | python3 src/reading_structure/reading_structure.py cat $< | python3 src/reading_structure/reading_structure.py
weasyprint -s output/reading_structure/print.css output/reading_structure/index.html output/reading_structure/poster.pdf weasyprint -s src/reading_structure/print-noun.css output/reading_structure/index.html output/reading_structure/poster_noun.pdf
weasyprint -s src/reading_structure/print-adv.css output/reading_structure/index.html output/reading_structure/poster_adv.pdf
weasyprint -s src/reading_structure/print-dppt.css output/reading_structure/index.html output/reading_structure/poster_dppt.pdf
weasyprint -s src/reading_structure/print-stopword.css output/reading_structure/index.html output/reading_structure/poster_stopword.pdf
weasyprint -s src/reading_structure/print-neutral.css output/reading_structure/index.html output/reading_structure/poster_neutral.pdf
weasyprint -s src/reading_structure/print-entity.css output/reading_structure/index.html output/reading_structure/poster_named_entities.pdf
x-www-browser output/reading_structure/index.html x-www-browser output/reading_structure/index.html
output/chatbot.txt: ocr/output.txt ## Comments a text with a simple chatbot. Dependencies: python3's chatterbot output/chatbot.txt: ocr/output.txt ## Comments a text with a simple chatbot. Dependencies: python3's chatterbot

@ -7,7 +7,7 @@
display: table; display: table;
@bottom-center { @bottom-center {
content: 'make output/reading_structure'; content: 'make reading_structure';
font-family: 'Ubuntu Mono', monospace; font-family: 'Ubuntu Mono', monospace;
white-space: pre; white-space: pre;
color: #000; color: #000;
@ -22,19 +22,16 @@
--- */ --- */
span.word_label, .stopword .word { span.word_label, .known_entity .word, .pronoun .word {
display: block; display: block;
opacity: 0; opacity: 0;
width: 100%; width: 100%;
font-size: 1rem; font-size: 1rem;
} }
.stopword > .wordtype:hover, {
opacity: 1;
}
.stopword > .wordtype { .known_entity > .ner, .pronoun > .pos {
color: #b83e54; color: #00cccc;
} }

@ -30,7 +30,7 @@ span.word_label, .neutral .word {
} }
.neutral > .sentiment { .neutral > .sentiment {
color: #8491a5; color: #a500ff;
} }

@ -7,7 +7,7 @@
display: table; display: table;
@bottom-center { @bottom-center {
content: 'make output/reading_structure'; content: 'make reading_structure';
font-family: 'Ubuntu Mono', monospace; font-family: 'Ubuntu Mono', monospace;
white-space: pre; white-space: pre;
color: #000; color: #000;

@ -7,7 +7,7 @@
display: table; display: table;
@bottom-center { @bottom-center {
content: 'make output/reading_structure'; content: 'make reading_structure';
font-family: 'Ubuntu Mono', monospace; font-family: 'Ubuntu Mono', monospace;
white-space: pre; white-space: pre;
color: #000; color: #000;
@ -29,9 +29,6 @@ span.word_label, .stopword .word {
font-size: 1rem; font-size: 1rem;
} }
.stopword > .wordtype:hover, {
opacity: 1;
}
.stopword > .wordtype { .stopword > .wordtype {
color: #b83e54; color: #b83e54;

@ -129,7 +129,7 @@ def ner_tagger(list):
#print(word.ent_type_) #print(word.ent_type_)
if word.ent_type_ == "PERSON": if word.ent_type_ == "PERSON":
ner_tag = 'geographical entity' ner_tag = 'person'
elif word.ent_type_ == 'NORP': elif word.ent_type_ == 'NORP':
ner_tag = 'group' ner_tag = 'group'
elif word.ent_type_ == 'FACILITY': elif word.ent_type_ == 'FACILITY':

@ -60,17 +60,17 @@ $(document).ready(function(){
stopword_word.removeClass('word_label'); stopword_word.removeClass('word_label');
stopword_label.addClass('invisible'); stopword_label.addClass('invisible');
$("#poster").prop("href", "poster-neutral.pdf") $("#poster").prop("href", "poster_neutral.pdf")
known_entity_word.addClass('word_label'); neutral_word.addClass('word_label');
known_entity_label.removeClass('invisible'); neutral_label.removeClass('invisible');
} }
if (state == 2) { if (state == 2) {
known_entity_word.removeClass('word_label'); neutral_word.removeClass('word_label');
known_entity_label.addClass('invisible'); neutral_label.addClass('invisible');
$("#poster").prop("href", "poster-neutral.pdf") $("#poster").prop("href", "poster_noun.pdf")
noun_word.addClass('word_label'); noun_word.addClass('word_label');
noun_label.removeClass('invisible'); noun_label.removeClass('invisible');
@ -80,7 +80,7 @@ $(document).ready(function(){
noun_word.removeClass('word_label'); noun_word.removeClass('word_label');
noun_label.addClass('invisible'); noun_label.addClass('invisible');
$("#poster").prop("href", "poster-neutral.pdf") $("#poster").prop("href", "poster_adv.pdf")
ad_word.addClass('word_label'); ad_word.addClass('word_label');
ad_label.removeClass('invisible'); ad_label.removeClass('invisible');
@ -90,7 +90,7 @@ $(document).ready(function(){
ad_word.removeClass('word_label'); ad_word.removeClass('word_label');
ad_label.addClass('invisible'); ad_label.addClass('invisible');
$("#poster").prop("href", "poster-neutral.pdf") $("#poster").prop("href", "poster_dppt.pdf")
dppt_word.addClass('word_label'); dppt_word.addClass('word_label');
dppt_label.removeClass('invisible'); dppt_label.removeClass('invisible');
@ -100,17 +100,17 @@ $(document).ready(function(){
dppt_word.removeClass('word_label'); dppt_word.removeClass('word_label');
dppt_label.addClass('invisible'); dppt_label.addClass('invisible');
$("#poster").prop("href", "poster-neutral.pdf") $("#poster").prop("href", "poster_named_entities.pdf")
neutral_word.addClass('word_label'); known_entity_word.addClass('word_label');
neutral_label.removeClass('invisible'); known_entity_label.removeClass('invisible');
} }
if (state == 6) { if (state == 6) {
neutral_word.removeClass('word_label'); known_entity_word.removeClass('word_label');
neutral_label.addClass('invisible'); known_entity_label.addClass('invisible');
$("#poster").prop("href", "poster-neutral.pdf") $("#poster").prop("href", "poster_stopword.pdf")
stopword_word.addClass('word_label'); stopword_word.addClass('word_label');
stopword_label.removeClass('invisible'); stopword_label.removeClass('invisible');

@ -120,11 +120,11 @@ span.word_label {
} }
.neutral .sentiment { .neutral .sentiment {
color: #8491a5; color: #a500ff;
} }
.known_entity .ner, .pronoun .pos { .known_entity .ner, .pronoun .pos {
color: #44a889; color: #00cccc;
} }
.adjective .pos, .adverb .pos { .adjective .pos, .adverb .pos {

@ -27,7 +27,7 @@
<div class="action-container"> <div class="action-container">
<p><a href="data.json" download>Export data as json</a> </p> <p><a href="data.json" download>Export data as json</a> </p>
<p><a id="poster" href="poster.pdf" download>Print this as a poster</a></p> <p><a id="poster" href="poster_stopword.pdf" download>Print this as a poster</a></p>
</div> </div>
</body> </body>

Loading…
Cancel
Save