Mercurial > repo
view bin/slashlearn @ 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 | 7f38c3d1c3a5 |
children | eee3c706c9e7 |
line wrap: on
line source
sep="/" [[ "$0" == *//* ]] && sep="//" [[ "$1" == ?*"$sep"* ]] || exit 1 key="$(echo "${1%%$sep*}" | lowercase)" value="${1#*$sep}" [ -e "wisdom/$key" ] && verb="Relearned" || verb="Learned" echo "$value" > "$(echo-p "wisdom/$key")" && echo -n "$verb '$key': $(echo "$value" | sed 's.^[/ ].0,04&.')"