|
|
@ -1,6 +1,6 @@
|
|
|
|
images=$(sort $(wildcard images/*.jpg))
|
|
|
|
images=$(sort $(wildcard images/*.jpg))
|
|
|
|
# @andre make wildcard so that it takes any image file but doesn't take the listimg.txt file
|
|
|
|
# @andre make wildcard so that it takes any image file but doesn't take the listimg.txt file
|
|
|
|
images-tiff=$(sort $(wildcard images-tiff/*.jpg))
|
|
|
|
images-tiff=$(sort $(wildcard images-tiff/*.tiff))
|
|
|
|
output_ocr:=$(dir_ocr)/output.txt
|
|
|
|
output_ocr:=$(dir_ocr)/output.txt
|
|
|
|
tmpfile:= $(shell mktemp)
|
|
|
|
tmpfile:= $(shell mktemp)
|
|
|
|
space:= $(empty) $(empty)
|
|
|
|
space:= $(empty) $(empty)
|
|
|
@ -93,12 +93,14 @@ carlandre: ocr/output.txt ## Alice: Creates visual poetry out of a text. Depende
|
|
|
|
.PHONY: carlandre
|
|
|
|
.PHONY: carlandre
|
|
|
|
# cat $(@) > /dev/usb/lp0
|
|
|
|
# cat $(@) > /dev/usb/lp0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overunder: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text.
|
|
|
|
overunder: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text.
|
|
|
|
@python3 src/overunder.py
|
|
|
|
@python3 src/overunder.py
|
|
|
|
.PHONY: overunder
|
|
|
|
.PHONY: overunder
|
|
|
|
|
|
|
|
|
|
|
|
erase: ## Natasha: Analyzes pages in order, erases least common words from view. Dependencies: PIL, html5lib, FPDF
|
|
|
|
erase:hocrs ## Natasha: Analyzes pages in order, erases least common words from view. Dependencies: PIL, html5lib, FPDF
|
|
|
|
python3 src/erase_leastcommon.py
|
|
|
|
python3 src/erase_leastcommon.py
|
|
|
|
|
|
|
|
@echo 'erase rule output: output/erase-replace/Erase.pdf'
|
|
|
|
|
|
|
|
|
|
|
|
replace: ## Natasha: Analyzes pages in order, replace least common words with most common words. Dependencies: PIL, html5lib, FPDF
|
|
|
|
replace: ## Natasha: Analyzes pages in order, replace least common words with most common words. Dependencies: PIL, html5lib, FPDF
|
|
|
|
python3 src/replace_leastcommon.py
|
|
|
|
python3 src/replace_leastcommon.py
|
|
|
|