File: pcal-help.html

package info (click to toggle)
pcal 4.11.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,604 kB
  • sloc: ansic: 6,747; csh: 245; makefile: 140; sh: 126; perl: 117
file content (3459 lines) | stat: -rw-r--r-- 108,143 bytes parent folder | download | duplicates (3)
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
<!-- Creator     : groff version 1.19.2 -->
<!-- CreationDate: Tue Dec 18 15:06:47 2007 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p     { margin-top: 0; margin-bottom: 0; }
       pre   { margin-top: 0; margin-bottom: 0; }
       table { margin-top: 0; margin-bottom: 0; }
</style>
<title>PCAL</title>

</head>
<body>

<h1 align=center>PCAL</h1>

<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#CAVEATS">CAVEATS</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<a href="#AUTHORS">AUTHORS</a><br>

<hr>


<a name="NAME"></a>
<h2>NAME</h2>


<p style="margin-left:11%; margin-top: 1em">pcal &minus;
generate PostScript (or HTML) calendars</p>

<a name="SYNOPSIS"></a>
<h2>SYNOPSIS</h2>


<p style="margin-left:18%; margin-top: 1em"><b>pcal</b>
[<b>&minus;e</b>|<b>&minus;f&nbsp;</b><i>cal</i>]
[<b>&minus;o&nbsp;</b><i>file</i>]
[<b>&minus;l&nbsp;</b>|&nbsp;<b>&minus;p</b>]
[<b>&minus;P&nbsp;</b>[letter | legal | a4 | tabloid]]
[<b>&minus;j&nbsp;</b>|&nbsp;<b>&minus;J</b>]
[<b>&minus;m&nbsp;</b>|&nbsp;<b>&minus;M</b>]
[<b>&minus;g&nbsp;</b><i>weekday</i>[<i>&minus;weekday</i>]|all|holiday]
[<b>&minus;O&nbsp;</b><i>weekday</i>[<i>&minus;weekday</i>]|all|holiday]
[<b>&minus;G&nbsp;</b><i>weekday</i>[<i>&minus;weekday</i>]|all|holiday]
[<b>&minus;b&nbsp;</b><i>weekday</i>[<i>&minus;weekday</i>]|all|holiday]
[<b>&minus;s&nbsp;</b>[<i>day_numerics_color</i>][/<i>empty_day_box_fill_color</i>]]
[<b>&minus;F&nbsp;</b><i>day</i>]
[<b>&minus;A</b>|<b>&minus;E</b>]
[<b>&minus;X&nbsp;</b><i>xtrans</i>]
[<b>&minus;Y&nbsp;</b><i>ytrans</i>]
[<b>&minus;x&nbsp;</b><i>xscale</i>]
[<b>&minus;y&nbsp;</b><i>yscale</i>]
[<b>&minus;t&nbsp;</b>[<i>title_font</i>][/<i>size</i>]]
[<b>&minus;d&nbsp;</b>[<i>day_font</i>][/<i>size</i>]]
[<b>&minus;n&nbsp;</b>[<i>text_font</i>][/<i>size</i>]]
[<b>&minus;L&nbsp;</b><i>footer_str</i>]
[<b>&minus;C&nbsp;</b><i>footer_str</i>]
[<b>&minus;R&nbsp;</b><i>footer_str</i>]
[<b>&minus;N&nbsp;</b><i>notes_str</i>]
[<b>&minus;D&nbsp;</b><i>symbol</i>]
[<b>&minus;U&nbsp;</b><i>symbol</i>] [<b>&minus;B</b>]
[<b>&minus;#&nbsp;</b><i>n</i>]
[<b>&minus;S&nbsp;</b>|&nbsp;<b>&minus;k&nbsp;</b>|&nbsp;<b>&minus;K</b>]
[<b>&minus;w</b>] [<b>&minus;I</b>]
[<b>&minus;c&nbsp;</b>|&nbsp;<b>&minus;H</b>]
[<b>&minus;q</b>] [<b>&minus;z&nbsp;</b><i>time_zone</i>]
[<b>&minus;h&nbsp;</b>|&nbsp;<b>&minus;u&nbsp;</b>|&nbsp;<b>&minus;v</b>]
[<b>&minus;a&nbsp;</b><i>output_language</i>]
[<b>&minus;r&nbsp;</b>[<i>mapping</i>]
[<b>&minus;T&nbsp;</b>[B|I|R]]
[<b>&minus;W&nbsp;</b>[left|center|right]] [month] [year]
[nmonths]</p>

<a name="DESCRIPTION"></a>
<h2>DESCRIPTION</h2>


<p style="margin-left:11%; margin-top: 1em"><i>Pcal</i>
generates PostScript to produce landscape or portrait
calendars for any month and year. The arguments
<b>month</b>, <b>year</b>, and <b>nmonths</b>, if provided,
should be numeric. The <b>month</b> value should be in the
range 1 &minus; 12, and the <b>year</b> value should be
specified as 1 or 2 digits (in which case it will be
interpreted as that year in the current century) or as the
full 4-digit year. If no numeric arguments are provided, the
calendar for the current month and year will be
generated.</p>

<p style="margin-left:11%; margin-top: 1em">If one numeric
argument is provided, it is interpreted as the <b>year</b>
value, and calendars for the entire year will be generated.
Otherwise, <b>nmonths</b> months, starting with <b>month</b>
and <b>year</b>, will be generated.</p>

<p style="margin-left:11%; margin-top: 1em">For whole-year
calendars (i.e. when the <b>&minus;w</b> option is given),
the command line arguments are interpreted somewhat
differently. By default, all months in the current year are
printed, starting with January. If the <b>month</b> argument
alone is given, it is expected to be the desired <b>year</b>
to print, and prints all of the months in the given year. If
both <b>month</b> and <b>year</b> are given, then 12
consecutive months are printed starting at the given month
and year. If the <b>month</b>, <b>year</b>, and
<b>nmonths</b> arguments are all present, printing begins
with the given month and year and <b>nmonths</b> months are
printed, rounded up to the nearest multiple of 12.</p>

<p style="margin-left:11%; margin-top: 1em"><b>The Date
File (Configuration File)</b> <br>
By default, <i>pcal</i> simply prints an empty calendar. Its
real power is in its ability to place
&lsquo;&lsquo;events&rsquo;&rsquo; (and, for monthly-format
PostScript calendars, Encapsulated PostScript images [e.g.
photos and icons]) in appropriate days on the (PostScript or
HTML) calendar, thus allowing the user to create
personalized calendars. This is achieved through the use of
the &lsquo;&lsquo;date file&rsquo;&rsquo;, also known as the
&lsquo;&lsquo;configuration file&rsquo;&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em">The default
date/configuration file is expected to be named
<i>.calendar</i> (<i>pcal.dat</i> under MS-DOS), or
<i>calendar</i> for compatibility with older versions.
<i>Pcal</i> will look in several places for such a file.
First, if the environment variable <b>PCAL_DIR</b> is
defined, <i>pcal</i> searches the directory indicated by
that variable. Next, <i>pcal</i> searches the user&rsquo;s
home directory (as specified by the <b>HOME</b> environment
variable). If neither <b>PCAL_DIR</b> nor <b>HOME</b> is
defined, <i>pcal</i> searches the current directory instead.
Finally, if enabled (via the &lsquo;SEARCH_PCAL_DIR&rsquo;
flag) when <i>pcal</i> was built, the directory where the
<i>pcal</i> executable resides will be checked. If no date
file is found, an empty calendar is printed; no error is
generated.</p>

<p style="margin-left:11%; margin-top: 1em">Alternatively,
the name of the date file (and, optionally, the path where
it can be found) can be specified using the <b>&minus;f</b>
command-line option. See the <b>OPTIONS</b> section for more
details.</p>

<p style="margin-left:11%; margin-top: 1em">Every
<i>pcal</i> distribution comes with an
&rsquo;examples&rsquo; directory. The
&lsquo;pcal-cfg.txt&rsquo; file that is located there
contains a myriad of examples of settings that can be used
in your own configuration file. Please check it out for lots
of useful ideas. Furthermore, that directory contains
several language/country-specific examples (including
holiday and other event definitions) in various
&lsquo;calendar_xx.txt&rsquo; files, where &lsquo;xx&rsquo;
represents the 2-letter language code (e.g.
&rsquo;calendar_de.txt&rsquo; is the German example
file).</p>

<p style="margin-left:11%; margin-top: 1em">If a date file
is found, it will be searched for lines with leading dates
matching the requested month and year.</p>

<p style="margin-left:11%; margin-top: 1em">Any text
following the dates found will be printed on the calendar
under the appropriate day of the month. Encapsulated
PostScript (EPS) images are handled similarly as described
in a later subsection.</p>


<p style="margin-left:11%; margin-top: 1em"><b>troff</b>-style
escape sequences \fB, \fI, \fP, and \fR may be used to set
the font style to Bold, Italic, the previous font style, or
Roman respectively. For those more familiar with HTML,
&lt;B&gt;, &lt;I&gt;, &lt;/B&gt;, and &lt;/I&gt; may be used
instead to enable/disable Bold or Italic font styles. The
font style is reset to Roman after each line break.</p>

<p style="margin-left:11%; margin-top: 1em">Using the
&lsquo;include&rsquo; pre-processor directive (described in
the section entitled &lsquo;Pre-Processor
Functionality&rsquo;, below), other configuration files can
be processed from within an existing configuration file.
That is, you can &lsquo;nest&rsquo; configuration files as
needed.</p>

<p style="margin-left:11%; margin-top: 1em">Dates
(essentially &lsquo;events&rsquo;) in the configuration
files may be expressed in any of several formats:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="75%">


<p style="margin-top: 1em" valign="top">&lt;ordinal&gt;
&lt;day_spec&gt; in &lt;month_spec&gt;{*} {&lt;text&gt;}</p></td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="75%">


<p style="margin-top: 1em" valign="top">{&lt;ordinal&gt;}
&lt;day_spec&gt; &lt;prep&gt; &lt;date_spec&gt;{*}
{&lt;text&gt;}</p> </td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="75%">



<p style="margin-top: 1em" valign="top">&lt;date_spec&gt;{*}
{&lt;text&gt;}</p> </td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="75%">



<p style="margin-top: 1em" valign="top">&lt;pre_defined_event&gt;{*}
{&lt;text&gt;}</p> </td>
</table>

<p style="margin-left:11%; margin-top: 1em">Where:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;month_name&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= first 3+ characters of name
of month, or &lsquo;&lsquo;all&rsquo;&rsquo;</p>

<p style="margin-left:45%; margin-top: 1em"><b>Note:</b>
<i>pcal</i> looks for names of the days of the week prior to
names of months when parsing event date specifications.
Furthermore, some languages (e.g. French and Finnish) have a
month name whose first 3 letters are the same as the first 3
letters of one of the names of the days of the week. Because
of this, the specification in such a language of any month
name which collides thusly must use 4 or more letters to
distinguish it from the name of the day of the week with
which it &lsquo;collides&rsquo;.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;month_spec&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= &lt;month_name&gt;, or
&lsquo;&lsquo;year&rsquo;&rsquo;</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;day_spec&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= first 3+ characters of name
of weekday, &lsquo;&lsquo;day&rsquo;&rsquo;,
&lsquo;&lsquo;weekday&rsquo;&rsquo;,
&lsquo;&lsquo;workday&rsquo;&rsquo;,
&lsquo;&lsquo;holiday&rsquo;&rsquo;,
&lsquo;&lsquo;nonweekday&rsquo;&rsquo;,
&lsquo;&lsquo;nonworkday&rsquo;&rsquo;,
&lsquo;&lsquo;nonholiday&rsquo;&rsquo;,
&lsquo;&lsquo;new_moon&rsquo;&rsquo;,
&lsquo;&lsquo;first_quarter&rsquo;&rsquo;,
&lsquo;&lsquo;full_moon&rsquo;&rsquo;, or
&lsquo;&lsquo;last_quarter&rsquo;&rsquo;</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;ordinal&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= any ordinal number
(&lsquo;&lsquo;1st&rsquo;&rsquo;,
&lsquo;&lsquo;2nd&rsquo;&rsquo;, etc.),
&lsquo;&lsquo;first&rsquo;&rsquo; ...
&lsquo;&lsquo;fifth&rsquo;&rsquo;,
&lsquo;&lsquo;last&rsquo;&rsquo;,
&lsquo;&lsquo;odd&rsquo;&rsquo;,
&lsquo;&lsquo;even&rsquo;&rsquo;, or
&lsquo;&lsquo;all&rsquo;&rsquo;</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;prep&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:=
&lsquo;&lsquo;on&rsquo;&rsquo;,
&lsquo;&lsquo;before&rsquo;&rsquo;,
&lsquo;&lsquo;preceding&rsquo;&rsquo;,
&lsquo;&lsquo;after&rsquo;&rsquo;,
&lsquo;&lsquo;following&rsquo;&rsquo;,
&lsquo;&lsquo;on_or_before&rsquo;&rsquo;
(&lsquo;&lsquo;oob&rsquo;&rsquo;),
&lsquo;&lsquo;on_or_after&rsquo;&rsquo;
(&lsquo;&lsquo;ooa&rsquo;&rsquo;),
&lsquo;&lsquo;nearest&rsquo;&rsquo;,
&lsquo;&lsquo;nearest_before&lsquo;&lsquo;, or
&lsquo;&lsquo;nearest_after&lsquo;&lsquo;</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;pre_defined_event&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:45%;">:=
&lsquo;&lsquo;Christmas&rsquo;&rsquo;,
&lsquo;&lsquo;Thanksgiving&rsquo;&rsquo;,
&lsquo;&lsquo;Easter&rsquo;&rsquo;,
&lsquo;&lsquo;Good_Friday&rsquo;&rsquo;,
&lsquo;&lsquo;GEaster&rsquo;&rsquo; (Orthodox Easter),
&lsquo;&lsquo;Gstgeorge&rsquo;&rsquo; (Orthodox holiday),
and &lsquo;&lsquo;Gmarcus&rsquo;&rsquo; (Orthodox
holiday).</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;sep&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= one or more non-numeric,
non-space, non-&lsquo;*&rsquo; characters</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;month&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= a numeric month (1-12)</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;day&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= day of month (1-31)</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;year&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= a numeric year</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;text&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= the text to be displayed for
this event; if the text begins with the constant string
&lsquo;&lsquo;image:&rsquo;&rsquo;, then it is interpreted
as a specification of an Encapsulated PostScript (EPS) image
rather than as simple text; more information on specifying
EPS images is available in a later section of this
document</p>

<p style="margin-left:11%; margin-top: 1em">If the
<b>&minus;A</b> option (American date formats, the default)
is given:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;date_spec&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= &lt;month_name&gt;
&lt;day&gt; |
&lt;month&gt;&lt;sep&gt;&lt;day&gt;{&lt;sep&gt;&lt;year&gt;}</p>

<p style="margin-left:11%; margin-top: 1em">If the
<b>&minus;E</b> option (European date formats) is given:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">&lt;date_spec&gt;</p></td>
<td width="74%">
</td>
</table>

<p style="margin-left:11%;">:= &lt;day&gt;
&lt;month_name&gt; | &lt;day&gt; &lt;month&gt; |
&lt;day&gt;&lt;sep&gt;&lt;month&gt;{&lt;sep&gt;&lt;year&gt;}</p>

<p style="margin-left:11%; margin-top: 1em">The
&lsquo;&lsquo;Notes&rsquo;&rsquo; box (see below) uses the
first of the current month as the default date. All footer
strings use the first of the current month in single-month
mode and the first of the starting month in whole-year
mode.</p>

<p style="margin-left:11%; margin-top: 1em">Examples:</p>
<pre style="margin-left:11%; margin-top: 1em">     last Monday in May*         Memorial Day Holiday

     all Fridays in Oct          Status Meeting, 11 AM
     first workday in all        %-B progress report due
     all Fri in all              \fBTime card due,\fP 3 PM
     all Monday in all           Fiscal week %0W
     -2nd workday in all         Schedule for %+B due %+2D
     2nd full_moon in all        Blue Moon
     Fri on_or_before all 15     Pay Day
     even Fridays in year        Pay Day
     183rd day of year           Mid-year (%l days left)

     Tue after first Mon in Nov  Election Day (USA)

     4th Thu in Nov*             Thanksgiving
     Fri after 4th Thu in Nov*   Day after Thanksgiving
     workday nearest 12/25*      Holiday

     12/25/04*                   Christmas     # American
     25.12.04*                   Christmas     # European
     25. 12.*                    Christmas     # European

     Dec 25*                     Christmas     # American
     25 Dec*                     Christmas     # European
     25. Dec*                    Christmas     # European


     Fri on all 13               Avoid black cats!   # &rsquo;Friday the 13th&rsquo;</pre>


<p style="margin-left:11%; margin-top: 1em">Any non-numeric
character may separate numeric dates. Holidays may be
flagged by following the date immediately with
&lsquo;*&rsquo; as in the examples above; this will cause
the date numerics to be printed in the color specified by
the <b>&minus;s</b> option (default = gray) and will cause
the associated text (on monthly-format calendars) to be
placed adjacent to the numeric date in the day box rather
than below the numeric date (as is done for all non-holiday
events). &lsquo;&lsquo;Each&rsquo;&rsquo; and
&lsquo;&lsquo;every&rsquo;&rsquo; are accepted as synonyms
for &lsquo;&lsquo;all&rsquo;&rsquo;, and any word may be
used in place of &lsquo;&lsquo;in&rsquo;&rsquo;. The
abbreviations &lsquo;&lsquo;oob&rsquo;&rsquo; and
&lsquo;&lsquo;ooa&rsquo;&rsquo; may be used in place of the
keywords &lsquo;&lsquo;on_or_before&rsquo;&rsquo; and
&lsquo;&lsquo;on_or_after&rsquo;&rsquo;, respectively.
&lsquo;&lsquo;Nearest&rsquo;&rsquo; attempts to match the
specified date; if that fails, it tries the day after, then
the day before, then two days after, two days before, and so
forth until a match occurs.</p>

<p style="margin-left:11%; margin-top: 1em">Wildcard day
names are also provided. The keyword
&lsquo;&lsquo;weekday&rsquo;&rsquo; applies to any days
which are normally printed in &quot;logical black&quot; -
the predominant day color - on the calendar. The keyword
&lsquo;&lsquo;workday&rsquo;&rsquo; is the same, but does
not include any holidays. The keyword
&lsquo;&lsquo;holiday&rsquo;&rsquo; includes only those days
flagged as holidays. The keywords
&lsquo;&lsquo;nonweekday&rsquo;&rsquo;,
&lsquo;&lsquo;nonworkday&rsquo;&rsquo;, and
&lsquo;&lsquo;nonholiday&rsquo;&rsquo; are also recognized
as negations of the above. See the <b>CAVEATS</b> below for
important notes on using these keywords. Moon phases may
also appear as wildcards; &lsquo;&lsquo;nm&rsquo;&rsquo; is
accepted as a synonym for
&lsquo;&lsquo;new_moon&rsquo;&rsquo;,
&lsquo;&lsquo;1q&rsquo;&rsquo; and
&lsquo;&lsquo;fq&rsquo;&rsquo; for
&lsquo;&lsquo;first_quarter&rsquo;&rsquo;,
&lsquo;&lsquo;fm&rsquo;&rsquo; for
&lsquo;&lsquo;full_moon&rsquo;&rsquo;,
&lsquo;&lsquo;3q&rsquo;&rsquo; for
&lsquo;&lsquo;third_quarter&rsquo;&rsquo;, and
&lsquo;&lsquo;lq&rsquo;&rsquo; for
&lsquo;&lsquo;last_quarter&rsquo;&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em">Ordinal day
numbers may be used to specify dates, either relative to the
month or to the year. Either words or numeric abbreviations
may be used for &lsquo;&lsquo;first&rsquo;&rsquo; through
&lsquo;&lsquo;fifth&rsquo;&rsquo;; higher numbers must be
given using the numeric equivalent (e.g. 100th). Negative
ordinal numbers may even be used. For example,
&lsquo;&lsquo;&minus;2nd&rsquo;&rsquo; means
&lsquo;&lsquo;next to last&rsquo;&rsquo;.</p>


<p style="margin-left:11%; margin-top: 1em">&lsquo;&lsquo;Odd&rsquo;&rsquo;
and &lsquo;&lsquo;even&rsquo;&rsquo; do not refer to the
actual date; instead, &lsquo;&lsquo;odd&rsquo;&rsquo; means
&lsquo;&lsquo;alternate, starting with the
first&rsquo;&rsquo;, and &lsquo;&lsquo;even&rsquo;&rsquo;
means &lsquo;&lsquo;alternate, starting with the
second&rsquo;&rsquo;. Thus, &lsquo;&lsquo;odd Fridays in
March&rsquo;&rsquo; refers to the first, third, and (if
present) fifth Fridays in March &mdash; not to those Fridays
falling on odd dates.</p>


<p style="margin-left:11%; margin-top: 1em">&lsquo;&lsquo;All&rsquo;&rsquo;
refers to each individual month;
&lsquo;&lsquo;year&rsquo;&rsquo; refers to the year as an
entity. Thus &lsquo;&lsquo;odd Fridays in all&rsquo;&rsquo;
refers to the first, third, and fifth Friday of each month,
while &lsquo;&lsquo;odd Fridays in year&rsquo;&rsquo; refers
to the first Friday of January and every other Friday
thereafter.</p>


<p style="margin-left:11%; margin-top: 1em">&lsquo;&lsquo;Nearest&rsquo;&rsquo;,
&lsquo;&lsquo;nearest_before&rsquo;&rsquo;, and
&lsquo;&lsquo;nearest_after&rsquo;&rsquo; refer to the
nearest weekday or wildcard day with respect to the
specified date. &lsquo;&lsquo;Nearest_before&rsquo;&rsquo;
and &lsquo;&lsquo;nearest_after&rsquo;&rsquo; allow the user
to specify how <i>pcal</i> is to disambiguate between two
dates that are equally near: e.g., &lsquo;&lsquo;nonweekday
nearest_before [Wed.] 9/25/96&rsquo;&rsquo; refers to
Sunday, 9/22 while &lsquo;&lsquo;nonweekday nearest_after
9/25/96&rsquo;&rsquo; refers to Saturday, 9/28. (Note that
&lsquo;&lsquo;nearest_before&rsquo;&rsquo; and
&lsquo;&lsquo;nearest_after&rsquo;&rsquo; are equivalent to
&lsquo;&lsquo;nearest&rsquo;&rsquo; when no such ambiguity
exists: e.g., &lsquo;&lsquo;nonweekday nearest_before [Thu.]
9/26/96&rsquo;&rsquo; refers to Saturday, 9/28.)</p>

<p style="margin-left:11%; margin-top: 1em">Text in the
date file may use C-like escape sequences (i.e. a
&lsquo;\&rsquo; followed by a character, 1 &minus; 3 octal
digits, or &lsquo;x&rsquo; followed by 1 &minus; 2
hexadecimal digits). Escaped whitespace (including
<b>newline</b> ) and the standard ANSI character escapes
(&lsquo;\a&rsquo;, &lsquo;\b&rsquo;, &lsquo;\f&rsquo;,
&lsquo;\n&rsquo;, &lsquo;\r&rsquo;, &lsquo;\t&rsquo;,
&lsquo;\v&rsquo;) are all replaced by a single blank.</p>

<p style="margin-left:11%; margin-top: 1em">The HTML
special characters &lsquo;&amp;lt;&rsquo;
&lsquo;&amp;gt;&rsquo; &lsquo;&amp;quot;&rsquo;
&lsquo;&amp;amp;&rsquo; &lsquo;&amp;nbsp;&rsquo; and
&lsquo;&amp;#NNN;&rsquo; (NNN = any three decimal digits)
are also supported. These will be propagated intact (be sure
to escape the &lsquo;#&rsquo; in &lsquo;&amp;#NNN;&rsquo;)
if the output is specified as HTML (see the <b>&minus;H</b>
flag); otherwise they will be converted to their ASCII
equivalents. This allows a common date file to be used
regardless of whether the desired output format is HTML,
PostScript, or Un*x <i>calendar(1)</i> (see the
<b>&minus;c</b> flag) input.</p>

<p style="margin-left:11%; margin-top: 1em">Lines in the
configuration file consisting of <b>year ####</b> (where
<b>####</b> is a numeric year) can be used to set the year
for following entries. This assumes that the following
entries do not contain a year; any date entries containing
year information will set the remembered year to that
year.</p>

<p style="margin-left:11%; margin-top: 1em">Lines in the
configuration file consisting of <b>year all</b> (or,
alternatively, <b>year *</b>) direct <i>pcal</i> to wildcard
following entries against every applicable year. This
assumes that the following entries do not contain a year;
any date entries containing year information (or an explicit
<b>year ####</b> entry) will set the remembered year to that
year.</p>

<p style="margin-left:11%; margin-top: 1em">Lines in the
configuration file consisting of <b>opt &lt;options&gt;</b>
can be used to override the defaults for any command-line
options except <b>&minus;c</b>, <b>&minus;e</b>,
<b>&minus;f</b>, <b>&minus;h</b>, <b>&minus;H</b>,
<b>&minus;u</b>, <b>&minus;v</b>, <b>&minus;D</b>, and
<b>&minus;U</b>. Any options specified in this manner are,
in turn, overridden by those specified explicitly on the
command line.</p>

<p style="margin-left:11%; margin-top: 1em">Lines in the
configuration file consisting of <b>note{/&lt;number&gt;}
&lt;month&gt;</b> can be used to place notes regarding the
entire month in one of the unused blocks of the calendar.
The <b>&lt;month&gt;</b> indicator may be either a number 1
through 12 or an alphabetic month name as described above;
&lsquo;&lsquo;note all&rsquo;&rsquo; will place the
associated text in the notes block for each month in the
current year. <b>&lt;number&gt;</b> is an optional positive
or negative number specifying the empty box where the
associated text is to be placed. If positive, <i>pcal</i>
counts forward from the first empty box; if negative,
<i>pcal</i> counts backward from the last empty box. Thus,
<b>&lsquo;&lsquo;note/1&rsquo;&rsquo;</b> places the
associated text in the first empty box; <b>note/-3</b> in
the third-to-last. The default is -1 if no &lt;number&gt; is
given (last empty box, immediately preceding the small
calendars on the bottom row; cf. <b>&minus;S</b>,
<b>&minus;k</b>, and <b>&minus;K</b>, below). You can place
several notes in the same box. You can also use more than 1
box for the various monthly notes.</p>

<p style="margin-left:11%; margin-top: 1em">Lines in the
configuration file consisting of <b>input-language XX</b>
(where <b>XX</b> is the 2-letter specification for any of
the supported languages) can be used to set the language
used for interpretation of the month names and day-of-week
names for the remaining event entries. This option may be
specified more than once, as needed, if the language used to
describe events changes within the file. For backwards
compatibility, the default value for &lsquo;input
language&rsquo; if this directive is never used is
&rsquo;en&rsquo; (English). Note that this directive is
distinct from the specification of &rsquo;output
language&rsquo; as accomplished with the <b>&minus;a</b>
option.</p>

<p style="margin-left:11%; margin-top: 1em">Comments are
supported in the configuration file. Any characters
following a &lsquo;#&rsquo; character are ignored, through
the end of that line, unless the &lsquo;#&rsquo; character
is escaped by &lsquo;\&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Deleting
Events</b> <br>
By prepending the <i>&lsquo;delete&rsquo;</i> keyword to an
event specification, one or more events may be deleted from
a set of previously-specified events.</p>

<p style="margin-left:11%; margin-top: 1em">For example,
the following lines might appear in the date file:</p>

<p style="margin-left:22%; margin-top: 1em">all Friday in
all Poker game <br>
delete first Friday in all Poker game</p>

<p style="margin-left:11%; margin-top: 1em">This results in
an event labeled &lsquo;Poker game&rsquo; on every Friday
except the first Friday of the month. If you delete an entry
which is marked as a holiday, the &lsquo;holiday&rsquo; flag
for that day will be recalculated. Any &lsquo;delete&rsquo;
entries which don&rsquo;t match any pre-existing entries are
silently ignored.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Format
Specifiers</b> <i><br>
Pcal</i> allows format specifiers in both the event text and
footer strings (see the <b>&minus;L</b>, <b>&minus;C</b>,
<b>&minus;R</b>, and <b>&minus;N</b> options below). Each
format specifier will be replaced by a corresponding string
as outlined in the following table:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%a</p></td>
<td width="8%">


<p valign="top">abbreviated weekday</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%A</p></td>
<td width="8%">


<p valign="top">full weekday</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%b</p></td>
<td width="8%">


<p valign="top">abbreviated month name</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%B</p></td>
<td width="8%">


<p valign="top">full month name</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%d</p></td>
<td width="8%">


<p valign="top">day of month (1-31)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%j</p></td>
<td width="8%">


<p valign="top">day of year (1-366)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%l</p></td>
<td width="8%">


<p valign="top">days left in year (0-365)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%m</p></td>
<td width="8%">


<p valign="top">month (1-12)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%U</p></td>
<td width="8%">


<p valign="top">week number (0-53)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%W</p></td>
<td width="8%">


<p valign="top">week number (0-53)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%u</p></td>
<td width="8%">


<p valign="top">week number (1-54)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%w</p></td>
<td width="8%">


<p valign="top">week number (1-54)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%y</p></td>
<td width="8%">


<p valign="top">year w/o century (00-99)</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%Y</p></td>
<td width="8%">


<p valign="top">year w/century</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%%</p></td>
<td width="8%">


<p valign="top">&lsquo;%&rsquo; character</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%o</p></td>
<td width="8%">


<p valign="top">print number as ordinal</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%0</p></td>
<td width="8%">


<p valign="top">print number with leading zeroes</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%+</p></td>
<td width="8%">


<p valign="top">use following month or year</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%&minus;</p></td>
<td width="8%">


<p valign="top">use previous month or year</p></td>
<td width="8%"></td>
<td width="7%"></td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%{+N}[DWMY]</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%">


<p valign="top">adjust date by +N
days/weeks/months/years</p> </td>
<td width="51%">
</td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="8%">


<p valign="top">%{&minus;N}[DWMY]</p></td>
<td width="8%"></td>
<td width="8%"></td>
<td width="7%">


<p valign="top">adjust date by &minus;N
days/weeks/months/years</p> </td>
<td width="51%">
</td>
</table>

<p style="margin-left:11%; margin-top: 1em">Most of these
are derived from the ANSI C <tt>strftime()</tt> function,
but the <b>%[louwMD]</b> and <b>%[o0+&minus;]</b> format
specifiers are specific to <i>pcal</i>.</p>

<p style="margin-left:11%; margin-top: 1em">The <b>%u</b>
specifier considers the week containing 1/1 (Jan 1st) as
week 1 and the following logical Sunday (the first day of
the week as printed; cf. the <b>&minus;F</b> option below)
as the start of week 2; <b>%U</b> considers the first
logical Sunday as the first day of week 1. <b>%w</b> and
<b>%W</b> behave like <b>%u</b> and <b>%U</b> respectively,
but use the first logical Monday instead. Note that
<b>%w</b> has a different meaning from
<tt>strftime().</tt></p>

<p style="margin-left:11%; margin-top: 1em">The <b>%o</b>
format specifier prints a number as an ordinal, with the
appropriate suffix (&lsquo;&lsquo;st&rsquo;&rsquo;,
&lsquo;&lsquo;nd&rsquo;&rsquo;,
&lsquo;&lsquo;rd&rsquo;&rsquo;, or
&lsquo;&lsquo;th&rsquo;&rsquo; in English) appended. For
example, <b>%od</b> prints the day of the month as
&lsquo;&lsquo;1st&rsquo;&rsquo;,
&lsquo;&lsquo;2nd&rsquo;&rsquo;,
&lsquo;&lsquo;3rd&rsquo;&rsquo;, etc.</p>

<p style="margin-left:11%; margin-top: 1em">Unlike
<tt>strftime(),</tt> <i>pcal</i> defaults to printing
numbers (except <b>%y</b>) without leading zeroes. If
leading zeroes are desired, the &lsquo;0&rsquo; prefix may
be used. For example, <b>%0j</b> prints the first day of
year as &lsquo;&lsquo;001&rsquo;&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em">The <b>%+</b>
and <b>%&minus;</b> format specifiers direct <i>pcal</i> to
substitute the following/previous month/year in the
following <b>[bBmyY]</b> specifier. For example, <b>%+B</b>
prints the name of the next month.</p>

<p style="margin-left:11%; margin-top: 1em">The
<b>%{[+&minus;]N}[DWMY]</b> format specifiers do not print
anything, but instead adjust the working date by &plusmn;
<b>N</b>days (<b>D</b>), weeks (<b>W</b>), months
(<b>M</b>), or years (<b>Y</b>). Subsequent format
specifiers use the adjusted date instead of the current
date. For example, <b>%+1M %B %Y</b> adjusts the date
forward by one month and then prints the resulting month and
year (&lsquo;&lsquo;January 1992&rsquo;&rsquo; in December,
1991); <b>%&minus;2W %b %d</b> adjusts the date backward by
two weeks and prints the resulting month and day
(&lsquo;&lsquo;Jul 26&rsquo;&rsquo; on August 9).</p>

<p style="margin-left:11%; margin-top: 1em">Such date
adjustments are normally cumulative; for example,
<b>%+1Y%&minus;1D</b> adjusts the date forward by one year
and then backward by one day. If <b>%D</b> or <b>%M</b> is
specified alone (or if <b>N</b> is zero), <i>pcal</i>
restores the original date. Note that <b>%M</b> has a
different meaning to the <tt>strftime()</tt> function.</p>

<p style="margin-left:11%; margin-top: 1em">Here&rsquo;s a
common, useful example of an event entry for the <i>pcal</i>
date file which combines the ability to adjust working dates
and the ability to display ordinals. This particular example
is used to display text on the birthday of a person born in
1991:</p>

<p style="margin-left:22%; margin-top: 1em">May 10
Eric&rsquo;s %-1991Y%oY Birthday</p>

<p style="margin-left:11%; margin-top: 1em">That entry
would result in the following text being displayed on May
10, 2005:</p>

<p style="margin-left:22%; margin-top: 1em">Eric&rsquo;s
14th Birthday</p>


<p style="margin-left:11%; margin-top: 1em"><b>Encapsulated
PostScript (EPS) Images</b> <br>
For monthly PostScript calendars only, <i>pcal</i> supports
the embedding of one or more EPS images (photos, icons, etc)
into any given day of the month. (EPS image specifications
in the <i>pcal</i> date file are ignored for yearly
PostScript calendars and for all HTML calendars.)</p>

<p style="margin-left:11%; margin-top: 1em">In order to
associate an image with a given event, you must add one or
more entries to the date file. The event date is specified
exactly as described previously for simple event text
specification lines. However, instead of specifying the text
associated with the event, you instead specify the EPS image
filename and some additional parameters in the following
format:</p>

<pre style="margin-left:11%; margin-top: 1em">     image:&lt;EPS-image-filename&gt; &lt;x-scale&gt; &lt;y-scale&gt; &lt;x-delta&gt; &lt;y-delta&gt;</pre>


<p style="margin-left:11%; margin-top: 1em">Where:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="18%"></td>
<td width="31%">



<p style="margin-top: 1em" valign="top">&lt;EPS-image-filename&gt;</p> </td>
<td width="5%"></td>
<td width="46%">


<p style="margin-top: 1em" valign="top">is the filename
(which can include a path) of the Encapsulated PostScript
image. <b>Note:</b> The EPS image filename must be preceded
by the constant text &lsquo;image:&rsquo; in order to
distinguish an EPS image specification from an ordinary
event text specification.</p></td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="31%">



<p style="margin-top: 1em" valign="top">&lt;x-scale&gt;</p> </td>
<td width="5%"></td>
<td width="46%">


<p style="margin-top: 1em" valign="top">is a scaling factor
in the horizontal dimension for the EPS image. A value of
1.0 is nominal (i.e. no change to image scale). Values
between 0.0 and 1.0 shrink the image in the horizontal
dimension while values over 1.0 expand the image in the
horizontal dimension. Generally speaking, only positive
values should be used. However, in the rare case that you
find that your EPS image needs to be flipped about the
vertical axis (i.e. left to right), you can use a negative
value to achieve this without having to tweak the actual
PostScript content within the EPS image file. Use of a
negative value will undoubtedly necessitate a corresponding
change to the &lt;x-delta&gt; parameter to account for the
image&rsquo;s relocated position that occurs when it gets
flipped &quot;left-to-right&quot;.</p></td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="31%">



<p style="margin-top: 1em" valign="top">&lt;y-scale&gt;</p> </td>
<td width="5%"></td>
<td width="46%">


<p style="margin-top: 1em" valign="top">is a scaling factor
in the vertical dimension for the EPS image. Values between
0.0 and 1.0 shrink the image in the vertical dimension while
values over 1.0 expand the image in the vertical dimension.
Note that a negative value for this parameter can be useful
in the less-than-rare case that you find that your EPS image
needs to be flipped about the horizontal axis (i.e. top to
bottom). In such cases, you can use a negative
&lt;y-scale&gt; value to achieve this without having to
tweak the actual PostScript content within the EPS image
file. Use of a negative value will undoubtedly necessitate a
corresponding change to the &lt;y-delta&gt; parameter to
account for the image&rsquo;s relocated position that occurs
when it gets flipped &quot;upside down&quot;.</p></td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="31%">



<p style="margin-top: 1em" valign="top">&lt;x-delta&gt;</p> </td>
<td width="5%"></td>
<td width="46%">


<p style="margin-top: 1em" valign="top">:= a horizontal
adjustment in typographic &lsquo;points&rsquo; (i.e. 72nds
of an inch) for the positioning of the EPS image. With
offsets of 0 for X and Y, the image will be printed at the
extreme left edge of the box for that day, just under the
numerics for that day. Positive values move the image to the
right and negative values move the image to the left.</p></td>
<tr valign="top" align="left">
<td width="18%"></td>
<td width="31%">



<p style="margin-top: 1em" valign="top">&lt;y-delta&gt;</p> </td>
<td width="5%"></td>
<td width="46%">


<p style="margin-top: 1em" valign="top">:= a vertical
adjustment in typographic &lsquo;points&rsquo; (i.e. 72nds
of an inch) for the positioning of the EPS image. With
offsets of 0 for X and Y, the image will be printed at the
extreme left edge of the box for that day, just under the
numerics for that day. Positive values move the image up and
negative values move the image down.</p></td>
</table>

<p style="margin-left:11%; margin-top: 1em">Here&rsquo;s an
example of a line from the date file that associates an EPS
image with an event:</p>

<pre style="margin-left:11%; margin-top: 1em">     4th Thu in Nov*   Thanksgiving
     4th Thu in Nov*   image:/eps-path/turkey.eps 1.0 1.0 0 0</pre>


<p style="margin-left:11%; margin-top: 1em">You can place
as many images as you want on a single day of the month by
specifying repeated lines in the date file. For example,
these lines put icons of George Washington and Abraham
Lincoln on the day of the U.S.
&lsquo;&lsquo;Presidents&rsquo; Day&rsquo;&rsquo; holiday,
along with the event text:</p>

<pre style="margin-left:11%; margin-top: 1em">     3rd Monday in Feb*   Presidents&rsquo; Day
     3rd Monday in Feb*   image:/eps-path/washington.eps 0.08 0.08 8 0
     3rd Monday in Feb*   image:/eps-path/lincoln.eps 0.22 0.22 48 0</pre>


<p style="margin-left:11%; margin-top: 1em">Note that the
icon for Lincoln is shifted to the right by 48 typographic
points so as not to overlay the first icon.</p>

<p style="margin-left:11%; margin-top: 1em">The <i>pcal</i>
releases come with a single EPS sample file
(&rsquo;eps/recycle.eps&rsquo;) of the ubiquitous
&rsquo;recycle&rsquo; icon (3 green arrows in a triangular
shape). Such an image might be used with configuration file
settings like this:</p>

<pre style="margin-left:11%; margin-top: 1em">     second Sat in all RECYCLE!
     second Sat in all image:/eps-path/recycle.eps 0.039 0.039 34 -9</pre>


<p style="margin-left:11%; margin-top: 1em">In cases where
you&rsquo;re displaying non-holiday event text (e.g.
someone&rsquo;s birthday) and an EPS image, you&rsquo;ll
often need to use a negative &lsquo;Y-delta&rsquo; value on
the EPS image specification line, in order to shift the
image down so that it doesn&rsquo;t cover the event text,
which appears just below the day&rsquo;s numerics for
non-holiday events. (Text for holiday events appears higher
up, to the right of the day&rsquo;s numerics, so
there&rsquo;s usually no collision with the EPS image.)</p>

<p style="margin-left:11%; margin-top: 1em"><b>Note:</b>
Unfortunately, most EPS images cannot be used directly by
<i>pcal</i>.</p>

<p style="margin-left:22%; margin-top: 1em">Depending on
the EPS image used and how it was created, you may have to
remove or comment out some or all of the PostScript
&lsquo;translate&rsquo; commands, in order to avoid the use
of illogical X-delta and Y-delta values when specifying the
EPS image in your <i>pcal</i> date file. Most programs that
generate EPS output (either directly or via conversion from
some other graphic format) seem to have these
&lsquo;translate&rsquo; commands relatively early in the EPS
file.</p>

<p style="margin-left:22%; margin-top: 1em">It may take
some experimentation to get it just right. Preview the
<i>pcal</i> output using a PostScript viewer as you tweak
the PostScript commands in the EPS image file and/or the
event entry in the <i>pcal</i> date file.</p>

<p style="margin-left:32%; margin-top: 1em"><b>Note:</b>
Depending upon what application you use to preview
PostScript content, the monthly calendars may not show any
embedded EPS images. Here&rsquo;s a rundown of some popular
PostScript-viewing applications and whether they correctly
display the embedded EPS images:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="43%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">gv (version 3.5.8)
-- EPS images appear fine</p></td>
<tr valign="top" align="left">
<td width="43%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">ggv (versions
2.4.0.1 and 2.6.1) -- EPS images appear fine</p></td>
<tr valign="top" align="left">
<td width="43%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">older kghostview
(versions 0.13.2 [KDE 3.1.4] and 0.2.0 [KDE 3.2.3 and
3.3.2]) -- EPS images DO NOT APPEAR!</p></td>
<tr valign="top" align="left">
<td width="43%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">newer kghostview
(version 0.2.0 [KDE 3.4.2 and 3.5.4]) -- EPS images appear
fine</p> </td>
</table>

<p style="margin-left:11%; margin-top: 1em">For converting
non-EPS images (e.g. photos) to EPS format, one can use the
graphical GNU Image Manipulation Program, a.k.a. &lsquo;The
GIMP&rsquo;:</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://www.gimp.org</i></p>

<p style="margin-left:11%; margin-top: 1em">For
icons/images in WMF format (which are popular in various
3rd-party, legacy-OS, commercial calendar programs), the
&lsquo;libwmf&rsquo;/&lsquo;wmf2eps&rsquo; library/utility
is useful for generating <i>pcal</i>-capable EPS images. It
can be found at this site:</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://wvware.sourceforge.net/libwmf.html</i></p>

<p style="margin-left:11%; margin-top: 1em">For
icons/images in SVG format, the ImageMagick
&lsquo;convert&rsquo; utility is sometimes useful for
generating <i>pcal</i>-capable EPS images. This suite of
utilities (which includes other useful ImageMagick utilities
like &lsquo;display&rsquo; and &lsquo;identify&rsquo;) may
already be available on your Linux distribution. If not, it
can be found at this site:</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://www.imagemagick.org</i></p>

<p style="margin-left:11%; margin-top: 1em">For cases where
ImageMagick&rsquo;s &lsquo;convert&rsquo; utility fails to
properly convert SVG-format images to EPS format, you can
try the method of converting the SVG image into an
intermediate format (e.g. PNG) using the &lsquo;rsvg&rsquo;
utility. This utility may already be available on your Linux
distribution. If not, it can be found at this site:</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://librsvg.sourceforge.net/</i></p>

<p style="margin-left:11%; margin-top: 1em">From the PNG
format, the image can often then be successfully converted
to EPS format, using the above-mentioned ImageMagick
&lsquo;convert&rsquo; utility.</p>

<p style="margin-left:11%; margin-top: 1em">The <i>Open
Clip Art Library</i> is a good source of freely-usable
images (many of which are in SVG format) for decorating your
events:</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://www.openclipart.org</i></p>

<p style="margin-left:11%; margin-top: 1em"><b>Note:</b>
The EPS image content is not generated in the PostScript
output -- only a reference to the EPS image filename is
generated. From a practical standpoint, this means that
normally you&rsquo;ll need to print/preview the PostScript
output of <i>pcal</i> from the same computer/setup as that
which was used to run <i>pcal</i> in the first place. If you
want to generate a calendar with embedded EPS images that
will later be printed/viewed on another machine which does
not have access to those EPS images, you&rsquo;ll need to
run the output through a pre-processor which will put the
EPS image content into the PostScript output file. For
example, assuming your initial calendar output was generated
to a file named &lsquo;pcal.ps&rsquo;, on most GNU/Linux
systems you could run this command, which uses the popular
&lsquo;Ghostscript&rsquo; interpreter:</p>

<p style="margin-left:22%; margin-top: 1em">gs -r300x300
-dBATCH -dNOPAUSE -sDEVICE=pswrite -sOutputFile=out.ps
pcal.ps</p>

<p style="margin-left:11%; margin-top: 1em">This would
generate a PostScript file named &lsquo;out.ps&rsquo;, at
300x300 dpi resolution, which has the actual EPS image
content embedded within, allowing you to transport the
&lsquo;out.ps&rsquo; file to another computer for
viewing/printing. Of course, the new file is substantially
larger, but it&rsquo;s portable. Furthermore, the EPS images
will be viewable even in PostScript-viewing applications
(see above) which don&rsquo;t properly support the display
of embedded (by filename only) EPS images.</p>


<p style="margin-left:11%; margin-top: 1em"><b>Pre-Processor
Functionality</b> <i><br>
Pcal</i> supports rudimentary <i>cpp</i>-like functionality
in the date file, allowing the following constructs:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="66%">


<p style="margin-top: 1em" valign="top"><b>define |
undef</b></p> </td>
<td width="9%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="66%">


<p style="margin-top: 1em" valign="top"><b>if{{n}def} ...
{elif ...}* {else ...} endif</b></p></td>
<td width="9%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="66%">


<p style="margin-top: 1em" valign="top"><b>include</b></p></td>
<td width="9%">
</td>
</table>

<p style="margin-left:11%; margin-top: 1em">Note that these
are not preceded by &lsquo;#&rsquo; as they are in C.</p>

<p style="margin-left:11%; margin-top: 1em">Symbol names
defined using these keywords (or via the <b>-D</b> option)
are case-insensitive. It is not an error to <b>undef</b> an
undefined symbol, nor to <b>define</b> a previously-defined
one.</p>

<p style="margin-left:11%; margin-top: 1em">A symbol can be
defined with just a name (e.g. &lsquo;&lsquo;define
MY_SYM&rsquo;&rsquo;) or it can take on a value (e.g.
&lsquo;&lsquo;define MY_SYM SOME_VALUE&rsquo;&rsquo;). Use
of symbol values is convenient for defining a starting date
then using that symbol to reference that starting date in
one or more events. For example, these definitions in the
date file might be useful:</p>

<pre style="margin-left:11%; margin-top: 1em">     define semester_start 8/23   # Beginning of semester
     semester_start                 Class Start
     7th  day after semester_start  1st Quiz
     14th day after semester_start  2nd Quiz
     undef semester_start</pre>


<p style="margin-left:11%; margin-top: 1em">Be aware that
the substitution of symbol values for symbol names is not
robust, so it&rsquo;s wise to use a symbol name that&rsquo;s
unlikely to occur in any of your other event text. In other
words, if you defined the &lsquo;semester_start&rsquo;
symbol in the example above as merely &lsquo;start&rsquo;,
then you&rsquo;d get the undesired effect of having the text
&lsquo;Class 8/23&rsquo; in your calendar on that day
instead of &lsquo;Class Start&rsquo;! The use of
&lsquo;undef semester_start&rsquo; in the above example is
optional and is really only useful to prevent any unwanted
symbol substitutions later on, which probably won&rsquo;t
happen unless you poorly choose your symbol name to begin
with.</p>

<p style="margin-left:11%; margin-top: 1em">An <b>ifdef</b>
alone is always <b>false</b>; an <b>ifndef</b> alone is
always <b>true</b>. <b>if</b> is accepted as a synonym for
<b>ifdef</b>.</p>

<p style="margin-left:11%; margin-top: 1em">The name of the
file in the <b>include</b> directive may optionally be
surrounded by either &quot;&quot; or &lt;&gt;, both of which
are ignored. If the name is not an absolute path, it is
taken to be relative to the directory where the file
containing the directive is located. If the string
&quot;%y&quot; appears in the file name, it is replaced by
the last two digits of the current year or, if &quot;year
all&quot; is in effect, is expanded to all applicable years.
<i>Pcal</i> is smart enough to translate <b>~/</b> to the
user&rsquo;s home directory.</p>

<p style="margin-left:11%; margin-top: 1em"><i>Pcal</i>
normally terminates immediately if the file specified in an
<b>include</b> directive does not exist. An alternate form
of the directive, <b>include?</b>, directs <i>pcal</i> to
continue silently if the file does not exist or cannot be
opened.</p>

<p style="margin-left:11%; margin-top: 1em">In addition to
pre-processing keywords, <i>pcal</i> also accepts boolean
expressions in <b>if{{n}def}</b> and <b>elif</b> directives.
These expressions consist of symbol names joined by the
boolean operators <b>!</b>, <b>&amp;</b>, <b>^</b>, and
<b>|</b>, in order of precedence, high to low. Parentheses
may be used to alter the precedence. The synonyms
<b>&amp;&amp;</b> and <b>||</b> are accepted for
<b>&amp;</b> and <b>|</b>. A symbol name evaluates to
<b>true</b> if currently defined, <b>false</b> if not;
thus:</p>

<pre style="margin-left:11%; margin-top: 1em">     ifdef A | B | C</pre>


<p style="margin-left:11%; margin-top: 1em">...is
<b>true</b> if any of the symbols A, B, and C is defined,
and:</p>

<pre style="margin-left:11%; margin-top: 1em">     ifdef A &amp; B &amp; C</pre>


<p style="margin-left:11%; margin-top: 1em">...is
<b>true</b> if they all are. Note that <b>ifndef
&lt;expr&gt;</b> is equivalent to <b>ifdef !( &lt;expr&gt;
).</b></p>

<p style="margin-left:11%; margin-top: 1em"><b>The Moon
File</b> <br>
If a file of the name <i>.moon##</i> (<i>moon##.dat</i>
under MS-DOS), where <b>##</b> is the last two digits of the
calendar year, exists in the same directory as the date file
(or in the directory where <i>pcal</i> resides), <i>pcal</i>
uses the information contained within to calculate the phase
of the moon. If a) no such file exists, b) the
<b>&minus;e</b> flag (do not use a date file) is specified,
or c) the <b>&minus;z</b> flag (specify time zone) is
specified, then <i>pcal</i> uses an algorithm to calculate
the phase of the moon.</p>

