File: CharisFeatures.gdh

package info (click to toggle)
grcompiler 5.2-2.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 24,352 kB
  • sloc: cpp: 48,550; ansic: 6,104; sh: 4,427; makefile: 197; xml: 190; perl: 127; sed: 21
file content (564 lines) | stat: -rw-r--r-- 10,152 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
/*
    Title:  Roman Font GDL description -- feature definitions
    Author: Martin Hosken and Bob Hallissy
    
    Changes:

SCJ 2007-Jan-23  Removed Cyrillic cursive italic feature (merged with slant italic specials)
SJC 2006-Dec-05  Additions to support Unicode 5.0: 9-level pitches, Cyrillic cursive italics, 
		open-o, Chinantec tones; removed Orthographic glottal alt; added language table
SJC 2006-Apr-12  Added code for small-caps and all-caps features (turned off)
SJC 2006-Jan-19  Added feature 1056; reordered list slightly
SJC 2005-Sep-1   Added features 1052 and 1053
SJC 2005-May-16  Added features 1047, 1048, and 1049
SJC 2005-May-16  Added "Diacritic selection" and "Hide tone contour staff"
JMW 2004-Aug-24  Correct mispelling of "Capital" in Y-hook feature name
JMW 2004-Jul-21	 Added 4th alternate to eng feature for Kom-Cameroon
JMW 2004-Jul-07	 Corrected DEBUG feature from ifdef to if
RMH 2004-Mar-17	 OU alternates feature default is now closed top, and alternate is .OpenType  (issue RFS-5WXH4D)
RMH 2003-Sep-25	 Took a shot at re-wording features to:
		increase consistency of names
		add named values for many features to see how we like it.
RMH 01-Sep-2003	 Reworked all features PC's design
RMH 17-Jul-2003	 Changed Ameriphon ID so it doesn't conflict with invis
RMH 10-Jul-2003	 Per RFS team decisions:	
		Remove "left-stem tone letter" option
		Make "Pitches as Numbers" a true boolean
MJPH 04-Nov-2002  original
*/


#define bool default = ffalse; \
    settings { \
        ffalse { \
            value = 0; \
            name.0x0409 = string("False"); \
        } \
        ftrue { \
            value = 1; \
            name.1033 = string("True"); \
        } \
    }

#define boolWDefTrue default = ftrue; \
    settings { \
        ffalse { \
            value = 0; \
            name.1033 = string("False"); \
        } \
        ftrue { \
            value = 1; \
            name.1033 = string("True"); \
        } \
    }

// Note that the order in which the features are listed below is how they will be presented
// in the combo-box in WorldPad.

//////////////////////////////////////////////////////////////////////////////////////
//
//	Features
//

table(feature) 


supernum {
	id = "tone"; // 1026;
	name.1033 = string("Tone numbers");
	bool
}    

hide_tone_staff {
	id = "tstv";  // 1050;
	name.1033 = string("Hide tone contour staves");
	bool
}

pitch9 {
	id = "pit9";  // 1062;
	name.1033 = string("9-level pitches");
	default = 0;
	settings {
		ligated {
			value = 0;
			name.1033 = string("Ligated");
		}
		tramlines {
			value = 1;
			name.x409 = string("Show tramlines");
		}
		nonLigated {
			value = 2;
			name.1033 = string("Non-ligated");
		}
		tramNonLigated {
			value = 3;
			name.1033 = string("Show tramlines, non-ligated");
		}
	}
}

viet {
	id = "viet";  // 1029;
	name.x409 = string("Vietnamese-style diacritics");
	bool
}

rom {
	id = "romn";  // 1041;
	name.1033 = string("Romanian-style diacritics");
	bool
}

chinantec_tone {
	id = "chtn";  // 1057;
	name.1033 = string("Chinantec tones");
	bool
}

bridging_diac {
	id = "brig";  // 1052;
	name.1033 = string("Bridging diacritics");
	bool
}

barred_bowl {
	id = "bowl";  // 1031;
	name.1033 = string("Barred-bowl forms");
	bool
}

literacy {
	id = "litr";  // 1032;
	name.1033 = string("Literacy alternates");
	bool
	// to create the hacked literacy font, use this line instead:
	////boolWDefTrue
}

