annotate bin/hyphenate.fi @ 1982:98e571aa567d

<ion> sed -i -re \'s,/ae\\|.*\\|\xc3\xb6\xc3\xa4/,/a[eoy\xc3\xa4\xc3\xb6]|e[ao\xc3\xa4\xc3\xb6]|i[ao\xc3\xa4\xc3\xb6]|o[aey\xc3\xa4\xc3\xb6]|u[aey\xc3\xa4\xc3\xb6]|y[aeou\xc3\xa4]|\xc3\xa4[aeou\xc3\xb6]|\xc3\xb6[aeou\xc3\xa4]/,\' bin/hyphenate.fi && cat bin/hyphenate.fi
author HackBot
date Sat, 02 Feb 2013 12:54:44 +0000
parents 7d0ce782d00c
children 77ba48eeaa0e
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
1982
98e571aa567d <ion> sed -i -re \'s,/ae\\|.*\\|\xc3\xb6\xc3\xa4/,/a[eoy\xc3\xa4\xc3\xb6]|e[ao\xc3\xa4\xc3\xb6]|i[ao\xc3\xa4\xc3\xb6]|o[aey\xc3\xa4\xc3\xb6]|u[aey\xc3\xa4\xc3\xb6]|y[aeou\xc3\xa4]|\xc3\xa4[aeou\xc3\xb6]|\xc3\xb6[aeou\xc3\xa4]/,\' bin/hyphenate.fi && cat bin/hyphenate.fi
HackBot
parents: 1977
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/a[eoyäö]|e[aoäö]|i[aoäö]|o[aeyäö]|u[aeyäö]|y[aeouä]|ä[aeouö]|ö[aeouä]/my@s=split"",$&;$s[0]."-".$s[1]/egi'