Mercurial > repo
view bin/hyphenate.fi @ 1993:a7cc9b351f25
<oerjan> gcc -o bin/fueue fueue.c
author | HackBot |
---|---|
date | Sat, 02 Feb 2013 22:56:28 +0000 |
parents | 98e571aa567d |
children | 77ba48eeaa0e |
line wrap: on
line source
#!/bin/sh exec perl -CS -Mutf8 -pwe 'my$vow=qr/[aeiouyäö]/i;my$con=qr/[bcdfghjklmnpqrstvwxz]/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'