<p style="margin-left:11%; margin-top: 1em">Entries in the
moon file must conform to the following syntax:</p>

<p style="margin-left:11%; margin-top: 1em">If the
<b>&minus;A</b> option (American date formats, the default)
is given:</p>

<pre style="margin-left:11%; margin-top: 1em">     &lt;quarter&gt; &lt;month&gt;&lt;sep&gt;&lt;day&gt; {&lt;hour&gt;&lt;sep&gt;&lt;min&gt;}</pre>


<p style="margin-left:11%; margin-top: 1em">If the
<b>&minus;E</b> option (European date formats) is given:</p>

<pre style="margin-left:11%; margin-top: 1em">     &lt;quarter&gt; &lt;day&gt;&lt;sep&gt;&lt;month&gt; {&lt;hour&gt;&lt;sep&gt;&lt;min&gt;}</pre>


<p style="margin-left:11%; margin-top: 1em">Where:</p>


<p style="margin-left:11%; margin-top: 1em">&lt;quarter&gt;
:= &lsquo;&lsquo;nm&rsquo;&rsquo;,
&lsquo;&lsquo;fq&rsquo;&rsquo; or
&lsquo;&lsquo;1q&rsquo;&rsquo;,
&lsquo;&lsquo;fm&rsquo;&rsquo;,
&lsquo;&lsquo;3q&rsquo;&rsquo; or
&lsquo;&lsquo;lq&rsquo;&rsquo; (new moon,</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="29%"></td>
<td width="8%">
</td>
<td width="8%">


<p valign="top">first quarter, full moon, last quarter)
<br>
&lt;hour&gt;</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="40%">
</td>
<tr valign="top" align="left">
<td width="29%"></td>
<td width="8%">
</td>
<td width="8%">


