changeset 1977:7d0ce782d00c

<ion> sed -i -re \'s,/eg,/egi,\' bin/hyphenate.fi && cat bin/hyphenate.fi
author HackBot
date Sat, 02 Feb 2013 12:00:39 +0000
parents f6a103332ffe
children 7dec84b7f0c4
files bin/hyphenate.fi
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/hyphenate.fi	Sat Feb 02 11:48:48 2013 +0000
+++ b/bin/hyphenate.fi	Sat Feb 02 12:00:39 2013 +0000
@@ -1,2 +1,2 @@
 #!/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/ae|ao|ay|aä|aö|ea|eo|eä|eö|ia|io|iä|iö|oa|oe|oy|oä|oö|ua|ue|uy|uä|uö|ya|ye|yo|yu|yä|äa|äe|äo|äu|äö|öa|öe|öo|öu|öä/my@s=split"",$&;$s[0]."-".$s[1]/eg'
+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/ae|ao|ay|aä|aö|ea|eo|eä|eö|ia|io|iä|iö|oa|oe|oy|oä|oö|ua|ue|uy|uä|uö|ya|ye|yo|yu|yä|äa|äe|äo|äu|äö|öa|öe|öo|öu|öä/my@s=split"",$&;$s[0]."-".$s[1]/egi'