#! /bin/sed -f
# Last edited on 1999-02-09 11:20:16 by stolfi
#
# Deletes all "TT" style accents from a plain ASCII text.
# Specialized for Portuguese: keeps accents for "`a",
# and also for "'a" and "'e" in word-final position.
#
1,$s/\^\([aeiouAEIOU]\)/\1/g
1,$s/~\([aeiouAEIOU]\)/\1/g
1,$s/"\([uU]\)/\1/g
1,$s/,\([cC]\)/\1/g
1,$s/'\([cC]\)/\1/g
1,$s/'\([aAeE][a-zA-Z]\)/\1/g
1,$s/'\([oiuOIU]\)/\1/g