<p valign="top">:= number 0-23 (24-hour clock) <br>
&lt;min&gt;</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="40%">
</td>
<tr valign="top" align="left">
<td width="29%"></td>
<td width="8%">
</td>
<td width="8%">


<p valign="top">:= number 0-59</p></td>
<td width="7%"></td>
<td width="8%"></td>
<td width="40%">
</td>
</table>

<p style="margin-left:11%; margin-top: 1em">This file must
contain entries for all quarter moons in the year, in
chronological order; if any errors are encountered,
<i>pcal</i> will revert to using its default algorithm.</p>

<p style="margin-left:11%; margin-top: 1em">As in the date
file, comments start with &lsquo;#&rsquo; and run through
the end of the given line.</p>

<p style="margin-left:11%; margin-top: 1em">The moon file
may optionally contain an <b>opt &minus;A</b> or <b>opt
&minus;E</b> line to specify the format of its own date
entries independently of the format used in the date file.
No other flags are legal in the moon file.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Generating
PostScript Calendars Via A Web Browser Interface</b> <br>
PostScript-format <i>pcal</i> calendars can be generated and
viewed from a web browser interface.</p>

<p style="margin-left:22%; margin-top: 1em"><b>Note:</b>
This is not to be confused with the ability to generate
non-PostScript, HTML-format (using the <b>&minus;H</b>
command-line option) calendars, which is a different
capability entirely.</p>