#if 1 // FONT != DOULOSfont
slant_italic {
  id = "ital";  // 1053;
  name.1033 = string("Slant italic specials");
  bool
}
#endif // !DOULOSfont

eng {
	id = "Engs";  // 1024;
	name.1033 = string("Uppercase Eng alternates");
	default = descender;
	settings {
		descender {
			value = 0;
			name.1033 = string("Large eng with descender");
		}
		base {
			value = 1;
			name.1033 = string("Large eng on baseline");
		}
		short {
			value = 3;
			name.1033 = string("Large eng with short stem");
		}
		capital {
			value = 2;
			name.1033 = string("Capital N with tail");
		}
	}
}

ramshorn {
	id = "ramh";  // 1025;
	name.1033 = string("Rams horn alternates");
	default = small;
	settings {
		small {
			value = 0;
			name.1033 = string("Small bowl");
		}
		large {
			value = 1;
			name.1033 = string("Large bowl");
		}
		gamma {
			value = 2;
			name.1033 = string("Small gamma");
		}	
	}
}

ogonek {
	id = "ogon";  // 1043;
	name.1033 = string("Ogonek alternate");
	default = ipa;
	settings {
		ipa {
			value = 0;
			name.1033 = string("Curved");
		}
		americanist {
			value = 1;
			name.1033 = string("Straight");
		}
	}
}

h_stroke {
	id = "Hstk";  // 1038;
	name.1033 = string("Capital H-stroke alternate");
	default = horizontal;
	settings {
		horizontal {
			value = 0;
			name.1033 = string("Horizontal stroke");
		}
		vertical {
			value = 1;
			name.1033 = string("Vertical stroke");
		}
	}
}

ltnjstroke {
	id = "Jstk";  // 1049;
	name.1033 = string("J stroke hook alternate");
	default = noSerif;
	settings {
		noSerif {
			value = 0;
			name.1033 = string("No serif");
		}
		topSerif {
			value = 1;
			name.1033 = string("Top serif");
		}
	}
}    

n_hook {
	id = "N_hk";  // 1035;
	name.1033 = string("Capital N-left-hook alternate");
	default = ucStyle;
	settings {
		ucStyle {
			value = 0;
			name.1033 = string("Uppercase style");
		}
		lcStyle {
			value = 1;
			name.1033 = string("Lowercase style");
		}
	}
}

open_o {
	id = "opnO";  // 1059;
	name.1033 = string("Open-O alternate");
	default = bottomSerif;
	settings {
		bottomSerif {
			value = 0;
			name.1033 = string("Bottom serif");
		}
		topSerif {
			value = 1;
			name.1033 = string("Top serif");
		}
	}
}

p_hook {
	id = "p_hk";  // 1040;
	name.1033 = string("Small p-hook alternate");
	default = left_hook;
	settings {
		left_hook {
			value = 0;
			name.1033 = string("Left hook");
		}
		right_hook {
			value = 1;
			name.1033 = string("Right hook");
		}
	}
}

r_tail {
	id = "R_tl";  // 1039;
	name.1033 = string("Capital R-tail alternate");
	default = UCstyle;
	settings {
		UCstyle {
			value = 0;
			name.1033 = string("Uppercase style");
		}
		LCstyle {
			value = 1;
			name.1033 = string("Lowercase style");
		}
	}
}

t_hook {
	id = "t_hk";  // 1037;
	name.1033 = string("Capital T-hook alternate");
	default = left_hook;
	settings {
		left_hook {
			value = 0;
			name.1033 = string("Left hook");
		}
		right_hook {
			value = 1;
			name.1033 = string("Right hook");
		}
	}
}

v_hook {
	id = "v_hk";  // 1033;
	name.1033 = string("Small v-hook alternate");
	default = curved;
	settings {
		curved {
			value = 0;
			name.1033 = string("Curved");
		}
		straight {
			value = 1;
			name.1033 = string("Straight");
		}
	}
}

y_hook {
	id = "Y_hk";  // 1034;
	name.1033 = string("Capital Y-hook alternate");
	default = right_hook;
	settings {
		left_hook {
			value = 0;
			name.1033 = string("Left hook");
		}
		right_hook {
			value = 1;
			name.1033 = string("Right hook");
		}
	}
}

