scripts/syllables.py @ 0f17d55b8f34

Add fountain, clean up colors, refactor ticklists
author Steve Losh <steve@stevelosh.com>
date Mon, 08 Aug 2016 14:31:14 +0000
parents 7399fa9ab331
children (none)
import sys

def syls(word, n):
    for i in range(0, len(line) - n):
        print word[i:i+n].encode('utf-8')

for l in sys.stdin:
    line = l.decode('utf-8')
    syls(line, 3)
    syls(line, 4)
    syls(line, 5)
    syls(line, 6)