<p style="margin-left:11%; margin-top: 1em"><i>Pcal</i>
comes with 4 files that provide this ability:
&lsquo;pcal.cgi&rsquo; (a Bourne shell script),
&lsquo;pcal.pl&rsquo; (a Perl equivalent of
&lsquo;pcal.cgi&rsquo;), &lsquo;pcal.html&rsquo;, and
&lsquo;pcalw.html&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em">The CGI file
(either &lsquo;pcal.cgi&rsquo; or &lsquo;pcal.pl&rsquo;)
must be edited before using it. Change the definition for
<i>&lsquo;pcal=&rsquo;</i> (Bourne shell script) or
<i>&lsquo;my $PCAL =&rsquo;</i> (Perl script) to point to
the location of the <i>pcal</i> executable file. Change the
definition for <i>&lsquo;file=&rsquo;</i> (Bourne shell
script) or <i>&lsquo;my $FILE =&rsquo;</i> (Perl script) to
point to the location of the <i>pcal</i> &lsquo;date
file&rsquo; (e.g. &lsquo;.calendar&rsquo;), which contains
the options for running <i>pcal</i>. Finally, copy the
&lsquo;pcal.cgi&rsquo; (or &lsquo;pcal.pl&rsquo;) file to
the location where your web server expects to find such
files (e.g. &lsquo;/var/www/cgi-bin/&rsquo;).</p>