ezh_curl {
	id = "ezhc";  // 1036;
	name.1033 = string("Small ezh-curl alternate");
	default = small;
	settings {
		small {
			value = 0;
			name.1033 = string("Small bowl");
		}
		large {
			value = 1;
			name.1033 = string("Large bowl");
		}
	}
}

ezh {
	id = "Ezhr";  // 1042;
	name.1033 = string("Capital Ezh alternates");
	default = ipa;
	settings {
		ipa {
			value = 0;
    	name.1033 = string("Normal");
    }
    rev_sigma {
    	value = 1;
    	name.1033 = string("Reversed sigma");
    }
	}
}

ou {
	id = "opOU";  // 1045;
	name.1033 = string("OU alternates");
	default = closed;
	settings {
		closed {
			value = 0;
			name.1033 = string("Closed");
		}
		open {
			value = 1;
			name.1033 = string("Open");
		}
	}
}

mongol_e {
	id = "mone";  // 1027;
	name.1033 = string("Cyrillic E alternates");
	bool
}

#if 1 // FONT != DOULOSfont
/**** obsolete feature - merged with slant_italic
cyr_curs_ital {
	id = 1061;
	name.1033 = string("Cyrillic cursive italic alternates");
	bool
}
****/
#endif // !DOULOSfont

apostrophe {
	id = "apos";  // 1044;
	name.1033 = string("Modifier apostrophe alternates");
	default = small;
	settings {
		small {
			value = 0;
			name.1033 = string("Small");
		}
		large {
			value = 1;
			name.1033 = string("Large");
		}
	}
}

/***********
Obsolete feature:
ltnglottalstop {
	id = 1048;
	name.1033 = string("Orthographic glottal alternate");
	default = capHeight;
	settings {
		capHeight {
			value = 0;
			name.1033 = string("Cap-height");
		}
		xHeight {
			value = 1;
			name.1033 = string("x-height");
		}
	}
}
*************/

modlowcolon {
	id = "coln";  // 1047;
	name.1033 = string("Modifier colon alternate");
	default = tight;
	settings {
		tight {
			value = 0;
			name.1033 = string("Tight");
		}
		wide {
			value = 1;
			name.1033 = string("Wide");
		}
	}
}
	
short_breve {
	id = "sbrv";  // 1028;
	name.1033 = string("Combining breve Cyrillic form");
	bool
}

cyrillic_shha {
	id = "shha";  // 1056;
	name.1033 = string("Cyrillic shha alternate");
	bool
}

emptyset {
	id = "empt";  // 1046;
	name.1033 = string("Empty set alternates");
  default = circle;
  settings {
  	circle {
  		value = 0;
  		name.1033 = string("Circle");
  	}
  	zero {
  		value = 1;
    	name.1033 = string("Zero");
    }
	}
}

invis {
	id = "invs";  // 1030;
	name.1033 = string("Show invisible characters");
	bool
}

select_diac {
	id = "dsel";  // 1051;
	name.1033 = string("Diacritic selection");
	boolWDefTrue
}


#if SMALLCAPS
smallcaps {
	id = "smcp";  // 2000;
	name.1033 = string("Small Caps");
	bool
}

allcaps {
	id = "alcp";  // 2001;
	name.1033 = string("All Caps");
	bool
}
#endif // SMALLCAPS


#if DEBUG  
debug {
	id = "dsel";  // 1099;
	name.1033 = string("DeBuG");
	bool
}
#endif // DEBUG

endtable;


//////////////////////////////////////////////////////////////////////////////////////
//
//	Languages
//

table(language)

chinantec {
    languages = ( "chz" ); // Chinantec
    chinantec_tone = true;
};

romanian {
    languages = ( "ron" ); // Romanian
    rom = true;
};

vietnamese {
    languages = ( "vie" ); // Vietnamese
    viet = true;
};

bridgeDiacs {
    languages = (
        "tfr",	// Teribe (Panama)
        "kxw"	// Konai (PNG)
    );
    bridging_diac = true;
};

endtable;