summaryrefslogtreecommitdiff
path: root/web/fmweb/fmweb.ps
blob: c4647c4ed24f2498bd97bde50fc4b8422b95ea33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
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
%!PS-Adobe-3.0
%%BoundingBox: (atend)
%%Pages: (atend)
%%PageOrder: (atend)
%%DocumentFonts: (atend)
%%Creator: Frame 4.0
%%DocumentData: Clean7Bit
%%EndComments
%%BeginProlog
%
% Frame ps_prolog 4.0, for use with Frame 4.0 products
% This ps_prolog file is Copyright (c) 1986-1993 Frame Technology
% Corporation.  All rights reserved.  This ps_prolog file may be
% freely copied and distributed in conjunction with documents created
% using FrameMaker, FrameBuilder and FrameViewer as long as this 
% copyright notice is preserved.
%
% Frame products normally print colors as their true color on a color printer
% or as shades of gray, based on luminance, on a black-and white printer. The
% following flag, if set to True, forces all non-white colors to print as pure
% black. This has no effect on bitmap images.
/FMPrintAllColorsAsBlack             false def
%
% Frame products can either set their own line screens or use a printer's 
% default settings. Three flags below control this separately for no 
% separations, spot separations and process separations. If a flag
% is true, then the default printer settings will not be changed. If it is
% false, Frame products will use their own settings from a table based on
% the printer's resolution.
/FMUseDefaultNoSeparationScreen      true  def
/FMUseDefaultSpotSeparationScreen    true  def
/FMUseDefaultProcessSeparationScreen false def
%
% For any given PostScript printer resolution, Frame products have two sets of 
% screen angles and frequencies for printing process separations, which are 
% recomended by Adobe. The following variable chooses the higher frequencies
% when set to true or the lower frequencies when set to false. This is only
% effective if the appropriate FMUseDefault...SeparationScreen flag is false.
/FMUseHighFrequencyScreens true def
%
% PostScript Level 2 printers contain an "Accurate Screens" feature which can
% improve process separation rendering at the expense of compute time. This 
% flag is ignored by PostScript Level 1 printers.
/FMUseAcccurateScreens true def
%
% The following PostScript procedure defines the spot function that Frame
% products will use for process separations. You may un-comment-out one of
% the alternative functions below, or use your own.
%
% Dot function
/FMSpotFunction {abs exch abs 2 copy add 1 gt 
		{1 sub dup mul exch 1 sub dup mul add 1 sub }
		{dup mul exch dup mul add 1 exch sub }ifelse } def
%
% Line function
% /FMSpotFunction { pop } def
%
% Elipse function
% /FMSpotFunction { dup 5 mul 8 div mul exch dup mul exch add 
%		sqrt 1 exch sub } def
%
%
/FMversion (4.0) def 
/FMLevel1 /languagelevel where {pop languagelevel} {1} ifelse 2 lt def
/FMPColor
	FMLevel1 {
		false
		/colorimage where {pop pop true} if
	} {
		true
	} ifelse
def
/FrameDict 400 dict def 
systemdict /errordict known not {/errordict 10 dict def
		errordict /rangecheck {stop} put} if
% The readline in PS 23.0 doesn't recognize cr's as nl's on AppleTalk
FrameDict /tmprangecheck errordict /rangecheck get put 
errordict /rangecheck {FrameDict /bug true put} put 
FrameDict /bug false put 
mark 
% Some PS machines read past the CR, so keep the following 3 lines together!
currentfile 5 string readline
00
0000000000
cleartomark 
errordict /rangecheck FrameDict /tmprangecheck get put 
FrameDict /bug get { 
	/readline {
		/gstring exch def
		/gfile exch def
		/gindex 0 def
		{
			gfile read pop 
			dup 10 eq {exit} if 
			dup 13 eq {exit} if 
			gstring exch gindex exch put 
			/gindex gindex 1 add def 
		} loop
		pop 
		gstring 0 gindex getinterval true 
		} bind def
	} if
/FMshowpage /showpage load def
/FMquit /quit load def
/FMFAILURE { 
	dup = flush 
	FMshowpage 
	/Helvetica findfont 12 scalefont setfont
	72 200 moveto
	show FMshowpage 
	FMquit 
	} def 
/FMVERSION {
	FMversion ne {
		(Frame product version does not match ps_prolog!) FMFAILURE
		} if
	} def 
/FMBADEPSF { 
	(PostScript Lang. Ref. Man., 2nd Ed., H.2.4 says EPS must not call X              )
	dup dup (X) search pop exch pop exch pop length 
	4 -1 roll 
	putinterval 
	FMFAILURE
	} def
/FMLOCAL {
	FrameDict begin
	0 def 
	end 
	} def 
/concatprocs
	{
	/proc2 exch cvlit def/proc1 exch cvlit def/newproc proc1 length proc2 length add array def
	newproc 0 proc1 putinterval newproc proc1 length proc2 putinterval newproc cvx
}def
FrameDict begin 
/FMnone 0 def
/FMcyan 1 def
/FMmagenta 2 def
/FMyellow 3 def
/FMblack 4 def
/FMcustom 5 def
/FrameNegative false def 
/FrameSepIs FMnone def 
/FrameSepBlack 0 def
/FrameSepYellow 0 def
/FrameSepMagenta 0 def
/FrameSepCyan 0 def
/FrameSepRed 1 def
/FrameSepGreen 1 def
/FrameSepBlue 1 def
/FrameCurGray 1 def
/FrameCurPat null def
/FrameCurColors [ 0 0 0 1 0 0 0 ] def 
/FrameColorEpsilon .001 def	
/eqepsilon {		
	sub dup 0 lt {neg} if
	FrameColorEpsilon le
} bind def
/FrameCmpColorsCMYK { 
	2 copy 0 get exch 0 get eqepsilon {
		2 copy 1 get exch 1 get eqepsilon {
			2 copy 2 get exch 2 get eqepsilon {
				3 get exch 3 get eqepsilon
			} {pop pop false} ifelse
		}{pop pop false} ifelse
	} {pop pop false} ifelse
} bind def
/FrameCmpColorsRGB { 
	2 copy 4 get exch 0 get eqepsilon {
		2 copy 5 get exch 1 get eqepsilon {
			6 get exch 2 get eqepsilon
		}{pop pop false} ifelse
	} {pop pop false} ifelse
} bind def
/RGBtoCMYK { 
	1 exch sub 
	3 1 roll 
	1 exch sub 
	3 1 roll 
	1 exch sub 
	3 1 roll 
	3 copy 
	2 copy 
	le { pop } { exch pop } ifelse 
	2 copy 
	le { pop } { exch pop } ifelse 
	dup dup dup 
	6 1 roll 
	4 1 roll 
	7 1 roll 
	sub 
	6 1 roll 
	sub 
	5 1 roll 
	sub 
	4 1 roll 
} bind def
/CMYKtoRGB { 
	dup dup 4 -1 roll add 						  
	5 1 roll 3 -1 roll add 						  
	4 1 roll add 								  
	1 exch sub dup 0 lt {pop 0} if 3 1 roll 	  
	1 exch sub dup 0 lt {pop 0} if exch 	      
	1 exch sub dup 0 lt {pop 0} if exch	  		  
} bind def
/FrameSepInit {
	1.0 RealSetgray
} bind def
/FrameSetSepColor { 
	/FrameSepBlue exch def
	/FrameSepGreen exch def
	/FrameSepRed exch def
	/FrameSepBlack exch def
	/FrameSepYellow exch def
	/FrameSepMagenta exch def
	/FrameSepCyan exch def
	/FrameSepIs FMcustom def
	setCurrentScreen	
} bind def
/FrameSetCyan {
	/FrameSepBlue 1.0 def
	/FrameSepGreen 1.0 def
	/FrameSepRed 0.0 def
	/FrameSepBlack 0.0 def
	/FrameSepYellow 0.0 def
	/FrameSepMagenta 0.0 def
	/FrameSepCyan 1.0 def
	/FrameSepIs FMcyan def
	setCurrentScreen	
} bind def
 
/FrameSetMagenta {
	/FrameSepBlue 1.0 def
	/FrameSepGreen 0.0 def
	/FrameSepRed 1.0 def
	/FrameSepBlack 0.0 def
	/FrameSepYellow 0.0 def
	/FrameSepMagenta 1.0 def
	/FrameSepCyan 0.0 def
	/FrameSepIs FMmagenta def
	setCurrentScreen
} bind def
 
/FrameSetYellow {
	/FrameSepBlue 0.0 def
	/FrameSepGreen 1.0 def
	/FrameSepRed 1.0 def
	/FrameSepBlack 0.0 def
	/FrameSepYellow 1.0 def
	/FrameSepMagenta 0.0 def
	/FrameSepCyan 0.0 def
	/FrameSepIs FMyellow def
	setCurrentScreen
} bind def
 
/FrameSetBlack {
	/FrameSepBlue 0.0 def
	/FrameSepGreen 0.0 def
	/FrameSepRed 0.0 def
	/FrameSepBlack 1.0 def
	/FrameSepYellow 0.0 def
	/FrameSepMagenta 0.0 def
	/FrameSepCyan 0.0 def
	/FrameSepIs FMblack def
	setCurrentScreen
} bind def
 
/FrameNoSep { 
	/FrameSepIs FMnone def
	setCurrentScreen
} bind def
/FrameSetSepColors { 
	FrameDict begin
	[ exch 1 add 1 roll ]
	/FrameSepColors  
	exch def end
	} bind def
/FrameColorInSepListCMYK { 
	FrameSepColors {  
       		exch dup 3 -1 roll 
       		FrameCmpColorsCMYK 
       		{ pop true exit } if
    	} forall 
	dup true ne {pop false} if
	} bind def
/FrameColorInSepListRGB { 
	FrameSepColors {  
       		exch dup 3 -1 roll 
       		FrameCmpColorsRGB 
       		{ pop true exit } if
    	} forall 
	dup true ne {pop false} if
	} bind def