<p style="margin-left:11%; margin-top: 1em">The
&lsquo;pcal.html&rsquo; and &lsquo;pcalw.html&rsquo; files
must also be edited. Each one has a line like this:</p>

<p style="margin-left:22%; margin-top: 1em">&lt;FORM
ACTION=&quot;http://yourpath/cgi-bin/pcal.cgi&quot;
METHOD=GET&gt;</p>

<p style="margin-left:11%; margin-top: 1em">That line must
be edited to point to the host and location of your CGI
script file (&lsquo;pcal.cgi&rsquo; or
&lsquo;pcal.pl&rsquo;).</p>

<p style="margin-left:11%; margin-top: 1em">Once
that&rsquo;s done, point your web browser to the
&lsquo;pcal.html&rsquo; or &lsquo;pcalw.html&rsquo; file to
generate monthly/yearly PostScript calendars for viewing
within your web browser.</p>

<p style="margin-left:22%; margin-top: 1em"><b>Note:</b>
Depending upon what application your web browser spawns to
preview PostScript content, the monthly calendars generated
via this web browser interface may not show any embedded EPS
images. For a rundown of some popular PostScript-viewing
applications and whether they correctly display the embedded
EPS images, see the section (above) entitled
&lsquo;Encapsulated PostScript (EPS) Images&rsquo;.</p>

