-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathShimenkan.feax
1360 lines (1236 loc) · 58.6 KB
/
Shimenkan.feax
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
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@MARKTONES = [u16F91 u16F92];
@ALLTONES = [u16F8F u16F90 @MARKTONES];
@VOWELS = @cno_mark;
#@VOWEL_DESC = [u16F5F.mark u16F63.mark u16F64.mark u16F69.mark];
@VOWEL_DESC = [u16F63.mark u16F64.mark];
@VOWEL_TALL = [u16F5B u16F5C u16F5E u16F5F u16F60 u16F73 u16F74 u16F7D u16F7E u16F7F u16F80 u16F85];
@ASPMARKS = [u16F51.mark u16F52.mark];
@ASPALLMARKS = [@ASPMARKS u16F53.mark];
@ASP = [u16F51 u16F52];
@ASPALL = [@ASP u16F53];
@OPENFLOOR = [u16F07 u16F08 u16F09 u16F0A u16F0B u16F0C u16F0D u16F37 u16F38 u16F48 u16F49];
@OPENWAIST = [u16F07 u16F0E u16F0F u16F10 u16F11 u16F12 u16F16 u16F17 u16F2E u16F2F u16F30 u16F32 u16F47 u16F48 u16F4A];
@NMARKTONES = [@F u16F8F u16F90 @ASPALLMARKS @_H];
#@GHHAVOWELS = [u16F54.mark u16F56.mark u16F57.mark u16F58.mark u16F59.mark u16F5A.mark
# u16F5B.mark u16F5C.mark u16F5D.mark u16F5E.mark u16F5F.mark u16F60.mark u16F61.mark u16F62.mark u16F63.mark u16F66.mark
# u16F67.mark u16F68.mark u16F6A.mark u16F71.mark u16F72.mark u16F73.mark u16F74.mark u16F75.mark u16F76.mark u16F77.mark
# u16F78.mark u16F79.mark u16F7A.mark u16F7B.mark u16F7C.mark u16F7D.mark u16F7E.mark u16F7F.mark u16F80.mark u16F81.mark
# u16F82.mark u16F83.mark u16F84.mark u16F85.mark u16F86.mark];
@GHHAVOWELS = [u16F55.mark u16F64.mark u16F65.mark u16F69.mark u16F6B.mark u16F6C.mark u16F6D.mark u16F6E.mark
u16F6F.mark u16F70.mark u16F87.mark];
@UANCONS = [u16F00 u16F01 u16F04 u16F05 u16F07 u16F0A u16F0D u16F12 u16F16 u16F1E u16F1F u16F26 u16F28 u16F29 u16F2C u16F2E
u16F21 u16F33 u16F35 u16F37 u16F38 u16F39 u16F3A u16F43 u16F44 u16F46];
@L_4F = [u16F0E_u16F4F u16F10_u16F4F];
@L_no4F = [u16F0E u16F10];
@c_mark = [@c_mark u16F57.mark.open u16F58.mark.lpo u16F5E.mark.hmdd u16F5F.mark.hmdd u16F7A.mark.point];
@cno_mark = [@cno_mark u16F57.open u16F58.lpo u16F5E.hmdd u16F5F.hmdd u16F7A.point];
do let c = feaclass("W");
let subc = filter(lambda g: int(re.sub(r"^u([0-9a-fA-F]+)([._].*)?$", r"\1", g), 16) < 0x16F51, c);
let l = " ".join(subc);
{ @Cons = [ $l ]; }
lookup error_circle {
sub u16F51 by circledotted u16F51;
sub u16F52 by circledotted u16F52;
sub u16F53 by circledotted u16F53;
} error_circle;
lookup error_check {
ignore sub @Cons [@ASP u16F53]' @Cons;
sub [@ASP u16F53]' lookup error_circle @Cons;
} error_check;
lookup hide_tones {
sub @c_visible by @cno_visible;
} hide_tones;
lookup vowel_marks {
sub @cno_mark by @c_mark;
} vowel_marks;
lookup asp_marks {
sub @ASP by @ASPMARKS;
sub u16F53 by u16F53.mark;
} asp_marks;
lookup asp_vowel_vowel {
sub u16F51 @cno_mark by @c_mark;
sub u16F52 @cno_mark by @c_mark;
sub u16F53 @cno_mark by @c_mark;
} asp_vowel_vowel;
lookup asp_tone_asp {
sub u16F51 @MARKTONES by u16F51;
sub u16F52 @MARKTONES by u16F52;
sub u16F53 @MARKTONES by u16F53;
} asp_tone_asp;
lookup tone_t_asp1_t {
sub u16F91 by u16F91 u16F51 u16F91;
sub u16F92 by u16F92 u16F51 u16F92;
} tone_t_asp1_t;
lookup tone_t_asp2_t {
sub u16F91 by u16F91 u16F52 u16F91;
sub u16F92 by u16F92 u16F52 u16F92;
} tone_t_asp2_t;
lookup tone_t_asp3_t {
sub u16F91 by u16F91 u16F53 u16F91;
sub u16F92 by u16F92 u16F53 u16F92;
} tone_t_asp3_t;
lookup lig_4F {
sub @L_no4F u16F4F by @L_4F;
} lig_4F;
# Break after tone. There are two cursive attachment behaviours. In the first you
# mark the first base and it attaches forward. In the second you apply the lookup to
# the second and it attaches back to the first. If a type 2 lookup reference is executed
# in a type 1 machine, then a future character may be pulled in to attach to us, rather
# than we attach to something else. We insert a block to stop this.
@NonAttaches = [u16F8F u16F90 u16F91 u16F92];
lookup block_W {
sub @NonAttaches by @NonAttaches ZWNBS;
sub @W by @W ZWNBS;
} block_W;
lookup block_W_context {
sub @NonAttaches' lookup block_W @Cons;
sub @W' lookup block_W @Cons @WB @MARKTONES;
sub @W' lookup block_W @Cons @WB @WB @MARKTONES;
sub @W' lookup block_W @Cons @WB @WB @WB @MARKTONES;
} block_W_context;
lookup choose_vowel_marks_sfm {
# ASP is spacing for shoulder
ignore sub @ASP' @cno_mark @cno_mark @cno_mark u16F90;
ignore sub @ASP' @cno_mark @cno_mark u16F90;
ignore sub @ASP' @cno_mark u16F90;
ignore sub @ASP' @cno_mark @cno_mark @cno_mark u16F8F;
ignore sub @ASP' @cno_mark @cno_mark u16F8F;
ignore sub @ASP' @cno_mark u16F8F;
ignore sub u16F52' @cno_mark u16F92;
ignore sub u16F52' @cno_mark @cno_mark u16F92;
ignore sub u16F52' @cno_mark @cno_mark @cno_mark u16F92;
# ASP is spacing and comes after mark vowels
sub u16F51' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp1_t u16F91' lookup asp_tone_asp;
sub u16F51' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp1_t u16F91' lookup asp_tone_asp;
sub u16F51' lookup asp_vowel_vowel @cno_mark' lookup tone_t_asp1_t u16F91' lookup asp_tone_asp;
sub u16F52' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp2_t u16F91' lookup asp_tone_asp;
sub u16F52' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp2_t u16F91' lookup asp_tone_asp;
sub u16F52' lookup asp_vowel_vowel @cno_mark' lookup tone_t_asp2_t u16F91' lookup asp_tone_asp;
sub u16F53' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp3_t u16F91' lookup asp_tone_asp;
sub u16F53' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp3_t u16F91' lookup asp_tone_asp;
sub u16F53' lookup asp_vowel_vowel @cno_mark' lookup tone_t_asp3_t u16F91' lookup asp_tone_asp;
# ASP if followed by a vowel is a mark
sub @ASP' lookup asp_marks @cno_mark;
sub u16F53' lookup asp_marks @cno_mark @cno_mark @cno_mark [u16F8F u16F90];
sub u16F53' lookup asp_marks @cno_mark @cno_mark [u16F8F u16F90];
sub u16F53' lookup asp_marks @cno_mark [u16F8F u16F90];
# normal vowel mark replacement
sub @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks u16F91;
sub @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks u16F91;
sub @cno_mark' lookup vowel_marks u16F91;
} choose_vowel_marks_sfm;
lookup choose_vowel_marks {
# ASP is spacing for shoulder
ignore sub @ASP' @cno_mark @cno_mark @cno_mark u16F90;
ignore sub @ASP' @cno_mark @cno_mark u16F90;
ignore sub @ASP' @cno_mark u16F90;
ignore sub @ASP' @VOWEL_TALL @cno_mark @cno_mark u16F8F;
ignore sub @ASP' @VOWEL_TALL @cno_mark u16F8F;
ignore sub @ASP' @VOWEL_TALL u16F8F;
# ASP is spacing and comes after mark vowels
sub u16F51' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp1_t @MARKTONES' lookup asp_tone_asp;
sub u16F51' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp1_t @MARKTONES' lookup asp_tone_asp;
sub u16F51' lookup asp_vowel_vowel @cno_mark' lookup tone_t_asp1_t @MARKTONES' lookup asp_tone_asp;
sub u16F52' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp2_t @MARKTONES' lookup asp_tone_asp;
sub u16F52' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp2_t @MARKTONES' lookup asp_tone_asp;
sub u16F52' lookup asp_vowel_vowel @cno_mark' lookup tone_t_asp2_t @MARKTONES' lookup asp_tone_asp;
sub u16F53' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp3_t @MARKTONES' lookup asp_tone_asp;
sub u16F53' lookup asp_vowel_vowel @cno_mark' lookup vowel_marks @cno_mark' lookup tone_t_asp3_t @MARKTONES' lookup asp_tone_asp;
sub u16F53' lookup asp_vowel_vowel @cno_mark' lookup tone_t_asp3_t @MARKTONES' lookup asp_tone_asp;
# ASP if followed by a vowel is a mark
sub @ASP' lookup asp_marks @cno_mark;
sub u16F53' lookup asp_marks @cno_mark @cno_mark @cno_mark [u16F8F u16F90];
sub u16F53' lookup asp_marks @cno_mark @cno_mark [u16F8F u16F90];
sub u16F53' lookup asp_marks @cno_mark [u16F8F u16F90];
# normal vowel mark replacement
sub @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @MARKTONES;
sub @cno_mark' lookup vowel_marks @cno_mark' lookup vowel_marks @MARKTONES;
sub @cno_mark' lookup vowel_marks @MARKTONES;
} choose_vowel_marks;
# While block_W_context stops most inadvertant attachments, we still need to handle
# where there is no tone mark. For this we could simply put a zwsp before every consonant
# But then we fall foul of the ligature problem and can't attach to the second in a
# one to many replacement.
@preCons = [@WB u16F51 u16F52];
lookup insert_zwsp {
sub @preCons by @preCons ZWNBS;
} insert_zwsp;
lookup block_cursive {
ignore sub ZWNBS @Cons;
sub @preCons' lookup insert_zwsp @Cons;
} block_cursive;
do for l = [ygp ywqa narrow hmdd flat point open lpo dot];
let n = "@cno_" + l;
let c = "@c_" + l;
let l = "lig_" + l;
{
lookup $l {
sub $n by $c;
} $l;
}
lookup left_asp_ma {
lookupflag UseMarkFilteringSet @ASPALLMARKS;
sub u16F04 u16F51 by u16F04_u16F51;
sub u16F04 u16F51.mark by u16F04_u16F51;
} left_asp_ma;
lookup left_asp_na {
lookupflag UseMarkFilteringSet @ASPALLMARKS;
sub u16F10 u16F51 by u16F10_u16F51;
sub u16F10 u16F51.mark by u16F10_u16F51;
} left_asp_na;
lookup left_asp_nga {
lookupflag UseMarkFilteringSet @ASPALLMARKS;
sub u16F23 u16F51 by u16F23_u16F51;
sub u16F23 u16F51.mark by u16F23_u16F51;
} left_asp_nga;
languagesystem DFLT dflt;
languagesystem DFLT HMD;
languagesystem DFLT HMDD;
languagesystem DFLT HMZ;
languagesystem DFLT LPO;
languagesystem DFLT SFM;
languagesystem DFLT YGP;
languagesystem DFLT YWQA;
languagesystem DFLT YWQB;
feature rlig {
lookup error_check;
lookup hide_tones;
lookup lig_4F;
lookup choose_vowel_marks;
lookup block_W_context;
lookup block_cursive;
language SFM exclude_dflt;
lookup error_check;
lookup hide_tones;
lookup lig_4F;
lookup choose_vowel_marks_sfm;
lookup block_W_context;
lookup block_cursive;
} rlig;
feature locl {
script DFLT;
language dflt;
language YGP exclude_dflt;
lookup lig_ygp;
lookup lig_narrow;
language SFM exclude_dflt;
lookup lig_point;
lookup left_asp_ma;
lookup left_asp_na;
language HMZ exclude_dflt;
lookup lig_point;
lookup left_asp_ma;
lookup left_asp_na;
lookup left_asp_nga;
lookup lig_open;
language YWQA exclude_dflt;
lookup lig_narrow;
# lookup lig_flat;
lookup lig_ywqa;
language HMD exclude_dflt;
lookup lig_open;
lookup lig_point;
language LPO exclude_dflt;
lookup lig_lpo;
lookup lig_flat;
lookup lig_open;
language YWQB exclude_dflt;
lookup lig_narrow;
lookup lig_flat;
language HMDD exclude_dflt;
lookup lig_hmdd;
lookup lig_dot;
lookup lig_open;
lookup lig_point;
} locl;
feature ss01 {
lookup left_asp_na;
} ss01;
######################
# Attaching
######################
do let w = " ".join(x for x in feaclass('WB') if x not in ('u16F51', 'u16F52'));
{ @pureWB = [$w]; }
do let w = " ".join(x for x in feaclass('W') if x[4] not in ('5', '6', '7', '8'));
{ @pureW = [$w]; }
#############
# Simulate a spacing mark if we can
# Add space to the mark to increase to width of base + asp
# Split them into one lookup per base of interest.
# Much of the need for these functions is due to a bug in python 3 that list expressions
# or lambdas can't reference imported locals, which is how the previously calculated
# values are passed in. So we have to do all the work in a function call.
# Return whether this base has any marks that need protrude beyond the asp by
# greater than the width of the thinnest vowel if it weren't kerned back.
def needslookup(c, fn) {
for m in feaclass(c):
if fn(m) != 0:
return True
return False
} needslookup;
# Create all the positioning adjustment rules for a lookup
# And cache them so can map multiple bases to the same lookup
# Saves some 11 lookups out of 24 (for a potential 35 without caching)
def makerules(lname, c, fn, fmt, cname="base") {
if not hasattr(makerules, 'cache'):
makerules.cache = {}
makerules.namemap = {}
if cname not in makerules.cache:
makerules.cache[cname] = {}
makerules.namemap[cname] = {}
res = []
for m in feaclass(c):
s = fn(m)
if s != 0:
res.append(fmt.format(g=m, s=s)+";")
fres = (lf()+" ").join(res)
if fres not in makerules.cache[cname]:
makerules.cache[cname][fres] = lname
makerules.namemap[cname][lname] = makerules.cache[cname][fres]
# already in the cache under another name
if makerules.cache[cname][fres] != lname:
return ""
else:
return fres
} makerules;
def getlname(lname, cname="base") {
return makerules.namemap[cname].get(lname, lname)
} getlname;
# Create a contextual lookup that calls one lookup per base of interest
do for w = @pureW;
let o = ADVx(w) - APx(w, 'W') + ADVx('u16F51');
let lname = "space_waist_" + w;
let fn = lambda m: max(o - ADVx(m), 0);
let e = makerules(lname, 'pureWB', fn, "pos {g} {s:d}");
if needslookup('pureWB', fn) and e != "";
{
lookup $lname {
$e;
} $lname;
}
# Create the lookups for all the bases of interest.
lookup space_waist_kern_W {
do for w = @pureW;
let o = ADVx(w) - APx(w, 'W') + ADVx('u16F51');
let fn = lambda m: max(o - ADVx(m), 0);
let lname = getlname("space_waist_" + w);
if needslookup('pureWB', fn);
{
pos $w' @ASPALLMARKS' @WB' lookup $lname u16F8F;
}
} space_waist_kern_W;
do for a = [EE KK FF SS WW FR SR ST SRT];
let n = "cursive_attach_" + (a if a[1] in "RT" else a[0]);
let b = "@" + a[0] + "B" + a[1:] if a[1] in "RT" else "@" + a[0] + "B";
let c = "@" + a if a[1] in "RT" else "@" + a[0];
{
lookup $n {
lookupflag IgnoreMarks;
pos cursive $b $c;
} $n;
}
lookup cursive_attach_WR {
lookupflag IgnoreMarks;
do for b = @W;
let exx = ADVx(b);
let exy = APy(b, "W");
{
pos cursive $b <anchor NULL> <anchor $exx $exy>;
}
do for b = @WB;
let exx = APx(b, "W");
let exy = APy(b, "W");
let enx = APx(b, "WB");
let eny = APy(b, "WB");
{
pos cursive $b <anchor $enx $eny> <anchor $exx $exy>;
}
} cursive_attach_WR;
def cursive_rules(ap) {
res = []
for b in feaclass(ap):
# if b == "u16F2E":
# print("{}: {}+{} {}={} SR={}, u16F51 S={} SB={}".format(info("postscriptFontName"), b, ADVx(b), ap, APx(b, ap), APx(b, "SR"), APx("u16F51", "S"), APx("u16F51", "SB")))
exitx = APx("u16F51", "S") - APx("u16F51", "SB") + APx(b, "SR", ADVx(b))
exity = APy(b, ap)
res.append("pos cursive {} <anchor NULL> <anchor {} {}>;".format(b, exitx, exity))
for d in feaclass(ap+"B"):
res.append("pos cursive {} <anchor {} {}> <anchor {} {}>;".format(d, APx(d, ap+"B"), APy(d, ap+"B"), APx(d, ap), APy(d, ap)))
return " " + "\n ".join(res)
} cursive_rules;
do for a = [K F W];
let n = "asp_curs_"+a;
let r = cursive_rules(a);
{
lookup $n {
lookupflag IgnoreMarks;
$r;
} $n;
}
#############
# 4 lookups to do spacing marks for spacing of head and foot vowel sequences
# Limit this to narrow bases
do let h = " ".join(g for g in feaclass('H') if (ADVx(g) - APx(g, "H")) < ADVx('u16F64'));
{ @narrowHRight = [$h]; }
do let h = " ".join(g for g in feaclass('H') if APx(g, "H") < ADVx('u16F64'));
{ @narrowHLeft = [$h]; }
do let h = " ".join(g for g in feaclass('H') if (ADVx(g) - APx(g, "H")) < 0.5 * ADVx('u16F64'));
{ @vnarrowHRight = [$h]; }
do let h = " ".join(g for g in feaclass('H') if APx(g, "H") < 0.5 * ADVx('u16F64'));
{ @vnarrowHLeft = [$h]; }
do let h = " ".join(g for g in feaclass('H') if (ADVx(g) - APx(g, "H")) < 1.5 * ADVx('u16F64'));
{ @wnarrowHRight = [$h]; }
do let h = " ".join(g for g in feaclass('H') if APx(g, "H") < 1.5 * ADVx('u16F64'));
{ @wnarrowHLeft = [$h]; }
do let h = " ".join(g for g in feaclass('F') if (ADVx(g) - APx(g, "F")) < ADVx('u16F64'));
{ @narrowFRight = [$h]; }
do let h = " ".join(g for g in feaclass('F') if APx(g, "F") < ADVx('u16F64'));
{ @narrowFLeft = [$h]; }
do let h = " ".join(g for g in feaclass('F') if (ADVx(g) - APx(g, "F")) < 0.5 * ADVx('u16F64'));
{ @vnarrowFRight = [$h]; }
do let h = " ".join(g for g in feaclass('F') if APx(g, "F") < 0.5 * ADVx('u16F64'));
{ @vnarrowFLeft = [$h]; }
do let h = " ".join(g for g in feaclass('F') if (ADVx(g) - APx(g, "F")) < 1.5 * ADVx('u16F64'));
{ @wnarrowFRight = [$h]; }
do let h = " ".join(g for g in feaclass('F') if APx(g, "F") < 1.5 * ADVx('u16F64'));
{ @wnarrowFLeft = [$h]; }
# Add space to previously inserted zwsp for width of first component
# and base for last component
lookup space_pairlefthead {
do for h = @_H;
let t = ADVx(h);
{
pos @wnarrowHLeft <$t 0 $t 0> $h 0;
}
} space_pairlefthead;
lookup space_pairhalflefthead {
do for h = @_H;
let t = int(ADVx(h)/2);
{
pos @wnarrowHLeft <$t 0 $t 0> $h 0;
}
} space_pairhalflefthead;
lookup space_pairrighthead {
do for h = @_H;
let t = ADVx(h);
{
pos @wnarrowHLeft $t $h 0;
}
} space_pairrighthead;
lookup space_pairhalfrighthead {
do for h = @_H;
let t = int(ADVx(h)/2);
{
pos @wnarrowHLeft $t $h 0;
}
} space_pairhalfrighthead;
lookup space_pairleftfoot {
do for h = @_F;
let t = ADVx(h);
{
pos @wnarrowFLeft <$t 0 $t 0> $h 0;
}
} space_pairleftfoot;
lookup space_pairhalfleftfoot {
do for h = @_F;
let t = int(ADVx(h)/2);
{
pos @wnarrowFLeft <$t 0 $t 0> $h 0;
}
} space_pairhalfleftfoot;
lookup space_pairrightfoot {
do for h = @_F;
let t = ADVx(h);
{
pos @wnarrowFLeft $t $h 0;
}
} space_pairrightfoot;
lookup space_pairhalfrightfoot {
do for h = @_F;
let t = int(ADVx(h)/2);
{
pos @wnarrowFLeft $t $h 0;
}
} space_pairhalfrightfoot;
lookup space_leftheadfoot {
ignore pos @NMARKTONES @wnarrowHLeft';
pos @vnarrowHLeft' lookup space_pairhalflefthead @_H' u16F91;
pos @narrowHLeft' lookup space_pairlefthead @_H' @_H u16F91;
pos @wnarrowHLeft' lookup space_pairlefthead @_H' @_H @_H u16F91;
pos @vnarrowFLeft' lookup space_pairhalfleftfoot @_F' u16F92;
pos @narrowFLeft' lookup space_pairleftfoot @_F' @_F u16F92;
pos @wnarrowFLeft' lookup space_pairleftfoot @_F' @_F @_F u16F92;
} space_leftheadfoot;
lookup space_rightheadfoot {
pos @vnarrowHRight' lookup space_pairhalfrighthead @_H' u16F91 ZWNBS @H @_H u16F91;
pos @vnarrowHRight' lookup space_pairhalfrighthead @_H' u16F91 ZWNBS @H @_H @_H u16F91;
pos @vnarrowHRight' lookup space_pairhalfrighthead @_H' u16F91 ZWNBS @H @_H @_H @_H u16F91;
pos @vnarrowFRight' lookup space_pairhalfrightfoot @_F' u16F92 ZWNBS @F @_F u16F92;
pos @vnarrowFRight' lookup space_pairhalfrightfoot @_F' u16F92 ZWNBS @F @_F @_F u16F92;
pos @vnarrowFRight' lookup space_pairhalfrightfoot @_F' u16F92 ZWNBS @F @_F @_F @_F u16F92;
ignore pos @vnarrowHRight' @_H u16F91 ZWNBS;
ignore pos @vnarrowHRight' @_F u16F92 ZWNBS;
pos @vnarrowHRight' lookup space_pairhalfrighthead @_H' u16F91;
pos @vnarrowFRight' lookup space_pairhalfrightfoot @_F' u16F92;
} space_rightheadfoot;
# Add half the centre width to both sides
lookup adv_pairhalfrighthead {
do for h = @_H;
let t = int(ADVx(h) / 2);
{
pos @wnarrowHRight' $t @_H $h;
}
} adv_pairhalfrighthead;
lookup adv_pairrighthead {
do for h = @_H;
let t = ADVx(h);
{
pos @wnarrowHRight' $t @_H $h;
}
} adv_pairrighthead;
lookup adv_lefthead {
ignore pos @NMARKTONES @narrowHLeft';
do for h = @_H;
let t = ADVx(h);
let s = int(t/2);
{
pos @wnarrowHLeft' <$s 0 $s 0> @_H $h @_H @MARKTONES;
}
} adv_lefthead;
lookup adv_pairhalfrightfoot {
do for h = @_F;
let t = int(ADVx(h) / 2);
{
pos @wnarrowFRight' $t @_F $h;
}
} adv_pairhalfrightfoot;
lookup adv_pairrightfoot {
do for h = @_F;
let t = ADVx(h);
{
pos @wnarrowFRight' $t @_F $h;
}
} adv_pairrightfoot;
lookup adv_leftfoot {
ignore pos @NMARKTONES @narrowFLeft';
do for h = @_F;
let t = ADVx(h);
let s = int(t/2);
{
pos @wnarrowFLeft' <$s 0 $s 0> @_F $h @_F @MARKTONES;
}
} adv_leftfoot;
lookup adv_rightheadfoot {
pos @narrowHRight' lookup adv_pairrighthead @_H' @_H' u16F91 ZWNBS @H @_H u16F91;
pos @narrowHRight' lookup adv_pairrighthead @_H' @_H' u16F91 ZWNBS @H @_H @_H u16F91;
pos @narrowHRight' lookup adv_pairrighthead @_H' @_H' u16F91 ZWNBS @H @_H @_H @_H u16F91;
pos @narrowHRight' lookup adv_pairhalfrighthead @_H' @_H' @_H u16F91 ZWNBS @H @_H u16F91;
pos @narrowHRight' lookup adv_pairhalfrighthead @_H' @_H' @_H u16F91 ZWNBS @H @_H @_H u16F91;
pos @narrowHRight' lookup adv_pairhalfrighthead @_H' @_H' @_H u16F91 ZWNBS @H @_H @_H @_H u16F91;
pos @narrowFRight' lookup adv_pairrightfoot @_F' @_F' u16F92 ZWNBS @F @_F u16F92;
pos @narrowFRight' lookup adv_pairrightfoot @_F' @_F' u16F92 ZWNBS @F @_F @_F u16F92;
pos @narrowFRight' lookup adv_pairrightfoot @_F' @_F' u16F92 ZWNBS @F @_F @_F @_F u16F92;
pos @narrowFRight' lookup adv_pairhalfrightfoot @_F' @_F' @_F u16F92 ZWNBS @F @_F u16F92;
pos @narrowFRight' lookup adv_pairhalfrightfoot @_F' @_F' @_F u16F92 ZWNBS @F @_F @_F u16F92;
pos @narrowFRight' lookup adv_pairhalfrightfoot @_F' @_F' @_F u16F92 ZWNBS @F @_F @_F @_F u16F92;
ignore pos @narrowHRight' @_H @_H u16F91 ZWNBS;
ignore pos @narrowHRight' @_H @_H @_H u16F91 ZWNBS;
ignore pos @narrowFRight' @_F @_F u16F92 ZWNBS;
ignore pos @narrowFRight' @_F @_F @_F u16F92 ZWNBS;
pos @narrowHRight' lookup adv_pairrighthead @_H' @_H' u16F91;
pos @narrowHRight' lookup adv_pairhalfrighthead @_H' @_H' @_H u16F91;
pos @narrowFRight' lookup adv_pairrightfoot @_F' @_F' u16F92;
pos @narrowFRight' lookup adv_pairhalfrightfoot @_F' @_F' @_F u16F92;
} adv_rightheadfoot;
lookup adv_extrapairhead {
do for h = @_H;
let t = ADVx(h);
{
pos @wnarrowHRight' $t @_H @_H $h;
}
} adv_extrapairhead;
lookup adv_extrapairfoot {
do for h = @_F;
let t = ADVx(h);
{
pos @wnarrowFRight' $t @_F @_F $h;
}
} adv_extrapairfoot;
lookup adv_extra_headfoot {
pos @wnarrowHRight' lookup adv_extrapairhead @_H' @_H' @_H' u16F91 ZWNBS @H @_H u16F91;
pos @wnarrowHRight' lookup adv_extrapairhead @_H' @_H' @_H' u16F91 ZWNBS @H @_H @_H u16F91;
pos @wnarrowHRight' lookup adv_extrapairhead @_H' @_H' @_H' u16F91 ZWNBS @H @_H @_H @_H u16F91;
pos @wnarrowFRight' lookup adv_extrapairfoot @_F' @_F' @_F' u16F92 ZWNBS @F @_F u16F92;
pos @wnarrowFRight' lookup adv_extrapairfoot @_F' @_F' @_F' u16F92 ZWNBS @F @_F @_F u16F92;
pos @wnarrowFRight' lookup adv_extrapairfoot @_F' @_F' @_F' u16F92 ZWNBS @F @_F @_F @_F u16F92;
ignore pos @wnarrowHRight' @_H @_H @_H u16F91 ZWNBS;
ignore pos @wnarrowFRight' @_F @_F @_F u16F92 ZWNBS;
pos @wnarrowHRight' lookup adv_extrapairhead @_H' @_H' @_H' u16F91;
pos @wnarrowFRight' lookup adv_extrapairfoot @_F' @_F' @_F' u16F92;
} adv_extra_headfoot;
# Now take away half the width of the base from both
lookup base_headshift {
do for b = @wnarrowHLeft;
let s = -APx(b, "H");
{
pos $b' <$s 0 $s 0>;
}
} base_headshift;
lookup base_headadv {
do for b = @wnarrowHRight;
let s = APx(b, "H") - ADVx(b);
{
pos $b' $s;
}
} base_headadv;
lookup base_footshift {
do for b = @wnarrowFLeft;
let s = -APx(b, "F");
{
pos $b' <$s 0 $s 0>;
}
} base_footshift;
lookup base_footadv {
do for b = @wnarrowFRight;
let s = APx(b, "F") - ADVx(b);
{
pos $b' $s;
}
} base_footadv;
lookup base_leftheadfoot {
ignore pos @NMARKTONES @wnarrowHLeft';
pos @vnarrowHLeft' lookup base_headshift @_H u16F91;
pos @narrowHLeft' lookup base_headshift @_H @_H u16F91;
pos @wnarrowHLeft' lookup base_headshift @_H @_H @_H u16F91;
pos @vnarrowFLeft' lookup base_footshift @_F u16F92;
pos @narrowFLeft' lookup base_footshift @_F @_F u16F92;
pos @wnarrowFLeft' lookup base_footshift @_F @_F @_F u16F92;
} base_leftheadfoot;
lookup base_rightheadfoot {
pos @vnarrowHRight' lookup base_headadv @_H u16F91 ZWNBS @H @_H u16F91;
pos @vnarrowHRight' lookup base_headadv @_H u16F91 ZWNBS @H @_H @_H u16F91;
pos @vnarrowHRight' lookup base_headadv @_H u16F91 ZWNBS @H @_H @_H @_H u16F91;
pos @vnarrowHRight' lookup base_headadv @_H u16F92 ZWNBS @H @_H u16F92;
pos @vnarrowHRight' lookup base_headadv @_H u16F92 ZWNBS @H @_H @_H u16F92;
pos @vnarrowHRight' lookup base_headadv @_H u16F92 ZWNBS @H @_H @_H @_H u16F92;
pos @narrowHRight' lookup base_headadv @_H @_H u16F91 ZWNBS @H @_H u16F91;
pos @narrowHRight' lookup base_headadv @_H @_H u16F91 ZWNBS @H @_H @_H u16F91;
pos @narrowHRight' lookup base_headadv @_H @_H u16F91 ZWNBS @H @_H @_H @_H u16F91;
pos @narrowFRight' lookup base_footadv @_F @_F u16F92 ZWNBS @F @_F u16F92;
pos @narrowFRight' lookup base_footadv @_F @_F u16F92 ZWNBS @F @_F @_F u16F92;
pos @narrowFRight' lookup base_footadv @_F @_F u16F92 ZWNBS @F @_F @_F @_F u16F92;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F91 ZWNBS @F @_F u16F91;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F91 ZWNBS @F @_F @_F u16F91;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F91 ZWNBS @F @_F @_F @_F u16F91;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F92 ZWNBS @F @_F u16F92;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F92 ZWNBS @F @_F @_F u16F92;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F92 ZWNBS @F @_F @_F @_F u16F92;
ignore pos @vnarrowHRight' @_H u16F91 ZWNBS;
ignore pos @narrowHRight' @_H @_H u16F91 ZWNBS;
ignore pos @wnarrowHRight' @_H @_H @_H u16F91 ZWNBS;
ignore pos @vnarrowHRight' @_H u16F92 ZWNBS;
ignore pos @narrowHRight' @_H @_H u16F92 ZWNBS;
ignore pos @wnarrowHRight' @_H @_H @_H u16F92 ZWNBS;
pos @vnarrowHRight' lookup base_headadv @_H u16F91;
pos @narrowHRight' lookup base_headadv @_H @_H u16F91;
pos @wnarrowHRight' lookup base_headadv @_H @_H @_H u16F91;
pos @vnarrowFRight' lookup base_footadv @_F u16F92;
pos @narrowFRight' lookup base_footadv @_F @_F u16F92;
pos @wnarrowFRight' lookup base_footadv @_F @_F @_F u16F92;
} base_rightheadfoot;
lookup spacekern_headfoot {
ignore pos @NMARKTONES @wnarrowHLeft';
pos u16F28' lookup space_leftheadfoot lookup space_rightheadfoot lookup base_leftheadfoot lookup base_rightheadfoot [@_H @_F]' @MARKTONES;
pos u16F29' lookup space_leftheadfoot lookup space_rightheadfoot lookup base_leftheadfoot lookup base_rightheadfoot @GHHAVOWELS' @MARKTONES;
pos @UANCONS' lookup space_leftheadfoot lookup space_rightheadfoot lookup base_leftheadfoot lookup base_rightheadfoot [u16F6C u16F6D]' @MARKTONES;
pos [@wnarrowHLeft @wnarrowFLeft]' lookup space_leftheadfoot lookup space_rightheadfoot lookup adv_rightheadfoot lookup base_leftheadfoot lookup base_rightheadfoot [@_H @_F]' [@_H @_F]' @MARKTONES;
pos [@wnarrowHLeft @wnarrowFLeft]' lookup space_leftheadfoot lookup space_rightheadfoot lookup adv_rightheadfoot lookup adv_extra_headfoot lookup base_leftheadfoot lookup base_rightheadfoot [@_H @_F]' [@_H @_F]' [@_H @_F]' @MARKTONES;
} spacekern_headfoot;
#############
#############
lookup asp_attach {
pos base @S mark @_SB;
} asp_attach;
lookup asp_attach_r {
pos base @SR mark @_SB;
} asp_attach_r;
lookup attach_F {
pos base @F mark @_F;
} attach_F;
lookup attach_head {
pos base @H mark @_H;
} attach_head;
lookup attach_head_D {
pos base @HD mark @_HD;
} attach_head_D;
lookup attach_head_L {
pos base @H mark @_HR;
} attach_head_L;
lookup attach_vowel_HR {
pos mark @_HL mark @_HR;
} attach_vowel_HR;
lookup attach_vowel_HL {
pos mark @_HR mark @_HL;
} attach_vowel_HL;
lookup attach_foot {
pos base @L mark @_L;
} attach_foot;
lookup attach_foot_L {
pos base @L mark @_LR;
} attach_foot_L;
lookup attach_vowel_LL {
pos mark @_LR mark @_LL;
} attach_vowel_LL;
# left shift vowels by fixed average width
# not per vowel since we want the left side of vowel
# sequence to be the same. Also all known 3 vowel sequences
# start with this character.
do let a = -int(ADVx("u16F61") / 2);
{
lookup left_shift_vowel {
pos @_H <$a 0 0 0>;
} left_shift_vowel;
}
#############
# remember cursive attachment must work both forwards and backwards
# lookups for basic vowel attachment, specifically W, H, L & F
lookup vowel_attach_basic {
# Used by: dflt, ywqa, lpo.
# No asp, tuck. With asp vowel(s) left to asp left.
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR u16F8F;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @L @_L' lookup attach_foot_L @_L @_L u16F92;
pos @L @_L' lookup attach_foot_L @_L' lookup attach_vowel_LL u16F92;
pos @L @_L' lookup attach_foot u16F92;
pos @S' lookup cursive_attach_S @ASP' lookup cursive_attach_S;
pos @F' lookup cursive_attach_FR @ASPALLMARKS' @FB' lookup cursive_attach_FR @FB' lookup cursive_attach_FR @FB' lookup cursive_attach_FR;
pos @F' lookup cursive_attach_FR @ASPALLMARKS' @FB' lookup cursive_attach_FR @FB' lookup cursive_attach_FR;
pos @F' lookup cursive_attach_FR @ASPALLMARKS' @FB' lookup cursive_attach_FR;
pos @F' @ASPALLMARKS' lookup asp_attach;
pos @F' lookup cursive_attach_F @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @F' lookup cursive_attach_F @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @F' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @SB @ASPMARKS' lookup asp_attach;
pos @F u16F53.mark' lookup attach_F;
} vowel_attach_basic;
lookup vowel_attach_hmz {
# no asp: tuck. F attach vowel(s) left to asp left. W tuck vowel(s)
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W u16F8F;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @L @_L' lookup attach_foot_L @_L @_L u16F92;
pos @L @_L' lookup attach_foot_L @_L' lookup attach_vowel_LL u16F92;
pos @L @_L' lookup attach_foot u16F92;
pos @S' lookup cursive_attach_S @ASP' lookup cursive_attach_S;
pos @F' lookup cursive_attach_FR @ASPALLMARKS' @FB' lookup cursive_attach_FR @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @F' lookup cursive_attach_FR @ASPALLMARKS' @FB' lookup cursive_attach_FR @FB' lookup cursive_attach_F;
pos @F' lookup cursive_attach_FR @ASPALLMARKS' @FB' lookup cursive_attach_FR;
pos @F' lookup asp_attach @ASPALLMARKS' lookup asp_attach;
pos @F' lookup cursive_attach_F @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @F' lookup cursive_attach_F @FB' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @F' lookup cursive_attach_F @FB' lookup cursive_attach_F;
pos @SB @ASPMARKS' lookup asp_attach;
pos @F u16F53.mark' lookup attach_F;
} vowel_attach_hmz;
# Attach F to FR, i.e. push right
lookup vowel_attach_hmdd {
# No asp: tuck. With asp attach vowel(s) left to asp left.
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @pureWB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @pureWB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @pureWB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR u16F8F;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @L @_L' lookup attach_foot_L @_L @_L u16F92;
pos @L @_L' lookup attach_foot_L @_L' lookup attach_vowel_LL u16F92;
pos @L @_L' lookup attach_foot u16F92;
pos @S' lookup cursive_attach_SR @ASP' lookup cursive_attach_SR;
pos @FR' lookup cursive_attach_FR @ASPALLMARKS' @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @FR' lookup cursive_attach_FR @ASPALLMARKS' @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @FR' lookup cursive_attach_FR @ASPALLMARKS' @FBR' lookup cursive_attach_FR;
pos @FR' @ASPALLMARKS' lookup asp_attach_r;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @SB @ASPMARKS' lookup asp_attach_r;
pos @FR u16F53.mark' lookup attach_F;
} vowel_attach_hmdd;
lookup vowel_attach_yna {
# No asp: tuck. With asp, attach single vowel right to asp right. Asp with multiples vowels: tuck
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_WR @ASPALLMARKS' @WB' lookup cursive_attach_WR u16F8F;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @L @_L' lookup attach_foot_L @_L @_L u16F92;
pos @L @_L' lookup attach_foot_L @_L' lookup attach_vowel_LL u16F92;
pos @L @_L' lookup attach_foot u16F92;
pos @S' lookup cursive_attach_SR @ASP' lookup cursive_attach_SR;
pos @FR' lookup cursive_attach_F @ASPALLMARKS' @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_F @ASPALLMARKS' @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_FR @ASPALLMARKS' @FBR' lookup cursive_attach_FR;
pos @FR' @ASPALLMARKS' lookup asp_attach_r;
pos @FR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @SB @ASPMARKS' lookup asp_attach_r;
pos @FR u16F53.mark' lookup attach_F;
} vowel_attach_yna;
# Use E & K instead of W & L
lookup vowel_attach_sfm {
# No asp: no tuck, align with rhs. Asp attach left of vowel(s) to right of asp.
pos @E' @ASP' lookup cursive_attach_E @WB' lookup cursive_attach_E @WB' lookup cursive_attach_E @WB' lookup cursive_attach_E u16F8F;
pos @E' @ASP' lookup cursive_attach_E @WB' lookup cursive_attach_E @WB' lookup cursive_attach_E u16F8F;
pos @E' @ASP' lookup cursive_attach_E @WB' lookup cursive_attach_E u16F8F;
pos @E' lookup cursive_attach_E @WB' lookup cursive_attach_E @WB' lookup cursive_attach_E @WB' lookup cursive_attach_E u16F8F;
pos @E' lookup cursive_attach_E @WB' lookup cursive_attach_E @WB' lookup cursive_attach_E u16F8F;
pos @E' lookup cursive_attach_E @WB' lookup cursive_attach_E u16F8F;
pos @K' lookup cursive_attach_K @WB' lookup cursive_attach_K @WB' lookup cursive_attach_K @WB' lookup cursive_attach_K u16F92;
pos @K' lookup cursive_attach_K @WB' lookup cursive_attach_K @WB' lookup cursive_attach_K u16F92;
pos @K' lookup cursive_attach_K @WB' lookup cursive_attach_K u16F92;
pos @K' lookup asp_curs_K @ASPALLMARKS' @WB' lookup asp_curs_K @WB' lookup cursive_attach_K @WB' lookup cursive_attach_K u16F92;
pos @K' lookup asp_curs_K @ASPALLMARKS' @WB' lookup asp_curs_K @WB' lookup cursive_attach_K u16F92;
pos @K' lookup asp_curs_K @ASPALLMARKS' @WB' lookup asp_curs_K u16F92;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @S' lookup cursive_attach_SR @ASP' lookup cursive_attach_SR;
pos @FR' lookup asp_curs_F @ASPALLMARKS' @FBR' lookup asp_curs_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup asp_curs_F @ASPALLMARKS' @FBR' lookup asp_curs_F @FBR' lookup cursive_attach_F;
pos @FR' lookup asp_curs_F @ASPALLMARKS' @FBR' lookup asp_curs_F;
pos @FR' @ASPALLMARKS' lookup asp_attach_r;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @SB @ASPMARKS' lookup asp_attach_r;
pos @FR u16F53.mark' lookup attach_F;
} vowel_attach_sfm;
lookup vowel_attach_ygp {
# No asp: no tuck, attach right hand of consonant. With asp attach left of vowel(s) to right of asp.
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR @WB' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR @WB' lookup cursive_attach_WR u16F8F;
pos @W' @ASP' lookup cursive_attach_WR @VOWEL_TALL' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_WR @pureWB' lookup cursive_attach_WR @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_WR @pureWB' lookup cursive_attach_WR @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_WR @pureWB' lookup cursive_attach_WR u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup asp_curs_W @ASPALLMARKS' @WB' lookup asp_curs_W u16F8F;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @L @_L' lookup attach_foot_L @_L @_L u16F92;
pos @L @_L' lookup attach_foot_L @_L' lookup attach_vowel_LL u16F92;
pos @L @_L' lookup attach_foot u16F92;
pos @S' lookup cursive_attach_SR @ASP' lookup cursive_attach_SR;
pos @FR' lookup asp_curs_F @ASPALLMARKS' @FBR' lookup asp_curs_F @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @FR' lookup asp_curs_F @ASPALLMARKS' @FBR' lookup asp_curs_F @FBR' lookup cursive_attach_F;
pos @FR' lookup asp_curs_F @ASPALLMARKS' @FBR' lookup asp_curs_F;
pos @FR' @ASPALLMARKS' lookup asp_attach_r;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_FR @FBR' lookup cursive_attach_FR;
pos @SB @ASPMARKS' lookup asp_attach_r;
pos @FR u16F53.mark' lookup attach_F;
} vowel_attach_ygp;
lookup vowel_attach_hmd {
# No asp: tuck. With asp align right of F vowel to right of asp. All else tuck
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' @ASP' lookup cursive_attach_W @VOWEL_TALL' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @pureWB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W @WB' lookup cursive_attach_W u16F8F;
pos @W' lookup cursive_attach_W @ASPALLMARKS' @WB' lookup cursive_attach_W u16F8F;
pos @H @_H' lookup attach_head_L @_H @_H u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @_H' lookup attach_head_L @_H' lookup attach_vowel_HL u16F91;
pos @H @VOWEL_DESC' lookup attach_head_D u16F91;
pos @H @_H' lookup attach_head u16F91;
pos @L @_L' lookup attach_foot_L @_L @_L u16F92;
pos @L @_L' lookup attach_foot_L @_L' lookup attach_vowel_LL u16F92;
pos @L @_L' lookup attach_foot u16F92;
pos @S' lookup cursive_attach_S @ASP' lookup cursive_attach_S;
pos @FR' lookup cursive_attach_F @ASPALLMARKS' @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_F @ASPALLMARKS' @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_FR @ASPALLMARKS' @FBR' lookup cursive_attach_FR;
pos @FR' @ASPALLMARKS' lookup asp_attach;
pos @FR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_F @FBR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;
pos @FR' lookup cursive_attach_F @FBR' lookup cursive_attach_F;