diff --git a/README b/README index f6b23a7..9103394 100644 --- a/README +++ b/README @@ -85,7 +85,19 @@ Specific Dependencies: Notes & Bugs: This script is very picky about the input images it can work with. For best results, please use high resolution images in RGB colorspace. Errors can occur when image modes do not match or tesseract cannot successfully make HOCR files. -## carlandre: Alice + +Author: Alice Strete (RO) +Person who aspires to call herself a software artist sometime next year. + +License: +Copyright © 2018 Alice Strete +This work is free. You can redistribute it and/or modify it under the +terms of the Do What The Fuck You Want To Public License, Version 2, +as published by Sam Hocevar. See http://www.wtfpl.net/ for more details. + +Programs: + +## carlandre Description: Generates concrete poetry from a text file. If you're connected to a printer located in /dev/usb/lp0 you can print the poem. run: make carlandre @@ -93,7 +105,7 @@ run: make carlandre Dependencies: * pytest (Documentation: https://docs.pytest.org/en/latest/getting-started.html) -## over/under: Alice +## over/under Description: Interpreted programming language written in Python3 which translates basic weaving instructions into code and applies them to text. run: make overunder diff --git a/ocr/list.txt b/ocr/list.txt index c6c69f9..c9cfbc0 100644 --- a/ocr/list.txt +++ b/ocr/list.txt @@ -1,3 +1,6 @@ -images/0012.tif +images/0031.tif +images/0032.tif +images/0033.tif +images/0034.tif diff --git a/src/carlandre.py b/src/carlandre.py index 9c44ef1..e0c128d 100644 --- a/src/carlandre.py +++ b/src/carlandre.py @@ -5,6 +5,7 @@ from sys import stdout import os.path + def pop_items(words, num_items): ''' Removes num_items from words.''' if not words: @@ -118,8 +119,8 @@ if os.path.exists(my_path): "init_printer": "\x1B\x40", 'papercut':'\x1D\x56\x00', } - - emptylines= "\n\n\n\n" + + emptylines= "\n\n\n\n" print(escpos['init_printer']) print(joined_list) print(emptylines) diff --git a/src/overunder.py b/src/overunder.py index 8685e35..4aeefe2 100644 --- a/src/overunder.py +++ b/src/overunder.py @@ -14,7 +14,6 @@ def parse(program): splitted_cmds.append(splitted) return splitted_cmds - #return tokenize(program) def tokenize(s): return s.split() @@ -31,7 +30,6 @@ text = None line_number = 0 last_index = 0 - def eval(cmds): global text global line_number @@ -90,8 +88,5 @@ def eval(cmds): joined = ' '.join(cmd) print('Did not understand command {}'.format(joined)) - - - if __name__ == '__main__': repl()