<a name="OPTIONS"></a>
<h2>OPTIONS</h2>


<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">



<p style="margin-top: 1em" valign="top"><b>&minus;e</b></p> </td>
<td width="2%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Prints an empty
calendar. Do not print entries from a <i>.calendar</i> file
even if one exists.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">


<p style="margin-top: 1em" valign="top"><b>&minus;f</b>
<i>cal</i></p> </td>
<td width="2%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Directs <i>pcal</i>
to use the file name <i>cal</i> as the input file in place
of the default <i>.calendar</i> file. Note that the search
rules are different when <b>&minus;f</b> is used. If
<i>cal</i> is an absolute file name (i.e. starting with a
&lsquo;/&rsquo;), then <i>pcal</i> attempts to open only
that file. Otherwise, <i>pcal</i> looks for <i>cal</i> in
the current directory, then in the directory indicated by
the environment variable <b>PCAL_DIR</b> (if defined), and
finally, if enabled (via the &lsquo;SEARCH_PCAL_DIR&rsquo;
flag) when <i>pcal</i> was built, in the directory where the
<i>pcal</i> executable resides. If the given <i>cal</i> file
is not found, an error results.</p></td>
</table>

<p style="margin-left:11%;"><b>&minus;o</b> <i>file</i></p>

<p style="margin-left:22%;">Directs <i>pcal</i> to write
the output to <i>file</i> instead of to stdout.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;l</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes the output
to be in landscape mode (default).</p></td>
</table>

<p style="margin-left:22%; margin-top: 1em"><i>Pcal</i>
predefines the symbol &lsquo;ORIENTATION_LANDSCAPE&rsquo;
whenever &lsquo;landscape&rsquo; page orientation is
enabled. This can be useful for providing alternate values
in the configuration file for EPS image placement and
scaling, based on the page orientation.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;p</b></p> </td>
<td width="8%"></td>
<td width="63%">


<p style="margin-top: 1em" valign="top">Causes the output
to be in portrait mode.</p></td>
<td width="15%">
</td>
</table>

<p style="margin-left:22%; margin-top: 1em"><i>Pcal</i>
predefines the symbol &lsquo;ORIENTATION_PORTRAIT&rsquo;
whenever &lsquo;portrait&rsquo; page orientation is enabled.
This can be useful for providing alternate values in the
configuration file for EPS image placement and scaling,
based on the page orientation.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;P</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Selects the paper
size. The following sizes are supported:</p></td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="43%">


<p style="margin-top: 1em" valign="top">letter &mdash; 8.5
x 11.0 inches</p></td>
<td width="22%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="43%">


<p style="margin-top: 1em" valign="top">legal &mdash; 8.5 x
14.0 inches</p></td>
<td width="22%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="43%">


<p style="margin-top: 1em" valign="top">a4 &mdash; 210 x
297 mm</p></td>
<td width="22%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="43%">


<p style="margin-top: 1em" valign="top">tabloid &mdash;
11.0 x 17.0 inches</p></td>
<td width="22%">
</td>
</table>

<p style="margin-left:22%; margin-top: 1em"><i>Pcal</i>
predefines one of the following symbols based on the current
paper size:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="27%">



<p style="margin-top: 1em" valign="top">PAPERSIZE_LETTER</p> </td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="27%">



<p style="margin-top: 1em" valign="top">PAPERSIZE_LEGAL</p> </td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="27%">


<p style="margin-top: 1em" valign="top">PAPERSIZE_A4</p></td>
<td width="38%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="27%">



<p style="margin-top: 1em" valign="top">PAPERSIZE_TABLOID</p> </td>
<td width="38%">
</td>
</table>

<p style="margin-left:22%; margin-top: 1em">These symbol
definitions can be useful for providing alternate values in
the configuration file for EPS image placement and scaling,
based on paper size.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;j</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes the Julian
date (day of year) to be printed in each calendar box.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;J</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes the Julian
date and the number of days remaining in the year to be
printed in each calendar box.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;m</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes moon icons
to be printed on dates corresponding to new, half, and full
moons (the default is that no moons are printed).</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;M</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes moon icons
to be printed on all dates (the default is that no moons are
printed).</p> </td>
</table>

<p style="margin-left:11%;"><b>&minus;g</b>
<i>day1</i>[<i>&minus;day2</i>] <b>| all | holiday</b></p>

<p style="margin-left:22%;">Causes all dates falling on
weekday <i>day1</i> (through <i>day2</i> if specified) to be
printed in the &lsquo;day numerics color&rsquo; (i.e. the
color specified by the <b>&minus;s</b> option [default =
gray]); <b>&minus;g all</b> causes all weekdays (other than
holidays) to be printed in the &lsquo;day numerics
color&rsquo;; <b>&minus;g holiday</b> causes all holidays to
be printed in &lsquo;day numerics color&rsquo;. <i>day1</i>
and <i>day2</i> may wrap around weekends; for example,
<b>&minus;g fri&minus;sun</b> causes Fridays, Saturdays, and
Sundays to be printed in the &lsquo;day numerics
color&rsquo;.</p>

<p style="margin-left:11%;"><b>&minus;O</b>
<i>day1</i>[<i>&minus;day2</i>] <b>| all | holiday</b></p>

<p style="margin-left:22%;">Similar to <b>&minus;g</b>, but
the selected days will be printed as outlined characters,
using the &lsquo;day numerics color&rsquo;.</p>

<p style="margin-left:11%;"><b>&minus;G</b>
<i>day1</i>[<i>&minus;day2</i>] <b>| all | holiday</b></p>

<p style="margin-left:22%;">Similar to <b>&minus;g</b>, but
the selected days will be printed in the &lsquo;day numerics
color&rsquo;, outlined in black.</p>

<p style="margin-left:11%;"><b>&minus;b</b>
<i>day1</i>[<i>&minus;day2</i>] <b>| all | holiday</b></p>

<p style="margin-left:22%;">Similar to &mdash; you guessed
it &mdash; <b>&minus;g</b>, but the selected days will be
printed in black. Since black is the default for weekdays,
&minus;b is primarily used to overriding other flags (e.g.,
<b>&minus;g all &minus;b sat-sun</b> ).</p>

<p style="margin-left:11%;"><b>Note:</b></p>

<p style="margin-left:22%;">The default for the above
options is to print Saturdays, Sundays, and holidays in the
&lsquo;day numerics color&rsquo; and all other days in
black. For backward compatibility with earlier versions of
<i>pcal</i>, <b>&minus;O</b> and <b>&minus;G</b> alone
change all non-black days to the specified color.</p>

<p style="margin-left:11%;"><b>&minus;s</b>
<i>[day_numerics_color][/empty_day_box_fill_color]</i></p>

<p style="margin-left:22%;">Overrides the default value(s)
for the color of the numerics for each day and/or the color
of the fill used on boxes for &rsquo;empty&rsquo; days.
<b>Note:</b> This option only applies to PostScript-format
calendars, not to HTML-format calendars. These values may be
set independently of each other. For use with non-color
printers, these values should be in the range 0.0 (black)
through 1.0 (white). The default values are 0.8 for day
numerics and 0.9 for empty day boxes. For use with color
printers, these values may optionally be specified as a set
of <i>red</i>:<i>green</i>:<i>blue</i> (RGB) values, each of
which must in the range 0.0 through 1.0. At least one
&lsquo;:&rsquo; must be present for these values to be
recognized as RGB colors; omitted values are set to 0.0.</p>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">


<p style="margin-top: 1em" valign="top"><b>&minus;F</b>
<i>day</i></p> </td>
<td width="2%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Selects weekday
<i>day</i> as the first day of the week. The given day will
appear in the left-most column of the calendar. <i>day</i>
may be specified either as a weekday name or, optionally, as
a number in the range 0 (Sunday) through 6 (Saturday).</p></td>
</table>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;A</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Directs <i>pcal</i>
to use American date conventions ( <b>mm/dd{/yy}</b> and
<b>month dd</b> ) when parsing the date file. This is the
default.</p> </td>
</table>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;E</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Directs <i>pcal</i>
to use European date conventions ( <b>dd/mm{/yy}</b> and
<b>dd month</b> ) when parsing the date file.</p></td>
</table>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<p style="margin-left:11%;"><b>&minus;X</b>
<i>xtrans</i></p>

<p style="margin-left:22%;">Specifies the x-axis
translation value for positioning the output on the page.
Positive values shift the output to the right. Negative
values shift the output to the left.</p>

<p style="margin-left:11%;"><b>&minus;Y</b>
<i>ytrans</i></p>

<p style="margin-left:22%;">Specifies the y-axis
translation value for positioning the output on the page.
Positive values shift the output up. Negative values shift
the output down.</p>

<p style="margin-left:11%;"><b>&minus;x</b>
<i>xscale</i></p>

<p style="margin-left:22%;">Specifies the x-axis scaling
factor for the calendar size.</p>

<p style="margin-left:11%;"><b>&minus;y</b>
<i>yscale</i></p>

<p style="margin-left:22%;">Specifies the y-axis scaling
factor for the calendar size.</p>

<p style="margin-left:11%;"><b>&minus;t</b>
[<i>title_font</i>][<b>/</b><i>size</i>]</p>

<p style="margin-left:22%;">Specifies the name of a font to
use for all the calendar heading text:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="65%">


<p style="margin-top: 1em" valign="top">the month name and
year at the top of the calendar (for monthly-format
calendars) or at the top of each month (for yearly-format
calendars and for the small previous/next-month calendars
[if enabled] on monthly-format calendars)</p></td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="65%">


<p style="margin-top: 1em" valign="top">the day-of-week
names</p> </td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="65%">


<p style="margin-top: 1em" valign="top">the footer strings
(if any)</p></td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="65%">


<p style="margin-top: 1em" valign="top">the
&lsquo;&lsquo;Notes&rsquo;&rsquo; box heading (if any; for
monthly calendars only)</p></td>
</table>

