summaryrefslogtreecommitdiff
path: root/fonts/dice/dice3d.mf
blob: 2e57a6c8648c4c8358cea7a59b5797498a2deb19 (plain)
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
%    DICE3D.MF   
%
%  by Thomas A. Heim (1998)
%
%  3D-look for dice; works reasonably well only in display size 20pt and up
%
%  2D-pictures are characters 1,2,3,4,5,6;
%  3D-pictures are characters "a" through "x", 
%              but they're accessible using ligatures #a, #b, #c, #d,
%              where # is the value on the top face, and
%              the letter indicates one of the four possible
%              values on the front face: "a" -> smallest, "d" -> largest
% 
%              alternatively, there are ligature tables so that
%              the letters run from "a" to "f", indicating 1 to 6 dots
%              on the front face 
%
%              (you can change the lig table at the end of the file)
% 
%  LICENSE: LPPL
%

% change this to get a different size
size_in_points = 30;

mode_setup;

% autorounding := 0;   %  no need to shut off autorounding 
% smoothing := 0;      %     or smoothing

%  define the unit size
un#=(size_in_points/10) * pt#;
define_whole_pixels(un);

font_normal_space 3un#;

% amount of space to the left and right of dice box;
% if you change this, also change the 2nd parameter to
% beginchar for each character
sb = .5 un;

% size of dots on front face
DotSize = .8un;        

% width and height of front face
face_width = 8un;
face_height = 8un;

%  amount of rounding at corners
dice_c = 1.3DotSize;  

%  transformations front -> side, front -> top, scale with 1/sqrt(8):
sqrt_eight = 0.35355339;

%  scaled dot diagonal
dot_xy = sqrt_eight*DotSize;

%  define the affine transformations front->side, front->top
transform t[];

hide( (0,0) transformed t1 = (0,0) );
hide( (1,0) transformed t1 = (sqrt_eight,sqrt_eight) );
hide( (0,1) transformed t1 = (0,1) );
hide( (0,0) transformed t2 = (0,0) );
hide( (1,0) transformed t2 = (1,0) );
hide( (0,1) transformed t2 = (sqrt_eight,sqrt_eight) );

%  t3 transforms front to right side
t3 = t1 shifted (face_width,0);

%  t4 transforms front to top
t4 = t2 shifted (0,face_height);

%  the following macro draws a die face, with rounded corners
def dice_face =
  begingroup;
  save w, h;
  numeric w[], h[];

 lft w1 = sb = w2 - dice_c = w3 - face_width + dice_c = rt w4 - face_width;
 bot h1 = 0 = h2 - dice_c = h3 - face_height + dice_c = top h4 - face_height;

    draw (w1,h2)---(w1, h3)..(w2, h4)---(w3,h4)..(w4,h3)---
      (w4,h2)..(w3,h1)---(w2,h1)..cycle;

  endgroup;

enddef;

%  the following macro draws a box, with rounded corners
def dice_box =
  begingroup;
  save w, h;
  numeric w[], h[];

 lft w1 = sb = w2 - dice_c = w3 - face_width + dice_c = rt w4 - face_width;
 bot h1 = 0 = h2 - dice_c = h3 - face_height + dice_c = top h4 - face_height;

% the front face:
    draw (w1,h2)---(w1, h3)..(w2, h4)---(w3,h4)..(w4,h3)---
      (w4,h2)..(w3,h1)---(w2,h1)..cycle;

% the right side face:
    draw ((w1,h2) transformed t3)---((w1,h3) transformed t3)..
    ((w2,h4) transformed t3)---((w3,h4) transformed t3)..
    ((w4,h3) transformed t3)---((w4,h2) transformed t3)..
    ((w3,h1) transformed t3)---((w2,h1) transformed t3)..cycle;

% the top face:
    draw ((w1,h2) transformed t4)---((w1,h3) transformed t4)..
    ((w2,h4) transformed t4)---((w3,h4) transformed t4)..
    ((w4,h3) transformed t4)---((w4,h2) transformed t4)..
    ((w3,h1) transformed t4)---((w2,h1) transformed t4)..cycle;

% connect upper left front to top:
    draw (w1,h3)..((w1,h2) transformed t4);

  endgroup;
enddef;

