Question about code.

fontime's picture

Is the code correct or may be more simple?

feature calt {
lookup swashes {
ignore sub [c ccedilla]' [b d f h k l]';
ignore sub o' [b d f h k l]';
ignore sub @originales' [i j t l]' @originales' @originales' ;
ignore sub r f;
sub [f.mid ff.mid] i' by dotlessi.alt;
sub i' t.mid by dotlessi.alt;
sub r' [g j y p q y z] by r.midcor;
sub [g j y p q y z] r' by r.midcor;
sub space @originales c' @originales by c.midcor;
sub space @originales ccedilla' @originales by ccedilla.midcor;
sub @originales @originales @NOmid' @originales @originales by @mid ;
} swashes ;
lookup cuatro {
ignore sub [c ccedilla]' [b d f h k l]';
ignore sub o' [b d f h k l]';
ignore sub @originales' [i j t l]' @originales' @originales' ;
ignore sub r f;
sub [f.mid ff.mid] i' by dotlessi.alt;
sub i' t.mid by dotlessi.alt;
sub r' [g j y p q y z] by r.midcor;
sub [g j y p q y z] r' by r.midcor;
sub @originales @originales @NOmid' @originales by @mid ;
sub @originales @NOmid' @originales @originales by @mid ;
} cuatro;
lookup tres {
ignore sub [c ccedilla]' [b d f h k l]';
ignore sub o' [b d f h k l]';
ignore sub @originales' [i j t l]' @originales' @originales' ;
ignore sub r f;
sub [f.mid ff.mid] i' by dotlessi.alt;
sub i' t.mid by dotlessi.alt;
sub r' [g j y p q y z] by r.midcor;
sub [g j y p q y z] r' by r.midcor;
sub space @originales @NOmid' @originales space by @mid ;
} tres ;
lookup casos {
ignore sub [c ccedilla]' [b d f h k l]';
ignore sub o' [b d f h k l]';
ignore sub @originales' [i j t l]' @originales' @originales' ;
ignore sub r f;
sub [f.mid ff.mid] i' by dotlessi.alt;
sub i' t.mid by dotlessi.alt;
sub r' [g j y p q y z] by r.midcor;
sub [g j y p q y z] r' by r.midcor;
sub space @NOmid [i j t l] @NOmid' space by @mid ;
sub space @NOmid' [i j t l] @NOmid space by @mid ;
} casos ;
lookup oritoree {
sub @originales by @reemplazan;
} oritoree;
} calt;

Thanks in advance,
Eduardo

Syndicate content Syndicate content