Debian Codegraph @

sources/1-drawing/millimetreA Extrablack 01.ufo/features.fea

raw
1 languagesystem DFLT dflt;
2 languagesystem latn dflt;
3
4 @bdc2smcp = [ a b c d e f g h i j k l m n o p q r s t u v w x y z agrave aacute acircumflex atilde adieresis aring ae ccedilla egrave eacute ecircumflex edieresis igrave iacute icircumflex idieresis itilde ij lslash ntilde ograve oacute ocircumflex otilde odieresis oslash oe scaron ugrave uacute ucircumflex udieresis utilde yacute ycircumflex ydieresis ygrave zcaron eth thorn];
5
6 @caps2smcp = [ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Agrave Aacute Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Itilde IJ Lslash Ntilde Ograve Oacute Ocircumflex Otilde Odieresis Oslash OE Scaron Ugrave Uacute Ucircumflex Udieresis Utilde Yacute Ycircumflex Ydieresis Ygrave Zcaron Eth Thorn];
7
8 @smcp.frombdc = [ A.small B.small C.small D.small E.small F.small G.small H.small I.small J.small K.small L.small M.small N.small O.small P.small Q.small R.small S.small T.small U.small V.small W.small X.small Y.small Z.small Agrave.small Aacute.small Acircumflex.small Atilde.small Adieresis.small Aring.small AE.small Ccedilla.small Egrave.small Eacute.small Ecircumflex.small Edieresis.small Igrave.small Iacute.small Icircumflex.small Idieresis.small Itilde.small IJ.small Lslash.small Ntilde.small Ograve.small Oacute.small Ocircumflex.small Otilde.small Odieresis.small Oslash.small OE.small Scaron.small Ugrave.small Uacute.small Ucircumflex.small Udieresis.small Utilde.small Yacute.small Ycircumflex.small Ydieresis.small Ygrave.small Zcaron.small Eth.small Thorn.small
9 ];
10
11 @figs.LP = [zero one two three four five six seven eight nine];
12 @figs.LT = [zero.LT one.LT two.LT three.LT four.LT five.LT six.LT seven.LT eight.LT nine.LT];
13 @figs.sups = [zero.sup one.sup two.sup three.sup four.sup five.sup six.sup seven.sup eight.sup nine.sup];
14 @figs.sinf = [zero.inf one.inf two.inf three.inf four.inf five.inf six.inf seven.inf eight.inf nine.inf];
15 @figs.dnom = [zero.dnom one.dnom two.dnom three.dnom four.dnom five.dnom six.dnom seven.dnom eight.dnom nine.dnom];
16 @figs.all=[zero.slash zero one two three four five six seven eight nine zero.slash.LT zero.LT one.LT two.LT three.LT four.LT five.LT six.LT seven.LT eight.LT nine.LT];
17
18
19 @sups.to = [ a.superior b.superior c.superior d.superior e.superior f.superior g.superior h.superior i.superior j.superior k.superior l.superior m.superior n.superior o.superior p.superior q.superior r.superior s.superior t.superior u.superior v.superior w.superior x.superior y.superior z.superior ];
20 @sups.fromcap = [ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ];
21 @sups.fromlc = [ a b c d e f g h i j k l m n o p q r s t u v w x y z ];
22
23 @casefrom = [exclamdown questiondown guilsinglleft guilsinglright guillemotleft guillemotright hyphen endash emdash bullet periodcentered parenleft parenright bracketleft bracketright braceleft braceright];
24 @caseto = [exclamdown.cap questiondown.cap guilsinglleft.cap guilsinglright.cap guillemotleft.cap guillemotright.cap hyphen.cap endash.cap emdash.cap bullet.cap periodcentered.cap parenleft.cap parenright.cap bracketleft.cap bracketright.cap braceleft.cap braceright.cap ];
25
26
27
28 feature aalt { # Access all Alternates
29 feature frac;
30 feature smcp;
31 feature c2sc;
32 feature case;
33 feature pnum;
34 feature tnum;
35 feature sups;
36 feature sinf;
37 feature numr;
38 feature dnom;
39 feature ordn;
40 feature zero;
41 feature salt;
42 feature ss01;
43 feature ss02;
44 feature swsh;
45 } aalt;
46
47
48 feature liga {
49 sub V T F by VTF;
50 sub v t f by VTF;
51 }liga;
52
53 feature locl { # Localized Forms
54 # Latin
55 script latn;
56 language AZE; # Azeri
57 sub i by i.TRK;
58 language CRT; # Crimean Tatar
59 sub i by i.TRK;
60 language TRK; # Turkish
61 sub i by i.TRK;
62 } locl;
63
64 feature pnum {
65 sub @figs.LT by @figs.LP;
66 } pnum;
67
68 feature tnum {
69 sub @figs.LP by @figs.LT;
70 } tnum;
71
72 feature sups {
73 # Latin
74 sub @figs.LP by @figs.sups;
75 # sub @math by @math.sups;
76 sub @sups.fromcap by @sups.to;
77 sub @sups.fromlc by @sups.to;
78 sub i.TRK by i.superior;
79 } sups;
80
81 feature numr {
82 # Latin
83 sub @figs.LP by @figs.sups;
84 #sub @math by @math.sinf;
85 } numr;
86
87 feature sinf {
88 # Latin
89 sub @figs.LP by @figs.sinf;
90 #sub @math by @math.sinf;
91 } sinf;
92
93 feature dnom {
94 # Latin
95 sub @figs.LP by @figs.dnom;
96 #sub @math by @math.sinf;
97 } dnom;
98
99 feature ordn { # Ordinals
100 sub @figs.all [O o]' by ordmasculine;
101 sub @figs.all [A a]' by ordfeminine;
102 sub N [O o degree ordmasculine] by numero;
103 sub n [O o degree ordmasculine] by numero;
104 sub @sups.fromcap by @sups.to;
105 sub @sups.fromlc by @sups.to;
106 sub i.TRK by i.superior;
107 } ordn;
108
109 feature frac { # Fractions
110 sub slash by fraction;
111 sub @figs.LP by @figs.sups;
112 sub [fraction @figs.dnom onehalf onequarter threequarters] @figs.sups' by @figs.dnom;
113 } frac;
114
115
116 feature zero { # Slashed Zero
117
118 # DEFAULT
119
120 sub [zero zero.LT ] by [zero.slash zero.slash.LT ];
121
122 script latn; # Latin
123
124 sub [zero zero.LT ] by [zero.slash zero.slash.LT ];
125
126 language TRK ; # Turkish
127
128 } zero;
129
130 feature smcp{
131 sub @bdc2smcp by @smcp.frombdc;
132 }smcp;
133
134 feature c2sc{
135 sub @caps2smcp by @smcp.frombdc;
136 }c2sc;
137
138 feature case{
139 sub @casefrom by @caseto;
140 }case;
141
142 feature ss01{
143 sub [a agrave aacute acircumflex atilde adieresis aring ae] by [a.alt agrave.alt aacute.alt acircumflex.alt atilde.alt adieresis.alt aring.alt ae.alt];
144 }ss01;
145
146 feature ss02{
147 lookup g_alt {
148 sub g by g.alt;
149 } g_alt;
150 }ss02;
151
152 feature salt{
153 lookup g_alt;
154 }salt;
155
156 feature swsh{
157 sub [a agrave aacute acircumflex atilde adieresis aring ae] by [a.alt agrave.alt aacute.alt acircumflex.alt atilde.alt adieresis.alt aring.alt ae.alt];
158 }swsh;