Blob Blame History Raw
read lexc VVFST_BUILDDIR/all.lexc
define Lexicon;

define ItoE i "[[IE]]" -> e ;

define Lengthening a "[[L]]" -> a a ,
                   ä "[[L]]" -> ä ä ,
                   e "[[L]]" -> e e ,
                   i "[[L]]" -> i i ,
                   o "[[L]]" -> o o ,
                   ö "[[L]]" -> ö ö ,
                   u "[[L]]" -> u u ,
                   y "[[L]]" -> y y ;

define HV  a "[[HV]]" -> a h a ,
           e "[[HV]]" -> e h e ,
           i "[[HV]]" -> i h i ,
           ä "[[HV]]" -> ä h ä ,
           é "[[HV]]" -> é h e ,
           y "[[HV]]" -> y h y ,
           u "[[HV]]" -> u h u ,
           ö "[[HV]]" -> ö h ö ,
           o "[[HV]]" -> o h o ;

set flag-is-epsilon ON
regex Lexicon .o. ItoE .o. Lengthening .o. HV;
invert net
define Lexicon2;
regex Lexicon2 .o. ItoE .o. Lengthening .o. HV;
compact sigma
write att VVFST_BUILDDIR/all.att