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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
|
% \iffalse meta comment
% File: kerntest.dtx Copyright (C) 2004 Harald Harders
% \fi
%
% \iffalse
%
%<*driver>
\listfiles
\documentclass[ngerman,english,a4paper]{ltxdoc}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\IfFileExists{fix-cm.sty}{\usepackage{fix-cm}}{}
\usepackage{longtable}
\usepackage{graphicx}
\let\origverbatim\verbatim
\let\endorigverbatim\endverbatim
\usepackage{verbatim}
\usepackage{babel}
\usepackage{calc}
\usepackage{url}
\IfFileExists{booktabs.sty}{\usepackage{booktabs}}{%
\GenericWarning{kerntest.dtx}{Package file booktabs.sty not
found. Documentation formatting will be poor}%
\def\toprule\hline
\def\midrule\hline
\def\bottomrule\hline
}
\IfFileExists{krntst-v.tex}{%
\input{krntst-v.tex}
\GetFileInfo{krntst-v.tex}
}{%
\ClassError{kerntest}{File krntst-v.tex not found, please run `latex
kerntest.ins' first.}{No additional help}%
\def\fileversion{\textbf{??}}%
\def\filedate{\textbf{??}}%
}
\title{The \texttt{kerntest} package}
\author{Harald Harders\\\texttt{h.harders@tu-bs.de}}
\date{Version \fileversion\ (\filedate), printed \today}
\makeatletter
\newlength\tempdima
\newlength\tempdimb
\renewenvironment{table}[1][]{%
\@float{table}[#1]%
\centering%
\setlength{\tempdima}{\abovecaptionskip}%
\setlength{\abovecaptionskip}{\belowcaptionskip}%
\setlength{\belowcaptionskip}{\tempdima}%
}{%
\end@float
}
\def\meta@font@select{\normalfont\itshape}
%%
\def\DescribeOpt{\leavevmode\@bsphack\begingroup\MakePrivateLetters
\Describe@Opt}
\def\Describe@Opt#1{\endgroup
\marginpar{\raggedleft\PrintDescribeOpt{#1}}%
\SpecialOptIndex{#1}\@esphack\ignorespaces}
\def\SpecialOptIndex#1{\@bsphack
\index{#1\actualchar{\protect\ttfamily#1}
(class option)\encapchar usage}%
\index{class options:\levelchar{\protect\ttfamily#1}\encapchar
usage}\@esphack}
\@ifundefined{PrintDescribeOpt}
{\def\PrintDescribeOpt#1{\strut \MacroFont #1\ }}{}
\@ifundefined{PrintOptName}
{\def\PrintOptName#1{\strut \MacroFont #1\ }}{}
%%
\makeatother
%%
\newenvironment{fontbox}{%
\begin{quote}
\usefont{T1}{ptm}{m}{n}\fontsize{25}{12}\selectfont
\fboxsep-0.5\fboxrule
}{%
\end{quote}
\ignorespacesafterend
}
\newcommand\timesfont[1]{{\usefont{T1}{ptm}{m}{n}#1}}
%%
\newcommand\getkern[2]{%
\settowidth\tempdima{#1#2}%
\settowidth\tempdimb{#1\kern0pt#2}%
\setlength\tempdima{\tempdima-\tempdimb-\fboxrule}%
}
%%
\EnableCrossrefs
\CodelineIndex
\DoNotIndex{\def,\edef,\let,\newcommand,\newenvironment,\newcounter}
\DoNotIndex{\setcounter,\space,\if,\else,\fi,\empty,\@empty,\ifx,\fi}
\DoNotIndex{\ifnum,\fi,\expandafter,\csname,\endcsname,\the}
\DoNotIndex{\MessageBreak,\message,\newlength,\newif,\xdef,\newcount}
\DoNotIndex{\begingroup,\endgroup,\,,\@tempcnta,\@tempdima,\advance}
\DoNotIndex{\ensuremath,\filedate,\fileversion,\docdate}
\DoNotIndex{\mathit,\mathrm,\mathsf,\nprt@tmp,\nprt@tmpnum,\relax}
\DoNotIndex{\protect,\renewcommand,\setlength,\settowidth,\stepcounter}
\DoNotIndex{\string}
\CodelineNumbered
\RecordChanges
\CheckSum{6031}
\begin{document}
\DocInput{kerntest.dtx}
\end{document}
%</driver>
% \fi
%
% \changes{1.00}{2004/04/01}{Total new implementation}%
% \changes{1.10}{2004/04/06}{Add option `writeall'}%
% \changes{1.11}{2004/04/06}{Added more literature to bibliography}%
% \changes{1.20}{2004/04/11}{Allow to give glyphs by number (decimal,
% hex, octal) or by PostScript name}%
% \changes{1.20}{2004/04/11}{Write glyph name to table}%
% \changes{1.20}{2004/04/11}{Find and complain inconsistent kerning
% data}%
% \changes{1.20}{2004/04/11}{Introduce glyph classes to set the
% kerning for similar glyph shapes by once}%
% \changes{1.20}{2004/04/11}{Reduce left margin}%
% \changes{1.30}{2004/04/12}{Add encodings OT1, T2A, T2B, and LY1}%
% \changes{1.30}{2004/04/12}{Template for OT1 encoding}%
% \changes{1.30}{2004/04/12}{Parameter-dependent encodings (for
% example with or without ligatures)}%
% \changes{1.30}{2004/04/12}{New option |designsize| for giving the
% design size of the font explicitely}%
% \changes{1.31}{2004/04/13}{Use \cs{setleftkerning} and
% \cs{setrightkerning} instead of writing every kerning pair}%
% \changes{1.32}{2004/04/14}{Allow to set relative kerning widths in
% glyph classes}%
%
% \maketitle
% \begin{abstract}
% \noindent
% This class makes it easy to generate tables that show many different
% kerning pairs of an arbitrary font, usable by \LaTeX.
% It shows the kerning values that are used by the the font by default.
%
% In addition, this class enables the user to alternate the kernings
% and to observe the results.
% Kerning pairs can be defined for groups of similar glyphs at once.
% Automatically, an |mtx| file is generated that can be loaded by
% |fontinst| to introduce the user-made kernings into the virtual font
% for \LaTeX.
% \end{abstract}
%
% \tableofcontents
%
% \section*{Copyright}
% Copyright 2004 Harald Harders.
%
% This program can be redistributed and/or modified under the terms
% of the LaTeX Project Public License Distributed from CTAN
% archives in directory macros/latex/base/lppl.txt; either
% version 1.3 of the License, or any later version.
%
% \section{Introduction}
%
% Every glyph of a font is surrounded by a bouding box.
% Have a look at these glyphs:
% \begin{fontbox}
% ^^A \fbox{\raisebox{0pt}[\fontdimen12\font][\fontdimen11\font]{A}}
% \fbox{A} \fbox{m} \fbox{f}
% \itshape\fbox{A} \fbox{m} \fbox{f}
% \end{fontbox}
% As can be seen in this example, the glyphs may extend the bounding
% box.
%
% Normally, one character is placed after the other by simply putting
% the bounding boxes directly after each other:
% \begin{fontbox}
% \fbox{A}\kern-\fboxrule
% \fbox{H}\kern-\fboxrule\fbox{V}\kern-\fboxrule
% \fbox{A}\kern-\fboxrule\fbox{m}\kern-\fboxrule
% \fbox{f}\kern-\fboxrule\fbox{T}
%
% \itshape
% \fbox{A}\kern-\fboxrule
% \fbox{H}\kern-\fboxrule\fbox{V}\kern-\fboxrule
% \fbox{A}\kern-\fboxrule\fbox{m}\kern-\fboxrule
% \fbox{f}\kern-\fboxrule\fbox{T}
% \end{fontbox}
% In most cases, this works great, but sometimes the distance between
% two glyphs is ugly then.
% Here, for instance, have a look at
% ``\timesfont{V\kern0pt A}'', ``\timesfont{f\kern0pt T}'',
% ``\timesfont{\itshape V\kern0pt A}'', and
% ``\timesfont{\itshape f\kern0pt T}''.
% To improve these cases, the bounding boxes are moved together or
% away from another, as shown in the next example.
% This is called kerning.
% To be able to do the kerning, the font contains a table of pairs of
% glyphs and the distance to move the second one.
% \begin{fontbox}
% \fbox{A}\getkern{A}{H}\kern\tempdima
% \fbox{H}\getkern{H}{V}\kern\tempdima
% \fbox{V}\getkern{V}{A}\kern\tempdima
% \fbox{A}\getkern{A}{m}\kern\tempdima
% \fbox{m}\getkern{m}{f}\kern\tempdima
% \fbox{f}\getkern{f}{T}\kern\tempdima
% \fbox{T}
%
% \itshape
% \fbox{A}\getkern{A}{H}\kern\tempdima
% \fbox{H}\getkern{H}{V}\kern\tempdima
% \fbox{V}\getkern{V}{A}\kern\tempdima
% \fbox{A}\getkern{A}{m}\kern\tempdima
% \fbox{m}\getkern{m}{f}\kern\tempdima
% \fbox{f}\getkern{f}{T}\kern\tempdima
% \fbox{T}
% \end{fontbox}
% What you see here is the original kerning of the Times Roman
% installed in your \TeX\ system.
% The V--A pairs are improved; but the f still touches the T which is
% not wanted.
% The Times Roman font misses this kerning pair.
% Better were this:
% \begin{fontbox}
% \fbox{A}\getkern{A}{H}\kern\tempdima
% \fbox{H}\getkern{H}{V}\kern\tempdima
% \fbox{V}\getkern{V}{A}\kern\tempdima
% \fbox{A}\getkern{A}{m}\kern\tempdima
% \fbox{m}\getkern{m}{f}\kern\tempdima
% \fbox{f}\kern0.06em
% \fbox{T}
%
% \itshape
% \fbox{A}\getkern{A}{H}\kern\tempdima
% \fbox{H}\getkern{H}{V}\kern\tempdima
% \fbox{V}\getkern{V}{A}\kern\tempdima
% \fbox{A}\getkern{A}{m}\kern\tempdima
% \fbox{m}\getkern{m}{f}\kern\tempdima
% \fbox{f}\kern0.07em
% \fbox{T}
% \end{fontbox}
%
% Most fonts are missing many of these kerning pairs that are
% necessary for a good typography.
% Especially if you are writing in a language other than English, many
% kernig pairs are missing.
% Have a look at this example with quotation marks used in German,
% with the original kerning of the Times:
% \begin{fontbox}
% \fbox{,,}\getkern{,,}{T}\kern\tempdima
% \fbox{T}\getkern{T}{A}\kern\tempdima
% \fbox{A}\getkern{A}{``}\kern\tempdima
% \fbox{``}
% \fbox{>>}\getkern{>>}{V}\kern\tempdima
% \fbox{V}\getkern{V}{a}\kern\tempdima
% \fbox{a}\getkern{a}{V}\kern\tempdima
% \fbox{V}\getkern{V}{<<}\kern\tempdima
% \fbox{<<}
% \end{fontbox}
% As you can see, there is no kerning at all.
%
% And here comes, what this class is intended to do:
% It is difficult to calculate the necessary kerning automatically.
% Thus, it can be helpful to generate some kerning pairs and to try
% different amounts of kernings.
% Compare the different kernings in this example (this time without
% the bounding boxes):
% \begin{fontbox}
% A``
% A\kern-0.04em``
% A\kern-0.08em``
% A\kern-0.12em``
% A\kern-0.16em``
% A\kern-0.20em``
% A\kern-0.24em``
% A\kern-0.28em``
% A\kern-0.32em``
% A\kern-0.36em``
% \end{fontbox}
% The first one is without kerning.
% The kerning in the last one ($-0.35\,\mathrm{em}$) is surely too
% much since both glyphs touch each other.
% It really isn't easy to find the ``perfect'' kerning.
% One remark here: It is worse to have a too tight kerning than too
% less kerning. Thus please do as little kerning as you think can work
% well.
%
% With the |kerntest| class, it is easy to try out different values.
% How this can be done is described in the next section.
%
%
% \section{Usage of the class}
%
% \subsection{Introduction}
%
% In the simplest case, you can use the package like this:
% \verbatiminput{t1-ptm-m-n-shortexample.tex}
% You have to define the font family to be tested in the optional
% argument of the \cs{documentclass} command.
% The syntax is |family=|\meta{font family}, while \meta{font
% family} is the typical abbreviation according to Karl Berry's name
% scheme~\cite{berry1999a}, e.g., |cmr| for Computer Modern Roman,
% |ptm| for Times Roman, |phv| for Helvetica, |pmnj| for Adobe Minion
% with old-style numbers, |pmnx| for Adobe Minion with expert
% characters.
%
% The options |extraname=shortexample| and |footer=false| are not so
% important and described later.
%
% \DescribeEnv{kerntable}%
% The kerning table is generated by the |kerntable| environment which
% is represented by a |longtable| environment internally.
% \DescribeMacro{\testkern}%
% Each line of this environment has to contain one \cs{testkern}
% command with five arguments:
% \begin{enumerate}
% \item The first one contains the name or character number of the
% left character in the table (see Fig.~\ref{fig:shortexample}).
% Which glyph corresponds to a given value depends on the used
% encoding, default is the cork encoding |T1|.
% The glyph can be specified by giving a decimal number (|0| to
% |255|), a hexadecimal number (|"0| to |"FF|), an octal
% number (|'0| to |'377|), or by giving the PostScript glyph
% name, e.g., |grave|, |guillemotright|, |A|, |Aring|.
% It does not work to give \LaTeX\ sequences as |<<|,
% |\guillemotright|, etc.
% \item The second argument gives the kerning of the characters
% defined in the first and in the third argument.
% The used unit are Postscript Type\,1 font units which have the
% length of 0.001\,em.
% It is not allowed to specify another unit.
%
% If the second argument is ``|-|'' the original kerning of the
% font is shown (first line of the example).
%
% If a value is given (second line) the original kerning is
% overwritten by the given value.
% Negative values reduce the distance of the glyphs, positive values
% increase it.
% \item The third argument specifies the second glyph.
% \item The fourth argument is the kerning between the second and the
% third glyph and works exactly as the second argument.
% \item The fifth argument specifies the third glyph.
% \end{enumerate}
% After the \cs{testkern} command, an arbitrary (but short) comment
% may be added.
% Often, it is good to write the name of the glyph here.
% With |t1-XXX-m-n.tex| and |ts1-XXX-m-n.tex|, two templates are given
% that contains all glyph names for the |T1| and |TS1| encodings.
%
% Each line in the |kerntable| environment (even the last one) has to
% end with a |\\| or \cs{tabularnewline}.
%
% The output of this file is shown in Fig.~\ref{fig:shortexample}.
% \begin{figure}
% \centering
% \fboxsep=1mm
% \makebox[\textwidth][c]{%
% \fbox{\includegraphics[scale=0.8]{t1-ptm-m-n-shortexample}}}
% \caption{Example for a part of a kerning table (explanations in the
% text)}
% \label{fig:shortexample}
% \end{figure}
% In the first column, the number of the middle character (argument
% |#3| of the \cs{testkern} command is listed, followed by the
% PostScript glyph name.
% In the third column, the combination of characters is printed with
% original kerning for both pairs, while the forth column shows the
% newly suggested kerning.
% In the fifth column, both variants are printed over each other (the
% old one grey, the new one black).
% The next two columns show the values of the two kerning pairs in
% Postscript font units (normally, 0.001\,em).
% If the user has not given a new kerning the original value is
% printed in grey.
% If the user has defined a new kerning, this new value is printed in
% black.
% If, in this case, the old kerning is unequal zero, it is printed in
% parentheses before the new value (second line of the example).
% The rest of each line are examples and comments.
%
%
% \subsection{Most features by example}
%
% The next example shows some more switches that can be defined by the
% user:\label{page:example}
% \verbatiminput{t1-ptm-bx-n-example.tex}
% Have a look at the results in Fig~\ref{fig:example} before the
% switches are explained.
% \begin{figure}
% \centering
% \fboxsep=1mm
% \makebox[\textwidth][c]{%
% \fbox{\includegraphics[scale=0.8]{t1-ptm-bx-n-example}}}
% \caption{Example for a part of a kerning table (explanations in the
% text).
% The labels marked with a star are described in
% Section~\ref{sec:advanced}.}%
% \label{fig:example}
% \end{figure}
%
% \DescribeMacro{\kernsetup}%
% All class options except |family| can either be given as class
% option in the optional argument of the \cs{documentclass} command or
% as argument of the \cs{kernsetup} command.
% The |family| class option has to be given in the \cs{documentclass}
% command.
% Here comes a list of all class options:
% \begin{description}
% \item [|encoding=|\meta{font encoding}:]
% \DescribeOpt{encoding}%
% Font encoding (default: |T1|).
% Currently, |OT1|, |T1|, |TS1|, |T2A|, |T2B|, and
% |LY1|\footnote{While the other encodings are generated starting
% from |.etx| files, the LY1 encoding has been extracted from
% |texnansi.enc|. Some glyphs may have incorrect names.} are
% supported.
% \item [|family=|\meta{font family}:]
% \DescribeOpt{family}%
% Abbreviation of the font-family name according to Karl Berry's
% scheme~\cite{berry1999a}.
% This option is mandatory in the optional argument of the
% \cs{documentclass} command.
% \item [|series=|\meta{font series}:]
% \DescribeOpt{series}%
% Abbreviation for the series of the font (default: |m|), e.g., |m|
% for medium, |sb| for semibold, |b| for bold, |bx| for bold
% extended.
% \item [|shape=|\meta{font shape}:]
% \DescribeOpt{shape}%
% Abbreviation for the font shape (default: |n|), e.g., |n| for
% upright, |it| for italic, |sl| for slanted, |sc| for small caps,
% |scit| for italic small caps.
% \item [|size=|\meta{font size}:]
% \DescribeOpt{size}%
% Size of the tested font (default: |17.28pt|) in arbitrary units.
% This sets the \cs{baselineskip} to 1.2 times the given value.
% The |size| option does not change the size of the legend text
% which is fixed to 10\,pt.
% \item [|baselineskip=|\meta{baselineskip}:]
% \DescribeOpt{baselineskip}%
% Sets the \cs{baselineskip} explicitly.
% To take effect, it has to be given after the option |size|
% (default: |1.2*17.28pt|).
% \item [|designsize=|\meta{design size}:]
% \DescribeOpt{designsize}%
% For calculating the kerning data, a PostScript font unit is used
% which is 1/1000 of the font's design size.
% Unfortunately, it is not possible to get this size reliably in
% \LaTeX.
% For most fonts, 1\,em corresponds to the design size.
% But in some cases, it is not true:
% \begin{enumerate}
% \item Some fonts have a different em length, for example, the
% Computer Modern fonts.
% Then, the size given by the option |size| corresponds to the
% design size, but 1\,em does not.
% \item If the font is scaled by the |.fd| file, 1\,em is also
% scaled and may correspond to the design size while the size
% given with |size| does not.
% \end{enumerate}
% Since in most cases, 1\,em is the correct design size, this is the
% default.
% If it is not, you can give the correct design size by using the
% option |designsize|, for example, |designsize=0.9em|,
% |designsize=17pt|.
% \item [|example=|\meta{text}:]
% \DescribeOpt{example}%
% Alters the example text for columns 5 and 6 (default: |example|).
% \item [|papersize=|\meta{papersize}]
% \DescribeOpt{papersize}%
% Tells the |geometry| package which pagesize to use.
% Supported are all pagesizes handled by |geometry|, e.g.,
% |a4paper|, |letter|, |legal| (no default).
% \item [|extraname=|\meta{fontname extension}:]
% \DescribeOpt{extraname}%
% Normally, the heading of each page of output as well as the
% filename of the |mtx| file are generated automatically by appending
% encoding, font family, font series, and font shape, e.g.,
% |t1-cmr-m-n.mtx|.
% If you use this option, |-|\meta{fontname extension} is added both
% to the headings and to the filename.
% For example, |extraname=test1| leads to |t1-cmr-m-n-test1.mtx|.
% This is useful if you want to generate different |mtx| files that
% normally got the same name.\footnote{This is why the first example
% used this option.}
% \item [|color=|{\ensuremath\langle}|true|/|false|{\ensuremath\rangle}:]
% \DescribeOpt{color}%
% Switches on color output (default: |false|).
% New values are printed in red, while the old ones are printed
% black instead of black/grey.
% \item [|copyquotation=|{\ensuremath
%\langle}|true|/|false|{\ensuremath\rangle}:]
% \DescribeOpt{copyquotation}%
% If a kerning pair containing a double quotation mark, including
% guillemots, is set, write also the corresponding single one to the
% |mtx| file.
% \item [|writeall=|{\ensuremath
%\langle}|true|/|false|{\ensuremath\rangle}:]
% \DescribeOpt{writeall}%
% Write also the original kerning data to the |mtx| file.
% \item [|footer=|{\ensuremath
%\langle}|true|/|false|{\ensuremath\rangle}:]
% \DescribeOpt{footer}%
% Switch on or off the footline.\footnote{This option seems only to
% work in the \cs{documentclass} options. Don't ask me why.}
% \end{description}
%
% It has been mentioned some times that an |mtx| file is generated
% automatically.
% |mtx| files contain the font metrics during the fontinst process.
% Amongst other things, they contain the kerning data.
% For example, the |mtx| file generated by the last example looks like this:
% \verbatiminput{t1-ptm-bx-n-example.mtx}
% Only new or changed kerning values are inserted (e.g.,
% |quotedblleft|--|A| is not included).
%
% \DescribeMacro{\mtxcomment}
% Using the \cs{mtxcomment}\marg{comment} command, you can write the
% given argument as comment into the |mtx| file.
%
%
% \subsection{Encoding-dependent parameters}%
%
% Some encodings may have slight differences depending on the used
% shape.
% For example, typewriter fonts may have ligatures but they are
% normally not used.
% Thus, the encodings do not have some glyphs when used with
% typewriter fonts (e.g., |ff|, |fi|, |ffi|, |fl|, |ffl| are
% missing).
%
% \DescribeMacro{\encodingsetup}%
% The class provides an interface to give the necessary parameters to
% these encodings.
% Use the command \cs{encodingsetup} that takes a comma-separated list
% of options as argument (as \cs{kernsetup}).
%
% Here are the encoding-specific options:
% \begin{description}
% \item [T1 encoding:]\strut
% \begin{description}
% \item [|ligaturing=|\meta{number}:]
% \DescribeOpt{ligaturing}%
% Level of how many ligatures are used (|-2|, |-1|, |0|, or |1|,
% default |1|).
% Here is the description from |t1.etx| (version 1.923, 2002/10/29):
% \begin{enumerate}
% \item[$1$]
% All the standard ligature glyphs (\texttt{fi}, \texttt{fl},
% \texttt{ff}, \texttt{ffi}, \texttt{ffl}, \texttt{IJ}, and
% \texttt{ij}) are included and the normal ligaturing instructions
% (those for the \texttt{f}-ligatures) are included.
% \item[$0$]
% All the standard ligature glyphs are included, but none of their
% ligaturing instructions.
% \item[$-1$]
% The seven slots normally used for ligatures are left empty.
% \item[$-2$]
% The seven slots normally used for ligatures are left empty, as
% are the slots normally used for \texttt{c}, \texttt{f},
% \texttt{s}, \texttt{i}, and \texttt{I}.
% \end{enumerate}
% \end{description}
% \item [OT1 encoding:]\strut
% \begin{description}
% \item [|ligaturing=|\meta{number}:]
% \DescribeOpt{ligaturing}%
% Level of how many ligatures are used (|0|, |1|, or |2|,
% default |2|).
% Please refer to |ot1.etx| for more details.
% \item [|italicizing=|{\ensuremath
%\langle}|true|/|false|{\ensuremath\rangle}:]
% \DescribeOpt{italicizing}%
% Use |dollar| when |false| and |sterling| when |true| (default:
% |false|).
% \end{description}
% \end{description}
%
%
% \subsection{Advanced features}%
% \label{sec:advanced}%
%
% In most fonts, different glyphs need the same kerning because their
% left or right edges are very similar, for example, the kerning on
% the left sides of
% \symbol{66}, \symbol{68}, \symbol{132}, \symbol{208}, \symbol{69},
% \symbol{133}, \symbol{134}, \symbol{200}, \symbol{201}, \symbol{202},
% \symbol{203}, \symbol{070}, \symbol{072}, \symbol{073},
% \symbol{157}, \symbol{204}, \symbol{205}, \symbol{206},
% \symbol{207}, \symbol{156}, \symbol{074}, \symbol{075},
% \symbol{076}, \symbol{136}, \symbol{137}, \symbol{138},
% \symbol{078}, \symbol{139}, \symbol{140}, \symbol{209},
% \symbol{080}, \symbol{082}, \symbol{143}, \symbol{144},
% \symbol{141}, and \symbol{222}
% should be equal.
%
% \DescribeMacro{\defglyphclass}%
% \DescribeMacro{\newglyphclass}%
% \DescribeMacro{\renewglyphclass}%
% \DescribeMacro{\provideglyphclass}%
% This can be reached by using so called ``glyph classes''.
% A new glyph class can be defined using one of the commands
% \cs{defglyphclass}, \cs{newglyphclass}, \cs{renewglyphclass}, and
% \cs{provideglyphclass}.
% The differences are similar to these of the commands
% \cs{newcommand}, \cs{renewcommand}, etc.
% They all have the syntax
% \cs{defglyphclass}\marg{side}\marg{name}\marg{glyphlist}.
% \meta{side} specifies the side of the glyphs on which the kerning
% shall be equal (|left| or |right|).
% The parameter \meta{name} specifies the name of the glyph list, the
% list above could be named ``|H|'' because they all have a similar
% shape as the H.
% The third argument, \meta{glyphlist}, contains a comma-separated
% list of all glyphs (PostScript names or numbers---as usual).
% For example, the above list is build by this command:\footnote{Due
% to a problem between the |ltxdoc| and |verbatim| packages, the
% \texttt{\%} signs appear at the beginning of each line. Just
% delete them in mind.}
%\begin{verbatim}
%\newglyphclass{left}{H}{B,D,Dcaron,Eth,E,Ecaron,Eogonek,Egrave,%
% Eacute,Ecircumflex,Edieresis,F,H,I,Idotaccent,Igrave,Iacute,%
% Icircumflex,Idieresis,IJ,J,K,L,Lacute,Lcaron,Lslash,N,Nacute,%
% Ncaron,Ntilde,P,R,Racute,Rcaron,Ng,Thorn}\end{verbatim}
%
% You can specify arbitrary glyph classes.
% If you, for example, use the |copyquotation| option glyph classes
% are made containing one double and one single quotation mark each.
%
% When you write a kerning table using the |kerntable| environment and
% it happens that you change the kerning for a glyph that is member of
% a glyph class, the kernings for all other glyphs of the same glyph
% class are automatically changed on the specific side.
% This can be seen in the example on Page~\pageref{page:example} and
% in Figure~\ref{fig:example}:
%
% |period| and |comma| build a glyph pair on both sides.
% In the first line of the table, left and right kerning between the
% period and the quotation marks are changed by the user.
% The kerning between the comma and quotation marks is then set
% automatically; the user does not have to specify them again (the
% kerning data contain a simple |-| in the second line).
% If you specify the same value explicitly, a warning is generated.
% If you specify conflicting values, the programme generates an error
% message (not shown).
%
% Automatically generated kerning pairs are marked by $\ast$ behind
% the value (as can be seen in the second and 12th line of the
% example).
% Repeated values are marked by $^\dagger$.
%
% There is one shortcoming:
% If you don't specify the kerning for a glyph class at the first
% occurance of this glyph, the correct kerning data are not shown for
% the occurances before the position you have specified the kerning.
% In the example, the kerning between the members of the glyph class
% ``A'' (A, \"A, and \AA) and the right German quotation mark
% (\textquotedblleft), is not specified for the first char of the
% glyph class, \"A, but for the second one, A.
% Thus, the kerning of $-150$ is shown for ``A'' and for ``\AA'', but
% not for ``\"A''.
% But nevertheless, the kerning data written to the |mtx| files are
% correct.
%
% All glyphs, given by \cs{defglyphclass} get the same kerning by
% default.
% You can specify different scale factors by appending
% |[|\meta{scale}|]| to each glyph name; while a factor of |1000| is
% the default and means ``the same kerningn width''.
%
% For example,
%\begin{verbatim}
%\defglyphclass{right}{A}{A,Aring[800],Adieresis[1200],Abreve}\end{verbatim}
% defines a glyph class containing ``A'', ``\AA'', ``\"A'', and ``\u A''.
% All kernings on the right side of ``\AA'' have a width of 80\,%\ of
% these ``A'' has.
% ``\"A'' is kerned 120\,\% of ``A''.
% ``\u A'' is again kerned as ``A''.
%
% You can also specify a different scaling for the first glyph in the
% glyph class.
% But then, all values are scaled in order to reach a factor of |1000|
% for the first entry.
% For example,
%\begin{verbatim}
%\defglyphclass{right}{A}{A[500],Aring[400],Adieresis[600],Abreve[500]}\end{verbatim}
% is identical to the example above.
%
% The effect of scaled kernings can be seen in the example on
% Page~\pageref{page:example} and in Figure~\ref{fig:example} where
% ``\u A'' has half the scaling of ``A'' and ``\AA''.
%
% If two glyphs with scalings different from |1000| meet each other
% both scaling factors are multiplicated.
%
% There are some interesting commands to handle these glyph classes.
% Please have a look in Section~\ref{sec:glyphclasses} for their
% description.
%
%
% \section{Configuration file}
%
% If you are too lazy to put the same options into every source file
% you may write all options except |family| into the configuration
% file |kerntest.cfg| and put it into the \LaTeX\ path.
% If it is present, it is loaded automatically.
%
%
%
% \section{Kerning pairs that are often missing}
%
% This section shows some kerning pairs that are often missing, even
% in expensive fonts.
% This problem arises since most fonts are merely designed for the
% English language.
%
% \subsection{Character combinations}
%
% Some glyphs need a kerning to many other glyphs, including ``A'',
% ``T'', ``V'', ``W'', and ``Y''.
% For the ordinary lowercase letters, these kernings are included in
% most fonts (if the lowercase letter is on the right of the capital).
% But often, glyphs of other Languages than English are forgotten,
% e.g., ``T\c c'', ``V\'e'', etc.
% But you may not simply copy all kernings of, for instance, ``Ta'' to
% ``T\"a'', ``T\'a'', ``T\aa'', ``T\c a'' etc.
% Often, these glyphs have parts that force the kerning to be reduced
% or even deleted.
%
% Most character pairs with the uppercase letters (``A'', ``T'',
% ``V'', ``W'', ``Y'') after a lowercase letters are not kerned in the
% fonts.
% In most cases, this should not be a problem because these
% combinations are never printed. (Nowadays, its getting more and more
% important to have these kernings since it is a fashion to use
% uppercase letters within words, e.g., ``ServicePoint''.\footnote{The
% German railway company really uses this term!})
% But some combinations really should be kerned: ``eV''
% (electronvolt), ``mV'' (millivolt).
%
% \subsection{Quotation marks}
%
% Most fonts don't provide kerning for quotation marks other than the
% English ones.
% In English, ``Hello'' is used (``66--99'').
% French uses << and >>: <<Bonjour>>.
% In German, the three possibilities ,,Hallo`` (``99--66''),
% >>Hallo<<, and >>Hallo<< are used.
% In Italian, <<Ciao>> or ``Ciao,, are possible.
% Swedish uses >>Hi>> or ''Hi''~\cite{forssman2002a}.
% For all non-English possibilities, most fonts have no kerning
% information.
% Thus, you should generate five tables for every font, hopefully
% containing all possibilities (\char019H\char020,
% \char020H\char019, \char016H\char017, \char018H\char016,
% \char017H\char018):
% |\testkern{019}{-}{|\meta{glyph}|}{-}{020}|,
% |\testkern{020}{-}{|\meta{glyph}|}{-}{019}|,
% |\testkern{016}{-}{|\meta{glyph}|}{-}{017}|,
% |\testkern{018}{-}{|\meta{glyph}|}{-}{016}|,
% |\testkern{017}{-}{|\meta{glyph}|}{-}{018}|,
% where \meta{glyph} stands for all 256 glyphs contained in a T1
% encoded font.
%
% All problems mentioned for the double quotation marks apply also for
% their single variants (\glq, \grq, ', \flq, and \frq).
% In most cases, they need the same kerning as their double
% counterparts.
%
% There are two templates enclosed to build these kerning tables:
% |t1-XXX-m-n.tex| and |ts1-XXX-m-n.tex|.
% Hopefully, the names tell you which one to use.
% They contain some comments that should help to use them.
%
% One (repeated) remark:
% Please don't overdo the kerning if you adjust it.
% In most cases, good is less than you think on first sight.
% You can also orientate on predefined kernings.
% For example, the kerning for A`` should be similar to A''.
%
% But you are still not save to get the correct kerning when your font
% knows them.
% This is due to the fact that there are multiple possibilities to
% access the quotation marks.
% For example, << can be produced by |<<|, \cs{guillemotleft}, and
% even by \cs{symbol\{19\}} (if you are using T1 encoding).
% If you use |inputenc.sty| you may use the characters directly,
% e.g.,~|«|.
% And after loading |babel.sty|, you can use \cs{flqq} and when writing
% German |"<|.
%
% These possibilities are not equivalent.
%
% \begin{sloppypar}
% The direct commands \cs{textquotedblleft}, \cs{textquotedblright},
% \cs{quotedblbase}, \cs{guillemotleft}, \cs{guillemotright},
% \cs{textquoteleft}, \cs{textquoteright}, \cs{quotesinglbase},
% \cs{guilsinglleft}, and \cs{guilsinglright} work properly; they kern
% on their left and their right side.
% \end{sloppypar}
% The directly written quotation marks (|«|, |»|, etc.) also work
% correctly because the corresponding encoding file (e.g.,
% |latin1.def|) translates them to the direct commands.
%
% The ligatures |``| and |''| seem also to work correctly.
% But the ligature |,,| kerns correctly on its right side, but on its
% left side, it kerns as a comma.
% This may also be correct but it needn't be always the case.
% |<<| and |>>| do not kern at all on their left side.\footnote{I
% believe they kern as |<| reps.\ |>|. But these characters don't
% have any kerning information in most cases.}
%
% Looking at the |babel| commands, only \cs{grqq} and \cs{grq} surely
% work correct.
% The others (\cs{glqq}, \cs{glq}, \cs{flqq}, \cs{flq}, \cs{frqq},
% \cs{frq}) are defined differently and thus do not guarantee to kern
% correctly.
% On 2003/04/01, I have posted a bug report.
% Let's see what happens.
%
% The |babel| shortcuts |"`|, |"'|, |"<|, and |">| work as good as the
% corresponding commands.
%
% If you want a correct behaviour of all |babel| quotation marks, just
% copy the definition of \cs{grqq} (it contains of three command
% definitions!) from |babel.def| into your code and change it
% according to produce the other quotation marks.
%
%
% \section{An example of how to optimize a font}
%
% In this section, a very simple example is shown how to install a
% single font shape with fontinst~\cite{fontinst1998a} and how to
% change kernings for it.
% If you really want to understand what happens read the fontinst
% manual~\cite{fontinst1998a}, ``\TeX\ Unbound'' by Alan
% Hoenig~\cite{hoenig1998a}, or ``The Font Installation Guide'' by
% Philipp Lehman~\cite{lehman2003a}.
%
% Ghostscript contains the font ``Century Schoolbook~L Roman'' which
% is shipped as files |c059013l.afm| and |c059013l.pfb|.
% Please copy these files into a temporary directory.
%
% According to Karl Berry's scheme, the fontname is |uncr8a|.
% But this font is already prepared on most \TeX\ systems.
% Thus we take the fontname |9ncr8a| here.
% This will be the name for the result file.
%
% Then, run \TeX\ (not \LaTeX) on the script |schoolb1.tex| which does
% most work to install a new font:
% \verbatiminput{schoolb1.tex}
% This run creates some files with the extensions |.pl| and |.vpl|.
% They have to be converted to |tfm| and |vf| files as follows:
% \verbatiminput{convert.sh}
% Now, you can delete the temporary files with the extensions |.mtx|,
% |.pl|, and |.vpl|.
%
% The new font is ready for use with \LaTeX, now (only for T1 and TS1
% encoding, OT1 encoding has been left out).
% Just run \LaTeX\ on the test file |testschoolb.tex|.
% But you are not yet able to use dvips or \textsc{pdf}\LaTeX\
% because they need a |map| file.
% The corresponding one, |schoolb.map| looks like this:
% \verbatiminput{schoolb.map}
% With help of this map file, the |dvi| file can be converted to
% Postscript using dvips:
% |dvips -u +./schoolb.map -o testeschoolb-1.ps testschoolb|
% Unfortunately, you cannot use \textsc{pdf}\LaTeX\ without adding the
% contents of |schoolb.map| to the global |map| file.
%
% When viewing the result in |testschoolb-1.ps|
% (Fig.~\ref{fig:centuryschool1}), you see that this specific font
% already has most kernings that are missing in other fonts.
% \begin{figure}
% \centering
% \fboxsep=1mm
% \makebox[\textwidth][c]{%
% \fbox{\includegraphics[scale=1.0]{testschoolb-1}}}
% \caption{Font example for Century Schoolbook L with original kerning}
% \label{fig:centuryschool1}
% \end{figure}
% The only really forgotten kernings are A``, A`, \u A``, and
% \quotesinglbase V.
%
% Emagine that many kernings were unsatisfactory.
% Then, we generate a kerning table containing the glyph combinations
% we do not like:
% \verbatiminput{t1-9nc-m-n-1.tex}
% \begin{figure}
% \centering
% \fboxsep=1mm
% \makebox[\textwidth][c]{%
% \fbox{\includegraphics[scale=0.8]{t1-9nc-m-n-1}}}
% \caption{Kerning table for Century Schoolbook L}
% \label{fig:centuryschool1-table}
% \end{figure}
% This leads to the output shown in
% Fig.~\ref{fig:centuryschool1-table} and to the |mtx| file
% |t1-9nc-m-n-1.mtx|:
% \verbatiminput{t1-9nc-m-n-1.mtx}
% Using this file, you can repeat the |fontinst| run with a slightly
% changed script |schoolb2.tex|:
% \verbatiminput{schoolb2.tex}
% The only change amongst |schoolb1.tex| is the added entry
% |t1-9nc-m-n-1,| at the beginning of the second argument of the
% \cs{installfont\{9ncr8t\}} command.
% This includes the new kernings into the generated font.
% After repeating also the |pltotf| and |vptovf| calls, you can use
% the font with the new kernings.
% Running \LaTeX\ and dvips again on |testschoolb.tex| gives the
% output of Fig.~\ref{fig:centuryschool2}.
% \begin{figure}
% \centering
% \fboxsep=1mm
% \makebox[\textwidth][c]{%
% \fbox{\includegraphics[scale=1.0]{testschoolb-1}}}\\[\medskipamount]
% \makebox[\textwidth][c]{%
% \fbox{\includegraphics[scale=1.0]{testschoolb-2}}}
% \caption{Font example for Century Schoolbook L with original (top)
% and modified (bottom) kerning.
% The kerning is much too strong.
% Here, it only shows the effect of altering the kerning.}
% \label{fig:centuryschool2}
% \end{figure}
% Here, the kerning values are much too strong.
% The only aim of this was to show a clear difference between original
% and modified kerning.
% Have a look at the \u A kernings.
% They have been set to be half as large as the A kernings on both
% sides.
%
% The last thing to do is to install the font files into the
% corresponding paths of your \TeX\ distribution and to append the map
% information to the global map files (normally by using |updmap|).
%
%
% \begin{thebibliography}{9}
%
% \newcommand\ctanurl[1]{\url{ftp://ftp.dante.de/tex-archive/#1}}%
%
% \bibitem{berry1999a}
% Karl Berry.
% \newblock Fontname, May 2003.
% \newblock \ctanurl{info/fontname/}.
%
% \bibitem{forssman2002a}
% Friedrich Forssman, Ralf de Jong.
% \newblock Detailtypografie, Verlag Hermann Schmidt, Mainz, Germany,
% 2002.
%
% \bibitem{hoenig1998a}
% Alan Hoenig.
% \newblock \TeX\ Unbound---\LaTeX\ \&\ \TeX\ Strategies for Fonts,
% Graphics, \&\ More, Oxford University Press, 1998.
%
% \bibitem{fontinst1998a}
% Alan Jeffry, Rowland McDonnell.
% \newblock fontinst---Font installation software for \TeX, June 1998.
% \newblock \ctanurl{fonts/utilities/fontinst/}.
%
% \bibitem{lehman2003a}
% Philipp Lehman.
% \newblock The Font Installation Guide, August 2003.
% \newblock \ctanurl{info/Type1fonts/fontinstallationguide.pdf}.
%
%\end{thebibliography}
%
% \StopEventually{\PrintChanges \PrintIndex}
%
% \section{The implementation}
%
% Heading of all files.
% \begin{macrocode}
%<class>\ProvidesClass{kerntest}
%<mtx&t1>\ProvidesFile{t1mtx.clo}
%<mtx&ts1>\ProvidesFile{ts1mtx.clo}
%<mtx&ot1>\ProvidesFile{ot1mtx.clo}
%<mtx&t2a>\ProvidesFile{t2amtx.clo}
%<mtx&t2b>\ProvidesFile{t2bmtx.clo}
%<mtx&ly1>\ProvidesFile{ly1mtx.clo}
%<version>\ProvidesFile{krntst-v.tex}
%<class|mtx|version> [2004/04/14 v1.32 Generate kerning tables]
% \end{macrocode}
%
% \subsection{Class file}
%
% Use a standard class as base.
% \begin{macrocode}
%<*class>
\LoadClass[10pt]{article}
% \end{macrocode}
% Use most of the space on the paper.
% \begin{macrocode}
\RequirePackage[top=18mm,left=15mm,right=15mm,bottom=20mm]{geometry}
% \end{macrocode}
% \changes{1.32}{2004/04/14}{Do not scale Helvetica by default because
% this breaks testing Helvetica}%
% Font for the legends.
% \begin{macrocode}
\renewcommand*\familydefault{\sfdefault}
\RequirePackage{helvet}
% \end{macrocode}
% More required packages.
% \begin{macrocode}
\RequirePackage{calc}
\RequirePackage{longtable}
\RequirePackage{array}
\RequirePackage{color}
\RequirePackage{ifthen}
\RequirePackage{keyval}
% \end{macrocode}
% Layout settings.
% \begin{macrocode}
\pagestyle{myheadings}
\def\@oddfoot{Kerning data, marked with $\ast$, are automatically reused
from values given before.
Repeated values are marked by $\dagger$.\hfill}
\def\@evenfoot{\@oddfoot}
\setlength{\parindent}{0mm}
% \end{macrocode}
% Declare lengths for the font size and the baselineskip.
% \begin{macrocode}
\newlength\krntst@size
\newlength\krntst@baselineskip
% \end{macrocode}
% Set the default values for the class options.
% \begin{macrocode}
\def\krntst@encoding{T1}
\def\krntst@series{m}
\def\krntst@shape{n}
\setlength\krntst@size{17.28pt}
\setlength\krntst@baselineskip{1.2\krntst@size}
\def\krntst@example{example}
\def\krntst@extraname{}
\definecolor{oldcolor}{gray}{0.5}
\definecolor{newcolor}{gray}{0}
\newboolean{krntst@writeall}
% \end{macrocode}
% The design size is given as command rather than as length because it
% shall not be calculated to a real length (in pt), but it shall scale
% with the chosen font.
% \begin{macrocode}
\newcommand\krntst@designsize{1em}
% \end{macrocode}
% Process the class options using the |keyval| package.
% \begin{macrocode}
\def\ProcessOptionsWithKV#1{%
\let\@tempc\relax
\let\KVo@tempa\@empty
\edef\KVo@tempa{%
\noexpand\setkeys{#1}{%
\@ptionlist{\@currname.\@currext}%
}%
}%
\KVo@tempa
\let\CurrentOption\@empty
}
% \end{macrocode}
% Define the keys for the class options and the \cs{kernsetup}
% command.
% \begin{macrocode}
\define@key{krntst}{encoding}{\def\krntst@encoding{#1}}
\define@key{krntst}{family}{\def\krntst@family{#1}}
\define@key{krntst}{series}{\def\krntst@series{#1}}
\define@key{krntst}{shape}{\def\krntst@shape{#1}}
\define@key{krntst}{size}{%
\setlength\krntst@size{#1}%
\setlength\krntst@baselineskip{1.2\krntst@size}%
}
\define@key{krntst}{baselineskip}{\setlength\krntst@baselineskip{#1}}
\define@key{krntst}{designsize}{\def\krntst@designsize{#1}}%
\define@key{krntst}{example}{\def\krntst@example{#1}}
\define@key{krntst}{papersize}{\geometry{#1}}
\define@key{krntst}{extraname}{\def\krntst@extraname{-#1}}
\define@key{krntst}{color}[true]{%
\csname if#1\endcsname
\definecolor{oldcolor}{gray}{0}%
\definecolor{newcolor}{rgb}{1,0,0}%
\else
\definecolor{oldcolor}{gray}{0.5}%
\definecolor{newcolor}{gray}{0}%
\fi
}
% \end{macrocode}
% Do the copying of quotation marks by introducing glyph classes.
% \begin{macrocode}
\define@key{krntst}{copyquotation}[true]{%
\csname if#1\endcsname
\newglyphclass{left}{leftguillemots}{guillemotleft,guilsinglleft}%
\newglyphclass{right}{leftguillemots}{guillemotleft,guilsinglleft}%
\newglyphclass{left}{rightguillemots}{guillemotright,guilsinglright}%
\newglyphclass{right}{rightguillemots}{guillemotright,guilsinglright}%
\newglyphclass{left}{leftquotes}{quotedblleft,quoteleft}%
\newglyphclass{right}{leftquotes}{quotedblleft,quoteleft}%
\newglyphclass{left}{rightquotes}{quotedblright,quoteright}%
\newglyphclass{right}{rightquotes}{quotedblright,quoteright}%
\newglyphclass{left}{basequotes}{quotedblbase,quotesinglbase}%
\newglyphclass{right}{basequotes}{quotedblbase,quotesinglbase}%
\fi
}
\define@key{krntst}{writeall}[true]{%
\setboolean{krntst@writeall}{#1}%
\ClassWarningNoLine{kerntest}{You are writing the new and the
original kerning data\MessageBreak
to the mtx file (option `writeall'). Normally, it is\MessageBreak
not necessary to write original data}%
}
\define@key{krntst}{footer}[true]{%
\csname if#1\endcsname
\else
\def\@oddfoot{}%
\def\@evenfoot{\@oddfoot}%
\fi
}
% \end{macrocode}
% \begin{macro}{\kernsetup}
% Define the macro \cs{kernsetup} and make it available only in the
% preamble.
% \begin{macrocode}
\newcommand\kernsetup{\setkeys{krntst}}
\@onlypreamble\kernsetup
% \end{macrocode}
% \end{macro}
% \changes{1.10}{2004/04/06}{Load configuration file if available}%
% Read in the configuration file if available.
% Do it before processing the options to allow the options to
% overwrite the configuration file entries.
% \begin{macrocode}
\AtEndOfClass{%
\InputIfFileExists{kerntest.cfg}{%
\message{Configuration file `kerntest.cfg' loaded.}%
}{%
\message{No configuration file `kerntest.cfg' found.}%
}
% \end{macrocode}
% Now, process the class options.
% \begin{macrocode}
\ProcessOptionsWithKV{krntst}
% \end{macrocode}
% This has to do something with a problem in |keyval.sty|.
% I do not really know what it does exactly.
% \begin{macrocode}
\let\@unprocessedoptions\relax
}
% \end{macrocode}
% Generate an error message if the class option |family| has not been
% given in the \cs{documentclass} command.
% \begin{macrocode}
\ifx\krntst@family\relax
\ClassError{kerntest}{Class option family not or incorrect
given\@gobble}{%
You have to specify the font family by using the
class\MessageBreak
option family=<fontfamily>}%
\stop
\fi
% \end{macrocode}
% Redefine the |family| option to be unusable in the \cs{kernsetup}
% command.
% \begin{macrocode}
\AtEndOfClass{%
\define@key{krntst}{family}{%
\ClassError{kerntest}{Option `family' used outside
\string\documentclass\space command}{%
The option `family=<fontfamily>' has to be specified in the
optional argument\MessageBreak
of the \string\documentclass\space command.}%
}
}
% \end{macrocode}
% \begin{macro}{\mtxcomment}
% Define a command that writes a comment to the |mtx| file.
% \begin{macrocode}
\newcommand\mtxcomment[1]{%
\protected@write\mtxfile{}{\@percentchar\space #1}%
}
% \end{macrocode}
% \end{macro}
% Define a command that is used to access the font for the legends.
% \begin{macrocode}
\newcommand\krntst@helpfont{\normalfont\normalsize}
% \end{macrocode}
% An internal counter that stores the slot of a glyph.
% \begin{macrocode}
\newcounter{@glyphslot}%
% \end{macrocode}
% The following commands have to be done at \cs{begin\{document\}} to
% ensure that all \cs{kernsetup} calls have been made before.
% \begin{macrocode}
\AtBeginDocument{%
% \end{macrocode}
% Load all used encodings and |T1| for the legends.
% If |T1| is used, it is loaded twice; it does not seem to be bad.
% \begin{macrocode}
\RequirePackage[\krntst@encoding,T1]{fontenc}
% \end{macrocode}
% Load the file that provides the Postscript glyph names.
% The trick to make it lowercase ist stolen from the |fontenc|
% package.
% \begin{macrocode}
\edef\reserved@f{%
\lowercase{\def\noexpand\reserved@f{\krntst@encoding mtx.clo}}}%
\reserved@f
\InputIfFileExists\reserved@f{}{%
\ClassWarningNoLine{kerntest}{Postscript name file `\reserved@f'
not found.\MessageBreak
The kerning table will be okay, but the generated mtx file will
not be usable}%
\newcommand\getpsname[1]{unknown character `##1'}%
}%
% \end{macrocode}
% \changes{1.32}{2004/04/14}{Direct access on glyph names instead of
% parsing \cs{getpsname}}%
% Generate macros of the form \cs{slotnumber@glyph@\meta{glyphname}}
% that return the slot number for each glyph.
% This is faster than parsing \cs{getpsname} for the searched glyph
% (on the cost of memory).
% \begin{macrocode}
\setcounter{@glyphslot}{0}%
\whiledo{\the\c@@glyphslot<256}{%
\expandafter\edef
\csname slotnumber@glyph@\getpsname{\the\c@@glyphslot}\endcsname{%
\the\c@@glyphslot}%
\stepcounter{@glyphslot}%
}%
% \end{macrocode}
% Initialise some font-specific things.
% This is done in a group to save the normal legend font outside the
% kerning table.
% \begin{macrocode}
\begingroup
% \end{macrocode}
% Switch to the font that shall be tested to see if the desired font
% size is possible etc.
% \begin{macrocode}
\usefont{\krntst@encoding}{\krntst@family}{\krntst@series}{\krntst@shape}%
\fontsize{\krntst@size}{\krntst@baselineskip}\selectfont%
% \end{macrocode}
% Set the Postscript font unit to 0.001 of the design size which is
% 1\,em, normally.
% \begin{macrocode}
\psunit=\krntst@designsize\relax
\global\psunit=0.001\psunit
% \end{macrocode}
% Give some feedback.
% \begin{macrocode}
\typeout{Requested: \krntst@encoding-\krntst@family-%
\krntst@series-\krntst@shape, size \the\krntst@size}%
\typeout{Using:\space\space\space\space\space \f@encoding-\f@family-%
\f@series-\f@shape, size \f@size pt}%
\expandafter\ifdim\the\krntst@size=\f@size pt\relax
\else
\ClassWarningNoLine{kerntest}{Using different font size than
requested}%
\fi
\setlength{\@tempdima}{\krntst@designsize}%
\typeout{Postscript font unit for design size \the\@tempdima:
\the\psunit}%
\expandafter\ifdim\the\@tempdima=\f@size pt\relax
\else
\ClassWarningNoLine{kerntest}{The design size (\the\@tempdima,
1em by default,\MessageBreak
or given value from option `designsize') of the
font\MessageBreak
is not equal to the LaTeX font size (\f@size pt).\MessageBreak
This can have two reasons:\MessageBreak
1. The font does not define 1em to be the design
size\MessageBreak
\space\space\space (for example, Computer
Modern).\MessageBreak
2. The font is implicitely scaled by the fd-file\MessageBreak
\space\space\space (for example, when using
helvet.sty).\MessageBreak
This can cause the PostScript font unit length to
be\MessageBreak
incorrect.
You may set the design size for calculation\MessageBreak
of the font unit explicitely by using the class\MessageBreak
option `designsize'}%
\fi
% \end{macrocode}
% Define the name for the headings and the |mtx| file (lowercase trick
% again taken from |fontenc.sty|).
% \begin{macrocode}
\edef\mtxfilename{%
\lowercase{\gdef\noexpand\mtxfilename{%
\f@encoding-\f@family-\f@series-\f@shape\krntst@extraname}}}%
\mtxfilename
% \end{macrocode}
% Set the page headings.
% \begin{macrocode}
\markboth{\upshape Font \mtxfilename}{\upshape Font \mtxfilename}%
% \end{macrocode}
% Don't change the page headings by \cs{section} etc.
% \begin{macrocode}
% \global\def\markboth#1#2{}%
% \global\def\markright#1{}%
% \end{macrocode}
% Open the |mtx| file.
% \begin{macrocode}
\typeout{^^JWriting mtx file `\mtxfilename.mtx'^^J}%
\immediate\openout\mtxfile\mtxfilename.mtx
% \end{macrocode}
% Write a nice header to the |mtx| file.
% \begin{macrocode}
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
This is file `\mtxfilename.mtx',}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
generated on \number\year/\number\month/\number\day\space
by kerntest.cls, (c) 2004 Harald Harders.}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
The original source file was:}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
\jobname\space (.tex?) with these font options:}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
Encoding: \f@encoding}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
Family: \space\space\f@family}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
Series: \space\space\f@series}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
Shape: \space\space\space\f@shape}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
User-defined name: \krntst@extraname}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\string\relax}%
\protected@write\mtxfile{}{\string\metrics}%
\protected@write\mtxfile{}{\string\needsfontinstversion{1.926}}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
Kerning data for single characters and}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
the first members of the glyph classes.}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
After each \string\setkern\space entry, the glyph classes}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
for both glyphs are given (./. means no class).}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\endgroup
}
% \end{macrocode}
% Declare the output handle for the |mtx| file.
% \begin{macrocode}
\newwrite\mtxfile
% \end{macrocode}
% Round a length to an integer value.
% I am sure this can be done easier, but it works.
% \begin{macrocode}
\def\krntst@round#1.#2#3#4\@empty{%
\setlength\@tempdimc{#1pt}%
\if#2.%
\else
\ifnum#2>4
\ifnum#1#2<0
\addtolength\@tempdimc{-1.1pt}%
\else
\addtolength\@tempdimc{1.1pt}%
\fi
\fi
\fi
\edef\rnd@tempa{\strip@pt\@tempdimc}%
\expandafter\krntst@@round\rnd@tempa.000\@empty
}
% \end{macrocode}
% Calculate the rounded length.
% \begin{macrocode}
\def\krntst@@round#1.#2#3\@empty{\def\kernlen{#1}}
% \end{macrocode}
% \begin{macro}{\round}
% The user routine for rounding lengths.
% The rounded length is \emph{not} returned but saved in the macro
% \cs{kernlen}.
% \begin{macrocode}
\newcommand*\round[1]{%
\setlength\@tempdimc{#1}%
\edef\rnd@tempa{\strip@pt\@tempdimc}%
\expandafter\krntst@round\rnd@tempa.000\@empty
}
% \end{macrocode}
% \end{macro}
% Define the Postscript font length.
% \begin{macrocode}
\newlength\psunit
% \end{macrocode}
% \begin{macro}{\getpsunit}
% Saves the rounded length of arbitrary unit in Postscript font units
% in the dimension \cs{@tempdima}.
% It has to be used with \cs{strip@pt} to get rid of the unit ``pt''
% which is wrong of course.
% \begin{macrocode}
\newcommand\getpsunit[1]{%
\setlength\@tempdima{1pt*\ratio{#1}{\psunit}}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\getkern}
% Get the kerning between the arguments |#1| and |#2|.
% This is done by typesetting |#1#2| with the natural kerning and with
% supressed kerning (|#1\kern 0pt#2|).
% The difference of the box widths is the kerning.
% Return an integer value in Postscript font units.
% \begin{macrocode}
\newcommand\getkern[2]{%
\settowidth\@tempdima{#1#2}%
\settowidth\@tempdimb{#1\kern0pt#2}%
% \end{macrocode}
% The next line works better than deviding |\@tempdima-\@tempdimb| by
% |0.001em| because rounding errors are avoided.
% \begin{macrocode}
\setlength\@tempdima{1pt*\ratio{(\@tempdima-\@tempdimb)*1000}{1em}}%
\round{\@tempdima}%
}
% \end{macrocode}
% \end{macro}
% The internal routine for \cs{saveslotnumber}.
% Finds out if a slot number or the Postscript name is given and saves
% the slot number in the counter |@glyphslot|.
% \begin{macrocode}
\def\@saveslotnumber#1#2\@empty{%
\if#1"\relax
\setcounter{@glyphslot}{#1#2}%
\else
\if#1'\relax
\setcounter{@glyphslot}{#1#2}%
\else
\ifnum9<1#1\relax
\setcounter{@glyphslot}{#1#2}%
\else
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname slotnumber@glyph@#1#2\endcsname\relax
\setcounter{@glyphslot}{-1}%
\else
\setcounter{@glyphslot}{\csname slotnumber@glyph@#1#2\endcsname}%
\fi
\fi
\fi
\fi
\ifnum\the\c@@glyphslot>255\relax
\setcounter{@glyphslot}{-1}%
\fi
}
% \end{macrocode}
% \begin{macro}{\saveslotnumber}
% Saves the slot number of a glyph given as second argument (by
% PostScript name or its slot number in decimals, octal, or
% hexadecimals) in the counter specified in the first argument.
% \begin{macrocode}
\DeclareRobustCommand*\saveslotnumber[2]{%
\expandafter\@saveslotnumber#2\@empty
\setcounter{#1}{\the\c@@glyphslot}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\getslotnumber}
% Returns the slot number of a given glyph (by PostScript name or its
% slot number in decimals, octal, or hexadecimals) in a decimal number.
% \begin{macrocode}
\newcommand\getslotnumber[1]{%
\expandafter\@saveslotnumber#1\@empty
\ifnum\the\c@@glyphslot<0\relax
\textbf{???}%
\else
\ifnum\c@@glyphslot<100\relax0\fi
\ifnum\c@@glyphslot<10\relax0\fi
\the\c@@glyphslot
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\printglyph}
% Print the glyph with the given PostScript name or slot number (in
% decimals, octal, or hexadecimals; as usual in \LaTeX).
% Unfortunately, no kerning appears on the left side of the printed
% glyph.
% For example, |\printglyph{A}V| is kerned, but |A\printglyph{V}|
% isn't.
% You can solve this by saving the slot number first and by using it
% later, for example:
%\begin{verbatim}
%\newcounter{slotV}%
%\saveslotnumber{slotV}{V}%
%A\char\arabic{slotV}
%\end{verbatim}
% \begin{macrocode}
\newcommand*\printglyph[1]{%
\expandafter\@saveslotnumber#1\@empty
\char\the\c@@glyphslot
}
% \end{macrocode}
% \end{macro}
% A help macro for comparing arguments with ``|-|''.
% \begin{macrocode}
\edef\@minussign{-}%
% \end{macrocode}
% Counters storing the slot numbers for the three glyphs used within
% one line of the |kerntable| environment.
% \begin{macrocode}
\newcounter{@slota}
\newcounter{@slotb}
\newcounter{@slotc}
% \end{macrocode}
% \begin{macro}{\testkern}
% The main macro of the class.
% It takes 5 arguments:\\
% \marg{glyph 1}\marg{kerning 1--2}\marg{glyph 2}\marg{kerning
% 2--3}\marg{glyph 3}.\\
% The glyphs are given by their number, not the glyphs itself.
% \begin{macrocode}
\newcommand\testkern[5]{%
% \end{macrocode}
% Save the kerning arguments globally because otherwise they got lost
% from tabular cell to tabular cell.
% \begin{macrocode}
\xdef\@kernlena{#2}%
\xdef\@kernlenb{#4}%
% \end{macrocode}
% Get the slot numbers for the three characters and save them in the
% counters |@slota|, |@slotb|, and |@slotc|.
% \begin{macrocode}
\saveslotnumber{@slota}{#1}%
\ifnum\the\c@@slota<0%
\ClassError{kerntest}{Used unknown glyph `#1'}{%
You may have misspelled the glyph or you have taken an invalid
number.}%
\setcounter{@slota}{0}%
\fi
\saveslotnumber{@slotb}{#3}%
\ifnum\the\c@@slotb<0%
\ClassError{kerntest}{Used unknown glyph `#3'}{%
You may have misspelled the glyph or you have taken an invalid
number.}%
\setcounter{@slotb}{0}%
\fi
\saveslotnumber{@slotc}{#5}%
\ifnum\the\c@@slotc<0%
\ClassError{kerntest}{Used unknown glyph `#5'}{%
You may have misspelled the glyph or you have taken an invalid
number.}%
\setcounter{@slotc}{0}%
\fi
% \end{macrocode}
% Find out if there are old kerning data for one of the two glyph
% pairs.
%
% First pair.
%
% The better form of \cs{@ifundefined} that does not define its
% argument as side-effect.
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname\relax
% \end{macrocode}
% No old kerning.
% Thus don't do any kerning later.
% \begin{macrocode}
\gdef\oldkerna{}%
\else
% \end{macrocode}
% Old kerning exists.
% Save the old kerning to apply it later.
% \begin{macrocode}
\gdef\oldkerna{%
\kern
\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname
\psunit
}%
% \end{macrocode}
% If no new kerning ist given just tell the user that he reuses a
% kerning.
% \begin{macrocode}
\ifx\@kernlena\@minussign
\typeout{Kerning pair for \getpsname{\the\c@@slota}-%
\getpsname{\the\c@@slotb} reused (value
\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname).}%
\else
% \end{macrocode}
% Old kerning exists and new kerning, too.
% Test if the old and new kernings are identical.
% \begin{macrocode}
\ifnum\@kernlena=\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname\relax
% \end{macrocode}
% Yes.
% Nevertheless, generate a warning.
% \begin{macrocode}
\ClassWarning{kerntest}{Kerning for
\getpsname{\the\c@@slota}-\getpsname{\the\c@@slotb}\MessageBreak
repeated (value #2)}%
\else
% \end{macrocode}
% No.
% Produce an erroe message.
% \begin{macrocode}
\ClassError{kerntest}{Conflicting kerning for
\getpsname{\the\c@@slota}-\getpsname{\the\c@@slotb}\MessageBreak
(new value #2 != old value
\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname)%
}{%
You have given the kerning for the specified glyph pair
twice with different\MessageBreak
values. This may also appear when using glyph classes.
You have to give the\MessageBreak
kerning only once per glyph class.\MessageBreak
You may leave out the second kerning pair, or you may
give\MessageBreak
the kerning `-'. Then, the old value is reused.
}%
\fi
\fi
\fi
% \end{macrocode}
% Second pair.
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname\relax
\gdef\oldkernb{}%
\else
\gdef\oldkernb{%
\kern
\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname
\psunit
}%
%
\ifx\@kernlenb\@minussign
\typeout{Kerning pair for \getpsname{\the\c@@slotb}-%
\getpsname{\the\c@@slotc} reused (value
\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname).}%
\else
\ifnum\@kernlenb=\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname\relax
\ClassWarning{kerntest}{Kerning for
\getpsname{\the\c@@slotb}-\getpsname{\the\c@@slotc}\MessageBreak
repeated (value #4)}%
\else
\ClassError{kerntest}{Conflicting kerning for
\getpsname{\the\c@@slotb}-\getpsname{\the\c@@slotc}\MessageBreak
(new value #4 != old value
\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname)%
}{%
You have given the kerning for the specified glyph pair
twice with different\MessageBreak
values. This may also appear when using glyph classes.
You have to give the\MessageBreak
kerning only once per glyph class.\MessageBreak
You may leave out the second kerning pair, or you may
give\MessageBreak
the kerning `-'. Then, the old value is reused.
}%
\fi
\fi
\fi
% \end{macrocode}
% First, type the slot number of glyph~2.
% \begin{macrocode}
\krntst@helpfont\getslotnumber{#3}%
&
% \end{macrocode}
% Type the postscript name of glyph~2.
% \begin{macrocode}
\krntst@helpfont\getpsname{\the\c@@slotb}%
&
% \end{macrocode}
% Print the three glyphs with original kerning.
% \begin{macrocode}
\char\the\c@@slota\char\c@@slotb\char\c@@slotc%
&
% \end{macrocode}
% Print glyph~1.
% \begin{macrocode}
\char\the\c@@slota%
% \end{macrocode}
% If a kerning is given, apply it; otherwise do nothing.
% \begin{macrocode}
\ifx\@kernlena\@minussign
\oldkerna
\else
\kern#2\psunit
\fi
% \end{macrocode}
% Print glyph~2.
% \begin{macrocode}
\char\the\c@@slotb%
% \end{macrocode}
% If a kerning is given, apply it; otherwise do nothing.
% \begin{macrocode}
\ifx\@kernlenb\@minussign
\oldkernb
\else
\kern#4\psunit
\fi
% \end{macrocode}
% Print glyph~3.
% \begin{macrocode}
\char\the\c@@slotc%
&
% \end{macrocode}
% Do the same as in columns 2 and 3, but twice at the same place.
% First, natural kerning.
% \begin{macrocode}
\color{oldcolor}%
\makebox[0pt][l]{\char\the\c@@slota\char\the\c@@slotb\char\the\c@@slotc}%
% \end{macrocode}
% Second, newly given kerning.
% Switch the color depending if a kerning has been given.
% \begin{macrocode}
\ifx\@kernlena\@minussign
\ifthenelse{\equal{\oldkerna}{}}{}{\color{newcolor}}%
\else
\color{newcolor}%
\fi
\ifx\@kernlenb\@minussign
\ifthenelse{\equal{\oldkernb}{}}{}{\color{newcolor}}%
\else
\color{newcolor}%
\fi
\char\the\c@@slota%
\ifx\@kernlena\@minussign
\oldkerna
\else
\kern#2\psunit
\fi
\char\the\c@@slotb%
\ifx\@kernlenb\@minussign
\oldkernb
\else
\kern#4\psunit
\fi
\char\the\c@@slotc%
&
% \end{macrocode}
% Get the value of the natural kerning.
% This has to be done with the tested font switched on to get the
% right values.
% This value is saved in \cs{kernlen} for later use.
% \begin{macrocode}
\getkern{\char\the\c@@slota}{\char\the\c@@slotb}%
% \end{macrocode}
% Switch to the legend font.
% \begin{macrocode}
\krntst@helpfont
% \end{macrocode}
% If no kerning is given (\marg{kerning 1--2}|=-|) print out the
% original kerning.
% The part \cs{ifdim}\ldots\cs{fi} adds a |-| if the kerning is
% negative.
% Together with the negative kerning, this gives a ``--'' instead of a
% ``-''.
% \begin{macrocode}
\ifx\@kernlena\@minussign
\ifthenelse{\equal{\oldkerna}{}}{%
\textcolor{oldcolor}{\small
\ifdim\kernlen pt<0pt-\fi
\ifdim\kernlen pt>0pt+\fi
\kernlen}%
}{%
\ifnum\kernlen=0\relax
\else
\textcolor{oldcolor}{\small(%
\ifdim\kernlen pt<0pt-\fi
\ifdim\kernlen pt>0pt+\fi
\kernlen)}%
\fi
~\textcolor{newcolor}{\large
\ifnum
\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname<0-\fi
\csname kt@kerning@\getpsname{\the\c@@slota}@%
\getpsname{\the\c@@slotb}\endcsname
\makebox[0pt][l]{$^\ast$}%
}%
}%
% \end{macrocode}
% Write old kerning to |mtx| file.
% \begin{macrocode}
\ifthenelse{\boolean{krntst@writeall}\and\not\equal{\kernlen}{0}}{%
\writemtxkern[original kerning]{\the\c@@slota}{%
\ifdim\kernlen pt>0pt+\fi\kernlen}{\the\c@@slotb}%
}{}%
% \end{macrocode}
% If a kerning is given print the new kerning (same trick with
% negative numbers).
% \begin{macrocode}
\else
% \end{macrocode}
% If there were original kerning data, print the in parenthesis first.
% \begin{macrocode}
\ifdim\kernlen pt=0pt
\else
\textcolor{oldcolor}{\small(%
\ifdim\kernlen pt<0pt-\fi
\ifdim\kernlen pt>0pt+\fi
\kernlen)}
\fi
\textcolor{newcolor}{\large
\ifnum#2<0-\fi#2%
\ifthenelse{\equal{\oldkerna}{}}{%
}{\makebox[0mm][l]{$^\dagger$}}%
}%
% \end{macrocode}
% Write the new kerning information into the |mtx| file.
% \begin{macrocode}
\ifthenelse{\equal{\oldkerna}{}}{%
\writemtxkern{\the\c@@slota}{#2}{\the\c@@slotb}%
}{}%
\fi
&
% \end{macrocode}
% Do the same for the second kerning pair.
% \begin{macrocode}
\getkern{\char\the\c@@slotb}{\char\the\c@@slotc}%
\krntst@helpfont
\ifx\@kernlenb\@minussign
\ifthenelse{\equal{\oldkernb}{}}{%
\textcolor{oldcolor}{\small
\ifdim\kernlen pt<0pt-\fi
\ifdim\kernlen pt>0pt+\fi
\kernlen}%
}{%
\ifnum\kernlen=0\relax
\else
\textcolor{oldcolor}{\small(%
\ifdim\kernlen pt<0pt-\fi
\ifdim\kernlen pt>0pt+\fi
\kernlen)}%
\fi
~\textcolor{newcolor}{\large
\ifnum
\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname<0-\fi
\csname kt@kerning@\getpsname{\the\c@@slotb}@%
\getpsname{\the\c@@slotc}\endcsname
\makebox[0pt][l]{$^\ast$}%
}%
}%
\ifthenelse{\boolean{krntst@writeall}\and\not\equal{\kernlen}{0}}{%
\writemtxkern[original kerning]{\the\c@@slotb}{%
\ifdim\kernlen pt>0pt+\fi\kernlen}{\the\c@@slotc}%
}{}%
\else
\ifdim\kernlen pt=0pt
\else
\textcolor{oldcolor}{\small(%
\ifdim\kernlen pt<0pt-\fi
\ifdim\kernlen pt>0pt+\fi
\kernlen)}
\fi
\textcolor{newcolor}{\large
\ifnum#4<0-\fi#4%
\ifthenelse{\equal{\oldkernb}{}}{%
}{\makebox[0mm][l]{$^\dagger$}}%
}%
\ifthenelse{\equal{\oldkernb}{}}{%
\writemtxkern{\the\c@@slotb}{#4}{\the\c@@slotc}%
}{}%
\fi
&
% \end{macrocode}
% Print the example with natural kerning.
% \begin{macrocode}
\char\the\c@@slota\char\the\c@@slotb
\krntst@example
\char\the\c@@slotb\char\the\c@@slotc
&
% \end{macrocode}
% Print the example with new kerning.
% \begin{macrocode}
\char\the\c@@slota%
\ifx\@kernlena\@minussign
\else
\kern#2\psunit
\fi
\char\the\c@@slotb\krntst@example\char\the\c@@slotb
\ifx\@kernlenb\@minussign
\else
\kern#4\psunit
\fi
\char\the\c@@slotc%
&
% \end{macrocode}
% Switch to legend font for the comments that may appear.
% \begin{macrocode}
\krntst@helpfont\ignorespaces
}
% \end{macrocode}
% \end{macro}
% \begin{environment}{kerntable}
% The kerning table environment.
% \begin{macrocode}
\newenvironment{kerntable}{%
% \end{macrocode}
% Switch to the tested font.
% \begin{macrocode}
\usefont{\krntst@encoding}{\krntst@family}{\krntst@series}{\krntst@shape}%
\fontsize{\krntst@size}{\krntst@baselineskip}\selectfont%
% \end{macrocode}
% Start a |longtable| environment for the kerning samples.
% \begin{macrocode}
\begin{longtable}[l]{@{}lll@{~}l@{~}l@{~}rrlll@{}}
% \end{macrocode}
% Type the header of the table.
% \begin{macrocode}
\krntst@helpfont slot&
\krntst@helpfont name&
\krntst@helpfont orig&
\krntst@helpfont new&
\krntst@helpfont both&
\krntst@helpfont k.\,1&
\krntst@helpfont k.\,2&
\krntst@helpfont orig.&
\krntst@helpfont new&
\krntst@helpfont comment\\
\endhead
% \end{macrocode}
% Repeat it as footer.
% \begin{macrocode}
\krntst@helpfont slot&
\krntst@helpfont name&
\krntst@helpfont orig&
\krntst@helpfont new&
\krntst@helpfont both&
\krntst@helpfont k.\,1&
\krntst@helpfont k.\,2&
\krntst@helpfont orig.&
\krntst@helpfont new&
\krntst@helpfont comment\\
\endfoot
}{%
% \end{macrocode}
% And now the end of the table.
% \begin{macrocode}
\end{longtable}%
\ignorespacesafterend
}
% \end{macrocode}
% \end{environment}
% \begin{macro}{\writemtxkern}
% \changes{1.32}{2004/04/14}{Speed up \cs{writemtxkern}}%
% \changes{1.10}{2004/04/06}{Handle optional comment}%
% Write an entry into the |mtx| file.
% This command copies double quotes to single quotes if requested
% (only if no optional argument is given).
% \begin{macrocode}
\newif\if@tempswb
\newcommand\writemtxkern[4][\@empty]{%
% \end{macrocode}
% Store the glyph names of both glyphs in \cs{@firstglyphname} and
% \cs{@secondglyphname}.
% \begin{macrocode}
\expandafter\@saveslotnumber#2\@empty
\edef\@firstglyphname{\getpsname{\c@@glyphslot}}%
\expandafter\@saveslotnumber#4\@empty
\edef\@secondglyphname{\getpsname{\c@@glyphslot}}%
% \end{macrocode}
% Test if a comment has been given.
% \begin{macrocode}
\ifthenelse{\equal{#1}{\@empty}}{%
% \end{macrocode}
% Get the corresponding glyph class for the first character and save
% it in \cs{rightkern}.
% If none, \cs{rightkern} is set to \cs{@empty}.
% \begin{macrocode}
\edef\rightkern{\getclassofglyph{right}{\@firstglyphname}}%
% \end{macrocode}
% If the glyph is in no glyph class, make a temporary glyph class
% \cs{rightkern} which contains only this glyph.
% Define the comment \cs{textright} for the |mtx| file.
% \begin{macrocode}
\ifthenelse{\equal{\rightkern}{\@empty}}{%
\edef\textright{./.}%
\def\rightkern{@firstglyphname}%
}{%
\edef\textright{\expandafter\@getclassname\rightkern\@empty}%
}%
% \end{macrocode}
% Get the corresponding glyph class for the second character and save
% it in \cs{leftkern}.
% If none, \cs{leftkern} is set to \cs{@empty}.
% \begin{macrocode}
\edef\leftkern{\getclassofglyph{left}{\@secondglyphname}}%
% \end{macrocode}
% If the glyph is in no glyph class, make a temporary glyph class
% \cs{leftkern} which contains only this glyph.
% Define the comment \cs{leftright} for the |mtx| file.
% \begin{macrocode}
\ifthenelse{\equal{\leftkern}{\@empty}}{%
\edef\textleft{./.}%
\def\leftkern{@secondglyphname}%
}{%
\edef\textleft{\expandafter\@getclassname\leftkern\@empty}%
}%
% \end{macrocode}
% Set the kernig data for all kerning pairs that can be found in both
% glyph classes \cs{rightkern} and \cs{leftkern}.
% \begin{macrocode}
\@tempswbtrue
\@forallinclass{\rightkern}{first}{%
\@forallinclass{\leftkern}{second}{%
% \end{macrocode}
% Write the kerning data to the |mtx| file, but only for the first
% members of the glyph classes.
% The others are set in the |mtx| file by \cs{setrightkerning} and
% \cs{setleftkerning}.
% \begin{macrocode}
\if@tempswb
\protected@write\mtxfile{}{%
\string\setkern
{\first}{\second}{#3}%
\@percentchar\space\space\textright\space-- \textleft
}% protected@write
\@tempswbfalse
\fi
% \end{macrocode}
% Define a command \cs{kt@kerning@\meta{first glyph}@\meta{second
% glyph}} that contains the kerning for later testing on conflicting
% values.
% Scale the kerning data according to the given values in
% \cs{defglyphclass}.
% \begin{macrocode}
\setcounter{@tmpscale}{#3*\first@scaling*\second@scaling/1000000}%
\typeout{\first-\second: \the@tmpscale}%
\expandafter\xdef\csname kt@kerning@\first @\second\endcsname{%
\the@tmpscale}%
% \expandafter\xdef\csname kt@kerning@\first @\second\endcsname{#3}%
}% forallinclass second
}% forallinclass first
}{%
% \end{macrocode}
% If an optional argument has been given, just write this kerning pair
% without any tests.
% \begin{macrocode}
\protected@write\mtxfile{}{%
\string\setkern
{\@firstglyphname}{\@secondglyphname}{#3}%
\@percentchar\space\space #1%
}%
% \end{macrocode}
% Nevertheless, generate the command for testing on conflicting values.
% \begin{macrocode}
\expandafter\xdef
\csname kt@kerning@\@firstglyphname@\@secondglyphname\endcsname{#3}%
}%
}%
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Glyph classes}%
% \label{sec:glyphclasses}%
%
% \begin{macro}{\defglyphclass}
% The macro
% \cs{defglyphclass}\marg{side}\marg{name}\marg{glyphlist}
% defines a class of glyphs that have the same kerning on the same
% \meta{side} which has to be ``|left|'' or ``|right|''.
% \meta{name} is the name of the glyph class while \meta{glyphlist} is
% a comma-separated list of all glyphs that have the same kerning on
% their \meta{side} side.
% \begin{macrocode}
\newcounter{@tmpscale}
\newcounter{@firstscale}
\newcommand\defglyphclass[3]{%
% \end{macrocode}
% Do it at \cs{begin\{document\}} because otherwise it is not clear
% which encoding is used and thus the glyphs are not yet known.
% \begin{macrocode}
\AtBeginDocument{%
% \end{macrocode}
% Test if a list of glyph classes exists for the chosen \meta{side}.
% \begin{macrocode}
\@ifundefined{glyphclasslist@#1}{%
% \end{macrocode}
% No glyph class of the current \meta{side} has been defined, yet.
% Install a new one.
% \begin{macrocode}
\expandafter\def\csname glyphclasslist@#1\endcsname{%
glyphclass@#1@#2}%
}{%
% \end{macrocode}
% The needed glyph-class list exists.
% Test if there is an old glyph class with the same name (\meta{side}
% and \meta{name}).
% \begin{macrocode}
\begingroup
\@tempswatrue
\forallclasses{#1}{@tmpcls}{%
\ifthenelse{\equal{\@tmpcls}{glyphclass@#1@#2}}{%
\@tempswafalse
}{}%
}%
% \end{macrocode}
% If this is not the case, append the new glyph class to the glyph
% class list.
% \begin{macrocode}
\if@tempswa
\expandafter\xdef\csname glyphclasslist@#1\endcsname{%
\csname glyphclasslist@#1\endcsname,glyphclass@#1@#2}%
\fi
\endgroup
}%
% \end{macrocode}
% Define the macro \cs{glyphclass@\meta{side}@\meta{name}} that stores
% the \meta{glyphlist} for this glyph class.
% At this stage it is defined empty in order to avoid that error
% messages are generated for ``already used glyphs''.
% \begin{macrocode}
\expandafter\def\csname glyphclass@#1@#2\endcsname{}%
% \end{macrocode}
% Store the new \meta{glyphlist} in a temporary variable
% \cs{tmpglyphclass}.
% To do this, all glyphs of the list are converted to Postscript glyph
% names and tested if they are valid.
% Also, it is tested if a glyph is contained double.
% \changes{1.32}{2004/04/14}{Speed up \cs{defglyphclass}}%
% \begin{macrocode}
\edef\@tempa{#3}%
\@tempswbtrue
\@forallinclass{@tempa}{@tmpglyph}{%
\saveslotnumber{@glyphslot}{\@tmpglyph}%
\ifnum\the\c@@glyphslot<0%
\ClassError{kerntest}{Used unknown glyph `\@tmpglyph'}{%
You may have misspelled the glyph or you have taken an invalid
number.
This incorrect glyph is ignored.}%
\edef\thisglyphname{???}%
\else
\edef\thisglyphname{\getpsname{\the\c@@glyphslot}}%
\if@tempswb
\global\@tempswbfalse
\setcounter{@firstscale}{\@tmpglyph@scaling}%
\fi
\setcounter{@tmpscale}{1000*\@tmpglyph@scaling/\the@firstscale}%
% \end{macrocode}
% Now, it has to be tested if none of the glyphs of the new glyph list
% are in this or another list already.
% If so, generate an error message.
% Save the error state in \cs{@tempswa} to be able to add the glyph
% only if it is in no other glyph class.
% \begin{macrocode}
\@tempswatrue
\forallclasses{#1}{@tmpcls}{%
\@ifglyphinclass{\@tmpcls}{\@tmpglyph}{%
\@tempswafalse
\ClassError{kerntest}{Glyph `\@tmpglyph'
(`\thisglyphname',\MessageBreak
glyph class #1/#2) already\MessageBreak
in glyph
class (\expandafter\@getclassname\@tmpcls\@empty)%
}{%
Each glyph may only be once in one glyph class for
each side.
}%
}{}%
}%
% \end{macrocode}
% Append this glyph to the current glyph list.
% \begin{macrocode}
\if@tempswa
\ifthenelse{\equal{\csname glyphclass@#1@#2\endcsname}{}}{%
\expandafter\edef\csname glyphclass@#1@#2\endcsname{%
\thisglyphname[\the@tmpscale]}%
\edef\firstglyphinclass{\thisglyphname}%
}{%
\expandafter\edef\csname glyphclass@#1@#2\endcsname{%
\csname glyphclass@#1@#2\endcsname,%
\thisglyphname[\the@tmpscale]}%
}%
% \end{macrocode}
% Generate a macro \cs{glyphclass@glyph@}\meta{glyphname} which saves
% the corresponding glyph class for each glyph for faster access.
% \begin{macrocode}
\expandafter\edef
\csname glyphclass@glyph@#1@\thisglyphname\endcsname{%
glyphclass@#1@#2}%
\fi
\fi
}%
% \end{macrocode}
% Some feedback.
% \begin{macrocode}
\typeout{Glyph class `#1/#2' (\csname glyphclass@#1@#2\endcsname)
defined.}%
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\newglyphclass}
% The macro
% \cs{newglyphclass} works as \cs{defglyphclass} but defines a new
% glyph class.
% It produces an error if the class already exists.
% \begin{macrocode}
\newcommand\newglyphclass[3]{%
% \end{macrocode}
% Test if this glyph class already exists and generate an error
% message if so.
% If not, call \cs{defglyphclass} to save the new glyph class.
% \begin{macrocode}
\AtBeginDocument{%
\@tempswatrue
\forallclasses{#1}{@tmpcls}{%
\ifthenelse{\equal{\@tmpcls}{glyphclass@#1@#2}}{%
\ClassError{kerntest}{Class `#1/#2' already exists}{%
The command is ignored.}%
\@tempswafalse
}{}%
}%
\if@tempswa
\defglyphclass{#1}{#2}{#3}%
\fi
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\renewglyphclass}
% The macro
% \cs{renewglyphclass} works as \cs{newglyphclass} but redefines an
% existing one.
% \begin{macrocode}
\newcommand\renewglyphclass[3]{%
% \end{macrocode}
% Test if this glyph class does not exist and generate an error
% message if so.
% If it exists, call \cs{defglyphclass} to redefine the glyph class.
% \begin{macrocode}
\AtBeginDocument{%
\@tempswafalse
\forallclasses{#1}{@tmpcls}{%
\ifthenelse{\equal{\@tmpcls}{glyphclass@#1@#2}}{%
\@tempswatrue
}{}%
}%
\if@tempswa
\defglyphclass{#1}{#2}{#3}%
\else
\ClassError{kerntest}{Class `#1/#2' does not exists}{%
The command is ignored.}%
\fi
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\provideglyphclass}
% The macro
% \cs{provideglyphclass} works as \cs{newglyphclass} but does only do
% its job if the glyph class does not exist right now.
% \begin{macrocode}
\newcommand\provideglyphclass[3]{%
% \end{macrocode}
% Test if this glyph class already exists.
% If not, call \cs{defglyphclass} to save the new glyph class.
% \begin{macrocode}
\AtBeginDocument{%
\@tempswatrue
\forallclasses{#1}{@tmpcls}{%
\ifthenelse{\equal{\@tmpcls}{glyphclass@#1@#2}}{%
\@tempswafalse
}{}%
}%
\if@tempswa
\defglyphclass{#1}{#2}{#3}%
\fi
}%
}
% \end{macrocode}
% \end{macro}
% Type out the human readable name \meta{side}/\meta{name} for a glyph
% class, giving the name of the corresponding macro.
% No test on a correct name is made.
% \begin{macrocode}
\def\@getclassname#1@#2@#3\@empty{#2/#3}
% \end{macrocode}
% \begin{macro}{\getclassofglyph}
% Syntax: \cs{getclassofglyph}\marg{side}\marg{glyph name}.
%
% Return the name of the glyph class, that contains the argument.
% If it is not contained in any class, \cs{@empty} is returned.
% The glyph name has to be given as argument.
% \begin{macrocode}
\newcommand*\getclassofglyph[2]{%
\expandafter\ifx\csname glyphclass@glyph@#1@#2\endcsname\relax
\@empty
\else
\csname glyphclass@glyph@#1@#2\endcsname
\fi
}
% \end{macrocode}
% \end{macro}
% An internal boolean for searching glyph classes.
% \begin{macrocode}
\newif\if@glyphfound
% \end{macrocode}
% \begin{macro}{\ifglyphinclass}
% \changes{1.32}{2004/04/14}{Speed up \cs{ifglyphinclass}}%
% Syntax:
% \cs{ifglyphinclass\marg{side}\marg{name}\marg{glyph}\marg{yes}\marg{no}}.
% Tests if the glyph \meta{glyph} is contained in the glyph class
% \meta{side}/\meta{name}.
% Depending on that, \meta{yes} or \meta{no} are executed.
% The work is done by \cs{@ifglyphinclass} described later.
% \begin{macrocode}
\newcommand\ifglyphinclass[5]{%
\@ifundefined{glyphclass@#1@#2}{%
\ClassError{kerntest}{Glyph class #1/#2 not available}{}%
}{%
\edef\@tempa{#3}%
\saveslotnumber{@tempcnta}{\@tempa}%
\ifnum\the\c@@tempcnta<0%
\ClassError{kerntest}{Used unknown glyph `#2'}{%
You may have misspelled the glyph or you have taken an invalid
number.}%
\else
\ifthenelse{\equal{glyphclass@#1@#2}{%
\getclassofglyph{#1}{\getpsname{\the\c@@tempcnta}}}}{%
#4%
}{%
#5%
}%
\fi
% \@ifglyphinclass{glyphclass@#1@#2}{#3}{#4}{#5}%
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@ifglyphinclass}
% \changes{1.32}{2004/04/14}{Speed up \cs{@ifglyphinclass}}%
% Syntax:
% \cs{@ifglyphinclass\marg{macro}\marg{glyph}\marg{yes}\marg{no}}.
% Tests if the glyph \meta{glyph} is contained in the glyph class
% with the macro name \cs{\meta{macro}}.
% Depending on that, \meta{yes} or \meta{no} are executed.
% \begin{macrocode}
\newcounter{@tempcnta}
\newcommand\@ifglyphinclass[4]{%
\@ifundefined{#1}{%
\ClassError{kerntest}{Glyph class #1 not available}{}%
}{%
% \end{macrocode}
% Extract the name of the side from the class macro name.
% \begin{macrocode}
\def\krntst@side##1@##2@##3\@empty{\edef\krntst@side{##2}}%
\expandafter\krntst@side#1\@empty
% \end{macrocode}
% Extract the name of the side from the class macro name.
% \begin{macrocode}
\edef\@tempa{#2}%
% \end{macrocode}
% Find out if the glyph is valid.
% \begin{macrocode}
\saveslotnumber{@tempcnta}{\@tempa}%
\ifnum\the\c@@tempcnta<0\relax
\ClassError{kerntest}{Used unknown glyph `#2'}{%
You may have misspelled the glyph or you have taken an invalid
number.}%
\else
% \end{macrocode}
% Test if the corrosponding class to the glyph is the requested one.
% \begin{macrocode}
\ifthenelse{\equal{#1}{%
\getclassofglyph{\krntst@side}{\getpsname{\the\c@@tempcnta}}}}{%
#3%
}{%
#4%
}%
\fi
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\forallinclasses}
% Syntax:
% \cs{forallinclass\marg{side}\marg{name}\marg{glyph}\marg{action}}
%
% The commands in \meta{action} are executed once for every glyph of
% the glyph class \meta{side}/\meta{name}.
% In each run, the specific glyph is stored in the macro
% \cs{\meta{glyph}} which has to be given without leading backslash.
% This routine can be nested if \meta{glyph} is different for both
% layers, e.g.,
%\begin{verbatim}
%\forallinclass{left}{H}{outer}{%
% \forallinclass{left}{H}{inner}{%
% glyph pair: ``\outer''--``\inner''\\
% }%
%}
%\end{verbatim}
% \begin{macrocode}
\newcommand\forallinclass[4]{%
\@forallinclass{glyphclass@#1@#2}{#3}{#4}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@forallinclasses}
% Syntax:
% \cs{@forallinclass\marg{macro}\marg{glyph}\marg{action}}
%
% The internal command for \cs{forallinclasses}.
% Takes the macro name for the glyph class instead of the side and the
% name.
% \begin{macrocode}
\newcommand\@forallinclass[3]{%
% \end{macrocode}
% Redefine \cs{stoploop} to use the current glyph variable as default.
% \begin{macrocode}
\renewcommand\stoploop[1][#2]{%
\expandafter\edef\csname ##1\endcsname{}%
}%
% \end{macrocode}
% Get the first glyph of the glyph list.
% It is stored in \cs{\meta{glyph}}.
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname #1\endcsname\relax
\edef\kt@tempa{}%
\else
\edef\kt@tempa{\csname #1\endcsname}%
\fi
\expandafter\@nextglyphinclass\kt@tempa,\@empty{#2}%
% \end{macrocode}
% If this glyph is not empty, the end of the glyph class has not been
% reached.
% Then, enter the loop.
% \begin{macrocode}
\whiledo{\not\equal{\csname #2\endcsname}{}}{%
% \end{macrocode}
% Execute the loop commands.
% \begin{macrocode}
#3%
% \end{macrocode}
% Get the next glyph of the glyph list.
% It is stored in \cs{\meta{glyph}}.
% The if clause is necessary to handle \cs{stoploop}.
% \begin{macrocode}
\ifthenelse{\equal{\csname #2\endcsname}{}}{%
}{%
\edef\kt@tempa{\csname #2@rest\endcsname}%
\expandafter\@nextglyphinclass\kt@tempa,\@empty{#2}%
}%
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@nextglyphinclass}
% Everything before the first comma in the list is the next glyph in
% the glyph class.
% Store it in the macro given at the end of the argument list
% (\cs{\meta{\#3}}.
% Store the rest of the glyph class in \cs{\meta{\#3}@rest} for later
% work on it.
% \begin{macrocode}
\def\@@parseglyphname#1[#2]#3\@empty#4{%
\expandafter\edef\csname#4\endcsname{#1}%
\expandafter\xdef\csname#4@scaling\endcsname{#2}%
% \typeout{--> `#1' mit [\csname #4@scaling\endcsname], ignoriert: `#3', Name: `#4'}%
}
\def\@nextglyphinclass#1,#2\@empty#3{%
\expandafter\edef\csname#3@rest\endcsname{#2}%
\expandafter\@@parseglyphname#1[1000]\@empty{#3}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\forallclasses}
% Syntax:
% \cs{forallclasses\marg{side}\marg{glyph class}\marg{action}}
%
% The commands in \meta{action} are executed once for every glyph
% class of the glyph-class list \meta{side}.
% In each run, the specific glyph class is stored in the macro
% \cs{\meta{glyph class}} which has to be given without leading
% backslash.
% This routine can be nested if \meta{glyph class} is different for both
% layers.
% (Same as \cs{forallinclass}).
% \begin{macrocode}
\newcommand\forallclasses[3]{%
\renewcommand\stoploop[1][#2]{%
\expandafter\edef\csname ##1\endcsname{}%
}%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname glyphclasslist@#1\endcsname\relax
\edef\kt@tempa{}%
\else
\edef\kt@tempa{\csname glyphclasslist@#1\endcsname}%
\fi
\expandafter\@nextclass\kt@tempa,\@empty{#2}%
\whiledo{\not\equal{\csname #2\endcsname}{}}{%
#3%
\ifthenelse{\equal{\csname #2\endcsname}{}}{%
}{%
\edef\kt@tempa{\csname #2@rest\endcsname}%
\expandafter\@nextclass\kt@tempa,\@empty{#2}%
}%
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\stoploop}
% Stops the execution of \cs{forallclasses} or \cs{forallinclass}.
% The optional argument gives the stop variable.
% By this, also the outer loop can be stopped from the inner one.
% \begin{macrocode}
\newcommand\stoploop[1][]{%
\expandafter\edef\csname #1\endcsname{}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@nextglyphinclass}
% Everything before the first comma in the list is the next glyph
% class in the glyph-class list.
% Store it in the macro given at the end of the argument list
% (\cs{\meta{\#3}}.
% Store the rest of the glyph-class list in \cs{\meta{\#3}@rest} for
% later work on it.
% \begin{macrocode}
\def\@nextclass#1,#2\@empty#3{%
\expandafter\edef\csname #3@rest\endcsname{#2}%
\expandafter\edef\csname #3\endcsname{#1}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Extra commands for special encodings}
%
% Setup command for the different encodings.
% \begin{macrocode}
\newcommand\encodingsetup[1]{%
\AtBeginDocument{%
\typeout{Setup for font encoding.
This differs from encoding to encoding.}%
\setkeys{krnenc}{#1}%
}%
}
\@onlypreamble\encodingsetup
% \end{macrocode}
%
% \subsection{Footer of \texttt{mtx} file}
%
%
% Write a footer to the |mtx| file.
% This is done as last action of the class in order to ensure that all
% other things have been done before.
% \begin{macrocode}
\AtEndDocument{%
% \end{macrocode}
% First, write the kerning data for the glyph classes.
% \begin{macrocode}
\typeout{Writing kerning factors for glyph classes to mtx file}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
Kerning factors for the different glyph classes.}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
% \end{macrocode}
% Define a command that does the output for the different sides.
% \begin{macrocode}
\def\@writeclass#1{%
\forallclasses{#1}{@tmpcls}{%
\typeout{\space\space for class
\expandafter\@getclassname\@tmpcls\@empty}%
% \end{macrocode}
% The first glyph is the referent glyph of the class.
% If the inner loop is executed the first time, set
% \cs{firstglyphinclass} to this value.
% \begin{macrocode}
\@tempswatrue
\@forallinclass{\@tmpcls}{@tmpglyph}{%
\if@tempswa
\edef\firstglyphinclass{\@tmpglyph}%
\@tempswafalse
\else
% \end{macrocode}
% For the other members of this class, write the
% \cs{set\meta{side}kerning} commands to the |mtx| file.
% \begin{macrocode}
\protected@write\mtxfile{}{%
\string\set#1kerning%
{\@tmpglyph}{\firstglyphinclass}{\@tmpglyph@scaling}%
\@percentchar\space\space
\expandafter\@getclassname\@tmpcls\@empty
}%
\fi
}%
}%
}%
% \end{macrocode}
% The sides |left| and |right| are defined.
% \begin{macrocode}
\@writeclass{left}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\@writeclass{right}%
% \end{macrocode}
% Write a real footer.
% \begin{macrocode}
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\string\endmetrics}%
\protected@write\mtxfile{}{\@percentchar\@percentchar}%
\protected@write\mtxfile{}{\@percentchar\@percentchar\space
End of file `\mtxfilename.mtx'.}%
\closeout\mtxfile
\typeout{^^JWritten mtx file `\mtxfilename.mtx'^^J}%
}
%</class>
% \end{macrocode}
%
%
% \subsection{Class option files}
%
% To be able to write correct |mtx| files, the class has to know which
% glyph number has which Postscript name.
% This is done by the \cs{getpsname} macro which depends on the used
% encoding.
% This is done by loading different class option files.
%
% \subsubsection{T1 encoding}
%
% The |T1| encoding.
% The data are taken from |t1.etx|.
% \begin{macrocode}
%<*mtx&t1>
\makeatletter
% \end{macrocode}
% Set options to switch to other font shapes.
% \begin{macrocode}
\define@key{krnenc}{ligaturing}[1]{%
\typeout{T1 encoding: ligaturing = #1}%
\ifnum#1<0\relax
\expandafter\def\csname krntst@T1@027\endcsname{.notdef.027}%
\expandafter\def\csname krntst@T1@028\endcsname{.notdef.028}%
\expandafter\def\csname krntst@T1@029\endcsname{.notdef.029}%
\expandafter\def\csname krntst@T1@030\endcsname{.notdef.030}%
\expandafter\def\csname krntst@T1@031\endcsname{.notdef.031}%
\expandafter\def\csname krntst@T1@156\endcsname{.notdef.156}%
\expandafter\def\csname krntst@T1@188\endcsname{.notdef.188}%
\else
\expandafter\def\csname krntst@T1@027\endcsname{ff}%
\expandafter\def\csname krntst@T1@028\endcsname{fi}%
\expandafter\def\csname krntst@T1@029\endcsname{fl}%
\expandafter\def\csname krntst@T1@030\endcsname{ffi}%
\expandafter\def\csname krntst@T1@031\endcsname{ffl}%
\expandafter\def\csname krntst@T1@156\endcsname{IJ}%
\expandafter\def\csname krntst@T1@188\endcsname{ij}%
\fi
\ifnum#1<-1\relax
\expandafter\def\csname krntst@T1@073\endcsname{.notdef.073}%
\expandafter\def\csname krntst@T1@099\endcsname{.notdef.099}%
\expandafter\def\csname krntst@T1@102\endcsname{.notdef.102}%
\expandafter\def\csname krntst@T1@105\endcsname{.notdef.105}%
\expandafter\def\csname krntst@T1@115\endcsname{.notdef.115}%
\else
\expandafter\def\csname krntst@T1@073\endcsname{I}%
\expandafter\def\csname krntst@T1@099\endcsname{c}%
\expandafter\def\csname krntst@T1@102\endcsname{f}%
\expandafter\def\csname krntst@T1@105\endcsname{i}%
\expandafter\def\csname krntst@T1@115\endcsname{s}%
\fi
}
\typeout{^^JValid values for T1 encoding:}%
\typeout{ligaturing: -2, -1, 0, 1}%
\typeout{Defaults for T1 encoding:}%
\setkeys{krnenc}{ligaturing=1}%
\typeout{}%
\makeatother
% \end{macrocode}
% Now, set \cs{getpsname}.
% \begin{macrocode}
\newcommand\getpsname[1]{%
\ifcase#1%
grave\or% 000
acute\or% 001
circumflex\or% 002
tilde\or% 003
dieresis\or% 004
hungarumlaut\or% 005
ring\or% 006
caron\or% 007
breve\or% 008
macron\or% 009
dotaccent\or% 010
cedilla\or% 011
ogonek\or% 012
quotesinglbase\or% 013
guilsinglleft\or% 014
guilsinglright\or% 015
quotedblleft\or% 016
quotedblright\or% 017
quotedblbase\or% 018
guillemotleft\or% 019
guillemotright\or% 020
rangedash\or% 021
punctdash\or% 022
compwordmark\or% 023
perthousandzero\or% 024
dotlessi\or% 025
dotlessj\or% 026
\csname krntst@T1@027\endcsname\or % 027
\csname krntst@T1@028\endcsname\or % 028
\csname krntst@T1@029\endcsname\or % 029
\csname krntst@T1@030\endcsname\or % 030
\csname krntst@T1@031\endcsname\or % 031
visiblespace\or% 032
exclam\or% 033
quotedbl\or% 034
numbersign\or% 035
dollar\or% 036
percent\or% 037
ampersand\or% 038
quoteright\or% 039
parenleft\or% 040
parenright\or% 041
asterisk\or% 042
plus\or% 043
comma\or% 044
hyphen\or% 045
period\or% 046
slash\or% 047
zero\or% 048
one\or% 049
two\or% 050
three\or% 051
four\or% 052
five\or% 053
six\or% 054
seven\or% 055
eight\or% 056
nine\or% 057
colon\or% 058
semicolon\or% 059
less\or% 060
equal\or% 061
greater\or% 062
question\or% 063
at\or% 064
A\or% 065
B\or% 066
C\or% 067
D\or% 068
E\or% 069
F\or% 070
G\or% 071
H\or% 072
\csname krntst@T1@073\endcsname\or % 073
J\or% 074
K\or% 075
L\or% 076
M\or% 077
N\or% 078
O\or% 079
P\or% 080
Q\or% 081
R\or% 082
S\or% 083
T\or% 084
U\or% 085
V\or% 086
W\or% 087
X\or% 088
Y\or% 089
Z\or% 090
bracketleft\or% 091
backslash\or% 092
bracketright\or% 093
asciicircum\or% 094
underscore\or% 095
quoteleft\or% 096
a\or% 097
b\or% 098
\csname krntst@T1@099\endcsname\or % 099
d\or% 100
e\or% 101
\csname krntst@T1@102\endcsname\or % 102
g\or% 103
h\or% 104
\csname krntst@T1@105\endcsname\or % 105
j\or% 106
k\or% 107
l\or% 108
m\or% 109
n\or% 110
o\or% 111
p\or% 112
q\or% 113
r\or% 114
\csname krntst@T1@115\endcsname\or % 115
t\or% 116
u\or% 117
v\or% 118
w\or% 119
x\or% 120
y\or% 121
z\or% 122
braceleft\or% 123
bar\or% 124
braceright\or% 125
asciitilde\or% 126
hyphenchar\or% 127
Abreve\or% 128
Aogonek\or% 129
Cacute\or% 130
Ccaron\or% 131
Dcaron\or% 132
Ecaron\or% 133
Eogonek\or% 134
Gbreve\or% 135
Lacute\or% 136
Lcaron\or% 137
Lslash\or% 138
Nacute\or% 139
Ncaron\or% 140
Ng\or% 141
Ohungarumlaut\or% 142
Racute\or% 143
Rcaron\or% 144
Sacute\or% 145
Scaron\or% 146
Scedilla\or% 147
Tcaron\or% 148
Tcedilla\or% 149
Uhungarumlaut\or% 150
Uring\or% 151
Ydieresis\or% 152
Zacute\or% 153
Zcaron\or% 154
Zdotaccent\or% 155
\csname krntst@T1@156\endcsname\or % 156
Idotaccent\or% 157
dbar\or% 158
section\or% 159
abreve\or% 160
aogonek\or% 161
cacute\or% 162
ccaron\or% 163
dcaron\or% 164
ecaron\or% 165
eogonek\or% 166
gbreve\or% 167
lacute\or% 168
lcaron\or% 169
lslash\or% 170
nacute\or% 171
ncaron\or% 172
ng\or% 173
ohungarumlaut\or% 174
racute\or% 175
rcaron\or% 176
sacute\or% 177
scaron\or% 178
scedilla\or% 179
tcaron\or% 180
tcedilla\or% 181
uhungarumlaut\or% 182
uring\or% 183
ydieresis\or% 184
zacute\or% 185
zcaron\or% 186
zdotaccent\or% 187
\csname krntst@T1@188\endcsname\or % 188
exclamdown\or% 189
questiondown\or% 190
sterling\or% 191
Agrave\or% 192
Aacute\or% 193
Acircumflex\or% 194
Atilde\or% 195
Adieresis\or% 196
Aring\or% 197
AE\or% 198
Ccedilla\or% 199
Egrave\or% 200
Eacute\or% 201
Ecircumflex\or% 202
Edieresis\or% 203
Igrave\or% 204
Iacute\or% 205
Icircumflex\or% 206
Idieresis\or% 207
Eth\or% 208
Ntilde\or% 209
Ograve\or% 210
Oacute\or% 211
Ocircumflex\or% 212
Otilde\or% 213
Odieresis\or% 214
OE\or% 215
Oslash\or% 216
Ugrave\or% 217
Uacute\or% 218
Ucircumflex\or% 219
Udieresis\or% 220
Yacute\or% 221
Thorn\or% 222
SS\or% 223
agrave\or% 224
aacute\or% 225
acircumflex\or% 226
atilde\or% 227
adieresis\or% 228
aring\or% 229
ae\or% 230
ccedilla\or% 231
egrave\or% 232
eacute\or% 233
ecircumflex\or% 234
edieresis\or% 235
igrave\or% 236
iacute\or% 237
icircumflex\or% 238
idieresis\or% 239
eth\or% 240
ntilde\or% 241
ograve\or% 242
oacute\or% 243
ocircumflex\or% 244
otilde\or% 245
odieresis\or% 246
oe\or% 247
oslash\or% 248
ugrave\or% 249
uacute\or% 250
ucircumflex\or% 251
udieresis\or% 252
yacute\or% 253
thorn\or% 254
germandbls\fi% 255
}
%</mtx&t1>
% \end{macrocode}
%
% \subsubsection{TS1 encoding}
%
% The |TS1| encoding.
% The data are taken from |ts1.etx|.
%
% For unknown slots, a strange Postscript name is returned, but no
% warning is generated.
% \begin{macrocode}
%<*mtx&ts1>
\newcommand\getpsname[1]{%
\ifcase#1%
capitalgrave\or% 000
capitalacute\or% 001
capitalcircumflex\or% 002
capitaltilde\or% 003
capitaldieresis\or% 004
capitalhungarumlaut\or% 005
capitalring\or% 006
capitalcaron\or% 007
capitalbreve\or% 008
capitalmacron\or% 009
capitaldotaccent\or% 010
cedilla\or% 011
ogonek\or% 012
quotesinglbase\or% 013
.notdef.014\or% 014
.notdef.015\or% 015
.notdef.016\or% 016
.notdef.017\or% 017
quotedblbase\or% 018
.notdef.019\or% 019
.notdef.020\or% 020
twelveudash\or% 021
threequartersemdash\or% 022
capitalcompwordmark\or% 023
arrowleft\or% 024
arrowright\or% 025
tieaccentlowercase\or% 026
tieaccentcapital\or% 027
newtieaccentlowercase\or% 028
newtieaccentcapital\or% 029
ascendercompwordmark\or% 030
blank\or% 031
.notdef.032\or% 032
.notdef.033\or% 033
.notdef.034\or% 034
.notdef.035\or% 035
dollar\or% 036
.notdef.037\or% 037
.notdef.038\or% 038
quotesingle\or% 039
.notdef.040\or% 040
.notdef.041\or% 041
asteriskcentered\or% 042
.notdef.043\or% 043
comma\or% 044
hyphendbl\or% 045
period\or% 046
fraction\or% 047
zerooldstyle\or% 048
oneoldstyle\or% 049
twooldstyle\or% 050
threeoldstyle\or% 051
fouroldstyle\or% 052
fiveoldstyle\or% 053
sixoldstyle\or% 054
sevenoldstyle\or% 055
eightoldstyle\or% 056
nineoldstyle\or% 057
.notdef.058\or% 058
.notdef.059\or% 059
angbracketleft\or% 060
minus\or% 061
angbracketright\or% 062
.notdef.063\or% 063
.notdef.064\or% 064
.notdef.065\or% 065
.notdef.066\or% 066
.notdef.067\or% 067
.notdef.068\or% 068
.notdef.069\or% 069
.notdef.070\or% 070
.notdef.071\or% 071
.notdef.072\or% 072
.notdef.073\or% 073
.notdef.074\or% 074
.notdef.075\or% 075
.notdef.076\or% 076
Omegainv\or% 077
.notdef.078\or% 078
bigcircle\or% 079
.notdef.080\or% 080
.notdef.081\or% 081
.notdef.082\or% 082
.notdef.083\or% 083
.notdef.084\or% 084
.notdef.085\or% 085
.notdef.086\or% 086
Omega\or% 087
.notdef.088\or% 088
.notdef.089\or% 089
.notdef.090\or% 090
openbracketleft\or% 091
.notdef.092\or% 092
openbracketright\or% 093
arrowup\or% 094
arrowdown\or% 095
asciigrave\or% 096
.notdef.097\or% 097
born\or% 098
divorced\or% 099
died\or% 100
.notdef.101\or% 101
.notdef.102\or% 102
.notdef.103\or% 103
.notdef.104\or% 104
.notdef.105\or% 105
.notdef.106\or% 106
.notdef.107\or% 107
leaf\or% 108
married\or% 109
musicalnote\or% 110
.notdef.111\or% 111
.notdef.112\or% 112
.notdef.113\or% 113
.notdef.114\or% 114
.notdef.115\or% 115
.notdef.116\or% 116
.notdef.117\or% 117
.notdef.118\or% 118
.notdef.119\or% 119
.notdef.120\or% 120
.notdef.121\or% 121
.notdef.122\or% 122
.notdef.123\or% 123
.notdef.124\or% 124
.notdef.125\or% 125
tildelow\or% 126
hyphendblchar\or% 127
asciibreve\or% 128
asciicaron\or% 129
asciiacutedbl\or% 130
asciigravedbl\or% 131
dagger\or% 132
daggerdbl\or% 133
bardbl\or% 134
perthousand\or% 135
bullet\or% 136
centigrade\or% 137
dollaroldstyle\or% 138
centoldstyle\or% 139
florin\or% 140
colonmonetary\or% 141
won\or% 142
naira\or% 143
guarani\or% 144
peso\or% 145
lira\or% 146
recipe\or% 147
interrobang\or% 148
interrobangdown\or% 149
dong\or% 150
trademark\or% 151
pertenthousand\or% 152
pilcrow\or% 153
baht\or% 154
numero\or% 155
discount\or% 156
estimated\or% 157
openbullet\or% 158
servicemark\or% 159
quillbracketleft\or% 160
quillbracketright\or% 161
cent\or% 162
sterling\or% 163
currency\or% 164
yen\or% 165
brokenbar\or% 166
section\or% 167
asciidieresis\or% 168
copyright\or% 169
ordfeminine\or% 170
copyleft\or% 171
logicalnot\or% 172
circledP\or% 173
registered\or% 174
asciimacron\or% 175
degree\or% 176
plusminus\or% 177
twosuperior\or% 178
threesuperior\or% 179
asciiacute\or% 180
mu\or% 181
paragraph\or% 182
periodcentered\or% 183
referencemark\or% 184
onesuperior\or% 185
ordmasculine\or% 186
radical\or% 187
onequarter\or% 188
onehalf\or% 189
threequarters\or% 190
euro\or% 191
.notdef.192\or% 192
.notdef.193\or% 193
.notdef.194\or% 194
.notdef.195\or% 195
.notdef.196\or% 196
.notdef.197\or% 197
.notdef.198\or% 198
.notdef.199\or% 199
.notdef.200\or% 200
.notdef.201\or% 201
.notdef.202\or% 202
.notdef.203\or% 203
.notdef.204\or% 204
.notdef.205\or% 205
.notdef.206\or% 206
.notdef.207\or% 207
.notdef.208\or% 208
.notdef.209\or% 209
.notdef.210\or% 210
.notdef.211\or% 211
.notdef.212\or% 212
.notdef.213\or% 213
multiply\or% 214
.notdef.215\or% 215
.notdef.216\or% 216
.notdef.217\or% 217
.notdef.218\or% 218
.notdef.219\or% 219
.notdef.220\or% 220
.notdef.221\or% 221
.notdef.222\or% 222
.notdef.223\or% 223
.notdef.224\or% 224
.notdef.225\or% 225
.notdef.226\or% 226
.notdef.227\or% 227
.notdef.228\or% 228
.notdef.229\or% 229
.notdef.230\or% 230
.notdef.231\or% 231
.notdef.232\or% 232
.notdef.233\or% 233
.notdef.234\or% 234
.notdef.235\or% 235
.notdef.236\or% 236
.notdef.237\or% 237
.notdef.238\or% 238
.notdef.239\or% 239
.notdef.240\or% 240
.notdef.241\or% 241
.notdef.242\or% 242
.notdef.243\or% 243
.notdef.244\or% 244
.notdef.245\or% 245
divide\or% 246
.notdef.247\or% 247
.notdef.248\or% 248
.notdef.249\or% 249
.notdef.250\or% 250
.notdef.251\or% 251
.notdef.252\or% 252
.notdef.253\or% 253
.notdef.254\or% 254
.notdef.255\fi% 255
}
%</mtx&ts1>
% \end{macrocode}
%
% \subsubsection{OT1 encoding}
%
% The |OT1| encoding.
% The data are taken from |ot1.etx|.
%
% For unknown slots, a strange Postscript name is returned, but no
% warning is generated.
%
% The OT1 encoding uses different font names depending on
% upright/italic and ligatures.
% This is handled using the \cs{OT1@}\meta{slot} commands that are set
% for an upright roman font by default.
%
% Set the default glyph names.
% \begin{macrocode}
%<*mtx&ot1>
\makeatletter
% \end{macrocode}
% Set options to switch to other font shapes.
% \begin{macrocode}
\define@key{krnenc}{ligaturing}[2]{%
\typeout{OT1 encoding: ligaturing = #1}%
\ifnum#1=2\relax
\expandafter\def\csname krntst@OT1@011\endcsname{ff}%
\expandafter\def\csname krntst@OT1@012\endcsname{fi}%
\expandafter\def\csname krntst@OT1@013\endcsname{fl}%
\expandafter\def\csname krntst@OT1@014\endcsname{ffi}%
\expandafter\def\csname krntst@OT1@015\endcsname{ffl}%
\expandafter\def\csname krntst@OT1@060\endcsname{exclamdown}%
\expandafter\def\csname krntst@OT1@062\endcsname{questiondown}%
\else
\expandafter\def\csname krntst@OT1@011\endcsname{arrowup}%
\expandafter\def\csname krntst@OT1@012\endcsname{arrowdown}%
\expandafter\def\csname krntst@OT1@013\endcsname{quotesingle}%
\expandafter\def\csname krntst@OT1@014\endcsname{exclamdown}%
\expandafter\def\csname krntst@OT1@015\endcsname{questiondown}%
\expandafter\def\csname krntst@OT1@060\endcsname{less}%
\expandafter\def\csname krntst@OT1@062\endcsname{greater}%
\fi
\ifnum#1=0\relax
\expandafter\def\csname krntst@OT1@032\endcsname{visiblespace}%
\expandafter\def\csname krntst@OT1@034\endcsname{quotedbl}%
\expandafter\def\csname krntst@OT1@092\endcsname{backslash}%
\expandafter\def\csname krntst@OT1@095\endcsname{underscore}%
\expandafter\def\csname krntst@OT1@123\endcsname{braceleft}%
\expandafter\def\csname krntst@OT1@124\endcsname{bar}%
\expandafter\def\csname krntst@OT1@125\endcsname{braceright}%
\else
\expandafter\def\csname krntst@OT1@032\endcsname{lslashslash}%
\expandafter\def\csname krntst@OT1@034\endcsname{quotedblright}%
\expandafter\def\csname krntst@OT1@092\endcsname{quotedblleft}%
\expandafter\def\csname krntst@OT1@095\endcsname{dotaccent}%
\expandafter\def\csname krntst@OT1@123\endcsname{rangedash}%
\expandafter\def\csname krntst@OT1@124\endcsname{punctdash}%
\expandafter\def\csname krntst@OT1@125\endcsname{hungarumlaut}%
\fi
}
\define@key{krnenc}{italicizing}[true]{%
\typeout{OT1 encoding: italicizing = #1}%
\csname if#1\endcsname
\expandafter\def\csname krntst@OT1@036\endcsname{sterling}%
\else
\expandafter\def\csname krntst@OT1@036\endcsname{dollar}
\fi
}
\typeout{^^JValid values for OT1 encoding:}%
\typeout{ligaturing: 0, 1, 2}%
\typeout{italicizing: false, true}%
\typeout{Defaults for OT1 encoding:}%
\setkeys{krnenc}{ligaturing=2,italicizing=false}%
\typeout{}%
\makeatother
% \end{macrocode}
% Now, set \cs{getpsname}.
% \begin{macrocode}
\newcommand\getpsname[1]{%
\ifcase#1%
Gamma\or % 000
Delta\or % 001
Theta\or % 002
Lambda\or % 003
Xi\or % 004
Pi\or % 005
Sigma\or % 006
Upsilon\or % 007
Phi\or % 008
Psi\or % 009
Omega\or % 010
\csname krntst@OT1@011\endcsname\or % 011
\csname krntst@OT1@012\endcsname\or % 012
\csname krntst@OT1@013\endcsname\or % 013
\csname krntst@OT1@014\endcsname\or % 014
\csname krntst@OT1@015\endcsname\or % 015
dotlessi\or % 016
dotlessj\or % 017
grave\or % 018
acute\or % 019
caron\or % 020
breve\or % 021
macron\or % 022
ringfitted\or % 023
cedilla\or % 024
germandbls\or % 025
ae\or % 026
oe\or % 027
oslash\or % 028
AE\or % 029
OE\or % 030
Oslash\or % 031
\csname krntst@OT1@032\endcsname\or % 032
exclam\or % 033
\csname krntst@OT1@034\endcsname\or % 034
numbersign\or % 035
\csname krntst@OT1@036\endcsname\or % 036
percent\or % 037
ampersand\or % 038
quoteright\or % 039
parenleft\or % 040
parenright\or % 041
asterisk\or % 042
plus\or % 043
comma\or % 044
hyphen\or % 045
period\or % 046
slash\or % 047
zero\or % 048
one\or % 049
two\or % 050
three\or % 051
four\or % 052
five\or % 053
six\or % 054
seven\or % 055
eight\or % 056
nine\or % 057
colon\or % 058
semicolon\or % 059
\csname krntst@OT1@060\endcsname\or % 060
equal\or % 061
\csname krntst@OT1@062\endcsname\or % 062
question\or % 063
at\or % 064
A\or % 065
B\or % 066
C\or % 067
D\or % 068
E\or % 069
F\or % 070
G\or % 071
H\or % 072
I\or % 073
J\or % 074
K\or % 075
L\or % 076
M\or % 077
N\or % 078
O\or % 079
P\or % 080
Q\or % 081
R\or % 082
S\or % 083
T\or % 084
U\or % 085
V\or % 086
W\or % 087
X\or % 088
Y\or % 089
Z\or % 090
bracketleft\or % 091
\csname krntst@OT1@092\endcsname\or % 092
bracketright\or % 093
circumflex\or % 094
\csname krntst@OT1@095\endcsname\or % 095
quoteleft\or % 096
a\or % 097
b\or % 098
c\or % 099
d\or % 100
e\or % 101
f\or % 102
g\or % 103
h\or % 104
i\or % 105
j\or % 106
k\or % 107
l\or % 108
m\or % 109
n\or % 110
o\or % 111
p\or % 112
q\or % 113
r\or % 114
s\or % 115
t\or % 116
u\or % 117
v\or % 118
w\or % 119
x\or % 120
y\or % 121
z\or % 122
\csname krntst@OT1@123\endcsname\or % 123
\csname krntst@OT1@124\endcsname\or % 124
\csname krntst@OT1@125\endcsname\or % 125
tilde\or % 126
dieresis\or % 127
.notdef.128\or % 128
.notdef.129\or % 129
.notdef.130\or % 130
.notdef.131\or % 131
.notdef.132\or % 132
.notdef.133\or % 133
.notdef.134\or % 134
.notdef.135\or % 135
.notdef.136\or % 136
.notdef.137\or % 137
Lslash\or % 138
.notdef.139\or % 139
.notdef.140\or % 140
.notdef.141\or % 141
.notdef.142\or % 142
.notdef.143\or % 143
.notdef.144\or % 144
.notdef.145\or % 145
.notdef.146\or % 146
.notdef.147\or % 147
.notdef.148\or % 148
.notdef.149\or % 149
.notdef.150\or % 150
.notdef.151\or % 151
.notdef.152\or % 152
.notdef.153\or % 153
.notdef.154\or % 154
.notdef.155\or % 155
.notdef.156\or % 156
.notdef.157\or % 157
.notdef.158\or % 158
.notdef.159\or % 159
.notdef.160\or % 160
.notdef.161\or % 161
.notdef.162\or % 162
.notdef.163\or % 163
.notdef.164\or % 164
.notdef.165\or % 165
.notdef.166\or % 166
.notdef.167\or % 167
.notdef.168\or % 168
.notdef.169\or % 169
lslash\or % 170
.notdef.171\or % 171
.notdef.172\or % 172
.notdef.173\or % 173
.notdef.174\or % 174
.notdef.175\or % 175
.notdef.176\or % 176
.notdef.177\or % 177
.notdef.178\or % 178
.notdef.179\or % 179
.notdef.180\or % 180
.notdef.181\or % 181
.notdef.182\or % 182
.notdef.183\or % 183
.notdef.184\or % 184
.notdef.185\or % 185
.notdef.186\or % 186
.notdef.187\or % 187
.notdef.188\or % 188
.notdef.189\or % 189
.notdef.190\or % 190
.notdef.191\or % 191
.notdef.192\or % 192
.notdef.193\or % 193
.notdef.194\or % 194
.notdef.195\or % 195
.notdef.196\or % 196
.notdef.197\or % 197
.notdef.198\or % 198
.notdef.199\or % 199
.notdef.200\or % 200
.notdef.201\or % 201
.notdef.202\or % 202
.notdef.203\or % 203
.notdef.204\or % 204
.notdef.205\or % 205
.notdef.206\or % 206
.notdef.207\or % 207
.notdef.208\or % 208
.notdef.209\or % 209
.notdef.210\or % 210
.notdef.211\or % 211
.notdef.212\or % 212
.notdef.213\or % 213
.notdef.214\or % 214
.notdef.215\or % 215
.notdef.216\or % 216
.notdef.217\or % 217
.notdef.218\or % 218
.notdef.219\or % 219
.notdef.220\or % 220
.notdef.221\or % 221
.notdef.222\or % 222
.notdef.223\or % 223
.notdef.224\or % 224
.notdef.225\or % 225
.notdef.226\or % 226
.notdef.227\or % 227
.notdef.228\or % 228
.notdef.229\or % 229
.notdef.230\or % 230
.notdef.231\or % 231
.notdef.232\or % 232
.notdef.233\or % 233
.notdef.234\or % 234
.notdef.235\or % 235
.notdef.236\or % 236
.notdef.237\or % 237
.notdef.238\or % 238
.notdef.239\or % 239
.notdef.240\or % 240
.notdef.241\or % 241
.notdef.242\or % 242
.notdef.243\or % 243
.notdef.244\or % 244
.notdef.245\or % 245
.notdef.246\or % 246
.notdef.247\or % 247
.notdef.248\or % 248
.notdef.249\or % 249
.notdef.250\or % 250
.notdef.251\or % 251
.notdef.252\or % 252
.notdef.253\or % 253
.notdef.254\or % 254
.notdef.255\fi % 255
}
%</mtx&ot1>
% \end{macrocode}
%
% \subsubsection{T2A encoding}
%
% The |T2A| encoding.
% The data are taken from |t2a.etx|.
%
% For unknown slots, a strange Postscript name is returned, but no
% warning is generated.
% \begin{macrocode}
%<*mtx&t2a>
\newcommand\getpsname[1]{%
\ifcase#1%
grave\or% 000
acute\or% 001
circumflex\or% 002
tilde\or% 003
dieresis\or% 004
hungarumlaut\or% 005
ring\or% 006
caron\or% 007
breve\or% 008
macron\or% 009
dotaccent\or% 010
cedilla\or% 011
ogonek\or% 012
CYRpalochka\or% 013
angleleft\or% 014
angleright\or% 015
quotedblleft\or% 016
quotedblright\or% 017
cyrflex\or% 018
dblgrave\or% 019
cyrbreve\or% 020
rangedash\or% 021
cyrdash\or% 022
compwordmark\or% 023
perthousandzero\or% 024
dotlessi\or% 025
dotlessj\or% 026
ff\or% 027
fi\or% 028
fl\or% 029
ffi\or% 030
ffl\or% 031
visiblespace\or% 032
exclam\or% 033
quotedbl\or% 034
numbersign\or% 035
dollar\or% 036
percent\or% 037
ampersand\or% 038
quoteright\or% 039
parenleft\or% 040
parenright\or% 041
asterisk\or% 042
plus\or% 043
comma\or% 044
hyphen\or% 045
period\or% 046
slash\or% 047
zero\or% 048
one\or% 049
two\or% 050
three\or% 051
four\or% 052
five\or% 053
six\or% 054
seven\or% 055
eight\or% 056
nine\or% 057
colon\or% 058
semicolon\or% 059
less\or% 060
equal\or% 061
greater\or% 062
question\or% 063
at\or% 064
A\or% 065
B\or% 066
C\or% 067
D\or% 068
E\or% 069
F\or% 070
G\or% 071
H\or% 072
I\or% 073
J\or% 074
K\or% 075
L\or% 076
M\or% 077
N\or% 078
O\or% 079
P\or% 080
Q\or% 081
R\or% 082
S\or% 083
T\or% 084
U\or% 085
V\or% 086
W\or% 087
X\or% 088
Y\or% 089
Z\or% 090
bracketleft\or% 091
backslash\or% 092
bracketright\or% 093
asciicircum\or% 094
underscore\or% 095
quoteleft\or% 096
a\or% 097
b\or% 098
c\or% 099
d\or% 100
e\or% 101
f\or% 102
g\or% 103
h\or% 104
i\or% 105
j\or% 106
k\or% 107
l\or% 108
m\or% 109
n\or% 110
o\or% 111
p\or% 112
q\or% 113
r\or% 114
s\or% 115
t\or% 116
u\or% 117
v\or% 118
w\or% 119
x\or% 120
y\or% 121
z\or% 122
braceleft\or% 123
bar\or% 124
braceright\or% 125
asciitilde\or% 126
hyphenchar\or% 127
CYRGUP\or% 128
CYRGHCRS\or% 129
CYRDJE\or% 130
CYRTSHE\or% 131
CYRSHHA\or% 132
CYRZHDSC\or% 133
CYRZDSC\or% 134
CYRLJE\or% 135
CYRYI\or% 136
CYRKDSC\or% 137
CYRKBEAK\or% 138
CYRKVCRS\or% 139
CYRAE\or% 140
CYRNDSC\or% 141
CYRNG\or% 142
CYRDZE\or% 143
CYROTLD\or% 144
CYRSDSC\or% 145
CYRUSHRT\or% 146
CYRY\or% 147
CYRYHCRS\or% 148
CYRHDSC\or% 149
CYRDZHE\or% 150
CYRCHVCRS\or% 151
CYRCHRDSC\or% 152
CYRIE\or% 153
CYRSCHWA\or% 154
CYRNJE\or% 155
CYRYO\or% 156
numero\or% 157
currency\or% 158
section\or% 159
cyrgup\or% 160
cyrghcrs\or% 161
cyrdje\or% 162
cyrtshe\or% 163
cyrshha\or% 164
cyrzhdsc\or% 165
cyrzdsc\or% 166
cyrlje\or% 167
cyryi\or% 168
cyrkdsc\or% 169
cyrkbeak\or% 170
cyrkvcrs\or% 171
cyrae\or% 172
cyrndsc\or% 173
cyrng\or% 174
cyrdze\or% 175
cyrotld\or% 176
cyrsdsc\or% 177
cyrushrt\or% 178
cyry\or% 179
cyryhcrs\or% 180
cyrhdsc\or% 181
cyrdzhe\or% 182
cyrchvcrs\or% 183
cyrchrdsc\or% 184
cyrie\or% 185
cyrschwa\or% 186
cyrnje\or% 187
cyryo\or% 188
quotedblbase\or% 189
guillemotleft\or% 190
guillemotright\or% 191
CYRA\or% 192
CYRB\or% 193
CYRV\or% 194
CYRG\or% 195
CYRD\or% 196
CYRE\or% 197
CYRZH\or% 198
CYRZ\or% 199
CYRI\or% 200
CYRISHRT\or% 201
CYRK\or% 202
CYRL\or% 203
CYRM\or% 204
CYRN\or% 205
CYRO\or% 206
CYRP\or% 207
CYRR\or% 208
CYRS\or% 209
CYRT\or% 210
CYRU\or% 211
CYRF\or% 212
CYRH\or% 213
CYRC\or% 214
CYRCH\or% 215
CYRSH\or% 216
CYRSHCH\or% 217
CYRHRDSN\or% 218
CYRERY\or% 219
CYRSFTSN\or% 220
CYREREV\or% 221
CYRYU\or% 222
CYRYA\or% 223
cyra\or% 224
cyrb\or% 225
cyrv\or% 226
cyrg\or% 227
cyrd\or% 228
cyre\or% 229
cyrzh\or% 230
cyrz\or% 231
cyri\or% 232
cyrishrt\or% 233
cyrk\or% 234
cyrl\or% 235
cyrm\or% 236
cyrn\or% 237
cyro\or% 238
cyrp\or% 239
cyrr\or% 240
cyrs\or% 241
cyrt\or% 242
cyru\or% 243
cyrf\or% 244
cyrh\or% 245
cyrc\or% 246
cyrch\or% 247
cyrsh\or% 248
cyrshch\or% 249
cyrhrdsn\or% 250
cyrery\or% 251
cyrsftsn\or% 252
cyrerev\or% 253
cyryu\or% 254
cyrya\fi% 255
}
%</mtx&t2a>
% \end{macrocode}
%
% \subsubsection{T2A encoding}
%
% The |T2B| encoding.
% The data are taken from |t2b.etx|.
%
% For unknown slots, a strange Postscript name is returned, but no
% warning is generated.
% \begin{macrocode}
%<*mtx&t2b>
\newcommand\getpsname[1]{%
\ifcase#1%
grave\or% 000
acute\or% 001
circumflex\or% 002
tilde\or% 003
dieresis\or% 004
hungarumlaut\or% 005
ring\or% 006
caron\or% 007
breve\or% 008
macron\or% 009
dotaccent\or% 010
cedilla\or% 011
ogonek\or% 012
CYRpalochka\or% 013
angleleft\or% 014
angleright\or% 015
quotedblleft\or% 016
quotedblright\or% 017
cyrflex\or% 018
dblgrave\or% 019
cyrbreve\or% 020
rangedash\or% 021
cyrdash\or% 022
compwordmark\or% 023
perthousandzero\or% 024
dotlessi\or% 025
dotlessj\or% 026
ff\or% 027
fi\or% 028
fl\or% 029
ffi\or% 030
ffl\or% 031
visiblespace\or% 032
exclam\or% 033
quotedbl\or% 034
numbersign\or% 035
dollar\or% 036
percent\or% 037
ampersand\or% 038
quoteright\or% 039
parenleft\or% 040
parenright\or% 041
asterisk\or% 042
plus\or% 043
comma\or% 044
hyphen\or% 045
period\or% 046
slash\or% 047
zero\or% 048
one\or% 049
two\or% 050
three\or% 051
four\or% 052
five\or% 053
six\or% 054
seven\or% 055
eight\or% 056
nine\or% 057
colon\or% 058
semicolon\or% 059
less\or% 060
equal\or% 061
greater\or% 062
question\or% 063
at\or% 064
A\or% 065
B\or% 066
C\or% 067
D\or% 068
E\or% 069
F\or% 070
G\or% 071
H\or% 072
I\or% 073
J\or% 074
K\or% 075
L\or% 076
M\or% 077
N\or% 078
O\or% 079
P\or% 080
Q\or% 081
R\or% 082
S\or% 083
T\or% 084
U\or% 085
V\or% 086
W\or% 087
X\or% 088
Y\or% 089
Z\or% 090
bracketleft\or% 091
backslash\or% 092
bracketright\or% 093
asciicircum\or% 094
underscore\or% 095
quoteleft\or% 096
a\or% 097
b\or% 098
c\or% 099
d\or% 100
e\or% 101
f\or% 102
g\or% 103
h\or% 104
i\or% 105
j\or% 106
k\or% 107
l\or% 108
m\or% 109
n\or% 110
o\or% 111
p\or% 112
q\or% 113
r\or% 114
s\or% 115
t\or% 116
u\or% 117
v\or% 118
w\or% 119
x\or% 120
y\or% 121
z\or% 122
braceleft\or% 123
bar\or% 124
braceright\or% 125
asciitilde\or% 126
hyphenchar\or% 127
CYRGDSCHCRS\or% 128
CYRGHCRS\or% 129
CYRGDSC\or% 130
CYRGHK\or% 131
CYRSHHA\or% 132
CYRZHDSC\or% 133
CYRDELTA\or% 134
CYRABHDZE\or% 135
CYRLJE\or% 136
CYRKDSC\or% 137
CYRLDSC\or% 138
CYRKHK\or% 139
CYRLHK\or% 140
CYRNDSC\or% 141
CYRNG\or% 142
CYRNHK\or% 143
CYROTLD\or% 144
CYRSACRS\or% 145
CYRUSHRT\or% 146
CYRY\or% 147
CYRHHCRS\or% 148
CYRHDSC\or% 149
CYRHHK\or% 150
CYRCHLDSC\or% 151
CYRCHRDSC\or% 152
CYRNJE\or% 153
CYRSCHWA\or% 154
CYREPS\or% 155
CYRYO\or% 156
numero\or% 157
currency\or% 158
section\or% 159
cyrgdschcrs\or% 160
cyrghcrs\or% 161
cyrgdsc\or% 162
cyrghk\or% 163
cyrshha\or% 164
cyrzhdsc\or% 165
cyrdelta\or% 166
cyrabhdze\or% 167
cyrlje\or% 168
cyrkdsc\or% 169
cyrldsc\or% 170
cyrkhk\or% 171
cyrlhk\or% 172
cyrndsc\or% 173
cyrng\or% 174
cyrnhk\or% 175
cyrotld\or% 176
cyrsacrs\or% 177
cyrushrt\or% 178
cyry\or% 179
cyrhhcrs\or% 180
cyrhdsc\or% 181
cyrhhk\or% 182
cyrchldsc\or% 183
cyrchrdsc\or% 184
cyrnje\or% 185
cyrschwa\or% 186
cyreps\or% 187
cyryo\or% 188
quotedblbase\or% 189
guillemotleft\or% 190
guillemotright\or% 191
CYRA\or% 192
CYRB\or% 193
CYRV\or% 194
CYRG\or% 195
CYRD\or% 196
CYRE\or% 197
CYRZH\or% 198
CYRZ\or% 199
CYRI\or% 200
CYRISHRT\or% 201
CYRK\or% 202
CYRL\or% 203
CYRM\or% 204
CYRN\or% 205
CYRO\or% 206
CYRP\or% 207
CYRR\or% 208
CYRS\or% 209
CYRT\or% 210
CYRU\or% 211
CYRF\or% 212
CYRH\or% 213
CYRC\or% 214
CYRCH\or% 215
CYRSH\or% 216
CYRSHCH\or% 217
CYRHRDSN\or% 218
CYRERY\or% 219
CYRSFTSN\or% 220
CYREREV\or% 221
CYRYU\or% 222
CYRYA\or% 223
cyra\or% 224
cyrb\or% 225
cyrv\or% 226
cyrg\or% 227
cyrd\or% 228
cyre\or% 229
cyrzh\or% 230
cyrz\or% 231
cyri\or% 232
cyrishrt\or% 233
cyrk\or% 234
cyrl\or% 235
cyrm\or% 236
cyrn\or% 237
cyro\or% 238
cyrp\or% 239
cyrr\or% 240
cyrs\or% 241
cyrt\or% 242
cyru\or% 243
cyrf\or% 244
cyrh\or% 245
cyrc\or% 246
cyrch\or% 247
cyrsh\or% 248
cyrshch\or% 249
cyrhrdsn\or% 250
cyrery\or% 251
cyrsftsn\or% 252
cyrerev\or% 253
cyryu\or% 254
cyrya\fi% 255
}
%</mtx&t2b>
% \end{macrocode}
%
% \subsubsection{LY1 encoding}
%
% The |LY1| encoding.
% The data are taken from |texnansi.enc|.
%
% For unknown slots, a strange Postscript name is returned, but no
% warning is generated.
% \begin{macrocode}
%<*mtx&ly1>
\newcommand\getpsname[1]{%
\ifcase#1%
.notdef.000\or % 000
Euro\or % 001
.notdef.002\or % 002
.notdef.003\or % 003
fraction\or % 004
dotaccent\or % 005
hungarumlaut\or % 006
ogonek\or % 007
fl\or % 008
.notdef.009\or % 009
cwm\or % 010
ff\or % 011
fi\or % 012
.notdef.013\or % 013
ffi\or % 014
ffl\or % 015
dotlessi\or % 016
dotlessj\or % 017
grave\or % 018
acute\or % 019
caron\or % 020
breve\or % 021
macron\or % 022
ring\or % 023
cedilla\or % 024
germandbls\or % 025
ae\or % 026
oe\or % 027
oslash\or % 028
AE\or % 029
OE\or % 030
Oslash\or % 031
space\or % 032
exclam\or % 033
quotedbl\or % 034
numbersign\or % 035
dollar\or % 036
percent\or % 037
ampersand\or % 038
quoteright\or % 039
parenleft\or % 040
parenright\or % 041
asterisk\or % 042
plus\or % 043
comma\or % 044
hyphen\or % 045
period\or % 046
slash\or % 047
zero\or % 048
one\or % 049
two\or % 050
three\or % 051
four\or % 052
five\or % 053
six\or % 054
seven\or % 055
eight\or % 056
nine\or % 057
colon\or % 058
semicolon\or % 059
less\or % 060
equal\or % 061
greater\or % 062
question\or % 063
at\or % 064
A\or % 065
B\or % 066
C\or % 067
D\or % 068
E\or % 069
F\or % 070
G\or % 071
H\or % 072
I\or % 073
J\or % 074
K\or % 075
L\or % 076
M\or % 077
N\or % 078
O\or % 079
P\or % 080
Q\or % 081
R\or % 082
S\or % 083
T\or % 084
U\or % 085
V\or % 086
W\or % 087
X\or % 088
Y\or % 089
Z\or % 090
bracketleft\or % 091
backslash\or % 092
bracketright\or % 093
circumflex\or % 094
underscore\or % 095
quoteleft\or % 096
a\or % 097
b\or % 098
c\or % 099
d\or % 100
e\or % 101
f\or % 102
g\or % 103
h\or % 104
i\or % 105
j\or % 106
k\or % 107
l\or % 108
m\or % 109
n\or % 110
o\or % 111
p\or % 112
q\or % 113
r\or % 114
s\or % 115
t\or % 116
u\or % 117
v\or % 118
w\or % 119
x\or % 120
y\or % 121
z\or % 122
braceleft\or % 123
bar\or % 124
braceright\or % 125
tilde\or % 126
dieresis\or % 127
Lslash\or % 128
quotesingle\or % 129
quotesinglbase\or % 130
florin\or % 131
quotedblbase\or % 132
ellipsis\or % 133
dagger\or % 134
daggerdbl\or % 135
circumflex\or % 136
perthousand\or % 137
Scaron\or % 138
guilsinglleft\or % 139
OE\or % 140
Zcaron\or % 141
asciicircum\or % 142
minus\or % 143
lslash\or % 144
quoteleft\or % 145
quoteright\or % 146
quotedblleft\or % 147
quotedblright\or % 148
bullet\or % 149
endash\or % 150
emdash\or % 151
tilde\or % 152
trademark\or % 153
scaron\or % 154
guilsinglright\or % 155
oe\or % 156
zcaron\or % 157
asciitilde\or % 158
Ydieresis\or % 159
nbspace\or % 160
exclamdown\or % 161
cent\or % 162
sterling\or % 163
currency\or % 164
yen\or % 165
brokenbar\or % 166
section\or % 167
dieresis\or % 168
copyright\or % 169
ordfeminine\or % 170
guillemotleft\or % 171
logicalnot\or % 172
sfthyphen\or % 173
registered\or % 174
macron\or % 175
degree\or % 176
plusminus\or % 177
twosuperior\or % 178
threesuperior\or % 179
acute\or % 180
mu\or % 181
paragraph\or % 182
periodcentered\or % 183
cedilla\or % 184
onesuperior\or % 185
ordmasculine\or % 186
guillemotright\or % 187
onequarter\or % 188
onehalf\or % 189
threequarters\or % 190
questiondown\or % 191
Agrave\or % 192
Aacute\or % 193
Acircumflex\or % 194
Atilde\or % 195
Adieresis\or % 196
Aring\or % 197
AE\or % 198
Ccedilla\or % 199
Egrave\or % 200
Eacute\or % 201
Ecircumflex\or % 202
Edieresis\or % 203
Igrave\or % 204
Iacute\or % 205
Icircumflex\or % 206
Idieresis\or % 207
Eth\or % 208
Ntilde\or % 209
Ograve\or % 210
Oacute\or % 211
Ocircumflex\or % 212
Otilde\or % 213
Odieresis\or % 214
multiply\or % 215
Oslash\or % 216
Ugrave\or % 217
Uacute\or % 218
Ucircumflex\or % 219
Udieresis\or % 220
Yacute\or % 221
Thorn\or % 222
germandbls\or % 223
agrave\or % 224
aacute\or % 225
acircumflex\or % 226
atilde\or % 227
adieresis\or % 228
aring\or % 229
ae\or % 230
ccedilla\or % 231
egrave\or % 232
eacute\or % 233
ecircumflex\or % 234
edieresis\or % 235
igrave\or % 236
iacute\or % 237
icircumflex\or % 238
idieresis\or % 239
eth\or % 240
ntilde\or % 241
ograve\or % 242
oacute\or % 243
ocircumflex\or % 244
otilde\or % 245
odieresis\or % 246
divide\or % 247
oslash\or % 248
ugrave\or % 249
uacute\or % 250
ucircumflex\or % 251
udieresis\or % 252
yacute\or % 253
thorn\or % 254
ydieresis\fi % 255
}
%</mtx&ly1>
% \end{macrocode}
%
%
% \subsection{Templates}
%
% Generate template files for T1 and TS1 encoding.
% They should be self-describing.
%
% \subsubsection{T1 encoding}
%
% \begin{macrocode}
%<*template&t1>
\listfiles
%% Replace the `XXX' in the next line by the 3- or 4-character long
%% abbreviation for your font.
\documentclass[family=XXX]{kerntest}
%% Replace the settings by these you want to test.
\kernsetup{encoding=T1,series=m,shape=n,example=hello}
\kernsetup{size=14.40pt,baselineskip=16.5pt,papersize=a4paper}
%% The next line can be used to add a name suffix to the output |mtx| file.
%% \kernsetup{extraname=normal}
%% Set encoding parameters.
%% Set ligaturing: 1=all, 0=all, -1=some, -2=none
%% \encodingsetup{ligaturing=1}
%% If you are using a font with different design sizes and if you want
%% to test one design size scaled to another one, you may input a
%% modified fd file for your font. To generate this new fd file, just
%% copy the original one, rename it, and modify the entries for the
%% font shapes to use the design size you want to test.
%% \input{t1XXX-1200.fd}
%% The following lines show some possible glyph classes. You should
%% add all classes you need.
\newglyphclass{right}{A}{A,Aogonek}
\newglyphclass{right}{Abreve}{Abreve,Aacute,Acircumflex,%
Atilde,Adieresis}
\newglyphclass{right}{Aring}{Agrave,Aring}
\newglyphclass{left}{A}{A,Aogonek}
\newglyphclass{left}{Abreve}{Abreve,Agrave,Acircumflex,%
Atilde,Adieresis}
\newglyphclass{left}{Aring}{Aacute,Aring}
\newglyphclass{right}{C}{C,Cacute,Ccaron,Ccedilla}
\newglyphclass{left}{C}{C,Cacute,Ccaron,Ccedilla}
\newglyphclass{right}{D}{D,Dcaron,Eth}
\newglyphclass{right}{E}{E,Ecaron,Eogonek,Egrave,Eacute,Ecircumflex,%
Edieresis,AE,OE}
\newglyphclass{right}{G}{G,Gbreve}
\newglyphclass{left}{G}{G,Gbreve}
\newglyphclass{left}{H}{B,D,Dcaron,Eth,E,Ecaron,Eogonek,Egrave,%
Eacute,Ecircumflex,Edieresis,F,H,I,Idotaccent,Igrave,Iacute,%
Icircumflex,Idieresis,IJ,J,K,L,Lacute,Lcaron,N,Nacute,Ncaron,%
Ntilde,P,R,Racute,Rcaron,Ng,Thorn}
\newglyphclass{right}{H}{H,I,Idotaccent,Igrave,Iacute,%
Icircumflex,Idieresis,IJ,J,N,Nacute,Ncaron,Ntilde}
\newglyphclass{right}{O}{O,Ohungarumlaut,Ograve,Oacute,Ocircumflex,%
Otilde,Odieresis,Oslash}
\newglyphclass{left}{O}{O,Ohungarumlaut,Ograve,Oacute,Ocircumflex,%
Otilde,Odieresis,OE,Oslash}
\newglyphclass{right}{R}{R,Racute,Rcaron}
\newglyphclass{right}{S}{S,Sacute,Scaron,Scedilla,SS,dollar}
\newglyphclass{left}{S}{S,Sacute,Scaron,Scedilla,SS,dollar}
\newglyphclass{right}{T}{T,Tcaron,Tcedilla}
\newglyphclass{left}{T}{T,Tcaron,Tcedilla}
\newglyphclass{right}{U}{U,Uhungarumlaut,Uring,Ugrave,Uacute,%
Ucircumflex,Udieresis}
\newglyphclass{left}{U}{U,Uhungarumlaut,Uring,Ugrave,Uacute,%
Ucircumflex,Udieresis}
\newglyphclass{right}{Y}{Y,Yacute,Ydieresis}%
\newglyphclass{left}{Y}{Y,Yacute,Ydieresis}%
\newglyphclass{left}{Z}{Z,Zacute,Zcaron,Zdotaccent}
\newglyphclass{right}{Z}{Z,Zacute,Zcaron,Zdotaccent}
\newglyphclass{left}{a}{a,aogonek,ae}
\newglyphclass{left}{abreve}{abreve,agrave,acircumflex,atilde,adieresis,aring}
\newglyphclass{right}{a}{a,aogonek}
\newglyphclass{right}{abreve}{abreve,aacute,acircumflex,atilde,adieresis,aring}
\newglyphclass{left}{c}{c,ccedilla}
\newglyphclass{right}{c}{c,ccedilla}
\newglyphclass{left}{d}{d,dbar,dcaron}
\newglyphclass{left}{e}{e,eogonek}
\newglyphclass{left}{egrave}{ecaron,ecircumflex}
\newglyphclass{right}{e}{e,eogonek,ae,oe}
\newglyphclass{right}{egrave}{ecaron,ecircumflex}
\newglyphclass{left}{f}{f,ff,fi,fl,ffi,ffl}
\newglyphclass{right}{f}{f,ff}
\newglyphclass{right}{i}{i,fi,ffi,dotlessi}
\newglyphclass{left}{i}{i,ij,dotlessi}
\newglyphclass{right}{l}{fl,ffl,l,lacute}
\newglyphclass{left}{l}{l,lacute,lcaron}
\newglyphclass{right}{m}{m,n}
\newglyphclass{left}{m}{m,n}
\newglyphclass{right}{nacute}{nacute,ncaron}
\newglyphclass{left}{nacute}{nacute,ncaron}
\newglyphclass{right}{ograve}{ograve,ocircumflex}
\newglyphclass{right}{ohungarumlaut}{ohungarumlaut,oacute,otilde,%
odieresis}
\newglyphclass{left}{oacute}{oacute,ocircumflex,oe}
\newglyphclass{left}{ohungarumlaut}{ohungarumlaut,ograve,otilde,%
odieresis}
\newglyphclass{left}{t}{t,tcaron,tcedilla}
\begin{document}
%% This table of characters is sorted by similar glyphs, not by the
%% encoding.
%% Replace `{LLL}' and `{RRR}' in columns 1 resp. 5 by these glyphs
%% that shall be tested.
%% Good pairs to use for LLL and RRR test are 016, 017 (English
%% quotation marks `` and ''); 018, 016 (German quotation marks ,, and
%% ``); 019, 020 (French Guillemets << and >>); 020, 019 (French
%% Guillemets in German notation >> and <<).
%% You may also take the Postscript names for all glyphs.
\begin{kerntable}
\testkern{LLL}{-}{000}{-}{RRR} \\ % grave
\testkern{LLL}{-}{001}{-}{RRR} \\ % acute
\testkern{LLL}{-}{002}{-}{RRR} \\ % circumflex
\testkern{LLL}{-}{003}{-}{RRR} \\ % tilde
\testkern{LLL}{-}{004}{-}{RRR} \\ % dieresis
\testkern{LLL}{-}{005}{-}{RRR} \\ % hungarumlaut
\testkern{LLL}{-}{006}{-}{RRR} \\ % ring
\testkern{LLL}{-}{007}{-}{RRR} \\ % caron
\testkern{LLL}{-}{008}{-}{RRR} \\ % breve
\testkern{LLL}{-}{009}{-}{RRR} \\ % macron
\testkern{LLL}{-}{010}{-}{RRR} \\ % dotaccent
\testkern{LLL}{-}{011}{-}{RRR} \\ % cedilla
\testkern{LLL}{-}{012}{-}{RRR} \\ % ogonek
\testkern{LLL}{-}{126}{-}{RRR} \\ % asciitilde
\testkern{LLL}{-}{094}{-}{RRR} \\ % asciicircum
\testkern{LLL}{-}{042}{-}{RRR} \\ % asterisk
\testkern{LLL}{-}{023}{-}{RRR} \\ % compwordmark
\testkern{LLL}{-}{032}{-}{RRR} \\ % visiblespace
\testkern{LLL}{-}{014}{-}{RRR} \\ % guilsinglleft
\testkern{LLL}{-}{015}{-}{RRR} \\ % guilsinglright
\testkern{LLL}{-}{019}{-}{RRR} \\ % guillemotleft
\testkern{LLL}{-}{020}{-}{RRR} \\ % guillemotright
\testkern{LLL}{-}{096}{-}{RRR} \\ % quoteleft
\testkern{LLL}{-}{039}{-}{RRR} \\ % quoteright
\testkern{LLL}{-}{013}{-}{RRR} \\ % quotesinglbase
\testkern{LLL}{-}{016}{-}{RRR} \\ % quotedblleft
\testkern{LLL}{-}{017}{-}{RRR} \\ % quotedblright
\testkern{LLL}{-}{018}{-}{RRR} \\ % quotedblbase
\testkern{LLL}{-}{034}{-}{RRR} \\ % quotedbl
\testkern{LLL}{-}{046}{-}{RRR} \\ % period
\testkern{LLL}{-}{044}{-}{RRR} \\ % comma
\testkern{LLL}{-}{058}{-}{RRR} \\ % colon
\testkern{LLL}{-}{059}{-}{RRR} \\ % semicolon
\testkern{LLL}{-}{033}{-}{RRR} \\ % exclam
\testkern{LLL}{-}{063}{-}{RRR} \\ % question
\testkern{LLL}{-}{189}{-}{RRR} \\ % exclamdown
\testkern{LLL}{-}{190}{-}{RRR} \\ % questiondown
\testkern{LLL}{-}{045}{-}{RRR} \\ % hyphen
\testkern{LLL}{-}{127}{-}{RRR} \\ % hyphenchar
\testkern{LLL}{-}{021}{-}{RRR} \\ % rangedash
\testkern{LLL}{-}{022}{-}{RRR} \\ % punctdash
\testkern{LLL}{-}{095}{-}{RRR} \\ % underscore
\testkern{LLL}{-}{043}{-}{RRR} \\ % plus
\testkern{LLL}{-}{061}{-}{RRR} \\ % equal
\testkern{LLL}{-}{060}{-}{RRR} \\ % less
\testkern{LLL}{-}{062}{-}{RRR} \\ % greater
\testkern{LLL}{-}{047}{-}{RRR} \\ % slash
\testkern{LLL}{-}{092}{-}{RRR} \\ % backslash
\testkern{LLL}{-}{040}{-}{RRR} \\ % parenleft
\testkern{LLL}{-}{041}{-}{RRR} \\ % parenright
\testkern{LLL}{-}{091}{-}{RRR} \\ % bracketleft
\testkern{LLL}{-}{093}{-}{RRR} \\ % bracketright
\testkern{LLL}{-}{123}{-}{RRR} \\ % braceleft
\testkern{LLL}{-}{125}{-}{RRR} \\ % braceright
\testkern{LLL}{-}{124}{-}{RRR} \\ % bar
\testkern{LLL}{-}{035}{-}{RRR} \\ % numbersign
\testkern{LLL}{-}{037}{-}{RRR} \\ % percent
\testkern{LLL}{-}{024}{-}{RRR} \\ % perthousandzero
\testkern{LLL}{-}{038}{-}{RRR} \\ % ampersand
\testkern{LLL}{-}{159}{-}{RRR} \\ % section
\testkern{LLL}{-}{064}{-}{RRR} \\ % at
\testkern{LLL}{-}{191}{-}{RRR} \\ % sterling
\testkern{LLL}{-}{048}{-}{RRR} \\ % zero
\testkern{LLL}{-}{049}{-}{RRR} \\ % one
\testkern{LLL}{-}{050}{-}{RRR} \\ % two
\testkern{LLL}{-}{051}{-}{RRR} \\ % three
\testkern{LLL}{-}{052}{-}{RRR} \\ % four
\testkern{LLL}{-}{053}{-}{RRR} \\ % five
\testkern{LLL}{-}{054}{-}{RRR} \\ % six
\testkern{LLL}{-}{055}{-}{RRR} \\ % seven
\testkern{LLL}{-}{056}{-}{RRR} \\ % eight
\testkern{LLL}{-}{057}{-}{RRR} \\ % nine
\testkern{LLL}{-}{065}{-}{RRR} \\ % A
\testkern{LLL}{-}{128}{-}{RRR} \\ % Abreve
\testkern{LLL}{-}{129}{-}{RRR} \\ % Aogonek
\testkern{LLL}{-}{192}{-}{RRR} \\ % Agrave
\testkern{LLL}{-}{193}{-}{RRR} \\ % Aacute
\testkern{LLL}{-}{194}{-}{RRR} \\ % Acircumflex
\testkern{LLL}{-}{195}{-}{RRR} \\ % Atilde
\testkern{LLL}{-}{196}{-}{RRR} \\ % Adieresis
\testkern{LLL}{-}{197}{-}{RRR} \\ % Aring
\testkern{LLL}{-}{198}{-}{RRR} \\ % AE
\testkern{LLL}{-}{066}{-}{RRR} \\ % B
\testkern{LLL}{-}{067}{-}{RRR} \\ % C
\testkern{LLL}{-}{130}{-}{RRR} \\ % Cacute
\testkern{LLL}{-}{131}{-}{RRR} \\ % Ccaron
\testkern{LLL}{-}{199}{-}{RRR} \\ % Ccedilla
\testkern{LLL}{-}{068}{-}{RRR} \\ % D
\testkern{LLL}{-}{132}{-}{RRR} \\ % Dcaron
\testkern{LLL}{-}{208}{-}{RRR} \\ % Eth
\testkern{LLL}{-}{069}{-}{RRR} \\ % E
\testkern{LLL}{-}{133}{-}{RRR} \\ % Ecaron
\testkern{LLL}{-}{134}{-}{RRR} \\ % Eogonek
\testkern{LLL}{-}{200}{-}{RRR} \\ % Egrave
\testkern{LLL}{-}{201}{-}{RRR} \\ % Eacute
\testkern{LLL}{-}{202}{-}{RRR} \\ % Ecircumflex
\testkern{LLL}{-}{203}{-}{RRR} \\ % Edieresis
\testkern{LLL}{-}{070}{-}{RRR} \\ % F
\testkern{LLL}{-}{071}{-}{RRR} \\ % G
\testkern{LLL}{-}{135}{-}{RRR} \\ % Gbreve
\testkern{LLL}{-}{072}{-}{RRR} \\ % H
\testkern{LLL}{-}{073}{-}{RRR} \\ % I
\testkern{LLL}{-}{157}{-}{RRR} \\ % Idotaccent
\testkern{LLL}{-}{204}{-}{RRR} \\ % Igrave
\testkern{LLL}{-}{205}{-}{RRR} \\ % Iacute
\testkern{LLL}{-}{206}{-}{RRR} \\ % Icircumflex
\testkern{LLL}{-}{207}{-}{RRR} \\ % Idieresis
\testkern{LLL}{-}{156}{-}{RRR} \\ % IJ
\testkern{LLL}{-}{074}{-}{RRR} \\ % J
\testkern{LLL}{-}{075}{-}{RRR} \\ % K
\testkern{LLL}{-}{076}{-}{RRR} \\ % L
\testkern{LLL}{-}{136}{-}{RRR} \\ % Lacute
\testkern{LLL}{-}{137}{-}{RRR} \\ % Lcaron
\testkern{LLL}{-}{138}{-}{RRR} \\ % Lslash
\testkern{LLL}{-}{077}{-}{RRR} \\ % M
\testkern{LLL}{-}{078}{-}{RRR} \\ % N
\testkern{LLL}{-}{139}{-}{RRR} \\ % Nacute
\testkern{LLL}{-}{140}{-}{RRR} \\ % Ncaron
\testkern{LLL}{-}{209}{-}{RRR} \\ % Ntilde
\testkern{LLL}{-}{079}{-}{RRR} \\ % O
\testkern{LLL}{-}{142}{-}{RRR} \\ % Ohungarumlaut
\testkern{LLL}{-}{210}{-}{RRR} \\ % Ograve
\testkern{LLL}{-}{211}{-}{RRR} \\ % Oacute
\testkern{LLL}{-}{212}{-}{RRR} \\ % Ocircumflex
\testkern{LLL}{-}{213}{-}{RRR} \\ % Otilde
\testkern{LLL}{-}{214}{-}{RRR} \\ % Odieresis
\testkern{LLL}{-}{215}{-}{RRR} \\ % OE
\testkern{LLL}{-}{216}{-}{RRR} \\ % Oslash
\testkern{LLL}{-}{080}{-}{RRR} \\ % P
\testkern{LLL}{-}{081}{-}{RRR} \\ % Q
\testkern{LLL}{-}{082}{-}{RRR} \\ % R
\testkern{LLL}{-}{143}{-}{RRR} \\ % Racute
\testkern{LLL}{-}{144}{-}{RRR} \\ % Rcaron
\testkern{LLL}{-}{083}{-}{RRR} \\ % S
\testkern{LLL}{-}{145}{-}{RRR} \\ % Sacute
\testkern{LLL}{-}{146}{-}{RRR} \\ % Scaron
\testkern{LLL}{-}{147}{-}{RRR} \\ % Scedilla
\testkern{LLL}{-}{223}{-}{RRR} \\ % SS
\testkern{LLL}{-}{036}{-}{RRR} \\ % dollar
\testkern{LLL}{-}{084}{-}{RRR} \\ % T
\testkern{LLL}{-}{148}{-}{RRR} \\ % Tcaron
\testkern{LLL}{-}{149}{-}{RRR} \\ % Tcedilla
\testkern{LLL}{-}{085}{-}{RRR} \\ % U
\testkern{LLL}{-}{150}{-}{RRR} \\ % Uhungarumlaut
\testkern{LLL}{-}{151}{-}{RRR} \\ % Uring
\testkern{LLL}{-}{217}{-}{RRR} \\ % Ugrave
\testkern{LLL}{-}{218}{-}{RRR} \\ % Uacute
\testkern{LLL}{-}{219}{-}{RRR} \\ % Ucircumflex
\testkern{LLL}{-}{220}{-}{RRR} \\ % Udieresis
\testkern{LLL}{-}{086}{-}{RRR} \\ % V
\testkern{LLL}{-}{087}{-}{RRR} \\ % W
\testkern{LLL}{-}{088}{-}{RRR} \\ % X
\testkern{LLL}{-}{089}{-}{RRR} \\ % Y
\testkern{LLL}{-}{152}{-}{RRR} \\ % Ydieresis
\testkern{LLL}{-}{221}{-}{RRR} \\ % Yacute
\testkern{LLL}{-}{090}{-}{RRR} \\ % Z
\testkern{LLL}{-}{153}{-}{RRR} \\ % Zacute
\testkern{LLL}{-}{154}{-}{RRR} \\ % Zcaron
\testkern{LLL}{-}{155}{-}{RRR} \\ % Zdotaccent
\testkern{LLL}{-}{141}{-}{RRR} \\ % Ng
\testkern{LLL}{-}{222}{-}{RRR} \\ % Thorn
\testkern{LLL}{-}{097}{-}{RRR} \\ % a
\testkern{LLL}{-}{160}{-}{RRR} \\ % abreve
\testkern{LLL}{-}{161}{-}{RRR} \\ % aogonek
\testkern{LLL}{-}{224}{-}{RRR} \\ % agrave
\testkern{LLL}{-}{225}{-}{RRR} \\ % aacute
\testkern{LLL}{-}{226}{-}{RRR} \\ % acircumflex
\testkern{LLL}{-}{227}{-}{RRR} \\ % atilde
\testkern{LLL}{-}{228}{-}{RRR} \\ % adieresis
\testkern{LLL}{-}{229}{-}{RRR} \\ % aring
\testkern{LLL}{-}{230}{-}{RRR} \\ % ae
\testkern{LLL}{-}{098}{-}{RRR} \\ % b
\testkern{LLL}{-}{099}{-}{RRR} \\ % c
\testkern{LLL}{-}{162}{-}{RRR} \\ % cacute
\testkern{LLL}{-}{163}{-}{RRR} \\ % ccaron
\testkern{LLL}{-}{231}{-}{RRR} \\ % ccedilla
\testkern{LLL}{-}{100}{-}{RRR} \\ % d
\testkern{LLL}{-}{158}{-}{RRR} \\ % dbar
\testkern{LLL}{-}{164}{-}{RRR} \\ % dcaron
\testkern{LLL}{-}{101}{-}{RRR} \\ % e
\testkern{LLL}{-}{165}{-}{RRR} \\ % ecaron
\testkern{LLL}{-}{166}{-}{RRR} \\ % eogonek
\testkern{LLL}{-}{232}{-}{RRR} \\ % egrave
\testkern{LLL}{-}{233}{-}{RRR} \\ % eacute
\testkern{LLL}{-}{234}{-}{RRR} \\ % ecircumflex
\testkern{LLL}{-}{235}{-}{RRR} \\ % edieresis
\testkern{LLL}{-}{102}{-}{RRR} \\ % f
\testkern{LLL}{-}{027}{-}{RRR} \\ % ff
\testkern{LLL}{-}{028}{-}{RRR} \\ % fi
\testkern{LLL}{-}{029}{-}{RRR} \\ % fl
\testkern{LLL}{-}{030}{-}{RRR} \\ % ffi
\testkern{LLL}{-}{031}{-}{RRR} \\ % ffl
\testkern{LLL}{-}{103}{-}{RRR} \\ % g
\testkern{LLL}{-}{167}{-}{RRR} \\ % gbreve
\testkern{LLL}{-}{104}{-}{RRR} \\ % h
\testkern{LLL}{-}{105}{-}{RRR} \\ % i
\testkern{LLL}{-}{025}{-}{RRR} \\ % dotlessi
\testkern{LLL}{-}{236}{-}{RRR} \\ % igrave
\testkern{LLL}{-}{237}{-}{RRR} \\ % iacute
\testkern{LLL}{-}{238}{-}{RRR} \\ % icircumflex
\testkern{LLL}{-}{239}{-}{RRR} \\ % idieresis
\testkern{LLL}{-}{188}{-}{RRR} \\ % ij
\testkern{LLL}{-}{106}{-}{RRR} \\ % j
\testkern{LLL}{-}{026}{-}{RRR} \\ % dotlessj
\testkern{LLL}{-}{107}{-}{RRR} \\ % k
\testkern{LLL}{-}{108}{-}{RRR} \\ % l
\testkern{LLL}{-}{168}{-}{RRR} \\ % lacute
\testkern{LLL}{-}{169}{-}{RRR} \\ % lcaron
\testkern{LLL}{-}{170}{-}{RRR} \\ % lslash
\testkern{LLL}{-}{109}{-}{RRR} \\ % m
\testkern{LLL}{-}{110}{-}{RRR} \\ % n
\testkern{LLL}{-}{171}{-}{RRR} \\ % nacute
\testkern{LLL}{-}{172}{-}{RRR} \\ % ncaron
\testkern{LLL}{-}{241}{-}{RRR} \\ % ntilde
\testkern{LLL}{-}{111}{-}{RRR} \\ % o
\testkern{LLL}{-}{174}{-}{RRR} \\ % ohungarumlaut
\testkern{LLL}{-}{242}{-}{RRR} \\ % ograve
\testkern{LLL}{-}{243}{-}{RRR} \\ % oacute
\testkern{LLL}{-}{244}{-}{RRR} \\ % ocircumflex
\testkern{LLL}{-}{245}{-}{RRR} \\ % otilde
\testkern{LLL}{-}{246}{-}{RRR} \\ % odieresis
\testkern{LLL}{-}{247}{-}{RRR} \\ % oe
\testkern{LLL}{-}{248}{-}{RRR} \\ % oslash
\testkern{LLL}{-}{112}{-}{RRR} \\ % p
\testkern{LLL}{-}{113}{-}{RRR} \\ % q
\testkern{LLL}{-}{114}{-}{RRR} \\ % r
\testkern{LLL}{-}{175}{-}{RRR} \\ % racute
\testkern{LLL}{-}{176}{-}{RRR} \\ % rcaron
\testkern{LLL}{-}{115}{-}{RRR} \\ % s
\testkern{LLL}{-}{177}{-}{RRR} \\ % sacute
\testkern{LLL}{-}{178}{-}{RRR} \\ % scaron
\testkern{LLL}{-}{179}{-}{RRR} \\ % scedilla
\testkern{LLL}{-}{116}{-}{RRR} \\ % t
\testkern{LLL}{-}{180}{-}{RRR} \\ % tcaron
\testkern{LLL}{-}{181}{-}{RRR} \\ % tcedilla
\testkern{LLL}{-}{117}{-}{RRR} \\ % u
\testkern{LLL}{-}{182}{-}{RRR} \\ % uhungarumlaut
\testkern{LLL}{-}{183}{-}{RRR} \\ % uring
\testkern{LLL}{-}{249}{-}{RRR} \\ % ugrave
\testkern{LLL}{-}{250}{-}{RRR} \\ % uacute
\testkern{LLL}{-}{251}{-}{RRR} \\ % ucircumflex
\testkern{LLL}{-}{252}{-}{RRR} \\ % udieresis
\testkern{LLL}{-}{118}{-}{RRR} \\ % v
\testkern{LLL}{-}{119}{-}{RRR} \\ % w
\testkern{LLL}{-}{120}{-}{RRR} \\ % x
\testkern{LLL}{-}{121}{-}{RRR} \\ % y
\testkern{LLL}{-}{184}{-}{RRR} \\ % ydieresis
\testkern{LLL}{-}{253}{-}{RRR} \\ % yacute
\testkern{LLL}{-}{122}{-}{RRR} \\ % z
\testkern{LLL}{-}{185}{-}{RRR} \\ % zacute
\testkern{LLL}{-}{186}{-}{RRR} \\ % zcaron
\testkern{LLL}{-}{187}{-}{RRR} \\ % zdotaccent
\testkern{LLL}{-}{240}{-}{RRR} \\ % eth
\testkern{LLL}{-}{173}{-}{RRR} \\ % ng
\testkern{LLL}{-}{254}{-}{RRR} \\ % thorn
\testkern{LLL}{-}{255}{-}{RRR} \\ % germandbls
\end{kerntable}
\end{document}
%</template&t1>
% \end{macrocode}
%
% \subsubsection{TS1 encoding}
%
% \begin{macrocode}
%<*template&ts1>
\listfiles
%% Replace the `XXX' in the next line by the 3- or 4-character long
%% abbreviation for your font.
\documentclass[family=XXX]{kerntest}
%% Replace the settings by these you want to test.
\kernsetup{encoding=TS1,series=m,shape=n,example=hello}
\kernsetup{size=14.40pt,baselineskip=16.5pt,papersize=a4paper}
%% The next line can be used to add a name suffix to the output |mtx| file.
%% \kernsetup{extraname=normal}
%% If you are using a font with different design sizes and if you want
%% to test one design size scaled to another one, you may input a
%% modified fd file for your font. To generate this new fd file, just
%% copy the original one, rename it, and modify the entries for the
%% font shapes to use the design size you want to test.
%% \input{t1XXX-1200.fd}
\begin{document}
%% This table of characters is sorted by similar glyphs, not by the
%% encoding.
%% Replace `{LLL}' and `{RRR}' in columns 1 resp. 5 by these glyphs
%% that shall be tested.
\begin{kerntable}
\testkern{LLL}{-}{000}{-}{RRR} \\ % capitalgrave
\testkern{LLL}{-}{001}{-}{RRR} \\ % capitalacute
\testkern{LLL}{-}{002}{-}{RRR} \\ % capitalcircumflex
\testkern{LLL}{-}{003}{-}{RRR} \\ % capitaltilde
\testkern{LLL}{-}{004}{-}{RRR} \\ % capitaldieresis
\testkern{LLL}{-}{005}{-}{RRR} \\ % capitalhungarumlaut
\testkern{LLL}{-}{006}{-}{RRR} \\ % capitalring
\testkern{LLL}{-}{007}{-}{RRR} \\ % capitalcaron
\testkern{LLL}{-}{008}{-}{RRR} \\ % capitalbreve
\testkern{LLL}{-}{009}{-}{RRR} \\ % capitalmacron
\testkern{LLL}{-}{010}{-}{RRR} \\ % capitaldotaccent
\testkern{LLL}{-}{011}{-}{RRR} \\ % cedilla
\testkern{LLL}{-}{012}{-}{RRR} \\ % ogonek
\testkern{LLL}{-}{013}{-}{RRR} \\ % quotesinglbase
\testkern{LLL}{-}{014}{-}{RRR} \\
\testkern{LLL}{-}{015}{-}{RRR} \\
\testkern{LLL}{-}{016}{-}{RRR} \\
\testkern{LLL}{-}{017}{-}{RRR} \\
\testkern{LLL}{-}{018}{-}{RRR} \\ % quotedblbase
\testkern{LLL}{-}{019}{-}{RRR} \\
\testkern{LLL}{-}{020}{-}{RRR} \\
\testkern{LLL}{-}{021}{-}{RRR} \\ % twelveudash
\testkern{LLL}{-}{022}{-}{RRR} \\ % threequartersemdash
\testkern{LLL}{-}{023}{-}{RRR} \\ % capitalcompwordmark
\testkern{LLL}{-}{024}{-}{RRR} \\ % arrowleft
\testkern{LLL}{-}{025}{-}{RRR} \\ % arrowright
\testkern{LLL}{-}{026}{-}{RRR} \\ % tieaccentlowercase
\testkern{LLL}{-}{027}{-}{RRR} \\ % tieaccentcapital
\testkern{LLL}{-}{028}{-}{RRR} \\ % newtieaccentlowercase
\testkern{LLL}{-}{029}{-}{RRR} \\ % newtieaccentcapital
\testkern{LLL}{-}{030}{-}{RRR} \\ % ascendercompwordmark
\testkern{LLL}{-}{031}{-}{RRR} \\ % blank
\testkern{LLL}{-}{032}{-}{RRR} \\
\testkern{LLL}{-}{033}{-}{RRR} \\
\testkern{LLL}{-}{034}{-}{RRR} \\
\testkern{LLL}{-}{035}{-}{RRR} \\
\testkern{LLL}{-}{036}{-}{RRR} \\ % dollar
\testkern{LLL}{-}{037}{-}{RRR} \\
\testkern{LLL}{-}{038}{-}{RRR} \\
\testkern{LLL}{-}{039}{-}{RRR} \\ % quotesingle
\testkern{LLL}{-}{040}{-}{RRR} \\
\testkern{LLL}{-}{041}{-}{RRR} \\
\testkern{LLL}{-}{042}{-}{RRR} \\ % asteriskcentered
\testkern{LLL}{-}{043}{-}{RRR} \\
\testkern{LLL}{-}{044}{-}{RRR} \\ % comma
\testkern{LLL}{-}{045}{-}{RRR} \\ % hyphendbl
\testkern{LLL}{-}{046}{-}{RRR} \\ % period
\testkern{LLL}{-}{047}{-}{RRR} \\ % fraction
\testkern{LLL}{-}{048}{-}{RRR} \\ % zerooldstyle
\testkern{LLL}{-}{049}{-}{RRR} \\ % oneoldstyle
\testkern{LLL}{-}{050}{-}{RRR} \\ % twooldstyle
\testkern{LLL}{-}{051}{-}{RRR} \\ % threeoldstyle
\testkern{LLL}{-}{052}{-}{RRR} \\ % fouroldstyle
\testkern{LLL}{-}{053}{-}{RRR} \\ % fiveoldstyle
\testkern{LLL}{-}{054}{-}{RRR} \\ % sixoldstyle
\testkern{LLL}{-}{055}{-}{RRR} \\ % sevenoldstyle
\testkern{LLL}{-}{056}{-}{RRR} \\ % eightoldstyle
\testkern{LLL}{-}{057}{-}{RRR} \\ % nineoldstyle
\testkern{LLL}{-}{058}{-}{RRR} \\
\testkern{LLL}{-}{059}{-}{RRR} \\
\testkern{LLL}{-}{060}{-}{RRR} \\ % angbracketleft
\testkern{LLL}{-}{061}{-}{RRR} \\ % minus
\testkern{LLL}{-}{062}{-}{RRR} \\ % angbracketright
\testkern{LLL}{-}{063}{-}{RRR} \\
\testkern{LLL}{-}{064}{-}{RRR} \\
\testkern{LLL}{-}{065}{-}{RRR} \\
\testkern{LLL}{-}{066}{-}{RRR} \\
\testkern{LLL}{-}{067}{-}{RRR} \\
\testkern{LLL}{-}{068}{-}{RRR} \\
\testkern{LLL}{-}{069}{-}{RRR} \\
\testkern{LLL}{-}{070}{-}{RRR} \\
\testkern{LLL}{-}{071}{-}{RRR} \\
\testkern{LLL}{-}{072}{-}{RRR} \\
\testkern{LLL}{-}{073}{-}{RRR} \\
\testkern{LLL}{-}{074}{-}{RRR} \\
\testkern{LLL}{-}{075}{-}{RRR} \\
\testkern{LLL}{-}{076}{-}{RRR} \\
\testkern{LLL}{-}{077}{-}{RRR} \\ % Omegainv
\testkern{LLL}{-}{078}{-}{RRR} \\
\testkern{LLL}{-}{079}{-}{RRR} \\ % bigcircle
\testkern{LLL}{-}{080}{-}{RRR} \\
\testkern{LLL}{-}{081}{-}{RRR} \\
\testkern{LLL}{-}{082}{-}{RRR} \\
\testkern{LLL}{-}{083}{-}{RRR} \\
\testkern{LLL}{-}{084}{-}{RRR} \\
\testkern{LLL}{-}{085}{-}{RRR} \\
\testkern{LLL}{-}{086}{-}{RRR} \\
\testkern{LLL}{-}{087}{-}{RRR} \\ % Omega
\testkern{LLL}{-}{088}{-}{RRR} \\
\testkern{LLL}{-}{089}{-}{RRR} \\
\testkern{LLL}{-}{090}{-}{RRR} \\
\testkern{LLL}{-}{091}{-}{RRR} \\ % openbracketleft
\testkern{LLL}{-}{092}{-}{RRR} \\
\testkern{LLL}{-}{093}{-}{RRR} \\ % openbracketright
\testkern{LLL}{-}{094}{-}{RRR} \\ % arrowup
\testkern{LLL}{-}{095}{-}{RRR} \\ % arrowdown
\testkern{LLL}{-}{096}{-}{RRR} \\ % asciigrave
\testkern{LLL}{-}{097}{-}{RRR} \\
\testkern{LLL}{-}{098}{-}{RRR} \\ % born
\testkern{LLL}{-}{099}{-}{RRR} \\ % divorced
\testkern{LLL}{-}{100}{-}{RRR} \\ % died
\testkern{LLL}{-}{101}{-}{RRR} \\
\testkern{LLL}{-}{102}{-}{RRR} \\
\testkern{LLL}{-}{103}{-}{RRR} \\
\testkern{LLL}{-}{104}{-}{RRR} \\
\testkern{LLL}{-}{105}{-}{RRR} \\
\testkern{LLL}{-}{106}{-}{RRR} \\
\testkern{LLL}{-}{107}{-}{RRR} \\
\testkern{LLL}{-}{108}{-}{RRR} \\ % leaf
\testkern{LLL}{-}{109}{-}{RRR} \\ % married
\testkern{LLL}{-}{110}{-}{RRR} \\ % musicalnote
\testkern{LLL}{-}{111}{-}{RRR} \\
\testkern{LLL}{-}{112}{-}{RRR} \\
\testkern{LLL}{-}{113}{-}{RRR} \\
\testkern{LLL}{-}{114}{-}{RRR} \\
\testkern{LLL}{-}{115}{-}{RRR} \\
\testkern{LLL}{-}{116}{-}{RRR} \\
\testkern{LLL}{-}{117}{-}{RRR} \\
\testkern{LLL}{-}{118}{-}{RRR} \\
\testkern{LLL}{-}{119}{-}{RRR} \\
\testkern{LLL}{-}{120}{-}{RRR} \\
\testkern{LLL}{-}{121}{-}{RRR} \\
\testkern{LLL}{-}{122}{-}{RRR} \\
\testkern{LLL}{-}{123}{-}{RRR} \\
\testkern{LLL}{-}{124}{-}{RRR} \\
\testkern{LLL}{-}{125}{-}{RRR} \\
\testkern{LLL}{-}{126}{-}{RRR} \\ % tildelow
\testkern{LLL}{-}{127}{-}{RRR} \\ % hyphendblchar
\testkern{LLL}{-}{128}{-}{RRR} \\ % asciibreve
\testkern{LLL}{-}{129}{-}{RRR} \\ % asciicaron
\testkern{LLL}{-}{130}{-}{RRR} \\ % asciiacutedbl
\testkern{LLL}{-}{131}{-}{RRR} \\ % asciigravedbl
\testkern{LLL}{-}{132}{-}{RRR} \\ % dagger
\testkern{LLL}{-}{133}{-}{RRR} \\ % daggerdbl
\testkern{LLL}{-}{134}{-}{RRR} \\ % bardbl
\testkern{LLL}{-}{135}{-}{RRR} \\ % perthousand
\testkern{LLL}{-}{136}{-}{RRR} \\ % bullet
\testkern{LLL}{-}{137}{-}{RRR} \\ % centigrade
\testkern{LLL}{-}{138}{-}{RRR} \\ % dollaroldstyle
\testkern{LLL}{-}{139}{-}{RRR} \\ % centoldstyle
\testkern{LLL}{-}{140}{-}{RRR} \\ % florin
\testkern{LLL}{-}{141}{-}{RRR} \\ % colonmonetary
\testkern{LLL}{-}{142}{-}{RRR} \\ % won
\testkern{LLL}{-}{143}{-}{RRR} \\ % naira
\testkern{LLL}{-}{144}{-}{RRR} \\ % guarani
\testkern{LLL}{-}{145}{-}{RRR} \\ % peso
\testkern{LLL}{-}{146}{-}{RRR} \\ % lira
\testkern{LLL}{-}{147}{-}{RRR} \\ % recipe
\testkern{LLL}{-}{148}{-}{RRR} \\ % interrobang
\testkern{LLL}{-}{149}{-}{RRR} \\ % interrobangdown
\testkern{LLL}{-}{150}{-}{RRR} \\ % dong
\testkern{LLL}{-}{151}{-}{RRR} \\ % trademark
\testkern{LLL}{-}{152}{-}{RRR} \\ % pertenthousand
\testkern{LLL}{-}{153}{-}{RRR} \\ % pilcrow
\testkern{LLL}{-}{154}{-}{RRR} \\ % baht
\testkern{LLL}{-}{155}{-}{RRR} \\ % numero
\testkern{LLL}{-}{156}{-}{RRR} \\ % discount
\testkern{LLL}{-}{157}{-}{RRR} \\ % estimated
\testkern{LLL}{-}{158}{-}{RRR} \\ % openbullet
\testkern{LLL}{-}{159}{-}{RRR} \\ % servicemark
\testkern{LLL}{-}{160}{-}{RRR} \\ % quillbracketleft
\testkern{LLL}{-}{161}{-}{RRR} \\ % quillbracketright
\testkern{LLL}{-}{162}{-}{RRR} \\ % cent
\testkern{LLL}{-}{163}{-}{RRR} \\ % sterling
\testkern{LLL}{-}{164}{-}{RRR} \\ % currency
\testkern{LLL}{-}{165}{-}{RRR} \\ % yen
\testkern{LLL}{-}{166}{-}{RRR} \\ % brokenbar
\testkern{LLL}{-}{167}{-}{RRR} \\ % section
\testkern{LLL}{-}{168}{-}{RRR} \\ % asciidieresis
\testkern{LLL}{-}{169}{-}{RRR} \\ % copyright
\testkern{LLL}{-}{170}{-}{RRR} \\ % ordfeminine
\testkern{LLL}{-}{171}{-}{RRR} \\ % copyleft
\testkern{LLL}{-}{172}{-}{RRR} \\ % logicalnot
\testkern{LLL}{-}{173}{-}{RRR} \\ % circledP
\testkern{LLL}{-}{174}{-}{RRR} \\ % registered
\testkern{LLL}{-}{175}{-}{RRR} \\ % asciimacron
\testkern{LLL}{-}{176}{-}{RRR} \\ % degree
\testkern{LLL}{-}{177}{-}{RRR} \\ % plusminus
\testkern{LLL}{-}{178}{-}{RRR} \\ % twosuperior
\testkern{LLL}{-}{179}{-}{RRR} \\ % threesuperior
\testkern{LLL}{-}{180}{-}{RRR} \\ % asciiacute
\testkern{LLL}{-}{181}{-}{RRR} \\ % mu
\testkern{LLL}{-}{182}{-}{RRR} \\ % paragraph
\testkern{LLL}{-}{183}{-}{RRR} \\ % periodcentered
\testkern{LLL}{-}{184}{-}{RRR} \\ % referencemark
\testkern{LLL}{-}{185}{-}{RRR} \\ % onesuperior
\testkern{LLL}{-}{186}{-}{RRR} \\ % ordmasculine
\testkern{LLL}{-}{187}{-}{RRR} \\ % radical
\testkern{LLL}{-}{188}{-}{RRR} \\ % onequarter
\testkern{LLL}{-}{189}{-}{RRR} \\ % onehalf
\testkern{LLL}{-}{190}{-}{RRR} \\ % threequarters
\testkern{LLL}{-}{191}{-}{RRR} \\ % euro
\testkern{LLL}{-}{192}{-}{RRR} \\
\testkern{LLL}{-}{193}{-}{RRR} \\
\testkern{LLL}{-}{194}{-}{RRR} \\
\testkern{LLL}{-}{195}{-}{RRR} \\
\testkern{LLL}{-}{196}{-}{RRR} \\
\testkern{LLL}{-}{197}{-}{RRR} \\
\testkern{LLL}{-}{198}{-}{RRR} \\
\testkern{LLL}{-}{199}{-}{RRR} \\
\testkern{LLL}{-}{200}{-}{RRR} \\
\testkern{LLL}{-}{201}{-}{RRR} \\
\testkern{LLL}{-}{202}{-}{RRR} \\
\testkern{LLL}{-}{203}{-}{RRR} \\
\testkern{LLL}{-}{204}{-}{RRR} \\
\testkern{LLL}{-}{205}{-}{RRR} \\
\testkern{LLL}{-}{206}{-}{RRR} \\
\testkern{LLL}{-}{207}{-}{RRR} \\
\testkern{LLL}{-}{208}{-}{RRR} \\
\testkern{LLL}{-}{209}{-}{RRR} \\
\testkern{LLL}{-}{210}{-}{RRR} \\
\testkern{LLL}{-}{211}{-}{RRR} \\
\testkern{LLL}{-}{212}{-}{RRR} \\
\testkern{LLL}{-}{213}{-}{RRR} \\
\testkern{LLL}{-}{214}{-}{RRR} \\ % multiply
\testkern{LLL}{-}{215}{-}{RRR} \\
\testkern{LLL}{-}{216}{-}{RRR} \\
\testkern{LLL}{-}{217}{-}{RRR} \\
\testkern{LLL}{-}{218}{-}{RRR} \\
\testkern{LLL}{-}{219}{-}{RRR} \\
\testkern{LLL}{-}{220}{-}{RRR} \\
\testkern{LLL}{-}{221}{-}{RRR} \\
\testkern{LLL}{-}{222}{-}{RRR} \\
\testkern{LLL}{-}{223}{-}{RRR} \\
\testkern{LLL}{-}{224}{-}{RRR} \\
\testkern{LLL}{-}{225}{-}{RRR} \\
\testkern{LLL}{-}{226}{-}{RRR} \\
\testkern{LLL}{-}{227}{-}{RRR} \\
\testkern{LLL}{-}{228}{-}{RRR} \\
\testkern{LLL}{-}{229}{-}{RRR} \\
\testkern{LLL}{-}{230}{-}{RRR} \\
\testkern{LLL}{-}{231}{-}{RRR} \\
\testkern{LLL}{-}{232}{-}{RRR} \\
\testkern{LLL}{-}{233}{-}{RRR} \\
\testkern{LLL}{-}{234}{-}{RRR} \\
\testkern{LLL}{-}{235}{-}{RRR} \\
\testkern{LLL}{-}{236}{-}{RRR} \\
\testkern{LLL}{-}{237}{-}{RRR} \\
\testkern{LLL}{-}{238}{-}{RRR} \\
\testkern{LLL}{-}{239}{-}{RRR} \\
\testkern{LLL}{-}{240}{-}{RRR} \\
\testkern{LLL}{-}{241}{-}{RRR} \\
\testkern{LLL}{-}{242}{-}{RRR} \\
\testkern{LLL}{-}{243}{-}{RRR} \\
\testkern{LLL}{-}{244}{-}{RRR} \\
\testkern{LLL}{-}{245}{-}{RRR} \\
\testkern{LLL}{-}{246}{-}{RRR} \\ % divide
\testkern{LLL}{-}{247}{-}{RRR} \\
\testkern{LLL}{-}{248}{-}{RRR} \\
\testkern{LLL}{-}{249}{-}{RRR} \\
\testkern{LLL}{-}{250}{-}{RRR} \\
\testkern{LLL}{-}{251}{-}{RRR} \\
\testkern{LLL}{-}{252}{-}{RRR} \\
\testkern{LLL}{-}{253}{-}{RRR} \\
\testkern{LLL}{-}{254}{-}{RRR} \\
\testkern{LLL}{-}{255}{-}{RRR} \\
\end{kerntable}
\end{document}
%</template&ts1>
% \end{macrocode}
%
% \subsubsection{OT1 encoding}
%
% \begin{macrocode}
%<*template&ot1>
\listfiles
%% Replace the `XXX' in the next line by the 3- or 4-character long
%% abbreviation for your font.
\documentclass[family=XXX]{kerntest}
%% Replace the settings by these you want to test.
\kernsetup{encoding=OT1,series=m,shape=n,example=hello}
\kernsetup{size=14.40pt,baselineskip=16.5pt,papersize=a4paper}
%% The next line can be used to add a name suffix to the output mtx file.
%% \kernsetup{extraname=normal}
%% Set encoding parameters.
%% Set ligaturing: 2=all, 1=some, 0=none
%% \encodingsetup{ligaturing=2}
%% Normal: dollar, Italic: sterling
%% \encodingsetup{italicizing=false}
%% If you are using a font with different design sizes and if you want
%% to test one design size scaled to another one, you may input a
%% modified fd file for your font. To generate this new fd file, just
%% copy the original one, rename it, and modify the entries for the
%% font shapes to use the design size you want to test.
%% \input{ot1XXX-1200.fd}
%% The following lines show some possible glyph classes. You should
%% add all classes you need.
\newglyphclass{right}{E}{E,AE,OE}
\newglyphclass{left}{H}{B,D,F,H,I,J,K,L,N,P,R}
\newglyphclass{right}{H}{H,I,J,N}
\newglyphclass{right}{S}{S,dollar}
\newglyphclass{left}{S}{S,dollar}
\newglyphclass{left}{a}{a,ae}
\newglyphclass{right}{e}{e,ae,oe}
\newglyphclass{left}{f}{f,ff,fi,fl,ffi,ffl}
\newglyphclass{right}{f}{f,ff}
\newglyphclass{right}{i}{i,fi,ffi,dotlessi}
\newglyphclass{left}{i}{i,dotlessi}
\newglyphclass{right}{l}{fl,ffl,l}
\newglyphclass{right}{m}{m,n}
\newglyphclass{left}{m}{m,n}
\newglyphclass{left}{o}{o,oe}
\begin{document}
%% This table of characters is sorted by similar glyphs, not by the
%% encoding.
%% Replace `{LLL}' and `{RRR}' in columns 1 resp. 5 by these glyphs
%% that shall be tested.
\begin{kerntable}
\testkern{LLL}{-}{018}{-}{RRR} \\ % grave
\testkern{LLL}{-}{019}{-}{RRR} \\ % acute
\testkern{LLL}{-}{094}{-}{RRR} \\ % circumflex
\testkern{LLL}{-}{126}{-}{RRR} \\ % tilde
\testkern{LLL}{-}{127}{-}{RRR} \\ % dieresis
\testkern{LLL}{-}{125}{-}{RRR} \\ % hungarumlaut/braceright
\testkern{LLL}{-}{023}{-}{RRR} \\ % ringfitted
\testkern{LLL}{-}{020}{-}{RRR} \\ % caron
\testkern{LLL}{-}{021}{-}{RRR} \\ % breve
\testkern{LLL}{-}{022}{-}{RRR} \\ % macron
\testkern{LLL}{-}{095}{-}{RRR} \\ % dotaccent/underscore
\testkern{LLL}{-}{024}{-}{RRR} \\ % cedilla
\testkern{LLL}{-}{042}{-}{RRR} \\ % asterisk
\testkern{LLL}{-}{032}{-}{RRR} \\ % lslashslash/visiblespace
\testkern{LLL}{-}{096}{-}{RRR} \\ % quoteleft
\testkern{LLL}{-}{039}{-}{RRR} \\ % quoteright
\testkern{LLL}{-}{092}{-}{RRR} \\ % quotedblleft
\testkern{LLL}{-}{034}{-}{RRR} \\ % quotedblright/quotedbl
\testkern{LLL}{-}{046}{-}{RRR} \\ % period
\testkern{LLL}{-}{044}{-}{RRR} \\ % comma
\testkern{LLL}{-}{058}{-}{RRR} \\ % colon
\testkern{LLL}{-}{059}{-}{RRR} \\ % semicolon
\testkern{LLL}{-}{033}{-}{RRR} \\ % exclam
\testkern{LLL}{-}{063}{-}{RRR} \\ % question
\testkern{LLL}{-}{060}{-}{RRR} \\ % exclamdown/less
\testkern{LLL}{-}{062}{-}{RRR} \\ % questiondown/greater
\testkern{LLL}{-}{045}{-}{RRR} \\ % hyphen
\testkern{LLL}{-}{123}{-}{RRR} \\ % rangedash/braceleft
\testkern{LLL}{-}{124}{-}{RRR} \\ % punctdash/bar
\testkern{LLL}{-}{043}{-}{RRR} \\ % plus
\testkern{LLL}{-}{061}{-}{RRR} \\ % equal
\testkern{LLL}{-}{047}{-}{RRR} \\ % slash
\testkern{LLL}{-}{040}{-}{RRR} \\ % parenleft
\testkern{LLL}{-}{041}{-}{RRR} \\ % parenright
\testkern{LLL}{-}{091}{-}{RRR} \\ % bracketleft
\testkern{LLL}{-}{093}{-}{RRR} \\ % bracketright
\testkern{LLL}{-}{035}{-}{RRR} \\ % numbersign
\testkern{LLL}{-}{037}{-}{RRR} \\ % percent
\testkern{LLL}{-}{038}{-}{RRR} \\ % ampersand
\testkern{LLL}{-}{064}{-}{RRR} \\ % at
\testkern{LLL}{-}{048}{-}{RRR} \\ % zero
\testkern{LLL}{-}{049}{-}{RRR} \\ % one
\testkern{LLL}{-}{050}{-}{RRR} \\ % two
\testkern{LLL}{-}{051}{-}{RRR} \\ % three
\testkern{LLL}{-}{052}{-}{RRR} \\ % four
\testkern{LLL}{-}{053}{-}{RRR} \\ % five
\testkern{LLL}{-}{054}{-}{RRR} \\ % six
\testkern{LLL}{-}{055}{-}{RRR} \\ % seven
\testkern{LLL}{-}{056}{-}{RRR} \\ % eight
\testkern{LLL}{-}{057}{-}{RRR} \\ % nine
\testkern{LLL}{-}{065}{-}{RRR} \\ % A
\testkern{LLL}{-}{029}{-}{RRR} \\ % AE
\testkern{LLL}{-}{066}{-}{RRR} \\ % B
\testkern{LLL}{-}{067}{-}{RRR} \\ % C
\testkern{LLL}{-}{068}{-}{RRR} \\ % D
\testkern{LLL}{-}{069}{-}{RRR} \\ % E
\testkern{LLL}{-}{070}{-}{RRR} \\ % F
\testkern{LLL}{-}{071}{-}{RRR} \\ % G
\testkern{LLL}{-}{072}{-}{RRR} \\ % H
\testkern{LLL}{-}{073}{-}{RRR} \\ % I
\testkern{LLL}{-}{074}{-}{RRR} \\ % J
\testkern{LLL}{-}{075}{-}{RRR} \\ % K
\testkern{LLL}{-}{076}{-}{RRR} \\ % L
\testkern{LLL}{-}{138}{-}{RRR} \\ % Lslash
\testkern{LLL}{-}{077}{-}{RRR} \\ % M
\testkern{LLL}{-}{078}{-}{RRR} \\ % N
\testkern{LLL}{-}{079}{-}{RRR} \\ % O
\testkern{LLL}{-}{030}{-}{RRR} \\ % OE
\testkern{LLL}{-}{031}{-}{RRR} \\ % Oslash
\testkern{LLL}{-}{080}{-}{RRR} \\ % P
\testkern{LLL}{-}{081}{-}{RRR} \\ % Q
\testkern{LLL}{-}{082}{-}{RRR} \\ % R
\testkern{LLL}{-}{083}{-}{RRR} \\ % S
\testkern{LLL}{-}{036}{-}{RRR} \\ % dollar/sterling
\testkern{LLL}{-}{084}{-}{RRR} \\ % T
\testkern{LLL}{-}{085}{-}{RRR} \\ % U
\testkern{LLL}{-}{086}{-}{RRR} \\ % V
\testkern{LLL}{-}{087}{-}{RRR} \\ % W
\testkern{LLL}{-}{088}{-}{RRR} \\ % X
\testkern{LLL}{-}{089}{-}{RRR} \\ % Y
\testkern{LLL}{-}{090}{-}{RRR} \\ % Z
\testkern{LLL}{-}{097}{-}{RRR} \\ % a
\testkern{LLL}{-}{026}{-}{RRR} \\ % ae
\testkern{LLL}{-}{098}{-}{RRR} \\ % b
\testkern{LLL}{-}{099}{-}{RRR} \\ % c
\testkern{LLL}{-}{100}{-}{RRR} \\ % d
\testkern{LLL}{-}{101}{-}{RRR} \\ % e
\testkern{LLL}{-}{102}{-}{RRR} \\ % f
\testkern{LLL}{-}{011}{-}{RRR} \\ % ff/arrowup
\testkern{LLL}{-}{012}{-}{RRR} \\ % fi/arrowdown
\testkern{LLL}{-}{013}{-}{RRR} \\ % fl/quotesingle
\testkern{LLL}{-}{014}{-}{RRR} \\ % ffi/exclamdown
\testkern{LLL}{-}{015}{-}{RRR} \\ % ffl/questiondown
\testkern{LLL}{-}{103}{-}{RRR} \\ % g
\testkern{LLL}{-}{104}{-}{RRR} \\ % h
\testkern{LLL}{-}{105}{-}{RRR} \\ % i
\testkern{LLL}{-}{016}{-}{RRR} \\ % dotlessi
\testkern{LLL}{-}{025}{-}{RRR} \\ % germandbls
\testkern{LLL}{-}{106}{-}{RRR} \\ % j
\testkern{LLL}{-}{017}{-}{RRR} \\ % dotlessj
\testkern{LLL}{-}{107}{-}{RRR} \\ % k
\testkern{LLL}{-}{108}{-}{RRR} \\ % l
\testkern{LLL}{-}{170}{-}{RRR} \\ % lslash
\testkern{LLL}{-}{109}{-}{RRR} \\ % m
\testkern{LLL}{-}{110}{-}{RRR} \\ % n
\testkern{LLL}{-}{111}{-}{RRR} \\ % o
\testkern{LLL}{-}{027}{-}{RRR} \\ % oe
\testkern{LLL}{-}{028}{-}{RRR} \\ % oslash
\testkern{LLL}{-}{112}{-}{RRR} \\ % p
\testkern{LLL}{-}{113}{-}{RRR} \\ % q
\testkern{LLL}{-}{114}{-}{RRR} \\ % r
\testkern{LLL}{-}{115}{-}{RRR} \\ % s
\testkern{LLL}{-}{116}{-}{RRR} \\ % t
\testkern{LLL}{-}{117}{-}{RRR} \\ % u
\testkern{LLL}{-}{118}{-}{RRR} \\ % v
\testkern{LLL}{-}{119}{-}{RRR} \\ % w
\testkern{LLL}{-}{120}{-}{RRR} \\ % x
\testkern{LLL}{-}{121}{-}{RRR} \\ % y
\testkern{LLL}{-}{122}{-}{RRR} \\ % z
\testkern{LLL}{-}{000}{-}{RRR} \\ % Gamma
\testkern{LLL}{-}{001}{-}{RRR} \\ % Delta
\testkern{LLL}{-}{002}{-}{RRR} \\ % Theta
\testkern{LLL}{-}{003}{-}{RRR} \\ % Lambda
\testkern{LLL}{-}{004}{-}{RRR} \\ % Xi
\testkern{LLL}{-}{005}{-}{RRR} \\ % Pi
\testkern{LLL}{-}{006}{-}{RRR} \\ % Sigma
\testkern{LLL}{-}{007}{-}{RRR} \\ % Upsilon
\testkern{LLL}{-}{008}{-}{RRR} \\ % Phi
\testkern{LLL}{-}{009}{-}{RRR} \\ % Psi
\testkern{LLL}{-}{010}{-}{RRR} \\ % Omega
\iffalse
\testkern{LLL}{-}{128}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{129}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{130}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{131}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{132}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{133}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{134}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{135}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{136}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{137}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{139}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{140}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{141}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{142}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{143}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{144}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{145}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{146}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{147}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{148}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{149}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{150}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{151}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{152}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{153}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{154}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{155}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{156}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{157}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{158}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{159}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{160}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{161}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{162}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{163}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{164}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{165}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{166}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{167}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{168}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{169}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{171}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{172}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{173}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{174}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{175}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{176}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{177}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{178}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{179}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{180}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{181}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{182}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{183}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{184}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{185}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{186}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{187}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{188}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{189}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{190}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{191}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{192}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{193}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{194}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{195}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{196}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{197}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{198}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{199}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{200}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{201}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{202}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{203}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{204}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{205}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{206}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{207}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{208}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{209}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{210}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{211}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{212}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{213}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{214}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{215}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{216}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{217}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{218}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{219}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{220}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{221}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{222}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{223}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{224}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{225}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{226}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{227}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{228}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{229}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{230}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{231}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{232}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{233}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{234}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{235}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{236}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{237}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{238}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{239}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{240}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{241}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{242}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{243}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{244}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{245}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{246}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{247}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{248}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{249}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{250}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{251}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{252}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{253}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{254}{-}{RRR} \\ % .notdef.
\testkern{LLL}{-}{255}{-}{RRR} \\ % .notdef.
\fi
\end{kerntable}
\end{document}
%</template&ot1>
% \end{macrocode}
%
% That's it.
%
% \Finale
|