Mercurial > repo
view bin/distort @ 9676:88c429465ee3
<hppavilion[1]> learn Q is a function from vowels to phoneme strings that converts a vowel to its semivowel equivalent and prepends a voiceless velar stop.
author | HackBot |
---|---|
date | Sun, 13 Nov 2016 10:53:24 +0000 |
parents | c989a1669243 |
children | d8f742efd393 |
line wrap: on
line source
#!/usr/bin/env python import sys N=330 name = sys.argv[1] if len(sys.argv) > 1 else "/dev/stdin" with open(name, "r") as f: data = ' \\ '.join(f.read().splitlines()) for i in xrange(0, len(data), N): print data[i:i+N]