<p style="margin-left:22%; margin-top: 1em">For monthly
calendars only, the user may optionally specify the font
size, which applies only to the main month/year heading. For
example, <b>pcal &minus;t Times-Roman/54</b> sets the font
to Times-Roman and the month/year point size to 54. The font
size may also be changed independently: <b>pcal &minus;t
/54</b> changes the point size to 54 without affecting the
font name.</p>

<p style="margin-left:22%; margin-top: 1em">Note: For
yearly calendars, any specification of font <i>size</i> is
ignored.</p>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<p style="margin-left:11%;"><b>&minus;d</b>
[<i>date_font</i>][<b>/</b><i>size</i>]</p>

<p style="margin-left:22%;">Similar to the <b>&minus;t</b>
option, but selects the font and/or size used for the day
numerics (the numbers inside the box for each day).</p>

<p style="margin-left:22%; margin-top: 1em">Note: For
yearly calendars, any specification of font <i>size</i> is
ignored.</p>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<p style="margin-left:11%;"><b>&minus;n</b>
[<i>text_font</i>][<b>/</b><i>size</i>]</p>

<p style="margin-left:22%;">Similar to the <b>&minus;t</b>
and <b>&minus;d</b> options, but selects the font and/or
size used for any &lsquo;event&rsquo; text associated with
each day and for any text in the monthly
&lsquo;&lsquo;Notes&rsquo;&rsquo; box.</p>

<p style="margin-left:22%; margin-top: 1em">Note: This
option applies to monthly calendars only. For yearly
calendars, this option does not apply.</p>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<p style="margin-left:11%;"><b>&minus;L</b>
<i>string</i></p>

<p style="margin-left:22%;">Causes the accompanying string
to be printed as a left-justified footer. Format specifiers
denoting the month and/or year may appear in the string; the
appropriate values will be substituted upon printing.</p>

<p style="margin-left:11%;"><b>&minus;C</b>
<i>string</i></p>

<p style="margin-left:22%;">Similar to <b>&minus;L</b>, but
causes the accompanying string to be printed as a centered
footer. If the <b>&minus;H</b> flag (generate calendar as
HTML table) was specified, this string will be used as the
title and heading.</p>

<p style="margin-left:11%;"><b>&minus;R</b>
<i>string</i></p>

<p style="margin-left:22%;">Similar to <b>&minus;L</b>, but
causes the accompanying string to be printed as a
right-justified footer.</p>

<p style="margin-left:11%;"><b>&minus;N</b>
<i>string</i></p>

<p style="margin-left:22%;">Causes the accompanying string
to be printed as the heading for the &quot;Notes&quot; box.
Note, however, that <i>pcal</i> makes no attempt to ensure
that it fits.</p>

<p style="margin-left:11%;"><b>&minus;D</b> <i>symbol
[value]</i></p>

<p style="margin-left:22%;">Defines the named symbol and an
optional value to be associated with that symbol, prior to
reading the date file.</p>

<p style="margin-left:11%;"><b>&minus;U</b>
<i>symbol</i></p>

<p style="margin-left:22%;">Un-defines the named symbol
prior to reading the date file.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">



<p style="margin-top: 1em" valign="top"><b>&minus;B</b></p> </td>
<td width="5%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to leave unused calendar day boxes blank as opposed to the
default behavior of filling them using the &lsquo;empty
day-box fill color&rsquo; (i.e. the color specified by the
<b>&minus;s</b> option [default = gray]).</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">


<p style="margin-top: 1em" valign="top"><b>&minus;#</b>
<i>n</i></p> </td>
<td width="5%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to print <i>n</i> copies (maximum: 100) of each output
page.</p> </td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">



<p style="margin-top: 1em" valign="top"><b>&minus;S</b></p> </td>
<td width="5%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to suppress printing the small calendars. See the
<b>CAVEATS</b> section for further details.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">



<p style="margin-top: 1em" valign="top"><b>&minus;k</b></p> </td>
<td width="5%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to print the small calendars in the upper left corner (the
default is to print them at the lower right).</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">



<p style="margin-top: 1em" valign="top"><b>&minus;K</b></p> </td>
<td width="5%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to print the small calendar for the previous month in the
upper left corner and the next month in the lower right (the
default is to print both at the lower right).</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">



<p style="margin-top: 1em" valign="top"><b>&minus;w</b></p> </td>
<td width="5%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to print a calendar for 12 consecutive months: 3 rows / 4
columns in landscape mode, 4 rows / 3 columns in portrait
mode. See the <b>CAVEATS</b> section for details on the use
of this option with other options.</p></td>
</table>

<p style="margin-left:22%; margin-top: 1em">Pcal predefines
the symbol <b>whole_year</b> when the <b>&minus;w</b> flag
is in effect, allowing directives like &lsquo;<b>ifdef
whole_year</b>&rsquo; in the configuration file.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;I</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Resets all
parameters to the program defaults.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;c</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to generate a date file suitable for use as input to the
Un*x <i>calendar(1)</i> utility. The normal PostScript
output is suppressed.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;H</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to generate a calendar in HTML table format. The normal
PostScript output is suppressed.</p></td>
</table>

<p style="margin-left:22%; margin-top: 1em">The HTML table
format does not support moon graphics, Julian date
information, &lsquo;day numerics&rsquo; color, &lsquo;empty
day&rsquo; &lsquo;box fill&rsquo; color, left or right
footer strings (but see the <b>&minus;C</b> flag), alternate
fonts/sizes, transformation and scaling factors, or embedded
EPS images.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;q</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">This option is only
valid when used in conjunction with the <b>&minus;H</b>
(generate HTML-format calendar) option. It generates a
yearly-planner style of HTML calendar whereby a single
column for each month is used, resulting in table that gives
a quicker overview of several months. Since there is less
space for text, only the first character of the weekday and
the first 5 characters of text from each event for that day
are printed. The day numerics for holidays are colored red
but the text of the holiday event is not printed. The day
numerics are grey for Saturdays and bold black for
Sundays.</p> </td>
</table>

<p style="margin-left:11%;"><b>&minus;z</b>
<i>time_zone</i></p>

<p style="margin-left:22%;">Forces <i>pcal</i> to ignore
the moon file and to use its internal algorithm for moon
phase calculations, adjusting the phase by <i>time_zone</i>
hours (where <i>time_zone</i> is expressed in hours west of
UTC).</p>

<p style="margin-left:22%; margin-top: 1em">For example,
New York residents (USA Eastern time zone) would use
&rsquo;-z 5&rsquo; while on Eastern Standard Time (winter)
and &rsquo;-z 4&rsquo; while on Eastern Daylight Time
(summer). People in India would use &rsquo;-z-5.5&rsquo;.
Notice that fractional values are allowed.</p>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;h</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to write version information, parameter usage message, and
full explanation of options and file formats (to
<i>stdout</i>) and terminate.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;u</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to write version information and parameter usage message (to
<i>stdout</i>) and terminate.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">



<p style="margin-top: 1em" valign="top"><b>&minus;v</b></p> </td>
<td width="8%"></td>
<td width="78%">


<p style="margin-top: 1em" valign="top">Causes <i>pcal</i>
to write version information only (to <i>stdout</i>) and
terminate.</p> </td>
</table>

<p style="margin-left:22%; margin-top: 1em">Pcal predefines
the symbol <b>vX_Y_Z</b>, where <b>X_Y_Z</b> denotes the
current version of Pcal (e.g. version 4.9.0 predefines the
symbol <b>v4_9_0</b>).</p>

<p style="margin-left:11%;"><b>&minus;a</b>
<i>output_language</i></p>

<p style="margin-left:22%;">Select the output language (for
the names of months and days on the calendar).</p>

<p style="margin-left:22%; margin-top: 1em">Currently, the
following languages are supported: <b>ca</b> (Catalan),
<b>cs</b> (Czech), <b>da</b> (Danish), <b>de</b> (German),
<b>el</b> (Greek), <b>en</b> (English), <b>eo</b>
(Esperanto), <b>es</b> (Spanish), <b>et</b> (Estonian),
<b>fi</b> (Finnish), <b>fr</b> (French), <b>ha</b>
(Hawaiian), <b>hu</b> (Hungarian), <b>it</b> (Italian),
<b>lt</b> (Lithuanian), <b>lv</b> (Latvian), <b>nl</b>
(Dutch), <b>pl</b> (Polish), <b>pt</b> (Portuguese),
<b>ro</b> (Romanian), <b>ru</b> (Russian), <b>sk</b>
(Slovak), <b>sv</b> (Swedish), and <b>uk</b> (Ukrainian).
The default is <b>en</b>.</p>

<p style="margin-left:22%; margin-top: 1em">Note that this
option does <b>not</b> specify the &lsquo;input
language&rsquo;, which is the language used to process
events in the configuration file (&rsquo;English&rsquo;, by
default, unless changed with the <i>input-language XX</i>
directive). See the section <i>The Date File</i> for more
details on specifying the &lsquo;input language&rsquo;.</p>

<p style="margin-left:22%; margin-top: 1em"><b>Note:</b> In
order to display diacritical marks, languages other than
English require that the characters be remapped. Normally,
no action is required since <i>pcal</i> automatically
selects a remapping which is appropriate to the selected
language. However, if you want to override the default
remapping for a given language, you would use the
<b>&minus;r</b> option (e.g. &quot;-r Latin1&quot;).</p>

