annotation tools for making the iterations publication (Manetta & Jara) - https://iterations.space/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
778 B

5 years ago
# text annotation tool
# see handles on line 532 and further: https://pad.constantvzw.org/p/iterations-publication
def intensify(string, intensity):
intensified = ''
for character in string:
if character != ' ':
intensified += (character * intensity)
else:
intensified += ' '
return intensified
def scopify(string, reach):
marker = ':' * reach
scope = '{} {} {}\n'.format(marker, string, marker)
return scope
def temporalify(string, duration):
temporalified = string * duration
return temporalified
def translate(string, intensity=3, duration=2, reach=5):
string = intensify(string, intensity)
string = scopify(string, reach)
string = temporalify(string, duration)
return string
if __name__ == '__main__':
string = 'hello'
print(translate(string))