/RealSetgray /setgray load def
/RealSetrgbcolor /setrgbcolor load def
/RealSethsbcolor /sethsbcolor load def
end 
/setgray { 
	FrameDict begin
	FrameSepIs FMnone eq
		{ RealSetgray } 
		{ 
		FrameSepIs FMblack eq 
			{ RealSetgray } 
			{ FrameSepIs FMcustom eq 
			  FrameSepRed 0 eq and
			  FrameSepGreen 0 eq and
			  FrameSepBlue 0 eq and {
			  	RealSetgray
			  } {
				1 RealSetgray pop 
			  } ifelse
			} ifelse
		} ifelse
	end
} bind def
/setrgbcolor { 
	FrameDict begin
	FrameSepIs FMnone eq
	{  RealSetrgbcolor }
	{
		3 copy [ 4 1 roll ] 
		FrameColorInSepListRGB
		{
				FrameSepBlue eq exch 
			 	FrameSepGreen eq and exch 
			 	FrameSepRed eq and
			 	{ 0 } { 1 } ifelse
		}
		{
			FMPColor {
				RealSetrgbcolor
				currentcmykcolor
			} {
				RGBtoCMYK
			} ifelse
			FrameSepIs FMblack eq
			{1.0 exch sub 4 1 roll pop pop pop} {
			FrameSepIs FMyellow eq
			{pop 1.0 exch sub 3 1 roll pop pop} {
			FrameSepIs FMmagenta eq
			{pop pop 1.0 exch sub exch pop } {
			FrameSepIs FMcyan eq
			{pop pop pop 1.0 exch sub } 
			{pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse 
		} ifelse
		RealSetgray
	} 
	ifelse
	end
} bind def
/sethsbcolor {
	FrameDict begin
	FrameSepIs FMnone eq 
	{ RealSethsbcolor } 
	{
		RealSethsbcolor 
		currentrgbcolor  
		setrgbcolor 
	} 
	ifelse
	end
} bind def
FrameDict begin
/setcmykcolor where {
	pop /RealSetcmykcolor /setcmykcolor load def
} {
	/RealSetcmykcolor {
		4 1 roll
		3 { 3 index add 0 max 1 min 1 exch sub 3 1 roll} repeat 
		setrgbcolor pop
	} bind def
} ifelse
userdict /setcmykcolor { 
		FrameDict begin
		FrameSepIs FMnone eq
		{ RealSetcmykcolor } 
		{
			4 copy [ 5 1 roll ]
			FrameColorInSepListCMYK
			{
				FrameSepBlack eq exch 
				FrameSepYellow eq and exch 
				FrameSepMagenta eq and exch 
				FrameSepCyan eq and 
				{ 0 } { 1 } ifelse
			}
			{
				FrameSepIs FMblack eq
				{1.0 exch sub 4 1 roll pop pop pop} {
				FrameSepIs FMyellow eq
				{pop 1.0 exch sub 3 1 roll pop pop} {
				FrameSepIs FMmagenta eq
				{pop pop 1.0 exch sub exch pop } {
				FrameSepIs FMcyan eq
				{pop pop pop 1.0 exch sub } 
				{pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse 
			} ifelse
			RealSetgray
		}
		ifelse
		end
	} bind put
FMLevel1 not { 
	
	/patProcDict 5 dict dup begin
		<0f1e3c78f0e1c387> { 3 setlinewidth -1 -1 moveto 9 9 lineto stroke 
											4 -4 moveto 12 4 lineto stroke
											-4 4 moveto 4 12 lineto stroke} bind def
		<0f87c3e1f0783c1e> { 3 setlinewidth -1 9 moveto 9 -1 lineto stroke 
											-4 4 moveto 4 -4 lineto stroke
											4 12 moveto 12 4 lineto stroke} bind def
		<8142241818244281> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke
											-1 -1 moveto 9 9 lineto stroke } bind def
		<03060c183060c081> { 1 setlinewidth -1 -1 moveto 9 9 lineto stroke 
											4 -4 moveto 12 4 lineto stroke
											-4 4 moveto 4 12 lineto stroke} bind def
		<8040201008040201> { 1 setlinewidth -1 9 moveto 9 -1 lineto stroke 
											-4 4 moveto 4 -4 lineto stroke
											4 12 moveto 12 4 lineto stroke} bind def
	end def
	/patDict 15 dict dup begin
		/PatternType 1 def		
		/PaintType 2 def		
		/TilingType 3 def		
		/BBox [ 0 0 8 8 ] def 	
		/XStep 8 def			
		/YStep 8 def			
		/PaintProc {
			begin
			patProcDict bstring known {
				patProcDict bstring get exec
			} {
				8 8 true [1 0 0 -1 0 8] bstring imagemask
			} ifelse
			end
		} bind def
	end def
} if
/combineColor {
    FrameSepIs FMnone eq
	{
		graymode FMLevel1 or not {
			
			[/Pattern [/DeviceCMYK]] setcolorspace
			FrameCurColors 0 4 getinterval aload pop FrameCurPat setcolor
		} {
			FrameCurColors 3 get 1.0 ge {
				FrameCurGray RealSetgray
			} {
				FMPColor graymode and {
					0 1 3 { 
						FrameCurColors exch get
						1 FrameCurGray sub mul
					} for
					RealSetcmykcolor
				} {
					4 1 6 {
						FrameCurColors exch get
						graymode {
							1 exch sub 1 FrameCurGray sub mul 1 exch sub
						} {
							1.0 lt {FrameCurGray} {1} ifelse
						} ifelse
					} for
					RealSetrgbcolor
				} ifelse
			} ifelse
		} ifelse
	} { 
		FrameCurColors 0 4 getinterval aload
		FrameColorInSepListCMYK {
			FrameSepBlack eq exch 
			FrameSepYellow eq and exch 
			FrameSepMagenta eq and exch 
			FrameSepCyan eq and
			FrameSepIs FMcustom eq and
			{ FrameCurGray } { 1 } ifelse
		} {
			FrameSepIs FMblack eq
			{FrameCurGray 1.0 exch sub mul 1.0 exch sub 4 1 roll pop pop pop} {
			FrameSepIs FMyellow eq
			{pop FrameCurGray 1.0 exch sub mul 1.0 exch sub 3 1 roll pop pop} {
			FrameSepIs FMmagenta eq
			{pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub exch pop } {
			FrameSepIs FMcyan eq
			{pop pop pop FrameCurGray 1.0 exch sub mul 1.0 exch sub } 
			{pop pop pop pop 1} ifelse } ifelse } ifelse } ifelse 
		} ifelse
		graymode FMLevel1 or not {
			
			[/Pattern [/DeviceGray]] setcolorspace
			FrameCurPat setcolor
		} { 
			graymode not FMLevel1 and {
				
				dup 1 lt {pop FrameCurGray} if
			} if
			RealSetgray
		} ifelse
	} ifelse
} bind def
/savematrix {
	orgmatrix currentmatrix pop
	} bind def
/restorematrix {
	orgmatrix setmatrix
	} bind def
/dmatrix matrix def
/dpi    72 0 dmatrix defaultmatrix dtransform
    dup mul exch   dup mul add   sqrt def
	
/freq dpi dup 72 div round dup 0 eq {pop 1} if 8 mul div def
/sangle 1 0 dmatrix defaultmatrix dtransform exch atan def
/dpiranges   [  2540    2400    1693     1270    1200     635      600      0      ] def
/CMLowFreqs  [ 100.402  94.8683 89.2289 100.402  94.8683  66.9349  63.2456 47.4342 ] def
/YLowFreqs   [  95.25   90.0    84.65    95.25   90.0     70.5556  66.6667 50.0    ] def
/KLowFreqs   [  89.8026 84.8528 79.8088  89.8026 84.8528  74.8355  70.7107 53.033  ] def
/CLowAngles  [  71.5651 71.5651 71.5651 71.5651  71.5651  71.5651  71.5651 71.5651 ] def
/MLowAngles  [  18.4349 18.4349 18.4349 18.4349  18.4349  18.4349  18.4349 18.4349 ] def
/YLowTDot    [  true    true    false    true    true     false    false   false   ] def
/CMHighFreqs [ 133.87  126.491 133.843  108.503 102.523  100.402   94.8683 63.2456 ] def
/YHighFreqs  [ 127.0   120.0   126.975  115.455 109.091   95.25    90.0    60.0    ] def
/KHighFreqs  [ 119.737 113.137 119.713  128.289 121.218   89.8026  84.8528 63.6395 ] def
/CHighAngles [  71.5651 71.5651 71.5651  70.0169 70.0169  71.5651  71.5651 71.5651 ] def
/MHighAngles [  18.4349 18.4349 18.4349  19.9831 19.9831  18.4349  18.4349 18.4349 ] def
/YHighTDot   [  false   false   true     false   false    true     true    false   ] def
/PatFreq     [	10.5833 10.0     9.4055  10.5833 10.0	  10.5833  10.0	   9.375   ] def
/screenIndex {
	0 1 dpiranges length 1 sub { dup dpiranges exch get 1 sub dpi le {exit} {pop} ifelse } for
} bind def
/getCyanScreen {
	FMUseHighFrequencyScreens { CHighAngles CMHighFreqs} {CLowAngles CMLowFreqs} ifelse
		screenIndex dup 3 1 roll get 3 1 roll get /FMSpotFunction load
} bind def
/getMagentaScreen {
	FMUseHighFrequencyScreens { MHighAngles CMHighFreqs } {MLowAngles CMLowFreqs} ifelse
		screenIndex dup 3 1 roll get 3 1 roll get /FMSpotFunction load
} bind def
/getYellowScreen {
	FMUseHighFrequencyScreens { YHighTDot YHighFreqs} { YLowTDot YLowFreqs } ifelse
		screenIndex dup 3 1 roll get 3 1 roll get { 3 div
			{2 { 1 add 2 div 3 mul dup floor sub 2 mul 1 sub exch} repeat
			FMSpotFunction } } {/FMSpotFunction load } ifelse
			0.0 exch
} bind def
/getBlackScreen  {
	FMUseHighFrequencyScreens { KHighFreqs } { KLowFreqs } ifelse
		screenIndex get 45.0 /FMSpotFunction load 
} bind def
/getSpotScreen {
	getBlackScreen
} bind def
/getCompositeScreen {
	getBlackScreen
} bind def
/FMSetScreen 
	FMLevel1 { /setscreen load 
	}{ {
		8 dict begin
		/HalftoneType 1 def
		/SpotFunction exch def
		/Angle exch def
		/Frequency exch def
		/AccurateScreens FMUseAcccurateScreens def
		currentdict end sethalftone
	} bind } ifelse
def
/setDefaultScreen {
	FMPColor {
		orgrxfer cvx orggxfer cvx orgbxfer cvx orgxfer cvx setcolortransfer
	}
	{
		orgxfer cvx settransfer
	} ifelse
	orgfreq organgle orgproc cvx setscreen
} bind def
/setCurrentScreen {
	FrameSepIs FMnone eq {
		FMUseDefaultNoSeparationScreen {
			setDefaultScreen
		} {
			getCompositeScreen FMSetScreen
		} ifelse
	} {
		FrameSepIs FMcustom eq {
			FMUseDefaultSpotSeparationScreen {
				setDefaultScreen
			} {
				getSpotScreen FMSetScreen
			} ifelse
		} {
			FMUseDefaultProcessSeparationScreen {
				setDefaultScreen
			} {
				FrameSepIs FMcyan eq {
					getCyanScreen FMSetScreen
				} {
					FrameSepIs FMmagenta eq {
						getMagentaScreen FMSetScreen
					} {
						FrameSepIs FMyellow eq {
							getYellowScreen FMSetScreen
						} {
							getBlackScreen FMSetScreen
						} ifelse
					} ifelse
				} ifelse
			} ifelse
		} ifelse
	} ifelse 
} bind def
end
	/gstring FMLOCAL
	/gfile FMLOCAL
	/gindex FMLOCAL
	/orgrxfer FMLOCAL
	/orggxfer FMLOCAL
	/orgbxfer FMLOCAL
	/orgxfer FMLOCAL
	/orgproc FMLOCAL
	/orgrproc FMLOCAL
	/orggproc FMLOCAL
	/orgbproc FMLOCAL
	/organgle FMLOCAL
	/orgrangle FMLOCAL
	/orggangle FMLOCAL
	/orgbangle FMLOCAL
	/orgfreq FMLOCAL
	/orgrfreq FMLOCAL
	/orggfreq FMLOCAL
	/orgbfreq FMLOCAL
	/yscale FMLOCAL
	/xscale FMLOCAL
	/edown FMLOCAL
	/manualfeed FMLOCAL
	/paperheight FMLOCAL
	/paperwidth FMLOCAL
/FMDOCUMENT { 
	array /FMfonts exch def 
	/#copies exch def
	FrameDict begin
	0 ne /manualfeed exch def
	/paperheight exch def
	/paperwidth exch def
	0 ne /FrameNegative exch def 
	0 ne /edown exch def 
	/yscale exch def
	/xscale exch def
	FMLevel1 {
		manualfeed {setmanualfeed} if
		/FMdicttop countdictstack 1 add def 
		/FMoptop count def 
		setpapername 
		manualfeed {true} {papersize} ifelse 
		{manualpapersize} {false} ifelse 
		{desperatepapersize} {false} ifelse 
		{ (Can't select requested paper size for Frame print job!) FMFAILURE } if
		count -1 FMoptop {pop pop} for
		countdictstack -1 FMdicttop {pop end} for 
		}
		{{1 dict dup /PageSize [paperwidth paperheight]put pop}stopped
		{ (Can't select requested paper size for Frame print job!) FMFAILURE } if
		 {1 dict dup /ManualFeed manualfeed put setpagedevice } stopped pop }
	ifelse 
	
	FMPColor {
		currentcolorscreen
			cvlit /orgproc exch def
				  /organgle exch def 
				  /orgfreq exch def
			cvlit /orgbproc exch def
				  /orgbangle exch def 
				  /orgbfreq exch def
			cvlit /orggproc exch def
				  /orggangle exch def 
				  /orggfreq exch def
			cvlit /orgrproc exch def
				  /orgrangle exch def 
				  /orgrfreq exch def
			currentcolortransfer 
			FrameNegative {
				1 1 4 { 
					pop { 1 exch sub } concatprocs 4 1 roll
				} for
				4 copy
				setcolortransfer
			} if
			cvlit /orgxfer exch def
			cvlit /orgbxfer exch def
			cvlit /orggxfer exch def
			cvlit /orgrxfer exch def
	} {
		currentscreen 
			cvlit /orgproc exch def
				  /organgle exch def 
				  /orgfreq exch def
				  
		currenttransfer 
		FrameNegative {
			{ 1 exch sub } concatprocs
			dup settransfer
		} if 
		cvlit /orgxfer exch def
	} ifelse
	end 
} def 
/pagesave FMLOCAL
/orgmatrix FMLOCAL
/landscape FMLOCAL
/pwid FMLOCAL
/FMBEGINPAGE { 
	FrameDict begin 
	/pagesave save def
	3.86 setmiterlimit
	/landscape exch 0 ne def
	landscape { 
		90 rotate 0 exch dup /pwid exch def neg translate pop 
	}{
		pop /pwid exch def
	} ifelse
	edown { [-1 0 0 1 pwid 0] concat } if
	0 0 moveto paperwidth 0 lineto paperwidth paperheight lineto 
	0 paperheight lineto 0 0 lineto 1 setgray fill
	xscale yscale scale
	/orgmatrix matrix def
	gsave 
} def 
/FMENDPAGE {
	grestore 
	pagesave restore
	end 
	showpage
	} def 
/FMFONTDEFINE { 
	FrameDict begin
	findfont 
	ReEncode 
	1 index exch 
	definefont 
	FMfonts 3 1 roll 
	put
	end 
	} def 
/FMFILLS {
	FrameDict begin dup
	array /fillvals exch def
	dict /patCache exch def
	end 
	} def 
/FMFILL {
	FrameDict begin
	 fillvals 3 1 roll put
	end 
	} def 
/FMNORMALIZEGRAPHICS { 
	newpath
	0.0 0.0 moveto
	1 setlinewidth
	0 setlinecap
	0 0 0 sethsbcolor
	0 setgray 
	} bind def
	/fx FMLOCAL
	/fy FMLOCAL
	/fh FMLOCAL
	/fw FMLOCAL
	/llx FMLOCAL
	/lly FMLOCAL
	/urx FMLOCAL
	/ury FMLOCAL
/FMBEGINEPSF { 
	end 
	/FMEPSF save def 
	/showpage {} def 
% See Adobe's "PostScript Language Reference Manual, 2nd Edition", page 714.
% "...the following operators MUST NOT be used in an EPS file:" (emphasis ours)
	/banddevice {(banddevice) FMBADEPSF} def
	/clear {(clear) FMBADEPSF} def
	/cleardictstack {(cleardictstack) FMBADEPSF} def 
	/copypage {(copypage) FMBADEPSF} def
	/erasepage {(erasepage) FMBADEPSF} def
	/exitserver {(exitserver) FMBADEPSF} def
	/framedevice {(framedevice) FMBADEPSF} def
	/grestoreall {(grestoreall) FMBADEPSF} def
	/initclip {(initclip) FMBADEPSF} def
	/initgraphics {(initgraphics) FMBADEPSF} def
	/initmatrix {(initmatrix) FMBADEPSF} def
	/quit {(quit) FMBADEPSF} def
	/renderbands {(renderbands) FMBADEPSF} def
	/setglobal {(setglobal) FMBADEPSF} def
	/setpagedevice {(setpagedevice) FMBADEPSF} def
	/setshared {(setshared) FMBADEPSF} def
	/startjob {(startjob) FMBADEPSF} def
	/lettertray {(lettertray) FMBADEPSF} def
	/letter {(letter) FMBADEPSF} def
	/lettersmall {(lettersmall) FMBADEPSF} def
	/11x17tray {(11x17tray) FMBADEPSF} def
	/11x17 {(11x17) FMBADEPSF} def
	/ledgertray {(ledgertray) FMBADEPSF} def
	/ledger {(ledger) FMBADEPSF} def
	/legaltray {(legaltray) FMBADEPSF} def
	/legal {(legal) FMBADEPSF} def
	/statementtray {(statementtray) FMBADEPSF} def
	/statement {(statement) FMBADEPSF} def
	/executivetray {(executivetray) FMBADEPSF} def
	/executive {(executive) FMBADEPSF} def
	/a3tray {(a3tray) FMBADEPSF} def
	/a3 {(a3) FMBADEPSF} def
	/a4tray {(a4tray) FMBADEPSF} def
	/a4 {(a4) FMBADEPSF} def
	/a4small {(a4small) FMBADEPSF} def
	/b4tray {(b4tray) FMBADEPSF} def
	/b4 {(b4) FMBADEPSF} def
	/b5tray {(b5tray) FMBADEPSF} def
	/b5 {(b5) FMBADEPSF} def
	FMNORMALIZEGRAPHICS 
	[/fy /fx /fh /fw /ury /urx /lly /llx] {exch def} forall 
	fx fw 2 div add fy fh 2 div add  translate
	rotate
	fw 2 div neg fh 2 div neg translate
	fw urx llx sub div fh ury lly sub div scale 
	llx neg lly neg translate 
	/FMdicttop countdictstack 1 add def 
	/FMoptop count def 
	} bind def
/FMENDEPSF {
	count -1 FMoptop {pop pop} for 
	countdictstack -1 FMdicttop {pop end} for 
	FMEPSF restore
	FrameDict begin 
	} bind def
FrameDict begin 
/setmanualfeed {
%%BeginFeature *ManualFeed True
	 statusdict /manualfeed true put
%%EndFeature
	} bind def
/max {2 copy lt {exch} if pop} bind def
/min {2 copy gt {exch} if pop} bind def
/inch {72 mul} def
/pagedimen { 
	paperheight sub abs 16 lt exch 
	paperwidth sub abs 16 lt and
	{/papername exch def} {pop} ifelse
	} bind def
	/papersizedict FMLOCAL
/setpapername { 
	/papersizedict 14 dict def 
	papersizedict begin
	/papername /unknown def 
		/Letter 8.5 inch 11.0 inch pagedimen
		/LetterSmall 7.68 inch 10.16 inch pagedimen
		/Tabloid 11.0 inch 17.0 inch pagedimen
		/Ledger 17.0 inch 11.0 inch pagedimen
		/Legal 8.5 inch 14.0 inch pagedimen
		/Statement 5.5 inch 8.5 inch pagedimen
		/Executive 7.5 inch 10.0 inch pagedimen
		/A3 11.69 inch 16.5 inch pagedimen
		/A4 8.26 inch 11.69 inch pagedimen
		/A4Small 7.47 inch 10.85 inch pagedimen
		/B4 10.125 inch 14.33 inch pagedimen
		/B5 7.16 inch 10.125 inch pagedimen
	end
	} bind def
/papersize {
	papersizedict begin
		/Letter {lettertray letter} def
		/LetterSmall {lettertray lettersmall} def
		/Tabloid {11x17tray 11x17} def
		/Ledger {ledgertray ledger} def
		/Legal {legaltray legal} def
		/Statement {statementtray statement} def
		/Executive {executivetray executive} def
		/A3 {a3tray a3} def
		/A4 {a4tray a4} def
		/A4Small {a4tray a4small} def
		/B4 {b4tray b4} def
		/B5 {b5tray b5} def
		/unknown {unknown} def
	papersizedict dup papername known {papername} {/unknown} ifelse get
	end
	statusdict begin stopped end 
	} bind def
/manualpapersize {
	papersizedict begin
		/Letter {letter} def
		/LetterSmall {lettersmall} def
		/Tabloid {11x17} def
		/Ledger {ledger} def
		/Legal {legal} def
		/Statement {statement} def
		/Executive {executive} def
		/A3 {a3} def
		/A4 {a4} def
		/A4Small {a4small} def
		/B4 {b4} def
		/B5 {b5} def
		/unknown {unknown} def
	papersizedict dup papername known {papername} {/unknown} ifelse get
	end
	stopped 
	} bind def
/desperatepapersize {
	statusdict /setpageparams known
		{
		paperwidth paperheight 0 1 
		statusdict begin
		{setpageparams} stopped 
		end
		} {true} ifelse 
	} bind def
/DiacriticEncoding [
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /space /exclam /quotedbl
/numbersign /dollar /percent /ampersand /quotesingle /parenleft
/parenright /asterisk /plus /comma /hyphen /period /slash /zero /one
/two /three /four /five /six /seven /eight /nine /colon /semicolon
/less /equal /greater /question /at /A /B /C /D /E /F /G /H /I /J /K
/L /M /N /O /P /Q /R /S /T /U /V /W /X /Y /Z /bracketleft /backslash
/bracketright /asciicircum /underscore /grave /a /b /c /d /e /f /g /h
/i /j /k /l /m /n /o /p /q /r /s /t /u /v /w /x /y /z /braceleft /bar
/braceright /asciitilde /.notdef /Adieresis /Aring /Ccedilla /Eacute
/Ntilde /Odieresis /Udieresis /aacute /agrave /acircumflex /adieresis
/atilde /aring /ccedilla /eacute /egrave /ecircumflex /edieresis
/iacute /igrave /icircumflex /idieresis /ntilde /oacute /ograve
/ocircumflex /odieresis /otilde /uacute /ugrave /ucircumflex
/udieresis /dagger /.notdef /cent /sterling /section /bullet
/paragraph /germandbls /registered /copyright /trademark /acute
/dieresis /.notdef /AE /Oslash /.notdef /.notdef /.notdef /.notdef
/yen /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/ordfeminine /ordmasculine /.notdef /ae /oslash /questiondown
/exclamdown /logicalnot /.notdef /florin /.notdef /.notdef
/guillemotleft /guillemotright /ellipsis /.notdef /Agrave /Atilde
/Otilde /OE /oe /endash /emdash /quotedblleft /quotedblright
/quoteleft /quoteright /.notdef /.notdef /ydieresis /Ydieresis
/fraction /currency /guilsinglleft /guilsinglright /fi /fl /daggerdbl
/periodcentered /quotesinglbase /quotedblbase /perthousand
/Acircumflex /Ecircumflex /Aacute /Edieresis /Egrave /Iacute
/Icircumflex /Idieresis /Igrave /Oacute /Ocircumflex /.notdef /Ograve
/Uacute /Ucircumflex /Ugrave /dotlessi /circumflex /tilde /macron
/breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron
] def
/ReEncode { 
	dup 
	length 
	dict begin 
	{
	1 index /FID ne 
		{def} 
		{pop pop} ifelse 
	} forall 
	0 eq {/Encoding DiacriticEncoding def} if 
	currentdict 
	end 
	} bind def
FMPColor 
	
	{
	/BEGINBITMAPCOLOR { 
		BITMAPCOLOR} def
	/BEGINBITMAPCOLORc { 
		BITMAPCOLORc} def
	/BEGINBITMAPTRUECOLOR { 
		BITMAPTRUECOLOR } def
	/BEGINBITMAPTRUECOLORc { 
		BITMAPTRUECOLORc } def
	}
	
	{
	/BEGINBITMAPCOLOR { 
		BITMAPGRAY} def
	/BEGINBITMAPCOLORc { 
		BITMAPGRAYc} def
	/BEGINBITMAPTRUECOLOR { 
		BITMAPTRUEGRAY } def
	/BEGINBITMAPTRUECOLORc { 
		BITMAPTRUEGRAYc } def
	}
ifelse
/K { 
	FMPrintAllColorsAsBlack {
		dup 1 eq 2 index 1 eq and 3 index 1 eq and not
			{7 {pop} repeat 0 0 0 1 0 0 0} if
	} if 
	FrameCurColors astore 
	pop combineColor
} bind def
/graymode true def
	/bwidth FMLOCAL
	/bpside FMLOCAL
	/bstring FMLOCAL
	/onbits FMLOCAL
	/offbits FMLOCAL
	/xindex FMLOCAL
	/yindex FMLOCAL
	/x FMLOCAL
	/y FMLOCAL
/setPatternMode {
	FMLevel1 {
		/bwidth  exch def
		/bpside  exch def
		/bstring exch def
		/onbits 0 def  /offbits 0 def
		freq sangle landscape {90 add} if 
			{/y exch def
			 /x exch def
			 /xindex x 1 add 2 div bpside mul cvi def
			 /yindex y 1 add 2 div bpside mul cvi def
			 bstring yindex bwidth mul xindex 8 idiv add get
			 1 7 xindex 8 mod sub bitshift and 0 ne FrameNegative {not} if
			 {/onbits  onbits  1 add def 1}
			 {/offbits offbits 1 add def 0}
			 ifelse
			}
			setscreen
		offbits offbits onbits add div FrameNegative {1.0 exch sub} if
		/FrameCurGray exch def
	} { 
		pop pop
		dup patCache exch known {
			patCache exch get
		} { 
			dup
			patDict /bstring 3 -1 roll put
			patDict 
			9 PatFreq screenIndex get div dup matrix scale
			makepattern
			dup 
			patCache 4 -1 roll 3 -1 roll put
		} ifelse
		/FrameCurGray 0 def
		/FrameCurPat exch def
	} ifelse
	/graymode false def
	combineColor
} bind def
/setGrayScaleMode {
	graymode not {
		/graymode true def
		FMLevel1 {
			setCurrentScreen
		} if
	} if
	/FrameCurGray exch def
	combineColor
} bind def
/normalize {
	transform round exch round exch itransform
	} bind def
/dnormalize {
	dtransform round exch round exch idtransform
	} bind def
/lnormalize { 
	0 dtransform exch cvi 2 idiv 2 mul 1 add exch idtransform pop
	} bind def
/H { 
	lnormalize setlinewidth
	} bind def
/Z {
	setlinecap
	} bind def
	
/PFill {
	graymode FMLevel1 or not {
		gsave 1 setgray eofill grestore
	} if
} bind def
/PStroke {
	graymode FMLevel1 or not {
		gsave 1 setgray stroke grestore
	} if
	stroke
} bind def
	/fillvals FMLOCAL
/X { 
	fillvals exch get
	dup type /stringtype eq
	{8 1 setPatternMode} 
	{setGrayScaleMode}
	ifelse
	} bind def
/V { 
	PFill gsave eofill grestore
	} bind def
/Vclip {
	clip
	} bind def
/Vstrk {
	currentlinewidth exch setlinewidth PStroke setlinewidth
	} bind def
/N { 
	PStroke
	} bind def
/Nclip {
	strokepath clip newpath
	} bind def
/Nstrk {
	currentlinewidth exch setlinewidth PStroke setlinewidth
	} bind def
/M {newpath moveto} bind def
/E {lineto} bind def
/D {curveto} bind def
/O {closepath} bind def
	/n FMLOCAL
/L { 
 	/n exch def
	newpath
	normalize
	moveto 
	2 1 n {pop normalize lineto} for
	} bind def
/Y { 
	L 
	closepath
	} bind def
	/x1 FMLOCAL
	/x2 FMLOCAL
	/y1 FMLOCAL
	/y2 FMLOCAL
/R { 
	/y2 exch def
	/x2 exch def
	/y1 exch def
	/x1 exch def
	x1 y1
	x2 y1
	x2 y2
	x1 y2
	4 Y 
	} bind def
	/rad FMLOCAL
/rarc 
	{rad 
	 arcto
	} bind def
/RR { 
	/rad exch def
	normalize
	/y2 exch def
	/x2 exch def
	normalize
	/y1 exch def
	/x1 exch def
	mark
	newpath
	{
	x1 y1 rad add moveto
	x1 y2 x2 y2 rarc
	x2 y2 x2 y1 rarc
	x2 y1 x1 y1 rarc
	x1 y1 x1 y2 rarc
	closepath
	} stopped {x1 y1 x2 y2 R} if 
	cleartomark
	} bind def
/RRR { 
	/rad exch def
	normalize /y4 exch def /x4 exch def
	normalize /y3 exch def /x3 exch def
	normalize /y2 exch def /x2 exch def
	normalize /y1 exch def /x1 exch def
	newpath
	normalize moveto 
	mark
	{
	x2 y2 x3 y3 rarc
	x3 y3 x4 y4 rarc
	x4 y4 x1 y1 rarc
	x1 y1 x2 y2 rarc
	closepath
	} stopped
	 {x1 y1 x2 y2 x3 y3 x4 y4 newpath moveto lineto lineto lineto closepath} if
	cleartomark
	} bind def
/C { 
	grestore
	gsave
	R 
	clip
	setCurrentScreen
} bind def
/CP { 
	grestore
	gsave
	Y 
	clip
	setCurrentScreen
} bind def
	/FMpointsize FMLOCAL
/F { 
	FMfonts exch get
	FMpointsize scalefont
	setfont
	} bind def
/Q { 
	/FMpointsize exch def
	F 
	} bind def
/T { 
	moveto show
	} bind def
/RF { 
	rotate
	0 ne {-1 1 scale} if
	} bind def
/TF { 
	gsave
	moveto 
	RF
	show
	grestore
	} bind def
/P { 
	moveto
	0 32 3 2 roll widthshow
	} bind def
/PF { 
	gsave
	moveto 
	RF
	0 32 3 2 roll widthshow
	grestore
	} bind def
/S { 
	moveto
	0 exch ashow
	} bind def
/SF { 
	gsave
	moveto
	RF
	0 exch ashow
	grestore
	} bind def
/B { 
	moveto
	0 32 4 2 roll 0 exch awidthshow
	} bind def
/BF { 
	gsave
	moveto
	RF
	0 32 4 2 roll 0 exch awidthshow
	grestore
	} bind def
/G { 
	gsave
	newpath
	normalize translate 0.0 0.0 moveto 
	dnormalize scale 
	0.0 0.0 1.0 5 3 roll arc 
	closepath 
	PFill fill
	grestore
	} bind def
/Gstrk {
	savematrix
    newpath
    2 index 2 div add exch 3 index 2 div sub exch 
    normalize 2 index 2 div sub exch 3 index 2 div add exch 
    translate
    scale 
    0.0 0.0 1.0 5 3 roll arc 
    restorematrix
    currentlinewidth exch setlinewidth PStroke setlinewidth
    } bind def
/Gclip { 
	newpath
	savematrix
	normalize translate 0.0 0.0 moveto 
	dnormalize scale 
	0.0 0.0 1.0 5 3 roll arc 
	closepath 
	clip newpath
	restorematrix
	} bind def
/GG { 
	gsave
	newpath
	normalize translate 0.0 0.0 moveto 
	rotate 
	dnormalize scale 
	0.0 0.0 1.0 5 3 roll arc 
	closepath
	PFill
	fill
	grestore
	} bind def
/GGclip { 
	savematrix
	newpath
    normalize translate 0.0 0.0 moveto 
    rotate 
    dnormalize scale 
    0.0 0.0 1.0 5 3 roll arc 
    closepath
	clip newpath
	restorematrix
	} bind def
/GGstrk { 
	savematrix
    newpath
    normalize translate 0.0 0.0 moveto 
    rotate 
    dnormalize scale 
    0.0 0.0 1.0 5 3 roll arc 
    closepath 
	restorematrix
    currentlinewidth exch setlinewidth PStroke setlinewidth
	} bind def
/A { 
	gsave
	savematrix
	newpath
	2 index 2 div add exch 3 index 2 div sub exch 
	normalize 2 index 2 div sub exch 3 index 2 div add exch 
	translate 
	scale 
	0.0 0.0 1.0 5 3 roll arc 
	restorematrix
	PStroke
	grestore
	} bind def
/Aclip {
	newpath
	savematrix
	normalize translate 0.0 0.0 moveto 
	dnormalize scale 
	0.0 0.0 1.0 5 3 roll arc 
	closepath 
	strokepath clip newpath
	restorematrix
} bind def
/Astrk {
	Gstrk
} bind def
/AA { 
	gsave
	savematrix
	newpath
	
	3 index 2 div add exch 4 index 2 div sub exch 
	
	normalize 3 index 2 div sub exch 4 index 2 div add exch
	translate 
	rotate 
	scale 
	0.0 0.0 1.0 5 3 roll arc 
	restorematrix
	PStroke
	grestore
	} bind def
/AAclip {
	savematrix
	newpath
    normalize translate 0.0 0.0 moveto 
    rotate 
    dnormalize scale 
    0.0 0.0 1.0 5 3 roll arc 
    closepath
	strokepath clip newpath
	restorematrix
} bind def
/AAstrk {
	GGstrk
} bind def
	/x FMLOCAL
	/y FMLOCAL
	/w FMLOCAL
	/h FMLOCAL
	/xx FMLOCAL
	/yy FMLOCAL
	/ww FMLOCAL
	/hh FMLOCAL
	/FMsaveobject FMLOCAL
	/FMoptop FMLOCAL
	/FMdicttop FMLOCAL
/BEGINPRINTCODE { 
	/FMdicttop countdictstack 1 add def 
	/FMoptop count 7 sub def 
	/FMsaveobject save def
	userdict begin 
	/showpage {} def 
	FMNORMALIZEGRAPHICS 
	3 index neg 3 index neg translate
	} bind def
/ENDPRINTCODE {
	count -1 FMoptop {pop pop} for 
	countdictstack -1 FMdicttop {pop end} for 
	FMsaveobject restore 
	} bind def
/gn { 
	0 
	{	46 mul 
		cf read pop 
		32 sub 
		dup 46 lt {exit} if 
		46 sub add 
		} loop
	add 
	} bind def
	/str FMLOCAL
/cfs { 
	/str sl string def 
	0 1 sl 1 sub {str exch val put} for 
	str def 
	} bind def
/ic [ 
	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223
	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223
	0
	{0 hx} {1 hx} {2 hx} {3 hx} {4 hx} {5 hx} {6 hx} {7 hx} {8 hx} {9 hx}
	{10 hx} {11 hx} {12 hx} {13 hx} {14 hx} {15 hx} {16 hx} {17 hx} {18 hx}
	{19 hx} {gn hx} {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12}
	{13} {14} {15} {16} {17} {18} {19} {gn} {0 wh} {1 wh} {2 wh} {3 wh}
	{4 wh} {5 wh} {6 wh} {7 wh} {8 wh} {9 wh} {10 wh} {11 wh} {12 wh}
	{13 wh} {14 wh} {gn wh} {0 bl} {1 bl} {2 bl} {3 bl} {4 bl} {5 bl} {6 bl}
	{7 bl} {8 bl} {9 bl} {10 bl} {11 bl} {12 bl} {13 bl} {14 bl} {gn bl}
	{0 fl} {1 fl} {2 fl} {3 fl} {4 fl} {5 fl} {6 fl} {7 fl} {8 fl} {9 fl}
	{10 fl} {11 fl} {12 fl} {13 fl} {14 fl} {gn fl}
	] def
	/sl FMLOCAL
	/val FMLOCAL
	/ws FMLOCAL
	/im FMLOCAL
	/bs FMLOCAL
	/cs FMLOCAL
	/len FMLOCAL
	/pos FMLOCAL
/ms { 
	/sl exch def 
	/val 255 def 
	/ws cfs 
	/im cfs 
	/val 0 def 
	/bs cfs 
	/cs cfs 
	} bind def
400 ms 
/ip { 
	is 
	0 
	cf cs readline pop 
	{	ic exch get exec 
		add 
		} forall 
	pop 
	
	} bind def
/rip { 
	   
	  
	  bis ris copy pop 
      is
      0
      cf cs readline pop 
      {       ic exch get exec 
              add 
              } forall 
	  pop pop 
	  ris gis copy pop 
	  dup is exch 
	  
      cf cs readline pop 
      {       ic exch get exec 
              add 
              } forall 
	  pop pop
	  gis bis copy pop 
	  dup add is exch 
	  
      cf cs readline pop 
      {       ic exch get exec 
              add 
              } forall 
      pop 
      
      } bind def
/wh { 
	/len exch def 
	/pos exch def 
	ws 0 len getinterval im pos len getinterval copy pop
	pos len 
	} bind def
/bl { 
	/len exch def 
	/pos exch def 
	bs 0 len getinterval im pos len getinterval copy pop
	pos len 
	} bind def
/s1 1 string def
/fl { 
	/len exch def 
	/pos exch def 
	/val cf s1 readhexstring pop 0 get def
	pos 1 pos len add 1 sub {im exch val put} for
	pos len 
	} bind def
/hx { 
	3 copy getinterval 
	cf exch readhexstring pop pop 
	} bind def
	/h FMLOCAL
	/w FMLOCAL
	/d FMLOCAL
	/lb FMLOCAL
	/bitmapsave FMLOCAL
	/is FMLOCAL
	/cf FMLOCAL
/wbytes { 
      dup dup
      24 eq { pop pop 3 mul }
      { 8 eq {pop} {1 eq {7 add 8 idiv} {3 add 4 idiv} ifelse} ifelse } ifelse
	} bind def
/BEGINBITMAPBWc { 
	1 {} COMMONBITMAPc
	} bind def
/BEGINBITMAPGRAYc { 
	8 {} COMMONBITMAPc
	} bind def
/BEGINBITMAP2BITc { 
	2 {} COMMONBITMAPc
	} bind def
/COMMONBITMAPc { 
		 
	/r exch def
	/d exch def
	gsave
	
	3 index 2 div add exch	
	4 index 2 div add exch	
	translate		
	rotate			
	1 index 2 div neg	
	1 index 2 div neg	
	translate		
	scale			
	/h exch def /w exch def
	/lb w d wbytes def 
	sl lb lt {lb ms} if 
	/bitmapsave save def 
	r                    
	/is im 0 lb getinterval def 
	ws 0 lb getinterval is copy pop 
	/cf currentfile def 
	w h d [w 0 0 h neg 0 h] 
	{ip} image 
	bitmapsave restore 
	grestore
	} bind def
/BEGINBITMAPBW { 
	1 {} COMMONBITMAP
	} bind def
/BEGINBITMAPGRAY { 
	8 {} COMMONBITMAP
	} bind def
/BEGINBITMAP2BIT { 
	2 {} COMMONBITMAP
	} bind def
/COMMONBITMAP { 
	/r exch def
	/d exch def
	gsave
	
	3 index 2 div add exch	
	4 index 2 div add exch	
	translate		
	rotate			
	1 index 2 div neg	
	1 index 2 div neg	
	translate		
	scale			
	/h exch def /w exch def
	/bitmapsave save def 
	r                    
	/is w d wbytes string def
	/cf currentfile def 
	w h d [w 0 0 h neg 0 h] 
	{cf is readhexstring pop} image
	bitmapsave restore 
	grestore
	} bind def
/ngrayt 256 array def
/nredt 256 array def
/nbluet 256 array def
/ngreent 256 array def
	/gryt FMLOCAL
	/blut FMLOCAL
	/grnt FMLOCAL
	/redt FMLOCAL
	/indx FMLOCAL
	/cynu FMLOCAL
	/magu FMLOCAL
	/yelu FMLOCAL
	/k FMLOCAL
	/u FMLOCAL
FMLevel1 {
/colorsetup {
	currentcolortransfer
	/gryt exch def
	/blut exch def
	/grnt exch def
	/redt exch def
	0 1 255 {
		/indx exch def
		/cynu 1 red indx get 255 div sub def
		/magu 1 green indx get 255 div sub def
		/yelu 1 blue indx get 255 div sub def
		/k cynu magu min yelu min def
		/u k currentundercolorremoval exec def
%		/u 0 def
		nredt indx 1 0 cynu u sub max sub redt exec put
		ngreent indx 1 0 magu u sub max sub grnt exec put
		nbluet indx 1 0 yelu u sub max sub blut exec put
		ngrayt indx 1 k currentblackgeneration exec sub gryt exec put
	} for
	{255 mul cvi nredt exch get}
	{255 mul cvi ngreent exch get}
	{255 mul cvi nbluet exch get}
	{255 mul cvi ngrayt exch get}
	setcolortransfer
	{pop 0} setundercolorremoval
	{} setblackgeneration
	} bind def
}
{
/colorSetup2 {
	[ /Indexed /DeviceRGB 255 
		{dup red exch get 255 div 
		 exch dup green exch get 255 div 
		 exch blue exch get 255 div}
	] setcolorspace
} bind def
} ifelse
	/tran FMLOCAL
/fakecolorsetup {
	/tran 256 string def
	0 1 255 {/indx exch def 
		tran indx
		red indx get 77 mul
		green indx get 151 mul
		blue indx get 28 mul
		add add 256 idiv put} for
	currenttransfer
	{255 mul cvi tran exch get 255.0 div}
	exch concatprocs settransfer
} bind def
/BITMAPCOLOR { 
	/d 8 def
	gsave
	
	3 index 2 div add exch	
	4 index 2 div add exch	
	translate		
	rotate			
	1 index 2 div neg	
	1 index 2 div neg	
	translate		
	scale			
	/h exch def /w exch def
	/bitmapsave save def
	FMLevel1 {	
		colorsetup
		/is w d wbytes string def
		/cf currentfile def 
		w h d [w 0 0 h neg 0 h] 
		{cf is readhexstring pop} {is} {is} true 3 colorimage 
	} {
		colorSetup2
		/is w d wbytes string def
		/cf currentfile def 
		7 dict dup begin
			/ImageType 1 def
			/Width w def
			/Height h def
			/ImageMatrix [w 0 0 h neg 0 h] def
			/DataSource {cf is readhexstring pop} bind def
			/BitsPerComponent d def
			/Decode [0 255] def
		end image	
	} ifelse
	bitmapsave restore 
	grestore
	} bind def
/BITMAPCOLORc { 
	/d 8 def
	gsave
	
	3 index 2 div add exch	
	4 index 2 div add exch	
	translate		
	rotate			
	1 index 2 div neg	
	1 index 2 div neg	
	translate		
	scale			
	/h exch def /w exch def
	/lb w d wbytes def 
	sl lb lt {lb ms} if 
	/bitmapsave save def 
	FMLevel1 {	
		colorsetup
		/is im 0 lb getinterval def 
		ws 0 lb getinterval is copy pop 
		/cf currentfile def 
		w h d [w 0 0 h neg 0 h] 
		{ip} {is} {is} true 3 colorimage
	} {
		colorSetup2
		/is im 0 lb getinterval def 
		ws 0 lb getinterval is copy pop 
		/cf currentfile def 
		7 dict dup begin
			/ImageType 1 def
			/Width w def
			/Height h def
			/ImageMatrix [w 0 0 h neg 0 h] def
			/DataSource {ip} bind def
			/BitsPerComponent d def
			/Decode [0 255] def
		end image	
	} ifelse
	bitmapsave restore 
	grestore
	} bind def
/BITMAPTRUECOLORc { 
	/d 24 def
        gsave
 	
	3 index 2 div add exch	
	4 index 2 div add exch	
	translate		
	rotate			
	1 index 2 div neg	
	1 index 2 div neg	
	translate		
	scale			
	/h exch def /w exch def
	/lb w d wbytes def 
	sl lb lt {lb ms} if 
        /bitmapsave save def 
        
	/is im 0 lb getinterval def	
	/ris im 0 w getinterval def	
	/gis im w w getinterval def	
	/bis im w 2 mul w getinterval def 
        
        ws 0 lb getinterval is copy pop 
        /cf currentfile def 
        w h 8 [w 0 0 h neg 0 h] 
        {w rip pop ris} {gis} {bis} true 3 colorimage
        bitmapsave restore 
        grestore
        } bind def
/BITMAPTRUECOLOR { 
        gsave
		
		3 index 2 div add exch	
		4 index 2 div add exch	
		translate		
		rotate			
		1 index 2 div neg	
		1 index 2 div neg	
		translate		
		scale			
		/h exch def /w exch def
        /bitmapsave save def 
        /is w string def
        /gis w string def
        /bis w string def
        /cf currentfile def 
        w h 8 [w 0 0 h neg 0 h] 
        { cf is readhexstring pop } 
        { cf gis readhexstring pop } 
        { cf bis readhexstring pop } 
        true 3 colorimage 
        bitmapsave restore 
        grestore
        } bind def
/BITMAPTRUEGRAYc { 
	/d 24 def
        gsave
	
	3 index 2 div add exch	
	4 index 2 div add exch	
	translate		
	rotate			
	1 index 2 div neg	
	1 index 2 div neg	
	translate		
	scale			
	/h exch def /w exch def
	/lb w d wbytes def 
	sl lb lt {lb ms} if 
        /bitmapsave save def 
        
	/is im 0 lb getinterval def	
	/ris im 0 w getinterval def	
	/gis im w w getinterval def	
	/bis im w 2 mul w getinterval def 
        ws 0 lb getinterval is copy pop 
        /cf currentfile def 
        w h 8 [w 0 0 h neg 0 h] 
        {w rip pop ris gis bis w gray} image
        bitmapsave restore 
        grestore
        } bind def
/ww FMLOCAL
/r FMLOCAL
/g FMLOCAL
/b FMLOCAL
/i FMLOCAL
/gray { 
        /ww exch def
        /b exch def
        /g exch def
        /r exch def
        0 1 ww 1 sub { /i exch def r i get .299 mul g i get .587 mul
			b i get .114 mul add add r i 3 -1 roll floor cvi put } for
        r
        } bind def
/BITMAPTRUEGRAY { 
        gsave
		
		3 index 2 div add exch	
		4 index 2 div add exch	
		translate		
		rotate			
		1 index 2 div neg	
		1 index 2 div neg	
		translate		
		scale			
		/h exch def /w exch def
        /bitmapsave save def 
        /is w string def
        /gis w string def
        /bis w string def
        /cf currentfile def 
        w h 8 [w 0 0 h neg 0 h] 
        { cf is readhexstring pop 
          cf gis readhexstring pop 
          cf bis readhexstring pop w gray}  image
        bitmapsave restore 
        grestore
        } bind def
/BITMAPGRAY { 
	8 {fakecolorsetup} COMMONBITMAP
	} bind def
/BITMAPGRAYc { 
	8 {fakecolorsetup} COMMONBITMAPc
	} bind def
/ENDBITMAP {
	} bind def
end 
	/ALDsave FMLOCAL
	/ALDmatrix matrix def ALDmatrix currentmatrix pop
/StartALD {
	/ALDsave save def
	 savematrix
	 ALDmatrix setmatrix
	} bind def
/InALD {
	 restorematrix
	} bind def
/DoneALD {
	 ALDsave restore
	} bind def
/I { setdash } bind def
/J { [] 0 setdash } bind def
%%EndProlog
%%BeginSetup
(4.0) FMVERSION
1 1 0 0 612 792 0 1 17 FMDOCUMENT
0 0 /Times-Roman FMFONTDEFINE
1 0 /AvantGarde-Demi FMFONTDEFINE
2 0 /Helvetica-Bold FMFONTDEFINE
3 0 /Helvetica FMFONTDEFINE
4 0 /Helvetica-Oblique FMFONTDEFINE
5 0 /AvantGarde-Book FMFONTDEFINE
6 0 /Times-Bold FMFONTDEFINE
7 0 /Courier FMFONTDEFINE
8 0 /AvantGarde-BookOblique FMFONTDEFINE
32 FMFILLS
0 0 FMFILL
1 0.1 FMFILL
2 0.3 FMFILL
3 0.5 FMFILL
4 0.7 FMFILL
5 0.9 FMFILL
6 0.97 FMFILL
7 1 FMFILL
8 <0f1e3c78f0e1c387> FMFILL
9 <0f87c3e1f0783c1e> FMFILL
10 <cccccccccccccccc> FMFILL
11 <ffff0000ffff0000> FMFILL
12 <8142241818244281> FMFILL
13 <03060c183060c081> FMFILL
14 <8040201008040201> FMFILL
16 1 FMFILL
17 0.9 FMFILL
18 0.7 FMFILL
19 0.5 FMFILL
20 0.3 FMFILL
21 0.1 FMFILL
22 0.03 FMFILL
23 0 FMFILL
24 <f0e1c3870f1e3c78> FMFILL
25 <f0783c1e0f87c3e1> FMFILL
26 <3333333333333333> FMFILL
27 <0000ffff0000ffff> FMFILL
28 <7ebddbe7e7dbbd7e> FMFILL
29 <fcf9f3e7cf9f3f7e> FMFILL
30 <7fbfdfeff7fbfdfe> FMFILL
%%EndSetup
%%Page: "1" 1
%%BeginPaperSize: Letter
%%EndPaperSize
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
J
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 1) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 690 540 702 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 701 540 701 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
72 698 540 698 2 L
N
0 -208 1000 792 C
1 18 Q
0 X
0 0 0 1 0 0 0 K
(fmweb) 95.08 708 T
2 F
(: Literate Programming using FrameMaker) 154.84 708 T
3 10 Q
(V) 280.98 672.33 T
(ersion 1.0) 287.11 672.33 T
(Sriram Srinivasan) 266.55 660.33 T
(\050) 266.48 648.33 T
4 F
(sriram@tcs.com) 269.82 648.33 T
3 F
(\051) 342.18 648.33 T
72 605 540 615 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 614 540 614 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 -208 1000 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(Introduction) 72 619.67 T
3 10 Q
0.04 (This document explains a simple approach for doing literate programming using FrameMaker) 72 590.33 P
0.04 (, a word pro-) 483.74 590.33 P
0.44 (cessing system. It is almost identical to the approach taken by WinW) 72 577.71 P
0.44 (ordWEB [2], except that it can addi-) 380.08 577.71 P
(tionally be used in batch mode.) 72 565.71 T
2.03 (All implementations of literate programming provide facilities to break a piece of code into digestible) 72 548.71 P
-0.27 (chunks which can be documented individually) 72 536.71 P
-0.27 (, and explained in any order) 272.2 536.71 P
-0.27 (. The only dif) 393.69 536.71 P
-0.27 (ference is in the way) 449.94 536.71 P
0.52 (the document should be written so that a tool can separate the code from the rest of the documentation.) 72 524.71 P
0.23 (WEB and such other tools provide a way of doing \322in-band signalling\323, to borrow a term from communica-) 72 512.71 P
1.61 (tions. The programmer annotates dif) 72 500.71 P
1.61 (ferent parts of a document by keywords, and a program such as) 239.42 500.71 P
0.08 (weave or tangle recognizes these keywords. In addition, these programs provide features such as section) 72 488.71 P
(numbering, indexing etc. and language speci\336c features such as pretty-printing, macro expansion etc.) 72 476.71 T
0.76 (The other approach is to do \322out-of-band signalling\323, where the formatting information is essentially kept) 72 459.71 P
(out of the documentation. This is the approach taken by fmweb and WinW) 72 447.71 T
(ordWEB.) 399.2 447.71 T
(There are a couple of reasons why I don\325t use WEB based tools.) 72 430.71 T
(\245) 72 413.71 T
(It is always nice to see the output of a literate programming ef) 90 413.71 T
(fort, but the input is rather messy) 362.17 413.71 T
(. I dis-) 507.05 413.71 T
(like seeing a lot of meta characters \050like @, <<, \134, [[ \051 etc. The sections are not immediately visible -) 90 401.71 T
(one goes around looking for \322\134section\323, for example. I do a fair amount of coding in) 90 389.71 T
5 F
(perl) 455.74 389.71 T
3 F
(, and the two) 474.07 389.71 T
(notational structures put together make my head swim, esp. when I need to alter the code a few) 90 377.71 T
(months later) 90 365.71 T
(. Having access to a WYSIWIG word processor such as FrameMaker means that I don\325t) 144.47 365.71 T
(use T) 90 353.71 T
(eX, and it is too much of an ef) 113.9 353.71 T
(fort to learn the intricacies of LaT) 246.02 353.71 T
(ex or T) 390.53 353.71 T
(eX to be able to use the) 420.54 353.71 T
(WEB based tools.) 90 341.71 T
(\245) 72 324.71 T
(A number of these tools are language speci\336c.) 90 324.71 T
5 F
(noweb) 298.44 324.71 T
3 F
( is one exception to this rule, and I rather like) 332.72 324.71 T
(the simplicity of noweb. I don\325t use noweb because of the reason explained above.) 90 312.71 T
-0.13 (FrameMaker) 72 295.71 P
-0.13 (, like other good word processors, has excellent document formatting capabilities, cross refer-) 128.12 295.71 P
0.58 (encing and indexing, table of contents, graphics, tables etc. What I see on the screen is the \336nal output,) 72 283.71 P
(uncluttered by meta-information.) 72 271.71 T
0.2 (One problem that I have with this approach is that I am used to a Unix like development environment and) 72 254.71 P
0.13 (extensively use text based tools such as emacs/vi, perl, dif) 72 242.71 P
0.13 (f, sccs etc. For this reason, I have not tried this) 331.97 242.71 P
(approach on medium or larger sized implementations, though I hope to do that in the near future.) 72 230.71 T
0.28 (In general, I am somewhat unclear on how the literate programming paradigm helps a developer to think.) 72 213.71 P
0.74 (The prevailing wisdom is that this approach forces a lot more disciplined thinking on the part of the pro-) 72 201.71 P
0.09 (grammer) 72 189.71 P
0.09 (, since \050s\051he is in a teaching mode. I \336nd that this helps in structuring the program well, once one) 111.45 189.71 P
-0.22 (knows what one should be doing, but if I don\325t have a top-down \050step-wise re\336nement\051 solution in my mind,) 72 177.71 P
0.02 (I am not entirely sure how to start from a blank page. I tend to do small sections of the code using my reg-) 72 165.71 P
-0.03 (ular development environment, and once I have a reasonable top-down solution in mind, copy it all over to) 72 153.71 P
(a FrameMaker \336le and start re\336ning it.) 72 141.71 T
72 98.38 540 108.38 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 107.38 540 107.38 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 -208 1000 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(The fmweb approach) 72 113.04 T
3 10 Q
(T) 72 83.71 T
(o separate the code from the rest of the stuf) 77 83.71 T
(f, the developer uses three paragraph formats.) 270.82 83.71 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "1" 1
%%Page: "2" 2
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 2) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
3 F
0 X
(\245) 72 713.33 T
(\322File\323: The \336le name is mentioned in this paragraph, and all subsequent lines will eventually be) 90 713.33 T
(dumped into this \336le.) 90 701.33 T
(\245) 72 684.33 T
(\322chunk\323: A chunk \050or section\051 is a heading followed by a set of \322code\323 paragraphs. The \322chunk\323 para-) 90 684.33 T
(graph tag identi\336es the heading for that section. It is possible to have more than one chunk with the) 90 672.33 T
(same name.) 90 660.33 T
(\245) 72 643.33 T
-0.36 (\322code\323: The developer writes code \050in any language\051 using this paragraph tag. The Frame Maker cross) 90 643.33 P
(reference facility has to be used to refer to chunks.) 90 631.33 T
5 F
-0.16 (fmweb) 72 614.33 P
3 F
-0.16 ( is a perl script that needs the FrameMaker document in a MIF format - it extracts chunks and code) 106.15 614.33 P
0.42 (paragraphs out, and does the requisite tangling \050restoring the order of chunks\051. All chunks with the same) 72 602.33 P
0.35 (name are concatenated in the order they appear in the document.) 72 590.33 P
5 F
0.35 (fmweb) 369.39 590.33 P
3 F
0.35 ( ignores all formatting informa-) 403.54 590.33 P
(tion. Source line number information can be optionally output, in a format accepted by) 72 578.33 T
5 F
(cc) 453.3 578.33 T
3 F
( \050#line\051.) 466.24 578.33 T
72 535 540 545 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 544 540 544 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 0 612 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(References) 72 549.67 T
3 10 Q
(1.) 72 520.33 T
1 (\322Literate Programming\323, Donald Knuth, Center for the Study of Language and Information, Stanford) 90 520.33 P
(University) 90 508.33 T
(, ISBN 0-937073-80-6) 133.15 508.33 T
(2.) 72 494.33 T
0.82 (WEB: http://info.desy) 90 494.33 P
0.82 (.de/user/projects/LitProg/HTML.html - A pointer to all the other good stuf) 183.46 494.33 P
0.82 (f avail-) 509.73 494.33 P
(able on the net.) 90 482.33 T
72 439 540 449 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 448 540 448 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 0 612 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(Unpacking the distribution) 72 453.67 T
3 10 Q
0.08 (This document contains an example program \050wc.c\051 written in the format explained above, and the fmweb) 72 424.33 P
(script, along with some internal documentation.) 72 412.33 T
(Save this \336le as wc.mif. This \336le will be used to test out the fmweb script.) 72 395.33 T
-0.04 (T) 72 378.33 P
-0.04 (o extract fmweb \050a perl5 script\051, go to Special->Conditional T) 77 378.33 P
-0.04 (ext -> Show/Hide..., and hide the conditional) 344.28 378.33 P
(tag called \322Fluf) 72 366.33 T
(f\323. Only the perl script should be remaining. Save this \336le as text only) 137.4 366.33 T
(, and call it fmweb.) 440.12 366.33 T
0.18 (Run fmweb - \322perl5 fmweb < wc.mif\323. This should produce a \336le called wc.c in the local directory) 72 349.33 P
0.18 (. Compile) 497.58 349.33 P
(and execute wc, and compare against the system provided \322wc\323, if on a Unix system.) 72 337.33 T
72 294 540 304 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 303 540 303 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 0 612 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(T) 72 308.67 T
(oDo) 79.52 308.67 T
3 10 Q
(\245) 72 279.33 T
(Support multiple \336les) 90 279.33 T
(\245) 72 262.33 T
(Largish example - map library) 90 262.33 T
(\245) 72 245.33 T
(Speed up) 90 245.33 T
(\245) 72 228.33 T
(Look at mml) 90 228.33 T
(\245) 72 211.33 T
(Accept \336lenames as arguments) 90 211.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "2" 2
%%Page: "3" 3
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 3) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 696 540 706 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 705 540 705 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 0 612 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(Appendix A: \324wc\325: A word count program) 72 710.67 T
3 10 Q
0.28 (This section demonstrates how one can do Literate Programming with FrameMaker) 72 664.33 P
0.28 (. There are only three) 443.28 664.33 P
-0.21 (paragraph tags of interest - File \050see \322File:\323 below\051, \322chunk\323 \050all the numbered paragraphs\051 and \322code\323. Any) 72 652.33 P
1.11 (cross reference format can be used - \322chunkref\323 is the name of the format used in the example below) 72 640.33 P
1.11 (.) 537.22 640.33 P
-0.05 (Apologies if the example looks like a ransom note - one does tend to get carried away by the availability of) 72 628.33 P
(fonts, and the WYSIWIGness of it all.) 72 616.33 T
0.21 (The implementation and comments have been shamelessly lifted from Norman Ramsey\325) 72 599.33 P
0.21 (s noweb distribu-) 464.01 599.33 P
0.1 (tion \050ftp://bellcore.com/pub/norman/www/noweb/intro.html\051. This is just to provide a comparison of the two) 72 587.33 P
(approaches. I have modi\336ed some of the comments that do not apply to this approach.) 72 575.33 T
(Thanks, Norman.) 72 558.33 T
0 1 1 0 1 0 0 K
0 1 1 0 1 0 0 K
144.97 515.22 72 515.22 2 L
0 1 1 0 1 0 0 K
V
1.71 H
0 Z
N
0 0 0 1 0 0 0 K
0 1 1 0 1 0 0 K
6 18 Q
(File: wc.c) 72 517 T
0 0 0 1 0 0 0 K
3 10 Q
0 0 0 1 0 0 0 K
0.21 (The purpose of) 72 493.33 P
7 F
0.46 (wc) 142.68 493.33 P
3 F
0.21 ( is to count lines, words, and/or characters in a list of \336les. The number of lines in a \336le) 154.68 493.33 P
(is the number of newline characters it contains. The number of characters is the \336le length in bytes.) 72 481.33 T
0.42 (A ``word\325) 72 464.33 P
0.42 (\325 is a maximal sequence of consecutive characters other than newline, space, or tab, containing) 112.24 464.33 P
(at least one visible ASCII code.) 72 452.33 T
(\050W) 72 435.33 T
(e assume that the standard ASCII code is in use.\051) 84.59 435.33 T
(Most literate C programs share a common structure.) 72 418.33 T
0.13 (It\325) 72 401.33 P
0.13 (s probably a good idea to state the overall structure explicitly at the outset. Here, then, is an overview of) 79.6 401.33 P
(the \336le) 72 388 T
5 12 Q
(wc.c) 104.24 388 T
3 10 Q
( that is de\336ned by the) 133.06 388 T
5 12 Q
(noweb) 230.9 388 T
3 10 Q
( program) 272.04 388 T
5 12 Q
(wc.fm) 314.83 388 T
82.08 362.9 72 362.9 2 L
V
1.08 H
N
1 F
(1:) 72 364 T
131.52 362.9 90 362.9 2 L
V
N
(Outline) 90 364 T
8 10 Q
(<Header \336les to include> , \0502:, p. 3\051) 90 345.61 T
(<De\336nitions> , \0503:, p. 3\051) 90 330.89 T
(<Global variables> , \0504:, p. 4\051) 90 316.16 T
(<Functions> , \05023:, p. 8\051) 90 301.44 T
(<Main Pr) 90 286.72 T
(ogram> , \0505:, p. 4\051) 131.84 286.72 T
3 F
-0.03 (W) 72 269.72 P
-0.03 (e must include the standard I/O de\336nitions, since we want to send formatted output to) 81.26 269.72 P
5 F
-0.03 (stdout) 461.04 269.72 P
3 F
-0.03 ( and) 491.18 269.72 P
5 F
-0.03 (stderr) 513.36 269.72 P
82.08 231.28 72 231.28 2 L
V
N
1 12 Q
(2:) 72 232.38 T
220.08 231.28 90 231.28 2 L
V
N
(Header \336les to include) 90 232.38 T
5 10 Q
(#include <stdio.h>) 90 214.72 T
82.08 176.28 72 176.28 2 L
V
N
1 12 Q
(3:) 72 177.38 T
149.04 176.28 90 176.28 2 L
V
N
(De\336nitions) 90 177.38 T
5 10 Q
(#de\336ne OK               0) 90 159.72 T
(  /* status code for successful run */) 90 145.72 T
(#de\336ne usage_err) 90 131.72 T
(or      1) 176.63 131.72 T
(  /* status code for impr) 90 117.72 T
(oper syntax */) 202.93 117.72 T
(#de\336ne cannot_open_\336le 2) 90 103.72 T
(  /* status code for \336le access err) 90 89.72 T
(or */) 247.18 89.72 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "3" 3
%%Page: "4" 4
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 4) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
82.08 710.9 72 710.9 2 L
0 X
V
1.08 H
0 Z
N
1 12 Q
(4:) 72 712 T
185.76 710.9 90 710.9 2 L
V
N
(Global variables) 90 712 T
3 10 Q
-0.08 (The) 72 694.33 P
5 F
-0.08 (status) 91.93 694.33 P
3 F
-0.08 ( variable will tell the operating system if the run was successful or not, and) 119.38 694.33 P
5 F
-0.08 (pr) 448.83 694.33 P
-0.08 (og_name) 458.61 694.33 P
3 F
-0.08 ( is used) 505.7 694.33 P
(in case there\325) 72 682.33 T
(s an error message to be printed.) 131.29 682.33 T
5 F
(int status = OK;) 90 651.33 T
(  /* exit status of command, initially OK */) 90 637.33 T
(char *pr) 90 623.33 T
(og_name;) 129.22 623.33 T
(  /* who we ar) 90 609.33 T
(e */) 158.04 609.33 T
3 F
(Now we come to the general layout of the) 72 578.33 T
5 F
(main) 258.76 578.33 T
3 F
( function.) 283.07 578.33 T
82.08 539.9 72 539.9 2 L
V
N
1 12 Q
(5:) 72 541 T
132.72 539.9 90 539.9 2 L
V
N
(Main Pr) 90 541 T
171.14 539.9 132.5 539.9 2 L
V
N
(ogram) 132.5 541 T
5 10 Q
(main\050ar) 90 523.33 T
(gc, ar) 127.85 523.33 T
(gv\051) 156.44 523.33 T
(int ar) 108 509.33 T
(gc;) 132.11 509.33 T
(/* number of ar) 108 495.33 T
(guments on UNIX command line */) 182.36 495.33 T
(  char **ar) 108 481.33 T
(gv;) 157.07 481.33 T
( /* the ar) 108 467.33 T
(guments, an array of strings */) 150.77 467.33 T
({) 90 453.33 T
8 F
(<V) 110.77 438.61 T
(ariables local to main> , \0506:, p. 4\051) 123.05 438.61 T
5 F
( pr) 108 424.61 T
(og_name = ar) 120.56 424.61 T
(gv[0];) 189.1 424.61 T
8 F
(<Set up option selection> , \0507:, p. 4\051) 110.77 409.89 T
(<Pr) 110.77 395.16 T
(ocess all the \336les> , \0508:, p. 5\051) 125.72 395.16 T
(<Print the grand totals if ther) 110.77 380.44 T
(e wer) 246.75 380.44 T
(e multiple \336les> , \05021:, p. 8\051) 273.8 380.44 T
5 F
( exit\050status\051;) 108 366.44 T
(}) 90 352.44 T
3 F
0.58 (If the \336rst argument begins with a \324-\325, the user is choosing the desired counts and specifying the order in) 72 321.44 P
0.8 (which they should be displayed. Each selection is given by the initial character \050lines, words, or charac-) 72 309.44 P
-0.23 (ters\051. For example, `-cl\325 would cause just the number of characters and the number of lines to be printed, in) 72 297.44 P
(that order) 72 285.44 T
(.) 114.25 285.44 T
-0.07 (W) 72 268.44 P
-0.07 (e do not process this string now; we simply remember where it is. It will be used to control the formatting) 81.26 268.44 P
(at output time.) 72 256.44 T
82.08 232 72 232 2 L
V
N
1 12 Q
(6:) 72 233.11 T
98.4 232 90 232 2 L
V
N
(V) 90 233.11 T
194.16 232 97.44 232 2 L
V
N
(ariables local to) 97.44 233.11 T
223.33 231.96 194.16 231.96 2 L
V
0.7 H
N
5 F
(main) 194.16 233.11 T
5 10 Q
(int \336le_count;) 90 215.44 T
(  /* how many \336les ther) 90 201.44 T
(e ar) 200.08 201.44 T
(e */) 219.15 201.44 T
(char *which;) 90 187.44 T
(  /* which counts to print */) 90 173.44 T
82.08 135 72 135 2 L
V
1.08 H
N
1 12 Q
(7:) 72 136.11 T
222.24 135 90 135 2 L
V
N
(Set up option selection) 90 136.11 T
5 10 Q
(which = \322lwc\323;) 90 118.44 T
(  /* if no option is given, print 3 values */) 90 104.44 T
(if \050ar) 90 90.44 T
(gc > 1 && *ar) 111.45 90.44 T
(gv[1] == \324-\325\051 {) 176.57 90.44 T
(which = ar) 108 76.44 T
(gv[1] + 1;) 158.43 76.44 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "4" 4
%%Page: "5" 5
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 5) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
5 F
0 X
(ar) 108 713.33 T
(gc--;) 117.85 713.33 T
(ar) 108 699.33 T
(gv++;) 117.85 699.33 T
(}) 90 685.33 T
(\336le_count = ar) 90 671.33 T
(gc - 1;) 158.41 671.33 T
3 F
0.14 (Now we scan the remaining arguments and try to open a \336le, if possible. The \336le is processed and its sta-) 72 637.33 P
(tistics are given.) 72 625.33 T
(W) 72 608.33 T
(e use a do ... while loop because we should read from the standard input if no \336le name is given.) 81.26 608.33 T
82.08 566.9 72 566.9 2 L
V
1.08 H
0 Z
N
1 12 Q
(8:) 72 568 T
100.56 566.9 90 566.9 2 L
V
N
(Pr) 90 568 T
198.26 566.9 100.34 566.9 2 L
V
N
(ocess all the \336les) 100.34 568 T
5 10 Q
(ar) 90 550.33 T
(gc--;) 99.85 550.33 T
(do {) 90 536.33 T
8 F
(<If a \336le is given, try to open *\050++ar) 110.77 521.61 T
(gv\051; continue if unsuccessful> , \05011:, p. 5\051) 277.69 521.61 T
(<Initialize pointers and counters> , \05015:, p. 6\051) 113.54 506.89 T
(<Scan \336le> , \05017:, p. 6\051) 113.54 492.16 T
(<W) 113.54 477.44 T
(rite statistics for \336le> , \05019:, p. 7\051) 128.91 477.44 T
(<Close \336le> , \05012:, p. 6\051) 110.77 462.72 T
(<Update grand totals> , \05020:, p. 7\051) 113.54 447.99 T
5 F
( /* even if ther) 108 433.99 T
(e is only one \336le */) 176.44 433.99 T
(} while \050--ar) 90 419.99 T
(gc > 0\051;) 144.14 419.99 T
3 F
1.01 (Here\325) 72 388.99 P
1.01 (s the code to open the \336le.  A special trick allows us to handle input from) 95.71 388.99 P
5 F
1.01 (stdin) 435.35 388.99 P
3 F
1.01 ( when no name is) 457.57 388.99 P
(given.) 72 376.99 T
(Recall that the \336le descriptor to) 72 359.99 T
5 F
(stdin) 212.06 359.99 T
3 F
( is 0; that\325) 234.28 359.99 T
(s what we use as the default initial value.) 276.9 359.99 T
82.08 318.56 72 318.56 2 L
V
N
1 12 Q
(9:) 72 319.66 T
98.4 318.56 90 318.56 2 L
V
N
(V) 90 319.66 T
223.44 318.56 97.44 318.56 2 L
V
N
(ariables local to main) 97.44 319.66 T
5 10 Q
(int fd = 0;) 90 301.99 T
(  /* \336le descriptor) 90 287.99 T
(, initialized to stdin */) 170.5 287.99 T
88.8 249.56 72 249.56 2 L
V
N
1 12 Q
(10:) 72 250.66 T
149.04 249.56 90 249.56 2 L
V
N
(De\336nitions) 90 250.66 T
5 10 Q
(#de\336ne READ_ONL) 90 232.99 T
(Y 0) 180.2 232.99 T
(  /* r) 90 218.99 T
(ead access code for system open */) 109.9 218.99 T
88.8 180.56 72 180.56 2 L
V
N
1 12 Q
(11:) 72 181.66 T
248.4 180.56 90 180.56 2 L
V
N
(If a \336le is given, try to open) 90 181.66 T
284.28 180.51 248.4 180.51 2 L
V
0.7 H
N
5 F
(*\050++ar) 248.4 181.66 T
303.44 180.51 284.29 180.51 2 L
V
N
(gv\051) 284.29 181.66 T
310.16 180.56 303.44 180.56 2 L
V
1.08 H
N
1 F
(;) 303.44 181.66 T
361.99 180.51 310.16 180.51 2 L
V
0.7 H
N
5 F
(continue) 310.16 181.66 T
448.87 180.56 361.99 180.56 2 L
V
1.08 H
N
1 F
( if unsuccessful) 361.99 181.66 T
5 10 Q
(if \050\336le_count > 0) 90 163.99 T
(&& \050fd = open\050*\050++ar) 168.47 163.99 T
(gv\051, READ_ONL) 271.23 163.99 T
(Y\051\051 < 0\051 {) 343.8 163.99 T
(fprintf\050stderr) 108 149.99 T
(,  \322%s: cannot open \336le %s\134n\323,    pr) 164.88 149.99 T
(og_name, *ar) 330.73 149.99 T
(gv\051;) 397.46 149.99 T
( status |= cannot_open_\336le;) 108 135.99 T
(\336le_count--;) 108 121.99 T
(continue;) 108 107.99 T
(}) 90 93.99 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "5" 5
%%Page: "6" 6
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 6) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
88.8 710.9 72 710.9 2 L
0 X
V
1.08 H
0 Z
N
1 12 Q
(12:) 72 712 T
143.04 710.9 90 710.9 2 L
V
N
(Close \336le) 90 712 T
5 10 Q
(close\050fd\051;) 90 694.33 T
3 F
0.46 (W) 72 663.33 P
0.46 (e will do some homemade buf) 81.26 663.33 P
0.46 (fering in order to speed things up: Characters will be read into the buf) 216.23 663.33 P
0.46 (fer) 528.33 663.33 P
(array before we process them. T) 72 651.33 T
(o do this we set up appropriate pointers and counters.) 214.83 651.33 T
88.8 609.9 72 609.9 2 L
V
N
1 12 Q
(13:) 72 611 T
149.04 609.9 90 609.9 2 L
V
N
(De\336nitions) 90 611 T
5 10 Q
(#de\336ne buf_size BUFSIZ) 90 593.33 T
(  /* stdio.h BUFSIZ chosen for ef) 90 579.33 T
(\336ciency */) 236.7 579.33 T
88.8 554.9 72 554.9 2 L
V
N
1 12 Q
(14:) 72 556 T
98.4 554.9 90 554.9 2 L
V
N
(V) 90 556 T
194.16 554.9 97.44 554.9 2 L
V
N
(ariables local to) 97.44 556 T
223.33 554.85 194.16 554.85 2 L
V
0.7 H
N
5 F
(main) 194.16 556 T
5 10 Q
(char buf) 90 538.33 T
(fer[buf_size];) 131.25 538.33 T
(  /* we r) 90 524.33 T
(ead the input into this array */) 127.48 524.33 T
(r) 90 510.33 T
(egister char *ptr;) 92.97 510.33 T
(  /* \336rst unpr) 90 496.33 T
(ocessed character in buf) 146.82 496.33 T
(fer */) 268.54 496.33 T
(r) 90 482.33 T
(egister char *buf_end;) 92.97 482.33 T
(  /* the \336rst unused position in buf) 90 468.33 T
(fer */) 248.87 468.33 T
(r) 90 454.33 T
(egister int c;) 92.97 454.33 T
(  /* curr) 90 440.33 T
(ent char) 125.46 440.33 T
(, or # of chars just r) 165.58 440.33 T
(ead */) 254.4 440.33 T
(int in_wor) 90 426.33 T
(d;) 135.17 426.33 T
(  /* ar) 90 412.33 T
(e we within a wor) 116.73 412.33 T
(d? */) 201.66 412.33 T
(long wor) 90 398.33 T
(d_count, line_count, char_count;) 131.96 398.33 T
(  /* # of wor) 90 384.33 T
(ds, lines, and chars so far */) 145.51 384.33 T
88.8 345.9 72 345.9 2 L
V
1.08 H
N
1 12 Q
(15:) 72 347 T
266.16 345.9 90 345.9 2 L
V
N
(Initialize pointers and counters) 90 347 T
5 10 Q
(ptr = buf_end = buf) 90 329.33 T
(fer;) 182.98 329.33 T
(line_count = wor) 90 315.33 T
(d_count = char_count = 0;) 169.6 315.33 T
(in_wor) 90 301.33 T
(d = 0;) 120.91 301.33 T
3 F
0.77 (The grand totals must be initialized to zero at the beginning of the program. If we made these variables) 72 270.33 P
1.58 (local to) 72 258.33 P
5 F
1.58 (main) 109.62 258.33 P
3 F
1.58 (, we would have to do this initialization explicitly; however) 133.93 258.33 P
1.58 (, C\325) 401.04 258.33 P
1.58 (s globals are automatically) 417.44 258.33 P
(zeroed. \050Or rather) 72 246.33 T
(, ``statically zeroed.\325) 150.92 246.33 T
(\325\051  \050Get it?\051) 239.65 246.33 T
88.8 221.9 72 221.9 2 L
V
N
1 12 Q
(16:) 72 223 T
185.76 221.9 90 221.9 2 L
V
N
(Global variables) 90 223 T
5 10 Q
(long tot_wor) 90 205.33 T
(d_count, tot_line_count,) 150.29 205.33 T
(     tot_char_count;) 90 191.33 T
(  /* total number of wor) 90 177.33 T
(ds, lines, chars */) 202.79 177.33 T
88.8 152.9 72 152.9 2 L
V
N
1 12 Q
(17:) 72 154 T
139.2 152.9 90 152.9 2 L
V
N
(Scan \336le) 90 154 T
3 10 Q
0.43 (This chunk, which does the counting, that is) 72 136.33 P
5 F
0.42 (wc) 271.61 136.33 P
3 F
0.43 (\325) 286.39 136.33 P
0.43 (s) 288.43 136.33 P
4 F
0.43 (raison d\325etre) 296.64 136.33 P
3 F
0.43 (, was actually one of the simplest to write.) 352.08 136.33 P
(W) 72 124.33 T
(e look at each character and change state if it begins or ends a word.) 81.26 124.33 T
5 F
(while \0501\051 {) 90 93.33 T
8 F
(<Fill buf) 110.77 78.61 T
(fer if it is empty; br) 146.52 78.61 T
(eak at end of \336le> , \05018:, p. 7\051) 233.44 78.61 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "6" 6
%%Page: "7" 7
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 7) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
5 F
0 X
( c = *ptr++;) 108 713.33 T
( if \050c > \324 \324 && c < 0177\051 {) 108 699.33 T
(/* visible ASCII codes */) 126 685.33 T
( if \050!in_wor) 126 671.33 T
(d\051 {) 174.23 671.33 T
( wor) 144 657.33 T
(d_count++;) 164.58 657.33 T
(in_wor) 144 643.33 T
(d = 1;) 174.91 643.33 T
(}) 126 629.33 T
(continue;) 126 615.33 T
(}) 108 601.33 T
(if \050c == \324\134n\325\051 line_count++;) 108 587.33 T
( else if \050c != \324 \324 && c != \324\134t\325\051 continue;) 108 573.33 T
( in_wor) 108 559.33 T
(d = 0;) 141.68 559.33 T
(/* c is newline, space, or tab */) 108 545.33 T
(}) 90 531.33 T
3 F
(Buf) 72 500.33 T
(fered I/O allows us to count the number of characters almost for free.) 86.83 500.33 T
88.8 475.9 72 475.9 2 L
V
1.08 H
0 Z
N
1 12 Q
(18:) 72 477 T
107.76 475.9 90 475.9 2 L
V
N
(Fill) 90 477 T
127.01 475.85 107.76 475.85 2 L
V
0.7 H
N
5 F
(buf) 107.76 477 T
142.22 475.85 127.04 475.85 2 L
V
N
(fer) 127.04 477 T
220.7 475.9 142.22 475.9 2 L
V
1.08 H
N
1 F
( if it is empty;) 142.22 477 T
232.5 475.85 220.7 475.85 2 L
V
0.7 H
N
5 F
(br) 220.7 477 T
254.47 475.85 232.45 475.85 2 L
V
N
(eak) 232.45 477 T
330.07 475.9 254.47 475.9 2 L
V
1.08 H
N
1 F
( at end of \336le) 254.47 477 T
5 10 Q
(if \050ptr >= buf_end\051 {) 90 459.33 T
(ptr = buf) 108 445.33 T
(fer;) 148.89 445.33 T
(c = r) 108 431.33 T
(ead\050fd, ptr) 129.04 431.33 T
(, buf_size\051;) 180.61 431.33 T
(if \050c <= 0\051 br) 108 417.33 T
(eak;) 165.52 417.33 T
(char_count += c;) 108 403.33 T
(buf_end = buf) 108 389.33 T
(fer + c;) 176.16 389.33 T
(}) 90 375.33 T
3 F
0.17 (It\325) 72 344.33 P
0.17 (s convenient to output the statistics by de\336ning a new function) 79.6 344.33 P
5 F
0.17 (wc_print) 358.33 344.33 P
3 F
0.17 (; then the same function can be) 399.43 344.33 P
-0.05 (used for the totals. Additionally we must decide here if we know the name of the \336le we have processed or) 72 332.33 P
(if it was just stdin.) 72 320.33 T
88.8 295.9 72 295.9 2 L
V
N
1 12 Q
(19:) 72 297 T
100.8 295.9 90 295.9 2 L
V
N
(W) 90 297 T
208.09 295.9 100.33 295.9 2 L
V
N
(rite statistics for \336le) 100.33 297 T
5 10 Q
(wc_print\050which, char_count, wor) 90 279.33 T
(d_count,) 248.66 279.33 T
(         line_count\051;) 90 265.33 T
(if \050\336le_count\051) 90 251.33 T
(  printf\050\322 %s\134n\323, *ar) 90 237.33 T
(gv\051; /* not stdin */) 179.74 237.33 T
(else) 90 223.33 T
(  printf\050\322\134n\323\051;           /* stdin */) 90 209.33 T
88.8 170.9 72 170.9 2 L
V
N
1 12 Q
(20:) 72 172 T
205.2 170.9 90 170.9 2 L
V
N
(Update grand totals) 90 172 T
5 10 Q
(tot_line_count += line_count;) 90 154.33 T
(tot_wor) 90 140.33 T
(d_count += wor) 126.14 140.33 T
(d_count;) 202.05 140.33 T
(tot_char_count += char_count;) 90 126.33 T
3 F
(W) 72 78.33 T
(e might as well improve a bit on) 81.26 78.33 T
5 F
(Unix) 224.09 78.33 T
3 F
(\325) 243.54 78.33 T
(s) 245.58 78.33 T
5 F
(wc) 253.36 78.33 T
3 F
( by displaying the number of \336les too.) 268.14 78.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "7" 7
%%Page: "8" 8
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 8) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
88.8 710.9 72 710.9 2 L
0 X
V
1.08 H
0 Z
N
1 12 Q
(21:) 72 712 T
243.84 710.9 90 710.9 2 L
V
N
(Print the grand totals if ther) 90 712 T
275.9 710.9 243.74 710.9 2 L
V
N
(e wer) 243.74 712 T
358.61 710.9 275.81 710.9 2 L
V
N
(e multiple \336les) 275.81 712 T
5 10 Q
(if \050\336le_count > 1\051 {) 90 694.33 T
(wc_print\050which, tot_char_count,  tot_wor) 108 680.33 T
(d_count, tot_line_count\051;) 306.09 680.33 T
(printf \050\322 total in %d \336les\134n\323, \336le_count\051;) 108 666.33 T
(}) 90 652.33 T
3 F
-0.28 (Here now is the function that prints the values according to the speci\336ed options. The calling routine is sup-) 72 621.33 P
-0.06 (posed to supply a newline. If an invalid option character is found we inform the user about proper usage of) 72 609.33 P
(the command. Counts are printed in 8-digit \336elds so that they will line up in columns.) 72 597.33 T
88.8 572.9 72 572.9 2 L
V
N
1 12 Q
(22:) 72 574 T
149.04 572.9 90 572.9 2 L
V
N
(De\336nitions) 90 574 T
5 10 Q
(#de\336ne print_count\050n\051 printf\050\322%8ld\323, n\051) 90 556.33 T
88.8 531.9 72 531.9 2 L
V
N
1 12 Q
(23:) 72 533 T
144.48 531.9 90 531.9 2 L
V
N
(Functions) 90 533 T
5 10 Q
(wc_print \050which, char_count, wor) 90 515.33 T
(d_count, line_count\051) 251.43 515.33 T
(char *which;  /* which counts to print */) 108 501.33 T
(long char_count, wor) 108 487.33 T
(d_count, line_count;) 211.5 487.33 T
( /* given totals */) 108 473.33 T
({) 90 459.33 T
(while \050*which\051) 108 445.33 T
(switch \050*which++\051 {) 126 431.33 T
(case \324l\325: print_count\050line_count\051;) 144 417.33 T
(br) 162 403.33 T
(eak;) 171.79 403.33 T
(case \324w\325: print_count\050wor) 144 389.33 T
(d_count\051;) 267.73 389.33 T
(br) 162 375.33 T
(eak;) 171.79 375.33 T
(case \324c\325: print_count\050char_count\051;) 144 361.33 T
(br) 162 347.33 T
(eak;) 171.79 347.33 T
(default:) 144 333.33 T
(if \050\050status & usage_err) 162 319.33 T
(or\051 == 0\051 {) 265.35 319.33 T
(fprintf\050stderr) 180 305.33 T
(,) 236.88 305.33 T
(\322Usage: %s [-lwc] [\336lename ...]\134n\323,) 198 291.33 T
(pr) 366.15 291.33 T
(og_name\051;) 375.94 291.33 T
(usage_err) 180 277.33 T
(or;) 227.5 277.33 T
(}) 162 263.33 T
(}) 126 249.33 T
(}) 90 235.33 T
3 F
0.45 (Incidentally) 72 201.33 P
0.45 (, a test of this program against the system) 121.28 201.33 P
5 F
0.45 (wc) 313.79 201.33 P
3 F
0.45 ( command on a SP) 328.57 201.33 P
0.45 (ARCstation showed that the) 414.69 201.33 P
0.82 (``of) 72 189.33 P
0.82 (\336cial\325) 86.82 189.33 P
0.82 (\325) 108.86 189.33 P
5 F
0.81 (wc) 114.68 189.33 P
3 F
0.82 ( was slightly slower) 129.46 189.33 P
0.82 (. Furthermore, although that) 216.92 189.33 P
5 F
0.81 (wc) 346.92 189.33 P
3 F
0.82 ( gave an appropriate error message for) 361.7 189.33 P
(the options `) 72 177.33 T
5 F
(abc) 127.03 177.33 T
3 F
(\325, it made no complaints about the options `abc\325!) 147.15 177.33 T
-0.25 (Dare we suggest that the system routine might have been better if its programmer had used a more literate) 72 160.33 P
(approach?) 72 148.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "8" 8
%%Page: "9" 9
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 9) 527.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 696 540 706 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
72 705 540 705 2 L
1 H
2 Z
0 X
0 0 0 1 0 0 0 K
N
0 0 612 792 C
2 14 Q
0 X
0 0 0 1 0 0 0 K
(Appendix B:) 72 710.67 T
5 F
(fmweb) 158.34 710.67 T
2 F
( source) 206.15 710.67 T
3 10 Q
-0.25 (T) 72 681.33 P
-0.25 (o extract this source, go to special -> conditional text, and hide the conditional tag named \322Fluf) 77 681.33 P
-0.25 (f\323. Save the) 489.37 681.33 P
(\336le as a text \336le called fmweb. The \336rst line of this \336le may need changing.) 72 669.33 T
6 12 Q
(T) 207.05 646 T
(able 1: Important variables in fmweb) 213.95 646 T
3 10 Q
(name) 127 621.33 T
(Description) 348.49 621.33 T
(%chunksByName) 78 599.33 T
-0.27 (An array of chunks, whose key is the heading of the chunk, and it\325) 213 599.33 P
-0.27 (s value) 500.07 599.33 P
(is the entire code in that section.) 213 587.33 T
($currChunkHeading) 78 567.33 T
(The current chunk heading) 213 567.33 T
(@chunkHeadings) 78 547.33 T
(A list of all the chunk headings, in order of appearance. If a heading has) 213 547.33 T
(been encountered before, it is not appended to this array) 213 535.33 T
(.) 463.52 535.33 T
(%markerReferred) 78 515.33 T
-0.1 (Keeps track of all those chunk headings that have been referred to \050by a) 213 515.33 P
(Frame cross reference\051.) 213 503.33 T
(%markerT) 78 483.33 T
(oHeading) 123 483.33 T
-0.38 (A translation table - Each chunk heading has a text \050the \322heading\323\051 that is) 213 483.33 P
(visible, and a marker text that Frame inserts. Unfortunately) 213 471.33 T
(, these two) 471.8 471.33 T
(are not necessarily identical. This translation is necessary since the) 213 459.33 T
-0.3 (script allows more than one chunk to have the same name \050which is then) 213 447.33 P
(concatenated\051, but a cross reference can be created to only of these) 213 435.33 T
(paragraphs.) 213 423.33 T
($line) 78 403.33 T
(Global var that contains the current line from the input MIF \336le.) 213 403.33 T
($currMarkerT) 78 383.33 T
(ext) 136.89 383.33 T
(While evaluating a chunk paragraph, this keeps track of the current) 213 383.33 T
-0.19 (marker text. Subsequently) 213 371.33 P
-0.19 (, the text of the paragraph and this marker text) 328.04 371.33 P
(are related by %markerT) 213 359.33 T
(oHeading) 321.92 359.33 T
($currModeProc) 78 339.33 T
-0.06 (A reference to a mode subroutine. Each of these subroutines is part of a) 213 339.33 P
(state diagram \050shown below\051.) 213 327.33 T
(@lookFor) 78 307.33 T
(The set of tokens in which this state is interested.) 213 307.33 T
(%chunkReferred) 78 287.33 T
(This array \050keyed by chunk heading\051 tracks all chunks that have been) 213 287.33 T
(referred to, by other chunks. The chunks that don\325t belong to this cate-) 213 275.33 T
(gory are the top-level chunks.) 213 263.33 T
72 635.75 72 256.25 2 L
V
0.5 H
0 Z
N
207 636.25 207 255.75 2 L
V
N
540 635.75 540 256.25 2 L
V
N
71.75 636 540.25 636 2 L
V
N
72.25 613.25 539.75 613.25 2 L
V
N
72.25 610.75 539.75 610.75 2 L
V
N
71.75 580 540.25 580 2 L
V
N
71.75 560 540.25 560 2 L
V
N
71.75 528 540.25 528 2 L
V
N
71.75 496 540.25 496 2 L
V
N
71.75 416 540.25 416 2 L
V
N
71.75 396 540.25 396 2 L
V
N
71.75 352 540.25 352 2 L
V
N
71.75 320 540.25 320 2 L
V
N
71.75 300 540.25 300 2 L
V
N
71.75 256 540.25 256 2 L
V
N
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "9" 9
%%Page: "10" 10
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 10) 522.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
142.01 709.31 72 709.31 2 L
0 X
V
1.02 H
0 Z
N
3 14 Q
(Description) 72 710.67 T
3 10 Q
(fmweb is implemented as a simple state machine, whose state diagram is shown below) 72 691.33 T
(.) 457.7 691.33 T
0.26 (Each of the events in the state diagram are mif statements. The subroutines ParaMode, FileMode, Code-) 72 472.33 P
0.82 (Mode, ChunkMode and W) 72 460.33 P
0.82 (asteMode implement the states. If these subs are called without any parame-) 190.25 460.33 P
0.06 (ters, they do the necessary initializations required for that state, such as initializing @lookFor) 72 448.33 P
0.06 (, which is the) 482.01 448.33 P
-0.12 (set of lookahead patterns in which the current state is interested. The main loop calls these subs with $line) 72 436.33 P
(as the parameter - $line contains some event deemed interesting to the current state.) 72 424.33 T
0.72 (The script \336rst reads in all the chunks and stores them in chunksByName, keyed by the chunk heading.) 72 407.33 P
0.04 (Each chunk may contain embedded cross references to other chunks. In MIF) 72 395.33 P
0.04 (, an XrefSrcT) 412.02 395.33 P
0.04 (ext statement is) 469.89 395.33 P
-0.05 (the pointer to the source paragraph - more precisely) 72 383.33 P
-0.05 (, the chunk heading that this XrefSrcT) 300.93 383.33 P
-0.05 (ext points to, will) 466.8 383.33 P
1.53 (have a corresponding \322MT) 72 371.33 P
1.53 (ext\323 statement with exactly the same string. Since a chunk is simply all the) 192.19 371.33 P
0.51 (\322code\323 paragraph strings concatenated together) 72 359.33 P
0.51 (, cross references are simply embedded into this stream,) 284.71 359.33 P
(with a "\134200" character on either end, to identify it later) 72 347.33 T
(.) 310.89 347.33 T
1.52 (Finally) 72 330.33 P
1.52 (, each of the top level chunks are taken in order \050top level chunks are those that haven\325t been) 100.15 330.33 P
1.83 (referred to by any other chunk\051, and expanded. The expansion process consists of substituting each) 72 318.33 P
0.94 (embedded reference by the appropriate chunk - this is a recursive process, since the chunk referred to) 72 306.33 P
(may itself contain other embedded references.) 72 294.33 T
5 F
(#/usr/local/bin/perl5) 90 257.33 T
(#forwar) 90 233.33 T
(d declarations.) 126.33 233.33 T
(sub ParaMode;) 90 221.33 T
(sub FileMode;) 90 209.33 T
(sub CodeMode;) 90 197.33 T
(sub ChunkMode;) 90 185.33 T
(sub W) 90 173.33 T
(asteMode;) 118.65 173.33 T
(Initialize\050\051;) 90 149.33 T
(# Start with the W) 90 125.33 T
(aste State.) 173.11 125.33 T
(W) 90 113.33 T
(asteMode\050\051;) 99.1 113.33 T
(# Main loop) 90 101.33 T
(while \050$line = <STDIN>\051 {) 90 89.33 T
(if \050Inter) 108 77.33 T
(estingLine\050\051\051 {) 140.82 77.33 T
72 72 540 720 C
109.12 486 502.88 688 C
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
7 X
0 0 0 1 0 0 0 K
90 450 22 19 342.55 525.33 G
0.5 H
2 Z
0 X
90 450 22 19 342.55 525.33 A
285.55 513.33 334.55 535.33 R
7 X
V
N
329.43 508.62 326.11 513.78 331.67 511.17 330.55 509.89 4 Y
0 X
V
330.56 509.89 330.56 509.89 2 L
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
7 X
90 450 22 19 342.55 584.22 G
0 X
90 450 22 19 342.55 584.22 A
285.55 572.22 334.55 594.22 R
7 X
V
N
329.43 567.51 326.11 572.67 331.67 570.05 330.55 568.78 4 Y
0 X
V
330.56 568.78 330.56 568.78 2 L
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
7 X
90 450 22 19 342.55 644.78 G
0 X
90 450 22 19 342.55 644.78 A
285.55 632.78 334.55 654.78 R
7 X
V
N
329.43 628.06 326.11 633.22 331.67 630.61 330.55 629.33 4 Y
0 X
V
330.56 629.33 330.56 629.33 2 L
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
3 10 Q
(W) 130.98 581.45 T
(aste) 140.05 581.45 T
(Para) 208.55 581.45 T
(File) 314.23 640.19 T
(Code) 314.23 581.45 T
(Chunk) 314.23 522.71 T
187.59 587.31 199.12 584 187.59 580.69 187.59 584 4 Y
V
163.12 584 187.59 584 2 L
N
5 7 Q
(Para) 170.12 589 T
295.43 635.29 307.12 638 298.64 629.51 297.04 632.4 4 Y
V
226.12 593 297.04 632.4 2 L
N
174.66 571.69 163.12 575 174.66 578.31 174.66 575 4 Y
V
174.66 575 199.12 575 2 L
N
(All other pgf tags) 153.12 565.34 T
(PgfT) 226.28 614.83 T
(ag File) 239.95 614.83 T
(PgfT) 253.28 575.83 T
(ag code) 266.95 575.83 T
295.59 587.31 307.12 584 295.59 580.69 295.59 584 4 Y
V
235.12 584 295.59 584 2 L
N
298.64 535.5 307.12 527 295.43 529.71 297.04 532.61 4 Y
V
226.12 572 297.04 532.6 2 L
N
(PgfT) 226.28 540.34 T
(ag chunk) 239.95 540.34 T
(String) 334.28 668.83 T
(Char T) 301.28 606.83 T
(ab, String, Xr) 322.68 606.83 T
(efSr) 364.68 606.83 T
(cT) 376.98 606.83 T
(ext) 384.14 606.83 T
(MT) 319.28 546.83 T
(ext , String) 328.35 546.83 T
429.2 572.8 441 575 432.16 566.89 430.68 569.84 4 Y
V
345 527 430.68 569.84 2 L
N
430.97 602.91 439.99 595 428.15 596.93 429.56 599.92 4 Y
V
336 644 429.57 599.92 2 L
N
426.46 586.31 438 583 426.46 579.69 426.46 583 4 Y
V
342 583 426.46 583 2 L
N
(End of para) 385.28 586.83 T
3 10 Q
(W) 443.58 581.45 T
(aste) 452.65 581.45 T
72 72 540 720 C
0 0 612 792 C
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "10" 10
%%Page: "11" 11
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 11) 522.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
5 F
0 X
(# Call the curr) 126 713.33 T
(ent mode pr) 193.33 713.33 T
(oc \050one of ParaMode,FileMode, CodeMode, ChunkMode;) 253.93 713.33 T
(# W) 126 701.33 T
(asteMode, or W) 143.41 701.33 T
(asteOneStringMode\051) 220.07 701.33 T
(&{$currModePr) 126 689.33 T
(oc}\050$line\051;) 199.17 689.33 T
( }) 108 677.33 T
(}) 90 665.33 T
(#All chunks have been slurped in.) 90 641.33 T
(# Find out which chunks have been r) 90 617.33 T
(eferr) 267.24 617.33 T
(ed to by othe r chunks.) 289.36 617.33 T
(for) 90 605.33 T
(each $k \050keys %markerReferr) 102.66 605.33 T
(ed\051 {) 241.57 605.33 T
($chunkReferr) 108 593.33 T
(ed {$markerT) 171.5 593.33 T
(oHeading{$k}} = 1;) 234.19 593.33 T
(}) 90 581.33 T
(# Can curr) 90 557.33 T
(ently open only one \336le.) 140.67 557.33 T
(open \050F) 90 545.33 T
(, "> $currFile"\051 || die "Could not open $currFile for writing";) 126.06 545.33 T
(# The "tangle" pr) 90 521.33 T
(ocess. Expand each top level chunk) 168.23 521.33 T
(for) 90 509.33 T
(each $c \050@chunkHeadings\051 {) 102.66 509.33 T
(if \050! $chunkReferr) 108 497.33 T
(ed{$c}\051 {) 188.82 497.33 T
(ChunkExpand \050$c\051;) 126 485.33 T
($chunksByName{$c} =~ s/\134\134xd\050[2345]\051 /$xlat[$1]/g; #T) 126 473.33 T
(ranslate smart quotes) 385.59 473.33 T
($chunksByName{$c} =~ s/\134\134\134\134/\134\134/g; #Convert \134\134 to \134) 126 461.33 T
($chunksByName{$c} =~ s/\134\134>/>/g; # convert \134> to >) 126 449.33 T
(print F $chunksByName{$c}, "\134n";) 126 437.33 T
(}) 108 425.33 T
(}) 90 413.33 T
(close \050F\051;) 90 389.33 T
(exit \0500\051;) 90 377.33 T
(#--------------------------------------------------------------------------------------------------------------) 90 353.33 T
(sub) 90 329.33 T
1 F
(ChunkExpand) 109.55 329.33 T
5 F
( {) 177.75 329.33 T
( local \050$heading\051 = @_;) 108 317.33 T
( print "ChunkExpand : $heading \134n" if $debugging;) 108 293.33 T
( if \050de\336ned \050$chunksByName{$heading}\051\051 {) 108 269.33 T
(# For each embedded marker found, call CHunkExpand r) 126 257.33 T
(ecursively.) 404.69 257.33 T
(# Note the /e option below.) 126 245.33 T
(1 while) 126 233.33 T
( \050$chunksByName{$heading} =~) 126 221.33 T
(s/\134200\050[^\134200]*\051\134200/ChunkExpand\050$markerT) 144 209.33 T
(oHeading{$1}\051/e\051;) 364.28 209.33 T
(r) 126 197.33 T
(etur) 128.97 197.33 T
(n $chunksByName{$heading};) 148.16 197.33 T
( } else {) 108 185.33 T
(r) 126 173.33 T
(etur) 128.97 173.33 T
(n "??$heading??"; # T) 148.16 173.33 T
(o indicate an unr) 251.12 173.33 T
(esolved cr) 334.2 173.33 T
(oss r) 384.23 173.33 T
(efer) 404.28 173.33 T
(ence.) 423.39 173.33 T
( }) 108 161.33 T
(}) 90 149.33 T
(sub) 90 125.33 T
1 F
(W) 109.55 125.33 T
(asteMode) 118.05 125.33 T
5 F
( {) 166.85 125.33 T
( local \050$ev\051 = @_;) 108 113.33 T
( if \050! de\336ned $ev\051 {) 108 101.33 T
(@lookFor = \050$P) 126 89.33 T
(ARA\051;) 195.21 89.33 T
($currModePr) 126 77.33 T
(oc = \134&W) 188.09 77.33 T
(asteMode;) 235.43 77.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "11" 11
%%Page: "12" 12
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 12) 522.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
5 F
0 X
(r) 126 713.33 T
(etur) 128.97 713.33 T
(n;) 148.16 713.33 T
( }) 108 701.33 T
(ParaMode\050\051;) 108 677.33 T
(}) 90 665.33 T
(sub) 90 641.33 T
1 F
(ParaMode) 109.55 641.33 T
5 F
( {) 159.95 641.33 T
(local \050$ev\051 = @_;) 108 629.33 T
(if \050! de\336ned $ev\051 {) 108 617.33 T
(@lookFor = \050"^ *<PgfT) 126 605.33 T
(ag `code\325", "^ *<PgfT) 226.25 605.33 T
(ag `chunk\325", "^ *<PgfT) 326.63 605.33 T
(ag `File\325"\051;) 430.41 605.33 T
($currModePr) 126 593.33 T
(oc = \134&ParaMode;) 188.09 593.33 T
(r) 126 581.33 T
(etur) 128.97 581.33 T
(n;) 148.16 581.33 T
( }) 108 569.33 T
( print "ParaMode : $ev \134n" if $debugging;) 108 557.33 T
( if \050$ev =~ /code/ \051 {) 108 545.33 T
(CodeMode\050\051;) 126 533.33 T
( } elsif \050$ev =~ /chunk/ \051 {) 108 521.33 T
(ChunkMode\050\051;) 126 509.33 T
( } elsif \050$ev =~ /File/ \051 {) 108 497.33 T
(FileMode\050\051;) 126 485.33 T
( } else {) 108 473.33 T
(W) 126 461.33 T
(asteMode\050\051;) 135.1 461.33 T
(}) 108 449.33 T
(}) 90 437.33 T
(sub) 90 413.33 T
1 F
(FileMode) 109.55 413.33 T
5 F
( {) 153.95 413.33 T
( local \050$ev\051 = @_;) 108 401.33 T
( if \050! de\336ned $ev\051 {) 108 389.33 T
(@lookFor = \050"^ *<String", $ENDOFP) 126 377.33 T
(ARA\051;) 286.02 377.33 T
($currModePr) 126 365.33 T
(oc = \134&FileMode;) 188.09 365.33 T
($currFile = "";) 126 353.33 T
(r) 126 341.33 T
(etur) 128.97 341.33 T
(n;) 148.16 341.33 T
( }) 108 329.33 T
( print "FileMode : $ev \134n" if $debugging;) 108 317.33 T
( if \050$ev =~ /^ *<String.*\134`\050.+\051\134\325>$/ \051 {) 108 305.33 T
($currFile = $1;) 126 293.33 T
( } else { # End of para) 108 281.33 T
(W) 126 269.33 T
(asteMode\050\051;) 135.1 269.33 T
(}) 108 257.33 T
(}) 90 245.33 T
(sub) 90 221.33 T
1 F
(CodeMode) 109.55 221.33 T
5 F
( {) 165.15 221.33 T
( local \050$ev, $h\051 = @_;) 108 209.33 T
(if \050! de\336ned $ev\051 {) 108 197.33 T
(@lookFor = \050"^ *<Char T) 126 185.33 T
(ab", "^ *<String", "^ *<XRefSr) 237.3 185.33 T
(cT) 368.6 185.33 T
(ext", $ENDOFP) 378.84 185.33 T
(ARA\051;) 446.62 185.33 T
($currModePr) 126 173.33 T
(oc = \134&CodeMode;) 188.09 173.33 T
(r) 108 161.33 T
(etur) 110.97 161.33 T
(n;) 130.16 161.33 T
(}) 108 149.33 T
( print "CodeMode : $ev \134n" if $debugging;) 108 137.33 T
( if \050$ev =~ /^ *<Char T) 108 125.33 T
(ab/\051 {) 211.7 125.33 T
($chunksByName{$currChunkHeading} .= "\134t";) 126 113.33 T
( } elsif \050$ev  =~ /String \134`\050.*\051\134\325>$/\051 {) 108 101.33 T
($chunksByName{$currChunkHeading} .= "$1"; # Concatenate code to curr) 126 89.33 T
(ent chunk) 486.22 89.33 T
(} elsif  \050\050$h\051 = \050$ev =~ /^ *<XRefSr) 108 77.33 T
(cT) 263.81 77.33 T
(ext \050.*\051>$/\051\051 {) 274.05 77.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "12" 12
%%Page: "13" 13
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 13) 522.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
5 F
0 X
($markerReferr) 126 713.33 T
(ed{$h} = 1; # Mark this chunk r) 193.48 713.33 T
(efer) 336.95 713.33 T
(ence as "r) 356.06 713.33 T
(eferr) 403.94 713.33 T
(ed to") 426.06 713.33 T
(# Put the text in as an embedded r) 126 701.33 T
(efer) 294.12 701.33 T
(ence) 313.23 701.33 T
($chunksByName{$currChunkHeading} .= "\134200$h\134200\134n";) 126 689.33 T
(# The next string is the string of the cr) 126 677.33 T
(oss r) 301.33 677.33 T
(efer) 321.38 677.33 T
(ence itself - having embedded the) 340.49 677.33 T
(# cr) 126 665.33 T
(oss r) 143.75 665.33 T
(efer) 163.8 665.33 T
(ence itself, we ar) 182.91 665.33 T
(e not inter) 265.08 665.33 T
(ested in this string.) 314.12 665.33 T
(W) 126 653.33 T
(asteOneStringMode\050\051;) 135.1 653.33 T
( } elsif \050$ev =~ /$ENDOFP) 108 641.33 T
(ARA/o\051 {) 225.1 641.33 T
(# Assuming that each line of the code is in one "code" para . T) 126 629.33 T
(ime to append a) 426.54 629.33 T
(# newline) 126 617.33 T
($chunksByName{$currChunkHeading} .= "\134n";) 126 605.33 T
(W) 126 593.33 T
(asteMode\050\051;) 135.1 593.33 T
( }) 108 581.33 T
(}) 90 569.33 T
(sub) 90 545.33 T
1 F
(W) 109.55 545.33 T
(asteOneStringMode) 118.05 545.33 T
5 F
( {) 214.05 545.33 T
(# Called fr) 108 533.33 T
(om CodeMode above.) 157.5 533.33 T
( local \050$ev\051 = @_;) 108 521.33 T
( if \050! de\336ned $ev\051 {) 108 509.33 T
(@lookFor = \050"^ *<String"\051;) 126 497.33 T
($currModePr) 126 485.33 T
(oc = \134&W) 188.09 485.33 T
(asteOneStringMode;) 235.43 485.33 T
(r) 126 473.33 T
(etur) 128.97 473.33 T
(n;) 148.16 473.33 T
( }) 108 461.33 T
( CodeMode\050\051;) 108 449.33 T
(}) 90 437.33 T
(sub) 90 413.33 T
1 F
(ChunkMode) 109.55 413.33 T
5 F
( {) 169.55 413.33 T
(local \050$ev\051 = @_;) 108 401.33 T
( if \050! de\336ned $ev\051 {) 108 389.33 T
(@lookFor = \050"^ *<MT) 126 377.33 T
(ext", "^ *<String", $ENDOFP) 219.68 377.33 T
(ARA\051;) 344.53 377.33 T
($currChunkHeading = "";) 126 365.33 T
($currMarkerT) 126 353.33 T
(ext = "";) 187.44 353.33 T
($currModePr) 126 341.33 T
(oc = \134&ChunkMode;) 188.09 341.33 T
(r) 126 329.33 T
(etur) 128.97 329.33 T
(n;) 148.16 329.33 T
( }) 108 317.33 T
( if \050$ev =~ /^ *<MT) 108 305.33 T
(ext \050.*\051>$/\051  {) 194.08 305.33 T
($currMarkerT) 126 293.33 T
(ext = $1;) 187.44 293.33 T
( } elsif \050$ev =~ /^ *<String.*\134`\050.+\051\134\325>$/ \051 {) 108 281.33 T
($currChunkHeading .= $1;) 126 269.33 T
( } else {) 108 257.33 T
(# End of chunk para.) 126 245.33 T
(print "ChunkMode : $1 \134n" if $debugging;) 126 233.33 T
(if \050! de\336ned $chunksByName{$currChunkHeading}\051 {) 126 221.33 T
(# Init the curr) 144 209.33 T
(ent chunk with blank code.) 206.12 209.33 T
($chunksByName{$currChunkHeading} = "";) 144 197.33 T
(}) 126 185.33 T
(if \050! de\336ned $headingSeenBefor) 126 173.33 T
(e{$currChunkHeading}\051 {) 279.39 173.33 T
(# New chunk heading name seen.) 144 161.33 T
( push \050@chunkHeadings, $currChunkHeading\051;) 144 149.33 T
( $headingSeenBefor) 144 137.33 T
(e{$currChunkHeading} = 1;) 242.4 137.33 T
(}) 126 125.33 T
(if \050$currMarkerT) 126 113.33 T
(ext ne ""\051 {) 199.04 113.33 T
(# cr) 144 101.33 T
(oss r) 161.75 101.33 T
(efer) 181.8 101.33 T
(ence between marker text and the actual heading) 200.91 101.33 T
($markerT) 144 89.33 T
(oHeading{$currMarkerT) 187.06 89.33 T
(ext} = $currChunkHeading;) 300.4 89.33 T
(}) 126 77.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "13" 13
%%Page: "14" 14
612 792 0 FMBEGINPAGE
[0 0 0 1 0 0 0]
[ 0 0 0 0 1 1 1]
[ 0 1 1 0 1 0 0]
[ 1 0 1 0 0 1 0]
[ 1 1 0 0 0 0 1]
[ 1 0 0 0 0 1 1]
[ 0 1 0 0 1 0 1]
[ 0 0 1 0 1 1 0]
 8 FrameSetSepColors
FrameNoSep
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
0 10 Q
0 X
0 0 0 1 0 0 0 K
(.. 14) 522.5 36 T
0 0 0 1 0 0 0 K
33 54 597 54 2 L
3 H
2 Z
4 X
N
0 0 0 1 0 0 0 K
0 0 0 1 0 0 0 K
5 F
0 X
(W) 126 713.33 T
(asteMode\050\051;) 135.1 713.33 T
(}) 108 701.33 T
(}) 90 689.33 T
(sub) 90 665.33 T
1 F
(Inter) 109.55 665.33 T
(estingLine) 130.87 665.33 T
5 F
( {) 178.87 665.33 T
(# Does the line belong to any of the lookahead tokens?) 108 653.33 T
(for) 108 641.33 T
(each $l \050@lookFor\051 {) 120.66 641.33 T
(if \050$line =~ /$l/\051 {) 126 629.33 T
(r) 144 617.33 T
(etur) 146.97 617.33 T
(n $l;) 166.16 617.33 T
(}) 126 605.33 T
( }) 108 593.33 T
(r) 108 581.33 T
(etur) 110.97 581.33 T
(n undef;) 130.16 581.33 T
(}) 90 569.33 T
(sub) 90 545.33 T
1 F
(Initialize) 109.55 545.33 T
5 F
( {) 148.55 545.33 T
($debugging = 0; # Change to 1 to get a trace.) 108 533.33 T
($currFile = "-";) 108 521.33 T
(# Output to stdout) 171.33 521.33 T
($P) 108 509.33 T
(ARA = \325^ *<Para\325;) 118.72 509.33 T
($ENDOFP) 108 497.33 T
(ARA = \325^ *> # end of Para\325;) 152.46 497.33 T
(#T) 108 473.33 T
(ranslation table for smart quotes.) 117.5 473.33 T
($xlat[2] = "\134"";) 108 461.33 T
($xlat[3] = "\134"";) 108 449.33 T
($xlat[4] = "\134\325";) 108 437.33 T
($xlat[5] = "\134\325";) 108 425.33 T
(# Start of) 108 401.33 T
(f with a default chunk heading, in case the pr) 150.4 401.33 T
(ogrammer starts of) 371.1 401.33 T
(f code without) 462.13 401.33 T
(# a chunk heading) 108 389.33 T
($currChunkHeading = "          DEF) 108 377.33 T
(AUL) 264.82 377.33 T
(T        ";) 282.93 377.33 T
($chunksByName {$currChunkHeading} = "";) 108 365.33 T
(push \050@chunkHeadings, $currChunkHeading\051;) 108 353.33 T
(}) 90 341.33 T
0 0 0 1 0 0 0 K
FMENDPAGE
%%EndPage: "14" 14
%%Trailer
%%BoundingBox: 0 0 612 792
%%PageOrder: Ascend
%%Pages: 14
%%DocumentFonts: Times-Roman
%%+ AvantGarde-Demi
%%+ Helvetica-Bold
%%+ Helvetica
%%+ Helvetica-Oblique
%%+ AvantGarde-Book
%%+ Times-Bold
%%+ Courier
%%+ AvantGarde-BookOblique
%%EOF