<p style="margin-left:22%; margin-top: 1em">Furthermore, an
appropriate font should be selected as needed using the
<b>&minus;t</b> option (e.g. &quot;-t
some-latin1-font-name&quot;). Any language using the
&quot;Latin1&quot; remapping (e.g. French, German, Italian,
Spanish, etc) requires an ISO 8859-1 (&rsquo;Latin1&rsquo;)
font. The Greek language requires an ISO 8859-7 (similar to
ELOT-928) font (available from Angelo Haritsis
&lt;ah@doc.ic.ac.uk&gt;; also see
http://www.hellenic.net/fonts/). Similarly, Russian requires
a KOI8-R font while Ukrainian requires a KOI8-U font.</p>

<p style="margin-left:22%; margin-top: 1em"><i>Pcal</i>
predefines the symbol <b>lang_XX</b>, where <b>XX</b> is the
two-character abbreviation for the selected output
language.</p>

<p style="margin-left:11%;"><b>&minus;r</b>
[<i>mapping</i>]</p>

<p style="margin-left:22%;">Specifies an 8-bit character
set remapping (encoding) for printing the diacritical marks
common to European languages.</p>

<p style="margin-left:22%; margin-top: 1em">Note: This
option is not usually needed since <i>pcal</i> will
automatically select an appropriate default character
encoding (mapping) for the language for which the calendar
is being generated.</p>

<p style="margin-left:22%; margin-top: 1em">The value
specified for <i>mapping</i> is case-insensitive and may be
abbreviated to the point where it is still unique. The value
used may be any of the following:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;none&quot;
(use built-in character set)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin1&quot;
(ISO 8859-1)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin2&quot;
(ISO 8859-2)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin3&quot;
(ISO 8859-3)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin4&quot;
(ISO 8859-4)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">



<p style="margin-top: 1em" valign="top">&quot;Cyrillic&quot;
(ISO 8859-5)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Greek&quot;
(ISO 8859-7)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin5&quot;
(ISO 8859-9)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin6&quot;
(ISO 8859-10)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Thai&quot;
(ISO 8859-11)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin7&quot;
(ISO 8859-13)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin8&quot;
(ISO 8859-14)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;Latin9&quot;
(ISO 8859-15)</p></td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;KOI8-R&quot;
(Russian)</p> </td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">


<p style="margin-top: 1em" valign="top">&quot;KOI8-U&quot;
(Ukrainian)</p> </td>
<td width="11%">
</td>
<tr valign="top" align="left">
<td width="32%"></td>
<td width="2%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="1%"></td>
<td width="54%">



<p style="margin-top: 1em" valign="top">&quot;Roman8&quot;</p> </td>
<td width="11%">
</td>
</table>

<p style="margin-left:22%; margin-top: 1em">This option may
also be set semi-permanently by altering the makefile
(&lsquo;Makefile&rsquo; for most environments,
&rsquo;Makefile.DOS&rsquo; for MS-DOS).</p>

<p style="margin-left:11%;"><b>&minus;T</b> [B|I|R]</p>

<p style="margin-left:22%;">Select the default typeface
(Bold, Italic, or Roman) for printing date/note text. This
flag may be specified multiple times within the date file
(via &quot;opt&quot;) to reset the font style on the fly
&mdash; for example, to print all holidays in Bold.</p>

<p style="margin-left:11%;"><b>&minus;W</b>
[left|center|right]</p>

<p style="margin-left:22%;">Specify the horizontal
alignment of the month/year heading (left, center, right)
(for monthly-format calendars only).</p>

<p style="margin-left:11%; margin-top: 1em">Any option
taking a negative value (e.g. <b>&minus;Y &minus;###</b>)
should be specified with no space between the option and the
(negative) value to avoid <i>pcal</i> interpreting the value
as an illegal flag and aborting. For example, use &lsquo;
<i>&minus;Y&minus;50</i>&rsquo; instead of &lsquo;
<i>&minus;Y&nbsp;&minus;50</i>&rsquo; on your option
specification.</p>

<p style="margin-left:11%; margin-top: 1em">Any option
(except <b>&minus;G</b> and <b>&minus;O</b>, for
backward-compatibility) which normally takes an argument may
be specified without the argument in order to reset the
value to the program default. Note that while the
<b>&minus;D</b> option alone clears all the defined symbols,
the <b>&minus;U</b> option alone has no effect. The
<b>&minus;</b> (or <b>&minus;&minus;</b> as per System V)
argument may be used to disambiguate command lines such
as:</p>

<p style="margin-left:22%; margin-top: 1em"><b>pcal
&minus;t 9 90</b></p>

<p style="margin-left:11%; margin-top: 1em">This could be
written instead as one of the following:</p>

<p style="margin-left:22%; margin-top: 1em"><b>pcal
&minus;t &minus; 9 90 <br>
pcal &minus;t &minus;&minus; 9 90</b></p>

<p style="margin-left:11%; margin-top: 1em">If the
environment variable <b>PCAL_OPTS</b> is defined, its
contents are parsed as a command line. Flags set via
<b>PCAL_OPTS</b> override the program defaults, but are
overridden by options set via <b>opt</b> lines in the
configuration file or explicitly on the command line.</p>

<p style="margin-left:11%; margin-top: 1em"><b>Additional
Options For Debugging Only</b> <br>
The <b>&minus;Z</b> flag is used to print debugging
information which is of interest primarily to <i>pcal</i>
hackers. This flag is a &quot;hidden&quot; flag; it does not
appear as part of the usage message. At present, the
following options are supported:</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-ZD</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">print dates and text as read from date
file</p> </td>
<td width="63%">
</td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-ZF</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">print date file search paths</p></td>
<td width="63%">
</td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-ZM</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">print moon phases and identify quarters</p></td>
<td width="63%">
</td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-ZO</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">print option flags and where set</p></td>
<td width="63%">
</td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-ZP</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">print &quot;preprocessor&quot; debug
info</p> </td>
<td width="63%">
</td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-ZT</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">print dates and text as written to output
file</p> </td>
<td width="63%">
</td>
</table>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="12%">


<p style="margin-top: 1em" valign="top">-Z</p></td>
<td width="63%">
</td>
<tr valign="top" align="left">
<td width="22%"></td>
<td width="1%"></td>
<td width="2%"></td>
<td width="12%">


<p valign="top">turn off all debugging info</p></td>
<td width="63%">
</td>
</table>

<p style="margin-left:11%; margin-top: 1em">The subflags
may be combined: e.g. &quot;-ZDF&quot; is equivalent to
&quot;-ZD -ZF&quot;. All of the aforementioned debugging
information is written to stderr.</p>

<a name="CAVEATS"></a>
<h2>CAVEATS</h2>


<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="86%">


<p style="margin-top: 1em" valign="top">The
&lsquo;&lsquo;workday&rsquo;&rsquo; and
&lsquo;&lsquo;holiday&rsquo;&rsquo; keywords are aware of
only those holidays which have already been flagged at the
point where they appear. For example, consider January
1990:</p> </td>
</table>

<pre style="margin-left:11%; margin-top: 1em">                   January 1990
                S  M Tu  W Th  F  S
                   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</pre>



<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="69%">


<p style="margin-top: 1em" valign="top">&nbsp; If the
configuration file looked like this:</p></td>
<td width="20%">
</td>
</table>

<pre style="margin-left:11%; margin-top: 1em">     workday on_or_before all 15   payday
     3rd Mon in Jan*               MLK day</pre>



<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em" valign="top">&nbsp; ... then
<i>pcal</i> would mark the 15th as
&lsquo;&lsquo;payday&rsquo;&rsquo; since at that point in
the configuration file it has no way of knowing that January
15th will later be flagged as a holiday. If the two lines
were reversed, such that the holiday preceded the
&lsquo;&lsquo;workday&rsquo;&rsquo; wildcard, then
<i>pcal</i> would work as intended, marking instead the 12th
as &lsquo;&lsquo;payday&rsquo;&rsquo;.</p></td>
</table>

<p style="margin-left:14%; margin-top: 1em">Also, beware of
year boundaries which affect the handling of all of the day
wildcard keywords. In general, it is best to place monthly
wildcards such as the example above at the end of each year
to achieve the desired effect.</p>

<table width="100%" border=0 rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">


<p style="margin-top: 1em" valign="top">&bull;</p></td>
<td width="2%"></td>
<td width="86%">


<p style="margin-top: 1em" valign="top">Only the positive
ordinals may be used in conjunction with prepositions (e.g.
&quot;fourth Sunday before 12/25&quot;). (It could be argued
that &quot;last Sunday before 12/25&quot; should be accepted
as a synonym for &quot;first Sunday before 12/25&quot;, but
then what does &quot;last Sunday after 12/25&quot;
mean?)</p> </td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">


<p>&bull;</p></td>
<td width="2%"></td>
<td width="86%">


<p>When the <b>&minus;w</b> and <b>&minus;p</b> options are
used together, <i>pcal</i> revises the y-scale factor in
order to use the entire portrait page; therefore, the user
should avoid using use the <b>&minus;y</b> option when using
both the <b>&minus;w</b> and <b>&minus;p</b> options. Use of
the <b>&minus;w</b> option in any case effectively disables
the <b>&minus;m</b>, <b>&minus;M</b>, <b>&minus;j</b>, and
<b>&minus;J</b> options.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">


<p>&bull;</p></td>
<td width="2%"></td>
<td width="86%">


<p>The output of the <b>&minus;c</b> option may be used as
input to subsequent runs of <i>pcal</i>. Note, however, that
<b>opt</b> lines (except for an automatic <b>opt
&minus;[A|E]</b>), comments,
&lsquo;&lsquo;note&rsquo;&rsquo; text, and
<b>ifdef</b>&rsquo;d-out source will be lost.</p></td>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="1%">


<p>&bull;</p></td>
<td width="2%"></td>
<td width="86%">


<p>The <b>&minus;S</b> option interacts with
<b>note{/&lt;number&gt;}</b>; if used, it should be
specified either on the command line or prior to the first
<b>note</b> line in the date file.</p></td>
</table>

<a name="SEE ALSO"></a>
<h2>SEE ALSO</h2>


<p style="margin-left:11%; margin-top: 1em">Website for
<i>pcal</i> and <i>lcal</i> (a lunar calendar generation
application):</p>


<p style="margin-left:22%; margin-top: 1em">http://pcal.sourceforge.net</p>

<p style="margin-left:11%; margin-top: 1em">cal(1),
calendar(1).</p>

<p style="margin-left:11%; margin-top: 1em">The old, simple
Unix/BSD &rsquo;calendar&rsquo; program, which can be used
with <i>pcal</i> and the &rsquo;-c&rsquo; option is part of
the BSD Main Utilities (&rsquo;bsdmainutils&rsquo;) package
and is available at the Debian site:</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://packages.debian.org/stable/source/bsdmainutils</i></p>

<p style="margin-left:11%; margin-top: 1em">This old
program does not seem to be included with most GNU/Linux
distributions these days.</p>

<p style="margin-left:11%; margin-top: 1em">For more
information on PostScript, consult the free, online Adobe
book entitled <i>PostScript Language Reference Manual</i>,
which can be found here (as of Dec 2007):</p>


<p style="margin-left:22%; margin-top: 1em"><i>http://partners.adobe.com/public/developer/ps/index_specs.html</i></p>

<a name="AUTHORS"></a>
<h2>AUTHORS</h2>


<p style="margin-left:11%; margin-top: 1em">The original
PostScript code to generate the calendars was written by
Patrick Wood (Copyright &copy; 1987 by Patrick Wood of
Pipeline Associates, Inc.), and authorized for modification
and redistribution. The calendar file inclusion code was
originally written in &quot;bs(1)&quot; by Bill Vogel of
AT&amp;T. Patrick&rsquo;s original PostScript was modified
and enhanced several times by King Ables, Tim Tessin, Joe
Wood, Jeff Mogul, Mark Hanson, and others whose names have
regrettably been lost. This C version was originally created
by Ken Keirnan of Pacific Bell; additional enhancements by
Joseph P. Larson, Ed Hand, Andrew Rogers, Mark Kantrowitz,
Joe Brownlee, Andy Fyfe, Steve Grandi, Geoff Kuenning,
Stefan Fronzek (1-column HTML output), Bill Bogstad (event
deletion capability), and Bill Marr (embedded EPS images,
command-line paper size specification, new paper sizes
[legal &amp; tabloid], additional character mappings for new
languages, and various cleanups). The moon routines were
originally written by Jef Poskanzer and Craig Leres, and
were incorporated into <i>pcal</i> by Richard Dyson.
International language support was initially added by Angelo
Haritsis. Additional languages were added by Andrew Rogers
(Esperanto), Lars Wirzenius (Finnish), Pedro Zorzenon Neto
(Portuguese), Joel Fredrikson (Swedish), Volodymyr M.
Lisivka (Ukrainian), Neeme Praks (Estonian, Russian,
Latvian, Lithuanian), Peter Cernoch (Czech), Ferenc
Kruzslicz (Hungarian), Carles Sadurn&iacute; Anguita
(Catalan), Dominik &rsquo;Chiron&rsquo; Derlatka (Polish),
Ewald Beekman (Dutch), Claudiu Costin (Romanian), Kenneth
Geisshirt (Danish), Zdenko Podobny (Slovak), and Eric
Nichols (Hawaiian).</p>
<hr>
</body>
</html>