annotate bin/hyphenate.fi @ 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 32e14ad1db51
children 98e571aa567d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1975
32e14ad1db51 <ion> f=bin/hyphenate.fi;echo \'H4sIAOD8DFEAA0WPQU7DMBBF9z2FCRFtEakbVpWqSkisWbGssnDDNDFNMmkcNzWa4+QMvoAvxpgNiy/7vfka2Y8P8qQ7aeoF3KEUPQyNyN4/RfZhx/NOZP0EYtm69IbT4TrIowKN1oU5+ELqPQ9K7P4Gp/LrXNXfl6bt+utgxtt0/4mVfKp1A8LIVdwR68/rVTwirmWaZ+mrrP5rCkghKUcqzBxPoAiQgAmYtCKNpJk0EypCIHSELJCFVWSBrCPLwrJwihyQQ3KW+NkUZsUBDnIsxZ9Q8Cw9S8/Ss/Rhlq17MwfTN3pMkpf0aZ+a47bYJFmy4VteSKiWi1/gJQHkPgEAAA==\'|base64 -d|zcat>$f;chmod 755
HackBot
parents:
diff changeset
1 #!/bin/sh
1977
7d0ce782d00c <ion> sed -i -re \'s,/eg,/egi,\' bin/hyphenate.fi && cat bin/hyphenate.fi
HackBot
parents: 1975
diff changeset
2 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'