grtest-langfeat.gdl (734B)
1 #include "stddef.gdh" 2 #define LG_USENG 1033 3 4 table(glyph) 5 clsFail = codepoint("FAIL"); 6 clsPass = codepoint("PaSs"); 7 endtable 8 9 table (feature) 10 11 failtopass 12 { 13 id = "FTPS"; 14 name.LG_USENG = string("Pass substitution"); 15 default = 0; 16 } 17 18 failtopass2 19 { 20 id = "FTP2"; 21 name.LG_USENG = string("Pass substitution 2"); 22 default = 0; 23 } 24 25 passtofail 26 { 27 id = "PTFL"; 28 name.LG_USENG = string("Pass to fail substitution"); 29 default = 0; 30 } 31 32 endtable 33 34 table (language) 35 36 french { 37 languages = ( "fr" ); 38 failtopass = 1; 39 } 40 41 french2 { 42 languages = ( "fra" ); 43 passtofail = 1; 44 } 45 46 endtable; 47 48 table(substitution) 49 50 pass(1) 51 52 if (failtopass || failtopass2) 53 clsFail > clsPass; 54 endif; 55 56 if (passtofail) 57 clsPass > clsFail; 58 endif; 59 60 endpass; 61 62 endtable