Small changes, edited the readme file

master^2
Alice 7 years ago
parent 3ffebdc81c
commit 6e6249874b

@ -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

@ -1,3 +1,6 @@
images/0012.tif
images/0031.tif
images/0032.tif
images/0033.tif
images/0034.tif

@ -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)

@ -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()

Loading…
Cancel
Save