%  the following macros draw dots on the front, side, and top,
%  with the appropriate transformations, at point z$:

def front_dot (suffix $) =
fill (z$+(0,DotSize)){right}..{left}(z$-(0,DotSize))..cycle;
enddef;

def side_dot (suffix $) =
  fill (z$+(dot_xy,dot_xy)){up}.. {dir 225}(z$+(0,DotSize)){dir 225}.. 
  {down}(z$-(dot_xy,dot_xy)){down}..{dir 45}(z$-(0,DotSize))..cycle;
enddef;

def top_dot (suffix $) =
  fill (z$+(dot_xy,dot_xy)){right}..{dir 225}(z$+(DotSize,0)){dir 225}..
  {left}(z$-(dot_xy,dot_xy)){left}..{dir 45}(z$-(DotSize,0))..cycle;
enddef;

def dice_dots = 
%  this macros defines the possible dot positions:
%     dots are labeled z1 through z27 as follows
%         _____________ 
%       / 19  20  21 / |
%     / 22  23  24 / 12|
%   / 25  26  27 / 11  |
%  ------------- 10  15|
%  | 1   2   3 |   14  |      i.e., 1-9 on front, 
%  |           | 13  18|            10-18 on side, 
%  | 4   5   6 |   17 /             19-27 on top
%  |           | 16 /   
%  | 7   8   9 |  /     
%  -------------/       
%
%  the nine positions for dots on the front face:
 x1 = sb + face_width/4 = x2 - face_width/4 = x3 - face_width/2 = x4 = x7;
 x5 = x2 = x8;
 x6 = x3 = x9;
 y1 = 3/4face_height = y2 = y3;
 y4 = face_height/2 = y5 = y6;
 y7 = face_height/4 = y8 = y9;
%  nine dot positions on the right side face:
%  (1st and 3rd column are shifted towards the center to avoid 
%   overlap with frame)
 z10 = (z1 shifted (sb,0)) transformed t3;
 z11 = z2 transformed t3;
 z12 = (z3 shifted (-sb,0)) transformed t3;
 z13 = (z4 shifted (sb,0)) transformed t3;
 z14 = z5 transformed t3;
 z15 = (z6 shifted (-sb,0)) transformed t3;
 z16 = (z7 shifted (sb,0)) transformed t3;
 z17 = z8 transformed t3;
 z18 = (z9 shifted (-sb,0)) transformed t3;
%  nine dot positions on the top face:
%  (1st and 3rd row are shifted towards the center to avoid 
%   overlap with frame)
 z19 = (z1 shifted (0,-sb)) transformed t4;
 z20 = (z2 shifted (0,-sb)) transformed t4;
 z21 = (z3 shifted (0,-sb)) transformed t4;
 z22 = z4 transformed t4;
 z23 = z5 transformed t4;
 z24 = z6 transformed t4;
 z25 = (z7 shifted (0,sb)) transformed t4;
 z26 = (z8 shifted (0,sb)) transformed t4;
 z27 = (z9 shifted (0,sb)) transformed t4;
enddef;

