annotate bin/hyphenate.fi @ 4564:69357a738605

<fizzie> mkdir data; mv 8ballreplies data/; sed -i -e \'s|8ballreplies|data/8ballreplies|\' bin/8ball # let\'s keep the /hackenv clean and tidy, everybody
author HackBot
date Tue, 15 Apr 2014 10:24:07 +0000
parents 7914d7e0b500
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2114
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
1 #!/bin/sh
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents:
diff changeset
2 exec perl -CS -Mutf8 -pwe 'my$vow=qr/[aeiouyäö]/i;my$con=qr/[b-df-hj-np-tv-xz]/i;1while s/($vow$con*)($con$vow)/$1-$2/g;1while s/a[eoyäö]|e[aoäö]|i[aoäö]|o[aeyäö]|u[aeyäö]|y[aeouä]|ä[aeouö]|ö[aeouä]/my@s=split"",$&;$s[0]."-".$s[1]/egi'