Changed css for pint

master^2
jvdhorst 6 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/script.js 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
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
output/chatbot.txt: ocr/output.txt ## Comments a text with a simple chatbot. Dependencies: python3's chatterbot

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

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

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

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

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

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

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

@ -27,7 +27,7 @@
<div class="action-container">
<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>
</body>

Loading…
Cancel
Save