%  the 2D faces:
beginchar("1",9un#,8un#,0); "One";

  pickup pencircle scaled .5 un;

  dice_face;          % draw the frame
  dice_dots;          % get the dot positions
  front_dot(5);       % draw a dot

endchar;

beginchar("2",9un#,8un#,0); "Two";

  pickup pencircle scaled .5 un;

  dice_face;          % draw the frame
  dice_dots;          % get the dot positions
  front_dot(1);       % draw a dot
  front_dot(9);       % draw a dot

endchar;

beginchar("3",9un#,8un#,0); "Three";

  pickup pencircle scaled .5 un;

  dice_face;          % draw the frame
  dice_dots;          % get the dot positions
  front_dot(1);       % draw a dot
  front_dot(5);       % draw a dot
  front_dot(9);       % draw a dot

endchar;

beginchar("4",9un#,8un#,0); "Four";

  pickup pencircle scaled .5 un;

  dice_face;          % draw the frame
  dice_dots;          % get the dot positions
  front_dot(1);       % draw a dot
  front_dot(3);       % draw a dot
  front_dot(7);       % draw a dot
  front_dot(9);       % draw a dot

endchar;

beginchar("5",9un#,8un#,0); "Five";

  pickup pencircle scaled .5 un;

  dice_face;          % draw the frame
  dice_dots;          % get the dot positions
  front_dot(1);       % draw a dot
  front_dot(3);       % draw a dot
  front_dot(5);       % draw a dot
  front_dot(7);       % draw a dot
  front_dot(9);       % draw a dot

endchar;

beginchar("6",9un#,8un#,0); "Six";

  pickup pencircle scaled .5 un;

  dice_face;          % draw the frame
  dice_dots;          % get the dot positions
  front_dot(1);       % draw a dot
  front_dot(3);       % draw a dot
  front_dot(4);       % draw a dot
  front_dot(6);       % draw a dot
  front_dot(7);       % draw a dot
  front_dot(9);       % draw a dot

endchar;

%  the 3D dice:
beginchar("a",12un#,12un#,0); "OneTwoThree";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(23);
  front_dot(1);
  front_dot(9);
  side_dot(10);
  side_dot(14);
  side_dot(18);
endchar;

beginchar("b",12un#,12un#,0); "OneThreeFive";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(23);
  front_dot(1);
  front_dot(5);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(14);
  side_dot(16);
  side_dot(18);
   
endchar;

beginchar("c",12un#,12un#,0); "OneFourTwo";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(23);
  front_dot(1);
  front_dot(3);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(18);

endchar;

beginchar("d",12un#,12un#,0); "OneFiveFour";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(23);
  front_dot(1);
  front_dot(3);
  front_dot(5);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(16);
  side_dot(18);

endchar;

beginchar("e",12un#,12un#,0); "TwoOneFour";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(27);
  front_dot(5);
  side_dot(10);
  side_dot(12);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("f",12un#,12un#,0); "TwoThreeOne";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(21);
  top_dot(25);
  front_dot(3);
  front_dot(5);
  front_dot(7);
  side_dot(14);
  
endchar;

beginchar("g",12un#,12un#,0); "TwoFourSix";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(21);
  top_dot(25);
  front_dot(1);
  front_dot(3);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(13);
  side_dot(15);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("h",12un#,12un#,0); "TwoSixThree";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(27);
  front_dot(1);
  front_dot(3);
  front_dot(4);
  front_dot(6);
  front_dot(7);
  front_dot(9);
  side_dot(12);
  side_dot(14);
  side_dot(16);
  
endchar;

beginchar("i",12un#,12un#,0); "ThreeOneTwo";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(23);
  top_dot(27);
  front_dot(5);
  side_dot(12);
  side_dot(16);
  
endchar;

beginchar("j",12un#,12un#,0); "ThreeTwoSix";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(21);
  top_dot(23);
  top_dot(25);
  front_dot(3);
  front_dot(7);
  side_dot(10);
  side_dot(11);
  side_dot(12);
  side_dot(16);
  side_dot(17);
  side_dot(18);
  
endchar;

beginchar("k",12un#,12un#,0); "ThreeFiveOne";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(21);
  top_dot(23);
  top_dot(25);
  front_dot(1);
  front_dot(3);
  front_dot(5);
  front_dot(7);
  front_dot(9);
  side_dot(14);
  
endchar;

beginchar("l",12un#,12un#,0); "ThreeSixFive";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(23);
  top_dot(27);
  front_dot(1);
  front_dot(2);
  front_dot(3);
  front_dot(7);
  front_dot(8);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(14);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("m",12un#,12un#,0); "FourOneFive";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(25);
  top_dot(27);
  front_dot(5);
  side_dot(10);
  side_dot(12);
  side_dot(14);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("n",12un#,12un#,0); "FourTwoOne";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(25);
  top_dot(27);
  front_dot(3);
  front_dot(7);
  side_dot(14);
  
endchar;

beginchar("o",12un#,12un#,0); "FourFiveSix";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(25);
  top_dot(27);
  front_dot(1);
  front_dot(3);
  front_dot(5);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(11);
  side_dot(12);
  side_dot(16);
  side_dot(17);
  side_dot(18);
  
endchar;

beginchar("p",12un#,12un#,0); "FourSixTwo";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(25);
  top_dot(27);
  front_dot(1);
  front_dot(2);
  front_dot(3);
  front_dot(7);
  front_dot(8);
  front_dot(9);
  side_dot(12);
  side_dot(16);
  
endchar;

beginchar("q",12un#,12un#,0); "FiveOneThree";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(23);
  top_dot(25);
  top_dot(27);
  front_dot(5);
  side_dot(12);
  side_dot(14);
  side_dot(16);
  
endchar;

beginchar("r",12un#,12un#,0); "FiveThreeSix";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(23);
  top_dot(25);
  top_dot(27);
  front_dot(3);
  front_dot(5);
  front_dot(7);
  side_dot(10);
  side_dot(12);
  side_dot(13);
  side_dot(15);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("s",12un#,12un#,0); "FiveFourOne";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(23);
  top_dot(25);
  top_dot(27);
  front_dot(1);
  front_dot(3);
  front_dot(7);
  front_dot(9);
  side_dot(14);
  
endchar;

beginchar("t",12un#,12un#,0); "FiveSixFour";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;
  top_dot(19);
  top_dot(21);
  top_dot(23);
  top_dot(25);
  top_dot(27);
  front_dot(1);
  front_dot(3);
  front_dot(4);
  front_dot(6);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(16);
  side_dot(18);

  % dots
  
endchar;

beginchar("u",12un#,12un#,0); "SixTwoFour";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(22);
  top_dot(24);
  top_dot(25);
  top_dot(27);
  front_dot(1);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("v",12un#,12un#,0); "SixThreeTwo";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(20);
  top_dot(21);
  top_dot(25);
  top_dot(26);
  top_dot(27);
  front_dot(1);
  front_dot(5);
  front_dot(9);
  side_dot(10);
  side_dot(18);
  
endchar;

beginchar("w",12un#,12un#,0); "SixFourFive";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(20);
  top_dot(21);
  top_dot(25);
  top_dot(26);
  top_dot(27);
  front_dot(1);
  front_dot(3);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(12);
  side_dot(14);
  side_dot(16);
  side_dot(18);
  
endchar;

beginchar("x",12un#,12un#,0); "SixFiveThree";

  pickup pencircle scaled .5 un;

  % draw the box 
  dice_box;
  
  % get the dot positions
  dice_dots;

  % dots
  top_dot(19);
  top_dot(21);
  top_dot(22);
  top_dot(24);
  top_dot(25);
  top_dot(27);
  front_dot(1);
  front_dot(3);
  front_dot(5);
  front_dot(7);
  front_dot(9);
  side_dot(10);
  side_dot(14);
  side_dot(18);
  
endchar;

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  Use only one of the two ligature tables provided!
%  (comment out as appropriate!)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%   ligature tables for 3D dice:
%   #a, #b, #c, #d, where # is the value on the top face,
%                   and the letter indicates the value on 
%                   the front face: "a" -> smallest, 
%                                   "d" -> largest
ligtable "1" : "a" =: "a", "b" =: "b", "c" =: "c", "d" =: "d";
ligtable "2" : "a" =: "e", "b" =: "f", "c" =: "g", "d" =: "h";
ligtable "3" : "a" =: "i", "b" =: "j", "c" =: "k", "d" =: "l";
ligtable "4" : "a" =: "m", "b" =: "n", "c" =: "o", "d" =: "p";
ligtable "5" : "a" =: "q", "b" =: "r", "c" =: "s", "d" =: "t";
ligtable "6" : "a" =: "u", "b" =: "v", "c" =: "w", "d" =: "x";
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%   alternative ligature tables for 3D dice:
%   #a, #b, #c, #d, #e, #f, where # is the value on the top face,
%                           and the letter indicates the value on 
%                           the front face: "a" -> 1
%                                       ... "f" -> 6
% ligtable "1" : "b" =: "a", "c" =: "b", "d" =: "c", "e" =: "d";
% ligtable "2" : "a" =: "e", "c" =: "f", "d" =: "g", "f" =: "h";
% ligtable "3" : "a" =: "i", "b" =: "j", "e" =: "k", "f" =: "l";
% ligtable "4" : "a" =: "m", "b" =: "n", "e" =: "o", "f" =: "p";
% ligtable "5" : "a" =: "q", "c" =: "r", "d" =: "s", "f" =: "t";
% ligtable "6" : "b" =: "u", "c" =: "v", "d" =: "w", "e" =: "x";
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

end;