File: ChangeLog

package info (click to toggle)
xboard 4.9.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,716 kB
  • sloc: ansic: 58,265; sh: 4,672; makefile: 301; perl: 161; xml: 67; sed: 16
file content (22317 lines) | stat: -rw-r--r-- 935,583 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
ChangeLog for XBoard/WinBoard
-----------------------------

(latest entries created by git log --no-merges --pretty="%ai %an <%ae>:%n%s%n%n%b" vlast.. )

2016-07-31 20:46:54 -0700 Arun Persaud <arun@nubati.net>:
updated po/pot files

2016-07-31 20:45:22 -0700 Arun Persaud <arun@nubati.net>:
new version number for release 4.9.1

2016-07-28 19:49:02 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash when logging out from ICS

The patch that sent "logout" to the ICS on a fatal error backfired when
the 'fatal error' was a disconnect, and caused a crash on Mac. We now
suppress sending of this "logout" command in the disconnect case,
communicated in a kludgy way (by requesting exit status 6666).

2016-07-28 14:24:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Defer book faking input move until ping balance

The use of ping after editing a position had broken the book handling:
'go' would be sent in the same batch of commands as this 'ping', so that
in case of a book hit the book move selected on behalf of the engine
would be fed back to XBoard before the engine had the opportunity to
restore the ping balanceby sending 'pong'. Now the book move is fed
through ScheduleDelayedEvent(DeferredBookMove) rather than instantly,
when a MachineWhite/BlackEvent sets the engine playing.

2016-07-26 22:04:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix setting up btm positions with 'edit'

The kludge to put black on move through a2a3 only works when there is
a (normally moving) Pawn on a2. Otherwise the 'black' command has to be
used. But this did take the engine out of force mode. So now we send
another 'force' command after this 'black'.

2016-07-22 09:12:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bare King adjudication

The increase of the number of piece types to 66 gave the BlackKing code
131, wich is > 127, so that using a signed char for it makes it < 0.
This cause the black King in the adjudication code to be seen as a white
piece. When black then checkmates with 2 pieces, only 1 piece is seen
(Q), and then assumed to be a bare King! Now the piece value is passed
through an (int) to prevent this.

2016-07-17 23:53:17 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix check testing in games without King

A position without King was always considered as in check (because of
Atomic), which is rather illogical and undesirable in games where no
King participates (as it makes every move illegal).

2016-07-17 23:14:10 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix disambiguating Pawn moves in Xiangqi

When multiple Pawns can go to the same square a move written as to-square
only is interpreted as the forward push, rather than a sideway move.

2016-07-17 23:06:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix King leaving Palace in Xiangqi

The rewrite of the move generator had overlooked this.

2016-05-16 22:21:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix compile error Xaw build

The variable initialSquareSize was not defined in the Xaw build,
and now has been moved to dialogs.h (which is part of both builds).

2016-05-15 10:05:40 -0700 Arun Persaud <arun@nubati.net>:
updated po/pot files

2016-05-15 10:03:04 -0700 Arun Persaud <arun@nubati.net>:
new version number for release 4.9.0

2016-05-12 15:49:26 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Forgotten header for previous patch

2016-05-10 21:52:56 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Abbreviate DATADIR to ~~ while saving XB themes

The path name of theme files is typically quite long in XBoard, where
installed data is very deep in the file-system tree. This path is now
recognized, and replacend by its abbreviation ~~ when storing a theme
in the -themeNames option.

2016-05-10 20:46:49 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on too-long theme definitions

Long file names for texture and pieces could make theme definitions
so long as to overflow the buffers used to hold them. The buffer
size is now doubled.

2016-05-10 20:29:37 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix debris after click-click explosion near board edge

The redrawn grid was not exposed for board edges a knight's jump
away from an explosion square after a click-click capture in variant
atomic. This was due to the smartness in preventing overlapping
exposures of neighboring square, deferring the task to expose the grid
to squares that were beyond the edge. Now all squares in the explosion
range are exposed including grid.

2016-05-10 20:26:56 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix highlights clearing when highlight last move off

When moves are not highlighted, the selected piece still is. But
this highlight should be erased after the move.

2016-05-10 19:42:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix redrawing of pieces dragged off board (bug #47888)

The board was not redrawn after a piece was dragged off board,
leaving the piece 'invisibly' in its original position, and also
leaving the target squares marked.

2016-05-09 07:36:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe new Edit menu items in texi file


2016-05-09 07:08:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add Mute all Sounds menu XB

XBoard now also has a menu item to mute all sounds (except the Play
button in the Sounds dialog) at the topof the Options menu, like WinBoard.

2016-05-08 20:04:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe use of blue highlights in protocol specs

The function of 'blue' markers, and the role of the 'choice' command
in this is explained in the CECP specs.

2016-05-08 19:35:10 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix forgetting 'choice' command after promotion

The promotion restriction specified by a 'choice' command is now reset
at the start of every new move, so that future promotion moves won't
use it too. In addition,the 'choice' command is ignored when legality
testing is on.

2016-05-08 14:39:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix description of Tournament Options in texi file

Some headers were not exactly equal to the dialog texts because of typos,
frustrating the help clicks. And matchPause was not described at all.

2016-05-07 23:33:35 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix multi-leg promotions

Two-leg promotions were sent as gibberish to the engine (and thus
rejected). It was also pretty annoying that XBoard's own idea of
what should be promotions was still applied even when highlighting
denied promotions (because the zone was different than assumed, or
a promotion-on-entry rule applies). Now the legality markers from
the GUI move generator are different from the red and yellow markers
from an engine highlight command, and the latter are taken as a denial
of promotion, and will suppress it.

2016-05-07 22:10:34 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Erase markers before processing highlight FEN

Markers from the Betza generator were only half-heartedly erased when
a color-FEN camein through a highlight command, because FENs tend to
skip empty squares in stretches. This was already fixed for the legal[][]
array, but now it is fixed for the markers itself as well.

2016-05-07 12:13:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix saving of piece colors as part of theme

The wrong condition was used for deciding of whether the piece-color
settings were relevant for a theme definition.

2016-05-07 12:06:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow engine to force user to make non-standard promotion

The engine can now force an unexpected promotion on moves entered
by the user, by marking the to-square of such a move in blue.
Releasing a piece on such a blue square will then defer further
processing of the move (after having send the 'put' command to the
engine) until reception of a 'choice' command to specify what the
piece should promote to. This solves problems in Maka Dai Dai Shogi,
where a piece capturing a contageous piece would only be allowed to
promote to its normal promoted form if the to-square was marked in
purple (offering a P / +P toggle).

2016-05-06 07:42:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix saving theme

The option -trueColors is now saved with the theme settings when a
pieceImageDirectory was given in XBoard, and the piece colors are
saved when this option is off even with a piece directory. The square
colors are now also saved when useBooardTextures is on, but the textures
are transparent. For this the transparency also had to be made visible in
the WinBoard front end, (by moving the flags for it to backend.c), but
always stay at the default 0 there.

2016-05-04 15:18:34 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix deferral on sweep promotions

When a sweep in the to-square due to a highlight-induced promotion
had left the original piece as choice, the piece would be considered
to promote to itself (i.e. the move would get the promoChar for its
piece type), rather than to not promote at all. Some engines choked
on this (HaChu). Now such a move is not considered a promotion.

2016-05-01 21:41:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement -showMoveTime option

A persistent option -showMoveTime can cause the time thought so far
on the current move to be displayed in the clock field, behind the
time left on the clock, in parentheses.

2016-04-29 16:16:52 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent crash on help-click for engine without manual

The error message of "man w xxx" when no man entry for xxx exists
appears on stderr, which is not caught by popen(). As a result the
path to the man file gets set to an empty string, and saveStrCpy
is not so save that it can copy an empty string, but quits XBoard
through an ASSERT in that case.

2016-04-28 14:36:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow engine to specify holdings larger than board height

On reception of a 'setup' command we now automatically increase the
number of board ranks to the holdings size if the latter is larger,
but remember the number of added 'dead ranks'. When parsing a FEN these
ranks are blacked out, and on generating a FEN they are ignored. This
makes FENs behave like the board was not enlarged.

2016-04-28 13:24:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement two-kanji -inscriptions

When the -inscriptions option specifies a UTF8 string that starts with
the character '2', it will assume the symbols that follow have to be
drawn on the pieces in (vertically stacked) pairs of somewhat smaller
size than it would use for single-character inscriptions. An optional
'1' at the start of the string could be used as an escape to be used
when the first character we want to inscribe would be a '2'.

2016-04-27 22:22:35 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent sending empty line to engine after multi-leg move

As the pmoves are stored internally with a linefeed suffixed to them,
this linefeed was mistaken for a promotion character in the multi-leg
printing formats, and led to an extra empty line being sent to the
engine on non-promotion multi-leg moves. Now a linefeed is replaced
by a null character before sending the move.

2016-04-27 20:34:45 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix piece commands for promoted pieces

The flexible partner assignment had broken the code for 'piece'
commands defining the moves for these pieces, as the promotion
partner was still calculated the old way.

2016-04-25 18:31:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix dragged piece during promotion popup

When dragging to a promotion square, the piece would keep 'hanging'
in the release position while the promotion popup was shown.
(This usually covered it, but not always.) As after a choice is made
the move will be animated, it was more logical to put it back on the
from-square.

2016-04-24 22:34:06 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add option -pgnTimeLeft to print clocks in extended PGN info

When set a persistent option -pgnTimeLeft makes XBoard save the time
left after the move in the score/depth comments, rather than the time
thought about the move. A leading sign will allow the reader to
distinguish the two. The time is always printed in integer seconds.

2016-04-24 21:10:06 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix EOF detection in PGN parser

The result of fgetc was stored in a (char) before comparing it with EOF,
which fails badly if the char is not signed.

2016-04-24 20:53:47 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Alter piece images in Spartan Chess

The Captain of Spartain Chess is now represented by the new Tower piece,
so that the Crowned Rook pictogram can be (and is) used for the General,
for better uniformity with other variants.

2016-04-24 20:30:38 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Regularize Chu-Shogi piece assignment

The pieces in Chu Shogi have been reassigned to other internal codes,
so that juggling of images in variant cu is no longer needed. This
became possible by the flexible assignment of promotion partners.
It makes it easier to use Chu Shogi as parent variant without having
to worry about a non-stadard meaning of the -pieceToCharTable.
The built-in move generator had to be changed to work for the new
assignment.

2016-04-24 14:00:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow group specification in ArgInstall options

The option that add a line to the existing multi-line options
(e.g. -installTheme which adds to -themeNames) now can specify the
line should be added within a group, by prefixing the line with
"# GROUPNAME\n" (where \ and n separate characters). If a group of
that name already exists, the line to add  is insert immediately after
the group header line. If not, the group is created, by adding both the
group header line and the line to add, as well as an "# end" line to
terminate the group.

2016-04-24 12:30:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Save programStartTime in settings file rather than save time

The -saveDate time stamp is used to decide whether XBoard has seen
options added to the master settings file before. But it looks only
to the master settings file at stratup. So when we save settings we
now put XBoards startup time as -saveDte in it, so that installs
when XBoard was already running would still find their way into the
user settings file.

2016-04-22 11:37:58 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Also supply shortcut for start directory in GTK file chooser

The first shortcut entry in the Places list is now created for the
directory in which XBoard started (which is $CHESSDIR if that was set).
This is suppressed if it would be a user home directory, as this would
already be in the list by default.

2016-04-22 09:33:23 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix rounding when sizing 1x1 textures

When 1x1 textures were sized to the actual square size, this could lead
to bitmaps that were 1 pixel too small, presumably because of rounding.
We now add 0.99 pixel to the desired size of the texture image before
calculating the scaling factor (in floating arithmetic) that has to be
passed to the cairo scaling routine, and this seems to solve the problem.

2016-04-21 23:11:25 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Limit prefilling with color to textures with alpha channel

When loading and preparing a texture we now test the format, and if
the image has an alpha channel we stay on the save side, and always
color the squares before drawing the texture. Only when the format
is not ARGB32 we skip the color fill. (And the default textures
do not have an alpha channel, so at least there no time will be
wasted on pointless color fills.)

2016-04-21 22:47:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix confinement of Advisor in Xiangqi

Ever since the move-generator rewrite the Advisor could leave the Palace!
Now it can only move in XQ as a normal Ferz when on the board axis, and
everywhere els it can only move to the axis one square from the edge.
This does not generalize in a natural way to larger boards or larger
Palaces.

2016-04-21 22:14:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow transparency in board textures

Rather than coloring the square evenly OR rendering a board texture
cutout we now always do both. Drawing the color will then erase anything
that was on the square before, which is expected behavior, and will then
remain visible where the texture is transparent. Before any transparency
in the texture would leave the old square content (pieces, arrows,
markers) visible.

2016-04-21 19:09:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make EditTags dialog non-wrapping

As the data edited with this dialog (PGN tags, engine list, theme list,
book moves, ICS menu definition) is always tabular, wrapping the lines
is just confusing, and it is better to have an automatic hscroll in case
the lines are too long to fit.

2016-04-21 19:02:05 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make preview message in file-chooser title bar a bit clearer


2016-04-21 13:51:08 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow skipping to secondary series in -inscriptions string

A slash in the UTF8 string of the -inscriptions option now will start
the inscriptions of the pieces from the secondary series. This allows
writing -incription values that will remain valid wehen new pieces would
be added to the end of the primary series.

2016-04-21 11:44:32 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Commit forgotten prototype


2016-04-21 10:03:12 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add menu item for editing ICS text menu

An item Edit ICS Menu was added in the View menu, and will pop up
the Edit Tags dialog for editing the -icsMenu option that determines
how the ICS Text Menu will look.

2016-04-21 09:26:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add Edit Themes List menu item XB

The Edit Tags dialog is now also used for editing the -themeName list,
with a menu item in the View menu to pop it up.

2016-04-20 23:56:31 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make preview resistent to nothing being selected

The name of the selected file could be a null pointer, and ScaleOnePiece
does not like that for a pieceImageDirectory.

2016-04-20 14:44:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add option -jewelled to decide which King is a Zebra XB

A new volatile option -jewelled is added, with default value -1.
When it is set to 0 the King image will be replaced by the Zebra image,
when it is 1 the same thing will happen to the black King. This color
testing will be done before the swapping of colors ordered by -flipBlack,
so that the color rather than the side of the (possibly flipped) board
decides which King is displayed as Zebra. (While the board side determines
whether a white or black Zebra will then be used in -flibBlack mode).
Shogi themes can use this by providing a Jewelled General as Zebra (a piece
that was not used in any Shogi variant).

2016-04-20 11:51:56 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Point out preview in title of file chooser GTK


2016-04-20 11:31:35 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix sizing problem in i3wm tiling window manager GTK

Apparently i3wm creates a window of different size than the requested one
without sending a configure-event that would allow XBoard to adapt its
board size. This is now fixed by triggering a first configure-event by
hand. The first resize had to no longer be suppressed to make this work.
(This was not needed anymore anyway, as the board size is now protected
during clock resize.) The -fixedSize option had also to be fixed.

2016-04-19 20:49:03 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let file chooser show preview of textures on board

When browsing for a board texture or piece theme, selecting a file in
the browser will now cause immediate display of the board with that
texture or theme, which will revert if you cancel the choice. Or when
you accept the choice, but cancel the Board dialog.

2016-04-20 23:49:26 -0400 Joshua Pettus <jshpettus@gmail.com>:
Renamed shogi jewled pieces to zebra


2016-04-20 16:51:49 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update ru.po translation


2016-04-17 10:16:26 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Provide item-by-item description of ICS Chat in texi file


2016-04-17 10:13:38 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Provide help clicks on recently-used-engines menu items

The items for recently used engines in the Engine menu are now recognized
as such, and will look for help on "Recently Used Engines" rather than
on the item text (which is the engine name).

2016-04-17 10:05:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use missing SVG from parent if -pid name starts with sub_

If the current piece-image directory's name starts with "sub_", any
pieces not found in it will be searched in the parent directory.
This allows variants that need just a few pieces of a theme changed
to get their own sub_xxx sub-directory within the directory with SVG
images, containing the deviating SVGs. This will work recursively.

2016-04-17 09:32:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix one-click moving with engine-define and wild-card pieces

In the disambiguation routine wild-card pieces were still treated as
special even when explicit moves were defined for them. In addition,
Disambiguate would try native XBoard piece motion for resolving ambiguous
moves, which is sensible for parsing SAN (which might be saved by an old
version of XBoard), but wrecks one-click moving.

2016-04-11 20:44:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve resize/co-dragging GTK

The reconfigure event of the main board is not processed directly,
but sets a timeout to call the actual handler, which will be restarted
when new reconfigure events occur during the timeout period. This makes
that the (very timeconsuming) redrawing and moving of all windows
will only be done if the stream of events dries up.
  Unfortunately the ReSize routine called as part of the handling needs
to be interruptable, which can cause recursive calling of the reconfigure
handler. A variable 'busy' would ignore such recursion, but at the price
of missing the interrupting event completely. The attempted fix to set
a new timeout was flawed, as delayedDragTag would not have been cleared
at that point. So we threw it out. Now 'busy' is a counter, which will
remember if there were ignored recursion attempts, and then makes these
into a harmless tail recursion, to do the resize/drag once more, based
on the latest window parameters.

2016-04-10 19:42:47 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix size collapse to 0 after too-small sizing

The test for the end of the sizeDefaults list was one off, so that
a too-small size request would be rounded to a size just behind
the table, where there is an all-zero sentinel element.

2016-04-09 23:40:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Also put themes and textures in file chooser GTK

The themes and textures folders are now also directly listed amongst
the 'Places' shortcuts in the GTK file chooser.

2016-04-09 22:47:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add DATADIR as shortcut folder to file chooser

The file chooser invoked by a dialog Browse button now puts XBoard's
DATADIR amongst the shortcuts in the 'Places' list, so you can navigate
there with a single mouse click.

2016-04-09 20:12:26 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix browsing for folders, and allow starting in DATADIR

The previous path seemed to cause a segfault when browsing for a folder
with an empty text-edit. In addition there existed a bug for browsing
from the Engine Settings dialog, where the value of the option was taken
as a filter. Both are fixed now.
 The Option.textValue field, which for FileName Options holds the filter,
for PatName Options could be NULL or "". The latter is now taken to
mean that browsing should start in DATADIR, and is only used when
browsing for sound files or pieceImageDir with empty pathname field.

2016-04-09 17:29:12 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Start button-activated browse near old field contents GTK

The file chooser activated by Browse buttons for filling a File or Path
text edit started in the last directory it visited for that file type.
But for the initial browse after startup it started in the current
directory. Now it starts in the directory derived from the filaname
currently in the text edit, if there is one, and only in the last-
visited directory for the file type if the text-edit was empty.

2016-04-09 16:30:20 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Extend full-board textures by periodic tiling (XB)

Texture images with an -NxM suffix to their name are scaled to match
that number of squares before cutting squares out of them. But if the
actual board was larger than NxM the remaining squares fell outside the
image and remained white. Now the cutting area is mapped back into
the image, effectively behaving as if it is periodically tiling the
entire plane.

2016-04-07 22:14:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Mention support for Arena960 protocol with USI/UCCI checkbox WB

Normally the -uxiAdapter option would be configured to use UCI2WB,
and in the binary distribution of WinBoard it certainly will be.
As UCI2WB now supports the UCI dialect Arena uses to play Chess960,
people can use the USI/UCCI checkbox also for Chess960 engines that
use that protocol, and the checkbox label now points that out.

2016-04-07 19:34:20 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Finish castling and e.p. rights for Edit Position

In stead of faking rights based on corner positioning of Rooks and
e-file King, EditPositionDone now interprets the rightsBoard that
recorded 'promotion clicks' on King, Rooks or Pawns to toggle their
rights. This rightsBoard is initialized from the castling rights in
the position that is being edited, and the clear and piece-pallette
boards now also set these castling rights correctly.

2016-04-06 18:22:46 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe Common Engine dialog item-by-item in texi file

This had not been done yet, so that help clicks in the dialog did
not retrieve any help.

2016-04-06 16:44:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix history/eng.out font setting on sizing and other bug

The coord font was set with the historyFont value, and when a valid
font was taken from the fontTable, fontIsSet was not set.

2016-04-06 16:08:24 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Apply fonts in 'other windows' after sizing


2016-04-06 15:45:11 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Store fonts changed by font dialog in fonts table

The fonts table holds fonts per type and size that should be saved
in the settings file because they were either read from it, or explicitly
specified by the user on the command line. This now also holds for
fonts altered through the Fonts dialog, without waiting for the saving
of settings, because by that time the boardSize might already be different.

2016-04-06 14:38:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Only save fonts that are not defaults

When the font in use is a (size-adapted) default, we don't save
it in the settings file.

2016-04-06 14:25:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Conditionally replace 'other-window' fonts on sizing

Fonts not used in the main window (i.e. other than clock, coord and
message) are now also adjusted on sizing, but not when this would
mean replacing an explicitly specified font by a default one.
If we size to a boardSize for which a font was specified earlier,
we always switch to the latter, and if we were merely using the
default font for the old size we switch to the default font for
the new size rather than keeping it.

2016-04-06 14:08:49 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Reset fontIsSet when sizing causes change to default font

The array fontIsSet now tracks whether the fonts in actual use are
from a (possibly size-adapted) default, or were specified by an option
(also through a fontIsValid entry in the fontsTable) or the Fonts dialog.
For changing a font on sizing a subroutine is now used.

2016-04-06 14:08:23 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bold button fix


2016-04-06 13:03:38 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Lock board size when clock changes to two lines

First writing in the clock widget will usually increase its height
because the clock font is bigger than default. And for two-line
clocks as used with logos this will even be more pronounced. This
did cause the extra size to be taken from the board, ending up with
a smaller square size than originally requested. Which again would
cause any font changes to be saved as belonging to that smaller board
size. So starting next time with the originally requested size (as
opposed to the saved board size) would then not use those fonts!
The board size is now locked during the first write to the clocks,
or writes that change the number of lines.

2016-04-06 12:13:52 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Bold button and application of commentFont

Oops! The B button in the Fonts dialog had disappeared with the
suppression of the B(lue) button in the Board dialog! The comment
font was applied to the wrong widget in the Edit Comment dialog.

2016-04-06 11:56:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Only adjust fonts that are actually changed

OK-ing the Fonts dialog now checks which fonts have been changed,
and only applies those to the widgets that use them. In addition it
sets a flag to indicate that the changed font no longer is a default.
 A bug that did not apply the gameListFont for preview is now also
fixed.

2016-04-06 10:49:53 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Put fonts in font table in allocated memory after sizing

To make it possible to change the font later it should always be
put in allocated memory.

2016-04-06 09:38:56 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix explosion of clocks for large board size GTK

When packing things in a hbox for getting them on the same row,
the hbox was made vertically expandable when the height of the first
element was requested > 80 (assuming it would be a text memo). At
square sizes > 81 the logos would require a height > 80, though,
and would be the first element on the logo + clocks row. This would
make them expandable, so that the window height would be equally divided
between board and logos (which again would leave preciously little for
the board). Now the expandability is reserved for TextBox Options only.

2016-04-05 23:40:32 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress menubar text clipping on resize in OSX App

The menu bar is not in the window in OSX, so the menu texts should
always remain full length.

2016-04-05 22:07:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix clipping of menu texts after sizing

When tinyLayout = 0 the texts should not be clipped at all, rather
than to a single letter.

2016-04-05 21:05:11 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Enlarge background of startup message

Because of rounding of the character size the message width exceeded
the background for some square sizes.

2016-04-05 20:23:12 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Adapt clock and message font after board-window sizing

The clock and message font are now adapted to the new -boardSize value
determined after sizing of the board window. When a valid font for the
new size was already available (e.g. read from the settings file), it
uses that. If not it uses the hard-coded default font name. In both
cases a %d in the name is expanded based on the size-table indication
for that font. This makes the clock font adpat even without prior history.

2016-04-05 20:19:21 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent message text widening window GTK

Removing the size request from the label widget of the message field
made the width of this field grow with the text displayed in it, and
with it the entire board window. This could be prevented by setting
an ellipsize mode for it.

2016-04-05 18:52:32 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Pick -boardSize on window width rather than square size

For boards with other than 8 files the squares will be scaled different
from what the sizeDefaults say, so that the font and menu clipping
determined by the latter will match the total board width. We now pick
the boardSize after sizing such that popup with an 8-wide board next time
would reproduce the board width.

2016-04-05 18:40:05 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Adjust menu-text clipping to square size

After window sizing has adjusted the square size the text on the menu
bar are now clipped to a length that would make the menu bar not exceed
the width of the board, similar to what is done at startup.

2016-04-05 16:49:12 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make user-adjusted board size quasi-persistent (GTK)

After adjusting the board-window size the newly calculated square size
will be used to derive a new -boardSize for saving in the settings file,
by rounding it down to the nearest standard size. (But the size actually
used for display will not be rounded!) This will cause the board to pop
up with approximately the same size next time. The remembered initial
square size will also be adapted to the rounded value, so that the fonts
will start to apply to the new -boardSize as well on saving settings.
This will only be done if the old -boardSize value did not contain
commas (meaning it specified more than just square size).

2016-04-05 16:36:15 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Unlock width requests in board window GTK

The message field and clocks had a specified width to force them as
wide as the board irrespective of their text content. This prevented
the user to size the board window below the initial width. The size
requests are now removes after initial pop up, as they already were
for Graph widgets. This means the width of the window can now be
decreased, although we quickly run into the point where the texts
on clock or menu bar prevent further shrinking. (Which could only
be prevented by clipping the menu texts more, or decreasing the clock
font.)

2016-04-05 14:32:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Adjust window height after clock-font change

A routine LockBoardSize are added, and called to protect the board's
Graph widget from absorbing the height change pf clock and message field.
Enlarging these now forces the top-level window to expand, and after the
change we try to reduce this window size to tightly fit the board to
squeeze out empty area after shrinking.

2016-04-04 12:04:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix help clicks in Engine Settings dialogs

A previous patch had broken recognition of the .IX Item "..." lines.

2016-04-04 12:00:57 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Ignore stderr when reading from man command

BufferCommandOutput was using StartChildProcess also used for engines,
which combines the output from stdout and stderr on the pipe. On FreeBSD
"man -w" produces spurious error messages, however, which would append
to the path of the man file. To work around this we now use popen()
to collect the output of the man command during help clicks.

2016-04-04 10:53:26 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Silence Clang warnings

The assignment of the variant number to appData.variant was a real bug.
The signedness of EP_STATUS looked like one, but seemed to work in practice.

2016-04-13 14:22:35 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update nl.po Translation


2016-04-10 08:32:47 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update es.po translation


2016-04-06 17:29:37 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update de.po translation


2016-04-05 23:59:50 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update fr.po translation


2016-04-05 15:11:25 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update zh_CN.po translation


2016-04-04 13:41:23 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update uk.po translation


2016-04-03 13:55:34 -0700 Arun Persaud <arun@nubati.net>:
new developer release; updated po/pot


2016-04-03 21:25:31 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Start implementing rights control in Edit Position mode

Clicking on an already selected Rook or King will toggle its virginity,
displaying the new state in the message field.

2016-04-03 16:28:42 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix erroneous use of @itemx

The offending @itemx directives were changed to @item. This does mean
an unwanted empty line will appear above the corresponding headers.

2016-04-03 10:23:49 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Save font settings based on initial square size

Font settings were saved by the square size as it was at the time of
saving, which could have been altered compared to the reading of the
fonts from the settings file by interactive sizing of the window, or
by switching to a variant with other board dimensions. Now the initial
square size is remembered and used for this.
BEWARE: we might want to undo this when window sizing would affect font
selection, rather than just sizing the board.

2016-04-02 19:12:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let color-pickers start at current color


2016-04-01 22:01:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use GTK color picker instead of R, G, B and D buttons

By an awful hack in the generic dialog constructor ever Button Option
with the name R, G or B is now completely ignored, while Buttons with
name D will be replaced by GtkColorButtons. Instead of catching the
"clicked" signal these will respond to the "color-set" signal, invoking
a handler private to the GTK front end, which will set the color text
and colorof the reset button as the platform-independent handler of the
RGBD buttons would normally have done.
Unfortunately this had to use deprecated GTK2 stuff, as the recommended
GTK3 equivalents are not understood on Ubuntu 10.04.

2016-04-01 16:34:15 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use the official GTK font selector

A gtk_font_button is now put in the Fonts dialog to allow selection
of a general font. The individual window fonts got a button marked *
to assign this font to them. To implement the selector button some
kludgy code had to be added in the generic dialog constructor, to
recognize these Button Options by name, and use the special GTK
widget to implement them, or assign an unusual callback.

2016-04-01 11:13:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe Fonts dialog in texi file


2016-04-01 10:30:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Silence warning due to missing prototype


2016-04-01 10:28:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix translation of dialog texts GTK

When using the Option names during the creation of GTK widgets,
the gettext macro _() was not applied to them, so they remained
untranslated even though they were marked with N_() in the Option
tables.

2016-04-01 10:19:29 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Xaw for font damage

A dummy for ApplyFont is added in the Xaw front end to allow compiling it,
and the Fonts dialog refuses to pop up when it recognizes an X-font setting
for the message font, with an apology.

2016-04-01 10:08:15 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Silence warnings


2016-04-01 09:50:46 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Replace coord font control for ICS font control

In the Fonts the control to set the coord font is removed, as the Cairo
version currently ignores the -coordFont setting. Instead a control to
set the font in the ICS Console is added. As the fonts there are controlled
by tags, and would ignoe the global font setting of the widget, the font
tag is redefined through a kludgy call of AppendColorized with a NULL
string as text. This is now interpreted as a signalfor recreating the font
tag based on the current icsFont, which will then only be applied to
future messages.

2016-04-01 09:13:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let font entries show preview of their own setting

The font settings are now applied to the text entries in the Fonts dialog
that control them, at popup of the dialog as well as when changing them
through the buttons.

2016-04-01 00:46:37 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add Fonts dialog

A dialog is added to set the various window fonts, either by typing or by
operating buttons for Bold, Italic, or adjusting the point size.

2016-03-29 21:23:41 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add headers for <<, <, > and >> buttons in texi file


2016-03-29 21:20:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix help search

The help search was ignoring the last character of the searched string.
Which almost neven mattered, except when the searched string was only
1 or 2 characters, like for the buttons in the button bar.

2016-03-29 20:20:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix disambiguation for one-click moving

The test in the DisambiguateCallback to ignore duplicate moves (as
sometimes generated by Betza descriptions) was only testing for the
same from square. This is good enugh if the to-square is always given
(as in SAN), so that moves with different to-square would always be
rejected anyway. But to determine if a piece has only a single move
we disambiguate with unknown to-square. So all moves but the first
of a piece would be ignored, making it always pass the only-move test.
We now test both from- and to-square, and only ignore moves that
have both of these equal to that of an already matching move.

2016-03-29 16:33:30 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix exposing of premove highlight and move exclusion XB

Now that drawHighlights does not trigger an expose event itself, it is
essiential that DrawPosition is called after every SetPremoveHighlight()
call. But it wasn't after entering a premove, and after a drag-drop move
exclusion the old position was not redrawn at all, leaving the dragged
piece 'floating'.

2016-03-29 16:30:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix erasing of premove highlights XB

The to-square premove highlight was not marked for erasure (but
the from-square was marked twice if the to-square higlight  changed),
leading to accumulation of highlighted squares during PV walking.

2016-03-28 22:31:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe New Shuffle dialog item by item in texi file


2016-03-28 22:24:20 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix New Shuffle Game dialog

The insertion of the Fischer-castling option had broken the operation
of the 'randomize' and 'pick fixed' buttons.

2016-03-28 21:56:32 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe -epd option in texi file


2016-03-28 21:44:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe divide-by-60 option of TC dialog in texi file


2016-03-28 21:37:52 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress participation of second engine in EPD mode

Starting the second engine, and initializng it for the next game in
TwoMachineEvent() is now suppressed in EPD mode, so that the latter
even works with a non-existent second engine.

2016-03-28 09:56:38 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Also copy -sd from -fd when no second engine defined

If the second engine defaults to the first, and the first needs to
be run in a specific directory, the second engine would not start
if we do not copy its directory too.

2016-03-27 18:17:52 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Only let second engine default to first when of same type

When the first engine is UCI, making the second engine equal to the
first without setting the corresponding protocol flag, is a certain
recipe for causing trouble. So copy the flag too.

2016-03-27 17:27:30 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Change EPD reporting

The individual positions now get "time: move" printed when solved,
and "move?" or "move???" when not solved (the latter when it was an
avoid move). The total time is now reported also, at the end.

2016-03-27 13:21:52 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Clear total solving time at start of match

When multiple EPD suites are launched interactively, the time should be
calculated separately for each of them.

2016-03-27 12:59:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow a list of best moves in EPD

All characters upto a semicolon (rather than space) are now read as bestMove
string. For checking the correctness of a solution all moves in this string
are parsed and compared.

2016-03-27 12:02:01 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Internationalize EPD messages


2016-03-27 11:58:10 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Print average solving time of EPD suite

The number of good solutions and average thinking time on them are
now printed in the 2nd engine-output pane.

2016-03-27 11:22:41 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix determination of EPD solving time

Repeating an already found solution would increase the solving time
like the repetition was the first good solution.

2016-03-26 23:35:51 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add more EPD code

The -epd option now causes color assignment such that the first engine
plays all moves. Extraction of the bm field from the EPD is fixed,
and clearing of the second engine-output pane is suppressed.

2016-03-24 23:46:01 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add -analysisBell option to use move sound in analysis mode

The persistent integer option -analysisBell can be used to let the
move sound play in analysis mode for every PV that arrives after the
dely (in seconds) it specifies has elapsed since the current analysis
search started.

2016-03-24 17:25:44 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on loading variant engine after changing variant

The New Variant dialog did not store the variant name (and in fact
several other option values, such as nick names) in allocated memory,
but just by pointing to it, which made XBoard crash when the options
were parsed again (as part of an engine load), and it tried to free()
the old value.

2016-03-24 16:15:47 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix variant switch on engine load

When an engine was installed with an engine-defined variant, selecting
that engine through the Load Engine dialog did not properly switch to
the intended variant. Now doing this at the start of a game forces an
extra New Game event. This event now also remembers the name of any
unknown variant, in the hope the engine will define it.

2016-03-24 14:40:06 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe Board Options dialog in texi file

The Board Options dialog is described item by item, so that the help
clicks on it will work.

2016-03-23 22:54:27 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Reorganize texi file

For the help clicks to work universaly, it is necessary that all dialog
items are described separately, with headers exactly equal to the label
they have in the dialog. This is a first step in that direction.

2016-03-23 20:25:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow help-clicks on Label Options with linefeeds

Some of the LabelOptions in dialogs do have linefeeds. (In particular,
those in the Load Options dialog.) So we allow help clicks on them,
but add linefeed with the termination characters. Except that a leading
linefeed will be clipped off.

2016-03-23 20:16:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make sizing more robust (GTK)

On sizing we now do not immediately replace the buffer canvas, but set
a flag in the Graph Option to indicate the canvas is invalid. Instead
of taking the canvas handle from a global variable (csBoardWindow) we
now obtain it in every drawing call from a function, which first tests
if the canvas is still valid. If it is not, we replace it by one of
the size specified in the Option (which was obtained from the window
size the moment the flag was set).
 The GraphExpose requests now bypass the general GraphEventProc, by
calling the drawing of the exposed area (which was relocated to a
separate function) directly. This avoids the overhead of checking for
resizing through requesting the window geometry.

2016-03-23 11:07:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve behavior of secondary board on sizing main window

Resizing the main window now immediately orders corresponding resizing
of the secondary board window, plus an immediate redraw, rather than
waiting for a move to occur on that board.

2016-03-22 22:37:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent FICS bell character fro printing in ICS Console XB

FICS sends bell characters (ascii 7) at the start of many messages.
We now strip a leading bell off the message before appending it to
the text memo of the ICS Console, and ignore the message altogether
if it was just bell + linefeed (to prevent each move of an observed
game adding an empty line).

2016-03-22 20:59:51 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix erasing and exposing of arrow on secondary board

For the second board the damage flags set for exposing a freshly drawn
arrow are left for the next draw to erase that arrow again.

2016-03-22 15:40:28 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Remove debug printf


2016-03-22 15:38:00 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Pop up warning when engine manual is not available

Help clicks on the engine dialog pop up a warning when the manual is
not found. It seems useful to alert the user that this info has to
come from the manual of the engine' rather than XBoard's.

2016-03-22 15:10:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add -men option for changing piece moves

A volatile string option -men allows the user to change the moves of
the pieces from the command line similar to what the VariantMen tag
does from a PGN file. Using the New Variant dialog resets the option.

2016-03-22 14:56:10 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add -fen option

A volatile string option -fen can now be used to set the initial position
of the initial variant through the command line, removing the need to
prepare a position file for this. Otherwise the effect should be the same
as when using -lpf: New games will be started from the specifoed  positon
until the New Variant dialog is used. The position is 'auto-sizing', i.e.
the FEN is used to set the board geometry as well.

2016-03-22 12:04:12 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make startup announcement self-disappearing

The startup message is now configurable through an option -startupMessage,
and the master config file sets this to announce the help clicks.
The message can contain multiple lines. The display of lines that are a
sub-string of the option -messageSuppress is suppressed, however.
Using a help-click sets this latter option to the help-click announcement,
so that people who have used help clicks won't see this message anymoe.
Displaying the startup message is now only considered on board draws
that ordered a full repaint.

2016-03-22 10:36:09 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Forget piece redefinitions before loading game

The effect of a VariantMen tag in a previous game of the same file
was also applied to later games that did not have such a tag.

2016-03-22 09:41:44 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent crash on loading empty game file

The parser code is made resistant to loading a file with 0 characters in it.

2016-03-21 23:50:46 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Silence warning WB

No prototype for SendToICS was in a sufficiently shared header.

2016-03-21 23:44:29 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix replay of multi-leg move

Replaying multi-leg moves made the moving piece reappear on the
from-square during continuation legs in WinBoard.

2016-03-21 23:39:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
fix2


2016-03-21 23:37:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
fix


2016-03-21 22:30:00 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement 3-leg animation in WinBoard

Move animation in WinBoard now also pays attention to the kill2 square.
Besides a bug was fixed that made the animated piece re-appear on the
from-square during the second leg, and the victimes are made to disappear
when the animated piece passes over them.

2016-03-21 21:51:50 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Move dataDir definition to args.h so WB can also use it


2016-03-21 20:24:06 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix exposure of square highlights

The exposure of highlighted squares assumed the line gap was 1 pixel,
and thus failed for wider grid lines.

2016-03-21 13:16:46 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix built-in Lion move

The 3-leg patch had uncovered a latent bug in the built-in move generation
for Lions/Falcons/Eagles, which would qualify moves as FirstLeg even when
the kill-square was already set.

2016-03-21 12:25:02 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Repair flashing of moved piece (XB)

The flashing was not working (at least in GTK), because the redraw of
the square needed even processing to show something. So the draw/erase
loop that does the flashing needs to call DoEvents() to make things
visible. This however could lead to recursive processing of LeftClick,
as the press of a click-click move already enters the move and starts
the flashing, so that the release usually comes before the press
processing has finished. Which would cause it to be interpreted as
a second move identical to the first. A static flag inside LeftClick
now makes it ignore clicks during flashing, which is just what we had
to do with the release anyway. Flashing should be suppressed during
sweep-selection under-promotion.

2016-03-21 11:33:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Streamline XBoard board drawing

XBoard was drawing in a very inefficient way. To improve efficiency
alteration of highlights will not immediately be exposed, but be
marked as damage so that a subsequent DrawPosition call will show them.
Squares touched by a to-be-erased arrow will be treated likewise.
The drawing now has three passes: repairing damage (which erases
highlights and arrow), emptying the from-square, and drawing new
pieces and highlights.

2016-03-21 11:14:54 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve board drawing

The erasing of target-square markers could lead to flashing of the
moved piece. It was also ugly when the piece was slipped under a marker.
The actual display of the marker change on erasing can now be deferred
to a later position draw, and this is used when erasing after a drag-drop
move to do it after the move was accepted (so the piece would not be
flashed on the from-square, but still displayed without marker on it
after the drop). For click-click the erasure is shown before animation
starts. A problem with showing deselection when target-square marking
was off is now also fixed.

2016-03-17 22:13:28 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Cleanse help texts of some common TeX escape codes

The TeX escapes \s-1, \s0 around all-capital words, \*(L, \*(R for
distinguishing left/right quoting, a mysterious \& and a \ in general
(e.g. for \- as forced hyphen) occur quite often in the man-page text.
They now no longer clutter the help popups.

2016-03-17 12:04:27 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also provide help on adapter options

Adapters often add their own options to thoso of the engine in the
Engine Settings dialog. Polyglot, for instance, has many options,
their names all starting with "Polyglot ...". We adopt this as a
convention, so that XBoard can compare the adapter name (the name
of the program actually run, if that is different from the name
of the engine binary) with the start of the option name for which
help is requested. If there is a match it will conclude we are dealing
with an adapter option, and will consult the adapter manual (for an
option without the adapter-name prefix) instead of the engine manual.

2016-03-17 11:32:02 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also buffer engine man page

The path to the engine man file, and possibly its unzipped text, are now
also buffered, together with the name of the engine they are for, so that
they can be re-used when the engine has not changed.

2016-03-17 00:01:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also recognize .IX lines in man file for help clicks

Beside .B and .SS directives, which tend to mark item headers in the
XBoard manual page, ".IX item" lines are now also recognized.
Such lines are produced by pod2man for =item directives in the .pod file.

2016-03-16 14:40:33 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement XBetza iso modifier

An 'i' modifier on a continuation leg will force it to be of equal length
(measured in steps) as the latest sliding leg (i.e. of maximum length != 1)
before it. This is useful for defining rifle captures of sliding pieces.
On initial legs it still means the move is for virgin pieces only.

2016-03-15 15:15:29 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow access to gzipped man files

For *.gz man files we run gunzip to buffer the unzipped version in
memory. For engines this buffer is not saved, because the engine might
change. (A bit course...)

2016-03-15 12:36:49 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix reading of long man files

The low-level read call to read from the spawned process did not
always return as many characters as we asked for, so we now use fread.

2016-03-15 11:29:35 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Obtain name of XBoard's man file from external command

Rather than hard-coding the path to the man file, it is now obtained
by running "man -w xboard".

2016-03-15 11:08:04 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add routine to run daughter process and collect its output

The routine BufferOutputCommand can run an arbitrary command in a
separate process, and collects its output in a buffer of the requested
size. It will kill the process when it doesn't terminate spontaneously,
and return the allocated buffer.

2016-03-22 20:56:08 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update es.po translation


2016-03-19 00:03:20 -0400 Joshua Pettus <jshpettus@gmail.com>:
Mark the gtk browse button for translation


2016-03-18 16:45:16 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update nl.po translation


2016-03-16 20:58:07 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update fr.po translation


2016-03-16 20:56:42 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update de.po translation


2016-03-15 23:00:17 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update zh_CN.po translation


2016-03-15 22:54:36 -0400 Joshua Pettus <jshpettus@gmail.com>:
Update uk.po translation


2016-03-14 19:36:44 -0700 Arun Persaud <arun@nubati.net>:
configure.ac: add pangocairo to list of needed libraries


2016-03-14 15:18:18 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Display message on the board at startup

Drawing the board in the first second of running will display a short
message on top of it, to alert the user to the help-click possibility.

2016-03-14 15:07:08 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix expansion of ~~ in OSX App

The ~~ expansion was still using the configured DATADIR rather than
the dynamic one.

2016-03-14 13:59:02 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Print dynamic Datadir/Mandir on --show-config

Instead of printing the directories from the congigure process,
we print those actually in force, so that the info is valid in the
OSX App (which changes it) too.

2016-03-13 23:25:11 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use dataDir/manDir variables always

The DATADIR and MANDIR string constants obtained from the configure
process are now stored in variables, which are then used everywhere
instead of them. The OSX App overwrites these variables, so the
directory location can be made dynamic.

2016-03-13 10:34:08 -0700 Arun Persaud <arun@nubati.net>:
new developer release; updated po/pot


2016-03-13 10:51:49 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Uncomment line commentized for debugging purposes

The call attaching help clicks to Label Options was still commented out.

2016-03-13 09:21:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix popdown of Error/Help dialog through window-close button

Closing an Error popup that was a daughter of another dialog (as Help
dialogs would often be) through the window-close button instead of 'OK'
would permanently block popdown of the parent dialog, because the info
that the Error dialog was still up would not have been reset by the Error
dialog's OK function. GenericPopDown now calls the OK function of such
a dialog (actually FatalDlg) even on a REJECT response.

2016-03-12 23:32:00 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make help clicks resistent to NULL-pointer Label names

This should be needed, but just in case...

2016-03-12 23:30:20 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Silence two warnings


2016-03-12 16:51:44 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make help clicks also work for UCI engines

The help clicks were using the engine command to find the manual,
but this would not work for engines with parameters or using adapters.
Now it used the -fcp/scp arguments, and tidies these to stripp off
directory path and arguments. (cps->tidy could not be used, because
it is overwritten by the name reported by the engine itself, which
usually contains version numbers not in the manual name.)

2016-03-12 16:41:38 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make location of man file dynamic for OSX

MANDIR is redefined in the case of an OSX App to be a variable, in a
similar way as DATADIR, so it can be determined at startup, and the App
can be 'portable'. The way to concatenate it with the rest of the file
name hd to be made variable-proof.

2016-03-12 14:33:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress empty label at top of Edit Tags dialog

There is a Label Option above the text memo of the Edit Tags dialog
that can display a message, but it is only used in cmail mode, and
is passed as a NULL pointer otherwise. (On which GenericPopup then
crashed when it wanted to attach a help click.) Now we simply suppress
display of that widget when there is no message.

2016-03-11 23:43:48 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also try to get help for engine options

Help clicks in the Engine Settings dialogs will try to scan the man page
of the corresponding engine for info about the option. This is a bit
tricky, as it must assume the name of the engine is the same as that
of the engine command and the manual for it is in section 6. In addition
it must look in both /usr/share/man and /usr/local/share/man, as it cannot
know whether the engine was installed from source or repo. Finally it
must hope the man page isn't gzipped.

2016-03-11 16:59:41 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix recognition of .SS lines in manual

The logic for recognizing .SS headers was reversed, and .SS lines were
also not tested for to decide whether display should end.

2016-03-11 16:54:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let configure supply path to manual file

A new macro MANDIR is passed fro the configure process to the compiler
in a -D option to inform XBoard where to find its manual page.

2016-03-11 15:54:45 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix segfault on single-line help text

The help text itself is displayed in the ErrorPopUp as a label,
and allowing help clicks on a label would apparently trigger some
nfinite recursion of event handlers. Making labels in the ErrorDlg
not sensitive to help clicks solved this.

2016-03-11 15:19:13 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Mention item in title bar of help dialog


2016-03-11 15:02:21 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make dialog labels and comboboxes also accept help clicks

Combobaoxes and bare labels had their own code for creating the label,
nd were not yet made sensitive to help clicks. (Which is a bit cumbersome,
as GTK does not allow attaching callbacks to label widgets, so that you
have to wrap them first into something that does.) The bare labels could
furthermore already have a callback specified (used for the clocks);
in this case, and the case of multi-line labels, no help handler is
attached.

2016-03-11 14:25:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Do not save ICS password in command history

Blanking out the password while typing it would have little effect if
the arrow keys could recall is. So we don't save any lines in the
history when echo is off.

2016-03-11 13:46:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix file-type combobox of Xaw file-selector dialog

The list of combobox labels got out of phase with the list of values
after 'Images', because the value for the latter was missing.

2016-03-10 16:28:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow hyphen in name of help item

Some dialog items have names with hyphens in them, such as 'Auto-save',
and these would all be confusedif the true name was taken to end before
the hyphen.

2016-03-10 13:03:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress echo of password in ICS Chat window (GTK)

The GTK version uses the set_visibility GTK call to switch echoing
of the ICS input widget. In Xaw this is a dummy. EchoOn/Off had to
be moved to dialogs.c for this.

2016-03-10 10:41:07 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix popdown of menus on help click

Because menus by default also react to button3 clicks, using those
clicks for help popup needs to suppress the default action. But this
action was also reponsible for the popdown of the menu, so that it
stayed up, covering the help dialog. Now we do allow the default action,
but flag to the generic menu handler that it should not execute the
menu function.

2016-03-09 23:15:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement rough help popup

A routine is added that searches a given text header in the man file,
and then displays the following text until the next header (after
skipping additional headers that come before any text) in a message
box. The text uses a simple fill and wrap to line length > 80, and
ignores all control characters, except empty lines. Both .B and .SS
directives are recognized as headers.

2016-03-09 17:47:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement help clicks

A button3 click on the text labels of text-edit, spin, checkbox and
button controls, as well as menu items, now pops up an alert box
with the name of the clicked item. This as a first step to making an
interactive help that would use that name to look up information on the
item in the texi file, and display that.

2016-03-09 10:53:35 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Logout from ICS after fatal error

Exiting of XBoard after a fatal error such as crashing of the engine
could be delayed by popping up an exit message, which then had to be
confirmed first. This would leave XBoard in zippy mode open for new
challenges, which it would even accept, and lose by forfeit. Now
we send a 'logout' command to the ICS before popping up the exit
message.

2016-03-09 09:44:45 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Deprecate -defaultPathEGTB option

The value of the -defaultPathEGTB option is now automatically cleared
at startup, after appending it as "nalimov:" format to -egtFormats.
We also no longer preconfigure a (dummy) value for -defaultPathEGTB,
but instead one for -egtFormats, (which will show up in the EGT path
field of the Common Engine Settings dialog now -defaultPathEGTB is
empty) to serve as an example for the syntax of -egtFormats.

2016-03-08 23:26:57 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make EOF error conditionally non-fatal (XB)

When the ICS Chat window is open, an EOF fromkeyboard is ignored.

2016-03-08 23:26:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix braces problem in texi file


2016-03-08 21:55:13 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe ICS Text Menu in texi file


2016-03-08 20:41:41 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix WinBoard compile errors


2016-03-08 20:36:56 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix dressed-letter IDs in VariantMen PGN Tag

Due to sign extension the ID suffxes would never be printed.

2016-03-08 20:11:37 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make texi file sub-section free

Because the sub-sections did not work, all subsections (which occurred
mainly in the Options Menu section, to describe the various menu dialogs)
are now upgraded to sections.

2016-03-08 19:20:06 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe choice command in protocol specs


2016-03-08 19:14:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve highlight-arrow pointing and fix its erasure

The code to calculate whether the arrow shoud endnear an edge or corner
of the to-square was buggy, leading to orientation-dependent decisions.
In addition the damage trace wasnot exactly following the arrow, so that
sometimes parts of the arrow were not displayed or erased.

2016-03-08 17:20:21 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve triple-leg-move animation

When both locust squares (kill and kill2) are set, animation now takes
place in three stages. As kill2 is not retreived when stepping through
the game history, this works only for moves just entered or played by
the engine. Replayed moves are still animated in 2 stages, though, which
does look pretty good on 2-out-1-in moves.

2016-03-08 11:51:29 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement triple capture

Moves can now have two locust squares (and promote even when they are
locust captures). This applies to move entry (but only through click-
click; buttonless dragging does not yet work), as well as sending or
receiving from engine, and generating and parsing SAN.

2016-03-07 16:16:17 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow use of context menu in text memos GTK

Attaching a user handler for button3 events to text memos would suppress
the normal context menu, so you could copy/paste in those  only through
the keyboard. Now a button3 event while there is a non-empty selection,
or through a click behind all text, will pop up the normal context menu.

2016-03-07 13:46:50 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Show moves in Edit Book window as SAN

The opening moves in the GUI book for the current position shown in the
Edit Book window are converted to SAN before showing them, when they have
the simple form fromSqr toSqr promoChar. (This excludes drop moves and
double moves.)

2016-03-07 12:26:07 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Cleanup Edit Tags/Book/EngineList a bit

The Tags dialog is also used for two other functions, and this hack
causes some problems. This patch ameliorates these a bit. The Edit
Engine List now displays its own title (instead of "Tags"), and popping
it up pops down which other function was in use first. (Unfortunately
this can result in data loss for uncommitted changes.) The name of the
"save changes" button has been changed to "commit changes", to suggest
less strongly that a change in the Engine List would be immediately
saved to file (which in reality requires Save Settings Now as well).

2016-03-07 11:50:21 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make OK and Cancel buttons appear in top-level dialogs GTK

The OK and Cancel buttons are created in GTK as part of the
dialog_with_buttons call, but to get top-level windows another call
had to be used, which does not automatically provide them.
We now explicitly add the buttons as requested by the EndMark Option,
paying attention to the SAME_ROW requests. (The code for that is currently
a bit messy, as one suspects that the cumbersome testing on Option.type
was done exactly to make the SAME_ROW request of EndMarks ignored.)
The GTK "clicked" signal is translated to a "response" in a kludgy way,
through a PopDownProxy routine.

2016-03-06 23:52:06 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix spurious clearing of Engine Output during PV walk

Due to messing with forwardMostMove during PV walking the Engine Output
panes couldbe cleared when a new PV arrived.

2016-03-06 23:45:54 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent out-of-turn grabbing of piece in analysis mode

In Analyze modeit was possible to grab pieces for dragging of the side
that did not have the move.

2016-03-05 22:59:14 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix parent dialog of Error Popup

If the parent dialog of the Error Popup is wrong, the OK button in it
will not manage to pop it down. Migrating the Tourney Options to their
own DialogClass had changed testing for a parent other than the board
window from TransientDlg to MasterDlg, but Toerney Options was not the
only such dialog throwing up errors. (E.g. New Variant coulddo it too.)
So we now test if MasterDlg or TransientDlg is up, and use those as
parent if they are.

2016-03-05 22:42:33 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Beef up variant detection in New Variant dialog WB

In WinBoard the enabling of radio buttons was still done when the
variant nameon the button was a sub-string of the variants feature,
without requiring a match of the full name (so that 'grande-acedrex'
would enable the 'grand' button of Grand Chess).

2016-03-05 22:33:07 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash in New Variant dialog Xaw

The earlier patch to beef up variant recognition couldnot handle it
that some buttons has -1 as variant value.

2016-03-05 09:02:11 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Remove warning from About box against GTK build

It was still mentioned that the GTK build is unstable.

2016-03-03 11:11:07 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress underscores in Xaw menus

The underscores that indicate shortcut keys in GTK menu items were
showing up in the Xaw menus. Now we remove them when creating the menu
button.

2016-03-03 10:40:17 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix another Xaw compile error

This is what you get when changing code without testing if it at least
compiles...

2016-03-02 23:42:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Silence warning

Conversion to use of strncpy had led to the length of a (char*) being
tested, and atypically we got away with that so far because the copied
string was only 2 characters long. Now we use length limit 4, which also
renders the use of strncpy instead of strcpy useless, but at least
does notproduce a warning.

2016-03-02 23:39:37 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix recognition of title in small layout

The title handle was set based on invalidation of Options by making
their type -1, while this nowadays is done by setting them to Skip
(as enum types are unsigned).

2016-03-02 23:27:59 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix compile error in SetComboChoice Xaw


2016-03-02 15:18:58 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on changing piece directory

The loop for deleting the old pieces in ActivateTheme was still assuming
the four promo-Golds were stored behind the normal set, which for the
new piece ordering isn't the case anymore.

2016-03-02 11:14:36 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix black border around saved diagrams (WB)

The 'Save as Diagram' function of WinBoard produced bitmaps with a black
border, because the buffer bitmap used for drawing the board (which was
flushed to file to create the diagram) had a size larger than the board,
including somemargins of the main window. Now we copy it to a board-sized
bitmap first, and flush that.

2016-03-01 21:09:49 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Preserve flip on pasting game when auto-flipView is off

Normally starting a new game would restore the orientation as given by
the -flipView option on the command line, which might flip the view even
when -autoFlipView is off. A new game started through Paste Game now
always preserves the current orientation when -autoFlipView is off.

2016-03-01 20:39:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe engine grouping in texi file

The paragraph on the Edit Engine List menu item now contains a description
of the method for organizing engines in groups by adding "# GROUP" and
"# end" lines.

2016-03-01 10:35:11 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add 'divide by 60' checkbox in Time Control dialog XB

The TC could not be set to fractional minutes (base time) or seconds
(increment) in the GTK version, as the spin controls there do not allow
you to type such numbers. An added checkbox 'Divide entered times by 60'
allows you to enter base time in seconds, and increment in 1/60 sec.
The dialog always pops upwith this checkbox unticked.

2016-03-05 16:30:45 -0800 Arun Persaud <arun@nubati.net>:
updated copyright for 2016


2016-03-05 13:03:04 -0800 Arun Persaud <arun@nubati.net>:
fixed configure script: GTK default was enabled even with --with-Xaw


2015-10-26 23:08:31 -0700 Arun Persaud <arun@nubati.net>:
update Russian translation


2016-02-29 22:54:44 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Print score with same sign in message and engine output

There are two options that affect the score POV (always or analysis only),
but they were only working on the score in the Engine Output window, and
not in the message field of the board window. Now they work for both.

2016-02-29 22:24:31 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bugs in previous 3 commits

The commits before this were pushed a bit prematurely, inspired by
the wish tosee if I could push from my new laptop.

2016-02-29 14:24:11 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add configure-options section to texi file

The options data, saveDate, addMasterOption, installEngine, installTheme
and autoClose are now described in the manual.

2016-02-29 13:15:47 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Update texi file


2016-02-29 12:53:57 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add -installTheme option

A new option of type ArgInstall is added, which will add its argument
to the -themeNames list (under the usual restriction it is not already
in there, and that it was not seen before). By appending such a (time-
stamped) option to the master settings file with -addMasterOption,
newly installed themes can be made to trickle their way into the user's
private settings file. All the theme package has to is call XBoard with
the applicable -addMasterOption "-installTheme ...." arguments in its
install script, and copy any associated files to XBoard's datadir.

2016-02-28 12:01:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix disappearance of premoved piece

When a premove was done by dragging, (which for expected recaptures would
be the only way, as click-click moving selects the intended target),
the moved piece would disappear from view. This because the from-square
would not be redrawn (in normal move execution it would remain empty).
This could have been an XBoard-only problem. In any case We now force a
complete redraw of the board, which is not very elegant, but should always
fix it.

2016-02-28 11:34:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bug #43792 (no highlights after rejection of premove)

If the sending of a premove fails to add a move to the game, because
XBoard itself judges the move illegal (which could only be determined
after arrival of the opponent move, not when it was entered), XBoard
now re-applies the move highlights for that opponent move.
 This does not solve the problem yet with legality testing off,
when it later turns out the ICS rejects the move.

2016-02-27 21:59:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bug #45599 (inclusion of keysym.h in Xaw)


2016-02-27 20:50:27 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bug #45773 (needless #inclusion of cairo-xlib.h)

As this header no longer exists this was causing a compilation error.
In the GTK version they are of course never needed, and the draw.c
that is also part of an Xaw build also does not call any function to
draw on an Xaw surface directly.

2016-02-27 20:45:01 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bug #45775 (Infinite loop on nonexistent texture file)


2016-02-27 20:37:09 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bug #45774 (GTK compile bug with ENABLE_NLS)

The declaration of an XFontSet function was not protected by

2016-02-27 17:06:33 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Move Common Engine dialog to Engine menu (WB)

The item is renamed to "Common Settings", whith shortut 'C'.
The "Edit Engine List" item is also assigned a shortcut ('E').

2016-02-26 23:35:39 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use mouse wheel for selecting piece in Edit Position mode (XB)

Rather than calling ForwardEvent() and BackwardEvent() directly from the
mouse-wheel handler, we now call a backend routine Wheel(), which gets
the pointer coordinates passed to it (which we must remember during
mouse move events). This then calls the Forward/Backward event, except
in EditPosition mode, where it changes the piece in the square below the
pointer.

2016-02-17 20:55:36 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow promotion choice in engine-defined variants

When variant shatranj, courier or makruk, which normally do not have
promotion choice, are used as parent for an engine-defined variant,
we now invoke the piece-selection routine. This to make these variants
also suitable as parent for variants that do have choice (e.g. to give
them the baring rule, which is unique for Shatranj).

2016-02-17 12:47:45 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix erasing of arrow highlight (XB)

On large board with long-range oblique moves (like in Grande Acedrex)
the head of the arrow was not always erased (and not always drawn either).
This was partly due to the arrow pointing to a corner of the target square
even if the path was nearly orthogonal, while the damage trail is always
assumed to connect the square centers. Having the arrow point more
precisely and widening the damage trail a bit solved the problem.

2016-02-09 10:59:31 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow promotion on two-leg move

After a second-leg of a SAN move the parser now checks for apromotion
suffix, and if any is found this is used by ParseOneMove / LoadGameOneMove
to set the promoChar. In converting to SAN for the parseList the promoChar
is now appended to the second leg, rather than the first, and the Edit Book
window will also show it. The promochar is written behind the kill square
in the moveList, and when sending the move there to the engine it is
appended to the second move of the multi-move pair.

2016-02-09 10:25:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix type-in of hit-and-run captures

Processing of the move in ParseOneMove (which basically duplicates
the code of LoadGameOneMove) was not yet adapted to ignore ';' as a
promotion character when it is internally used to append 'kill squares'
where locust capture should take place..

2016-02-09 09:53:44 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow setting of piece nicknames from pieceToChar string

A piece IDs in the pieceToChar string can now be suffixed by "=L",
with L an arbitrary single letter, to define a nickname for the piece.
Such a nickname would make it possible to specify a complex ID like +I'
as promotion choice, and by indicating this in the pieceToChar string
the engine can configure that through the 'setup' command. This facility
is needed to force promotion after capture of a contageous piece in
variants with Shogi promotion, such as Maka Dai Dai Shogi.

2016-02-09 09:31:11 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Slight speedup of parsing promotion suffix


2016-02-08 13:21:20 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix printing of 'x' in position diagram

The times where 'x' was used as PieceToChar result for an empty square
are long behind us; 'x' now is a valid piece ID.

2016-02-07 22:48:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve variant recognition for enabling buttons (XB)

Buttons for variants were enabled when the name of the variant they
selected was a sub-string of waht the engine could play, so that
Grand Chess (variant grand) would be enabled by Fairy-Max' grande-acedrex.
Now we test if the matched sub-string of the engine's variants feature
is immediately followed by a comma (or at the end).

2016-02-06 18:18:29 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix using VariantMen PGN tag for both colors

Black pieces were not recognized as the same as white pieces.

2016-02-06 16:19:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Always assume FEN in variant-fairy PGN game is initial position

As variant fairy is a catch-all without a defined initial position,
the FEN tag n a PGN game for this variant must be considered an initial
position. So we copy over the FEN position to the initial one in this
case. Otherwise castling would always be thought illegal in fairy games
loaded from PGN.

2016-02-06 15:12:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Process VariantMen PGN tag

On loading a PGN game the VariantMen tag is now parsed, and the
move definitions are assigned to the mentioned pieces.
This only works when the pieceToCharTable is defined in advance!

2016-02-06 13:46:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let VarianMen PGN tag work with dressed letters

The internal 'character' codes > 127 are now printed as letter + suffix.

2016-02-06 10:25:27 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Remove debug printf


2016-02-06 10:21:21 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix spurious promotion partners

When defining a new promotion pairing through ^L the default partners
of L and +L must be made partnerless, or they would still promote to +L
or demote to L.

2016-02-05 11:26:51 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix printing of piece ID in illegal SAN moves

Illegal SAN moves did not add ' or ! suffixes to the piece ID,
and printed shogi-promoted pieces as a '+' without ID.

2016-02-05 10:06:09 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix clipping of GTK menu-bar labels for broad boards

The number of characters kept in the menu-bar labels was dependent on
square size, but did not take into account the number of files of the
board. So when there were more than 8 files, the label texts were often
clipped while there was in fact plenty of room to display them fully.
Now the adjustment of square size based on number of board files is done
after the other window parameters have been picked based on the window
width calculated as 8*squareSize. Only the default line gap is then
adapted to the actual square size (consistent with what is done during
user sizing of the board later).

2016-02-04 19:43:14 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Change the piece order again

The internal piece encoding is now altered such that the uninteresting
ones (promoted Shogi pieces and symmetry partners) are all at the end,
just before King. These now start with the PromoBishop. A slash in the
pieceToChar string skips to this new 'promoted series', so that strings
can be made 'future proof' (for when new pieces are added before it).
The promoted Chu pieces all get new book keys by this, but as it is
unlikely that they occurin opening lines, this was considered acceptable.
The +L, +T in Chu are now represented by Pegasus and Gnu rather than
Knight and Chancellor, but the latter two are defined as fall-backs to
remain compatible with old Chu themes.
The +N, +L, +S replacements in Shogi are now also taken from amongst the
regular pieces, rather than extra images stored beyond King.

2016-02-03 10:24:17 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Adapt Chu-Shogi pieceToCharTable to new piece order


2016-02-03 09:34:42 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix demoting in Edit Position mode

A click on an already selected demotable piece will now cause demotion,
rather than disappearance of that piece, similar to how clicks on a
selected promotable piece will promote it.

2016-02-03 09:23:15 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Clear highlights after moving piece in Edit Position

When moving a piece during Edit position the from-square remained
highlighted, but the to square was not highlighted, which would
create the erroneous impression that the (now-empty) from-square
was selected (and ready to obliterate a piece on the next click).
Now this highlight is cleared. This was preferred over also highlighting
the to-square, because this is not really a move in a game.

2016-02-02 19:18:13 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix aborted detour under-promotion XB

When a dragged Pawn was released before the promotion piece was fixed,
this would fake a release on the from-square. But the repair of animation
damage would take place on the to-square derived from the actual mouse
coordinates. When this was different from the from-square, the animation
damage (consisting of removalof the piece) would thus not be repaired
by redrawing that square, as normally (when the to-square is different)
it should remain empty. Now we mark the from-square as damaged when the
detour under-promotion changes the dragged piece.

2016-02-02 17:34:53 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix default piece in Shogi promotions

In Shogi the default should be promotion, but it was using Queen like
the other variants. As the +/= issue was decided based on comparing this
default promotion piece with the moved piece, the Lance (which internally
is represented by Queen) would by default defer. Now the up-click of
a drag-drop move (which would bypass sweep selection) sets the default
choice to the promoted partner if the pieceToCharTable specifies one.

2016-02-02 17:31:41 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix sweep promotions to Tokin

Sweep promotions of multiple pieces to Tokin were not working, because
once the promoted version was shown it would always demote to Pawn.
Now the toggle always demotes to the selected piece.

2016-02-02 13:10:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix setting default piece from 'choice' command

PieceToCharwas used instead of CharToPiece. In addition it is important
to deduce the color from currentMoe rather than forwardMostMove, as
one could be entering a move in the middle of a game (e.g. when editing
or starting a variation).

2016-02-02 12:09:17 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix two compiler warnings


2016-02-02 09:27:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow pieces with dressed-letter ID as promotion choice

Testing for the occurrence of a piece in the promotion set specified
through the 'choice' command now takes dressing of the piece IDs into
account.

2016-02-01 21:51:04 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix castling rights

The expansion of the number of piece types to > 64 had broken the
accounting of castling rights, because the code for NoRights is also
a piece code (as it is stored in the board), and had gotten a value
so high that it could no longer be stored as signed char. This is
solved by declaring the initialRights array as unsigned char instead.

2016-02-01 20:45:14 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement engine-requested settings-popup WB


2016-02-01 17:32:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow O1 as Betza castling descriptor

The notation On is now also recognized as castling for n=1, but this
uses the same system as non-royal castling ('guarding'), which is
performed as hit-and-run capture of the Rook (or whatever you want to
castle with) while moving to the destination (one square away here).
This to avoid the ambiguity with normal King moves (which for the
guarding always existed).

2016-02-01 00:12:41 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow engine to force popup of its settings dialog

An engine can now force popping up of its settings dialog by sending
'feature done=3' to the GUI. It can clear its option list (e.g. for the
purpose of resending it because of altered settings) by sending
'feature done=0'. Such resending would cause the dialog to be updated
when it was already open, or close it and pop up a new one when the
engine specifies it has to be redesigned by ending the list with
'feature done=2'.

2016-01-31 17:28:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Change pieceToCharTable order of pieces beyond Lion

The positions in the pieceToCharstring no longer correspond to internal
piece type, but are remapped such that more useful symbols reside near
the beginning. The piece types themselves could not be re-ordered,
as this would alter the calculation of the opening-book hash key.

2016-01-31 15:53:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Expand numer of new piece types to 2 x 11

The number of pieces added between basic and promoted series, and between
the latter and King is increased to 11, and they are ordered differently.
The image used for the Chu-Shogi White-Horse piece,which was a duplicat
of the Knight, is now replaced by a winged Knight.

2016-01-30 09:09:03 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use flexible promotion assignment

The promoted partner now comes from an array, rather than by adding
a constant (11, or 27 in chu) to the base type. The array is initialized
so the first 11 pieces (the old 'base pieces') point to the second 11
(the old 'promoted series'), and the latter point back (so the array
also contains the demotions!). The pieces above 21 (= Lion) point to
themselves.
  Parsing of the pieceToChar string now considers ^, - and * prefixes
rather than independent IDs. Nevertheless it is the - and ^ that get
stored in the pieceToCharTable (the latter as '+') for the corresponding
piece. But the ID that follows them specifies what other piece they are
the demoted or promoted partner of, rather than their own ID, and is
thus used to update the promoPartner array for both of them.
  A * prefix does mean the following ID is the ID assigned to the piece,
but that the piece promotes to Tokin (if the latter is assigned a '+').
  The default pieceToChar string for varaint chu is adapted to use this
new assignment mechanism of promotion partner. (Chu is so far the only
variant that needed other pairing than the default.)

2016-01-29 23:15:28 -0500 Joshua Pettus <jshpettus@gmail.com>:
Bit more accelerator stuff

Bit of code didn't do what I wanted it to and took away to many 'alt'
flags

2016-01-29 22:01:25 -0500 Joshua Pettus <jshpettus@gmail.com>:
oops, accidentally added a .orig file from a patch


2016-01-29 21:32:58 -0500 Joshua Pettus <jshpettus@gmail.com>:
Change accelerators again to be more mac like

After playing around with the beta quite a bit, it really bothered me
to have half be ‘cmd’ and half be ‘ctrl’, to the point where it almost
made me want to do away with ‘cmd’ altogether  (really non-standard on
OSX). This way is a little smarter and only changes the conflicting
accelerators to alt-cmd which while being a little more mac standard,
as well as be acceptable ascetically when combined with other
accelerators that are just cmd.

2016-01-29 17:41:58 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let PROMOTED and DEMOTED macros use argument

These macros were expanding to offsets added to what followed them.
Now the thing that followed them is passed to them as an argument.
This will allow them to expand the prmomotion or demotion to a table
lookup, rather than just an addition. Where PROMOTED appeared in a case
label, though, it was just a readability enhancement for the fixed
assignment, and a new macro PROMO equal to the old PROMOTED is introduced
for that.

2016-01-29 10:32:02 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Chu promotion with added pieces

There were still some hard-coded 22s in the code, which no longer described
the difference between Pawn and Tokin and the number of promotable pieces,
now that new pieces have been added.

2016-01-28 17:58:00 -0500 Joshua Pettus <jshpettus@gmail.com>:
Remove added pango modules to coincide with macports package

Macports got rid of the +builtin_modules variant and made that the default port.  (I assume macports, maybe it was a gtk change)  This is great for installation simplicity, but messes up my build script which was set to use the former base pango install. Hopefully they stick with this.

2016-01-28 17:55:56 -0500 Joshua Pettus <jshpettus@gmail.com>:
H.G.Muller's patch to avoid collisions with built-in OSX text  edit accellerators

Unfortunately this means many of the menus items use the standard linux ctrl-letter style accelerators as oppose to the cmd-letter OSX style ones.  But at least we can copy, paste, and cut text into xboard dialogs as well as select all.

2016-01-28 17:52:27 -0500 Joshua Pettus <jshpettus@gmail.com>:
H.G.Muller's patch to fix argument related spurious instances

In certain situations adding launch arguments to xboard would cause multiple xboard instances when not desired. H.G.Muller fixed this by waiting 1 second before accepting genuine user input.

2016-01-28 17:50:36 -0500 Joshua Pettus <jshpettus@gmail.com>:
Check for gettext before installing localization files

Probably a good idea to check if gettext is enabled before attempting to install localization files.

2016-01-28 17:48:04 -0500 Joshua Pettus <jshpettus@gmail.com>:
back to the old header names for gtkosxapplication.h

They seemed to have gone back for compatibility’s sake, hopefully they don't change it again

2016-01-28 17:43:04 -0500 Joshua Pettus <jshpettus@gmail.com>:
Fix for launching on case-sensitive systems

Forgot to take case-sensitive journaled systems into account…

2016-01-28 17:55:15 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make move to own piece a swap rather than capture

This is useful for Tamerlane Chess, where you can one time during the
game have your King swap places with a friendly piece.

2016-01-28 17:32:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement 'choice' engine->GUI command

A new CECP command is implemented: With 'choice XYZ' in reply to a
'lift' or 'put' command an engine can redefine the promotion choice
of the promotion move that emitted these to X, Y or Z. (Always capitals!)
For now only affects sweep & detour promotions, not the promotion
popup.

2016-01-28 14:08:28 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let target-square highlighting prevail over legality test

For engine-defined variants the highlight command is accepted even
with legality testing on. If an engine explicitly marks a square as a
legal destination for the picked-up piece, XBoard now always accepts
the move, even when according to its own move generation, even when based
on the engine's supplied 'piece' commands, going there would be illegal,
and legality testing is on.

2016-01-28 12:32:12 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add support for Multi-PV Margin

An engine option with a name containing multi, PV and margin is now
recognized, and will lead to printing of a multi-PV header (during
analysis in the Engine Output pane) even in absence of a MultiPV option.
Right-clicking the part of that header between 'fewer' and 'more'
allows tuning of the option value through horizontal mouse moving.
During this tuning the value is displayed in the message field of the
main window. When there is no MultiPV option to specify the number of
PVs, the margin value will be displayed in the header instead of the
number of PVs.

2016-01-28 09:51:37 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix highlighting in text memos (GTK)

The yellow highlighting as used in Engine Output to indicate the
walked PV, or in Move History to show the current move, was only
working the first time that text would be highlighted. Apparently
to unhighlight it the yellow tag had to be removed, rather than a
white tag applied.

2016-01-27 20:14:07 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix pasting of moves after starting from position file

When starting from a position file boards[0] would be set to the position,
but initialPosition was not. In LoadGame() initialPosition would then be
copied to boards[0] before loading the game, and without FEN or variant
PGN tag would not be corrected.

2016-01-27 16:49:20 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Move Common Engine menu item to Engine menu

The new name of this menu item is 'Common Settings'.

2016-01-27 16:03:04 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix double-clicks for copying in Edit Position mode

The time measurement between clicks on the same square in Edit Position
mode was seeing presses as well as releases, so that a fast click would
be mistaken for a double click on that square. Only presses should be
judged this way. In addition the piece should be grabbed for dragging
again on the second press, as the first release had ended the drag.

2016-01-27 11:22:42 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix book probing

The Zobrist key for Kings had been inadvertantly changed in the patch that
assigned new keys to the pieces added for Chu Shogi (the 'chu-promoted
series'), because the King would be considered as a chu-promoted piece.

2016-01-20 21:30:51 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on pasting garbage FEN

The auto-size patch had made XBoard crash-prone on pasting pure garbage
with Paste Position, because this would set the number of files or ranks
to values <= 0. Which would cause a floating pont exception during
drawing of the board in XBoard.

2016-01-20 20:37:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent changing time control during game (XB)

An attempt to pop up the Time Control Options dialog during a game
will now be met with an Error popup to say it cannot be done, like
in WinBoard. Before it would reset the game.

2016-01-20 20:31:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Error popup in Tournament Options

Since Tournament Options has been assigned its own DialogClass (MasterDlg)
instead of being one of the TransientDlg, the Error popup should really
test if MasterDlg is already up, to know if its parent window is th
main window or not.

2016-01-15 22:30:08 -0500 Joshua Pettus <jshpettus@gmail.com>:
Update xboard.conf with renamed xq board textures


2016-01-15 14:12:23 -0500 Joshua Pettus <jshpettus@gmail.com>:
Update makefile.am for renamed xq board images


2016-01-15 13:19:22 -0500 Joshua Pettus <jshpettus@gmail.com>:
Change name of xq board images to fit with handling code


2016-01-14 19:16:50 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use ii in Betza notation for 3rd-rank Pawn push

The 'i' modifier specifies the move is only for virgin pieces. We now
use 'ii' to indicate a move that can be made when the piece is standing
on the square in front of that were such a piece starts in the initial
setup. This is intended for Pawns that can still be pushed extra far
after they have made a first single step, such as in Wildebeest Chess,
where pawns on 2nd rank can move 1, 2 or 3 squares ahead, and on 3rd rank
can still move 1 or 2 (fmWifmW3iifmW2).

2016-01-14 16:49:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix spurious undo at game start

For ping-supporting engines the logic in handling unexpected moves
is completely changed. Such moves can occur when an engine think is
interrupted by a 'force' command, which in many engines is only
processed after the think completes naturally with a move, and could
cross such a move anyway in engines that would abort the search promptly.
If the 'force' is the result of the user switching to EditGame mode,
such a move should be undone, if it occurs at game end or start,
the moves can be ignored, as the following 'new' will erase all memory
of them. So in EditGameEvent, if the engine was thinking, a flag is set
to indicate its upcoming move should be undone, and ping is sent after
'force'. The 'pong' response would arrive after the move (if any), and
clears the flag. In all other cases of ping imbalance, incoming moves
are ignored.
 While waiting for a pong after EditGameEvent the user interface is
frozen, and a message is displayed to keep the user quiet.

2016-01-14 14:36:47 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Send ping in EditGameEvent

An EditGameEvent can interrupt tinking of an engine, and the engine
might or might not send back a move as a result of that thinking.
To solve this, a "force" command sent to an engine playing white or
black will now be followed by a "ping". (If supported, of course.)

2016-01-13 22:23:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix variant recognition in ICS mode

The patch that made recognizing variant names of the 'exotic variants'
(i.e. those beyond Shogi) more strict, by requiring an exact match,
had broken variant recognition on the Variant ICS. In that case it
has to act on strings like "ICS unrated xiangqi game", and this now
defaulted to variant normal. The requirement that the variant name
should be the first word of the string is now dropped in ICS mode.

2016-01-13 20:35:36 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let FENs handle Betza initial rights in castlingless variants

When a variant has no castling, or is redefined to have no castling
through a 'piece' command for the King, the FEN castling field of a
written FEN will now contain the file ID of all pieces with initial
('i') moves in their Betza definition. On reading the virginity of
pieces not thus mentioned in the castling field will get their
virginity revoked.

2016-01-13 16:07:48 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix setting of initial virginity on PGN read

The back-rank virginity bitmaps were not cleared in ParseFEN.

2016-01-12 14:48:57 -0500 Joshua Pettus <jshpettus@gmail.com>:
Update zh_CN.po translation


2016-01-12 00:01:31 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Increas number of engine-defined variants to 15 (WB)

The number of engine-defined variants that can be selected in WinBoard's
New Variant dialog is increased from 9 to 15 by adding some radio buttons.

2016-01-11 22:58:50 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix parsing of OO castling when redefined

A 'piece' command can redefine the castling stride of a King,
and OO castling for non-Fischer castling is internally encoded as the
King step, and thus has to know this.

2016-01-11 22:44:04 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix writing FEN castling rights for non-edge 'Rooks'

Non-Fischer castling rights were only recognized on FEN writing when
the castling partner was in the corner. Now it can be anywhere on the
correct side of the King.

2016-01-11 21:05:28 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix reading FEN FRC castling rights when King not on last rank

There was still a hard-coded rank 0 / BOARD_HEIGHT-1 there.

2016-01-11 20:21:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Makefile for Dragon and minor Lion image

These new pieces were not mentioned in the list of SVG data.

2016-01-11 20:13:41 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add Wolf, Camel and Zebra bitmaps to WB

Built-in images for some of the new pieces are added for WinBoard.
These are Wolf, Camel and Zebra, but also the duplicat Lion is defined.

2016-01-11 16:03:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix white Iron General image

The white background of this image was not entirely filled.

2016-01-11 16:01:58 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Flip Unicorn image

There are now too many Knight-like piece images, that are too similar.
So the Unicorn from now on will look to the right.

2016-01-11 11:39:10 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add white Zebra piece image

This image had not made it into git with the other new pieces.

2016-01-11 11:35:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Correct backup pieces for addition of minor Lion

The added piece type was not put in the list of backup pieces, so that
the pieces beyond it got out of phase, and no backup for the Prince
would be found, leading to an error popup about missing default pieces.
The error message on this has now been improved to mention the piece
casing the trouble.

2016-01-10 23:54:48 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Never castle when King has other initial moves

The ApplyMove routine assumed that any lateral King step of more than
a single square was a castling, and then swung the nearest piece in
that direction around the King. This failed in Grande Acedrex, where
the King can (amongst others) jump 2 squares sideways as an initial move.
So we now first check if the King has its moves redefined in a way that
does specify no castling but does specify other initial moves, and perform
any move as just a simple King move in that case.

2016-01-07 23:32:47 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix edit command for double-digit ranks

Rank numbers above 9 were printed as their internal 1-character
representation.

2016-01-06 20:12:10 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add duplicat of Lion (and Flying Dragon)

Two more piece types are added: a duplicat of the Lion in the unpromoted
series, and a Flying Dragon as its promoted counterpart. This Lion does
not suffer from the Lion-trading restriction of Chu Shogi, and can be used
as a general piece. Its pictogram is somewhat smaller than that of the
Chu Shogi Lion.

2016-01-03 14:09:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix typos in winboard.c


2016-01-03 12:38:18 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let parsing of O-O castlings pay attention to castling rank

The parser assumed O-O and O-O-O castlings would always take place
on the back rank, even when the newly introduced castlingRank array
specified differently.

2016-01-03 12:22:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix FEN castling rank for Knightmate

The newly introduced castlingRank array was not correctly set on reading
a FEN for Knightmate, because it was looking for Kings rather than
Unicorns.

2016-01-02 19:53:35 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Replace Flying Dragon piece image by Gnu

How could we not think of this before!

2015-12-29 23:37:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also define Lance image for Amazon in WB


2015-12-29 23:33:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use hoplit helmet for Copper General in Chu Shogi


2015-12-29 22:46:17 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Skip in pieceToChar to Tokin always

The piece after the skip symbol '/' in the pieceToCharTable was
defined as CHUPROMOTED Pawn, which only is a Tokin in variant chu,
but a Cannon in other variants. The intension was to always skip
to Tokin, though.

2015-12-29 22:20:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Assign new images to the new pieces

The 5 new pieces behind Lion, and their chu-promoted versions,
are assigned the 9 new images. The 10th piece gets the Lance image,
to povide a duplicate for this that will not be considered a Pawn
in any variant (so it can be used for Amazon).

2015-12-29 22:13:03 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add 2x9 new piece images

Wolf, Camel, Zebra, Dragon, Wizard, Viking, Iron, Copper and Tower
images are added.

2015-12-29 20:43:39 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix parsing of pieceToChar strings

The skipping to the chu-promoted series was not working. The character
that triggers the skipping has been changed from : to /, because : is
a narrow character potentially useful as ID suffix.

2015-12-29 18:02:08 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix color of white SVG pieces

The newer SVG pieces were bright white, rather than the ivory default color.

2015-12-19 11:10:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix piece command after ID-suffix patch

Piece IDs without suffix or & behind them to make them count for both
colors were no longer recognized in 'piece' commands, because there
was a null character behind the extracted piece-name field. And this
null character was seen as occurring in the suffix string.

2015-12-17 12:44:09 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bare-king adjudication in Atomic

In Atomic a bare King cannot win, but it can already have won, when
the last piece of that side captured or destroyed the opponent King
when exploding. The win-to-draw correction now recognizes this
situation, so that the win is uphold there.

2015-12-02 12:53:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Erase old logo before drawing new one (XB)

In case of an invalid or absent logo, the previous logo kept being
displayed. Now the area is painted grai first.
 Also fixes a bug in the expose area.

2015-11-27 21:01:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow debug output to go to child process (WB)

A -debugfile name starting with tree slashes will not be interpreted
as a file to write on, but (after stripping the slashes) as an executable
to run, and send the output to. This could be used by an external
broadcasting agaent.

2015-11-27 17:55:13 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix DarkSquare bug in piece counting

When counting pieces for adjudication purposes, a DarkSquare on the
board caused an out-of-bounds access to the counter array.

2015-11-26 22:12:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix piece commands for suffixed piece IDs

Due to signed-/unsigned-char problems piece IDs suffixed with ' or !
would not be recognized. In addition a & behind it would not be correctly
recognized diue to the alignment problem the suffix character caused.
Both issues are fixed now.

2015-11-25 19:26:54 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow skipping over black squares

'Skip pieces', defined with a 'j' prefix on a slider(asopposedto rider),
which skip the first square(s)of their path irrespective of occupation
should also be able to skip over holes in the board.

2015-11-24 20:10:27 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Display new user logo when username is entered

When the Edit->Enter Username type-in was used, a new user logo was
loaded, but not immediately displayed. While the old user logo could
already be up, during a man-machine game. Now it is also immediately
displayed.

2015-11-24 20:00:16 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Try to load bitmaps for all pieces (WB)

WinBoard only contains build-in bitmaps for the first 22 piece types,
and also only associated filenames with those that can be used to
provide external images. Now a new naming convention for piece images
is introduced, like piece22_49s.bmp for a 49x49 bitmap for solid piece 22.
All pieces that were not loaded according to the old convention now
try to find images with this naming convention if a -pieceImageDirectory
is defined.

2015-10-20 17:30:34 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix sortng of mate scores

With the new convention for mate scores (100000+DTM), lower numbers
represent faster mates and thus better scores, and the sorting of PVs
in the Engine Output window now takes that into account.

2015-10-20 17:22:53 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Print mate scores as #N in message field


2015-10-20 15:05:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Start implementing EPD test suites

An option -epd is added that can be used in combination with matchMode
to let XBoard do a test suite on a file of EPDs with a "bm" qualifier.
It would record the time to solution. Reporting still has to be implemented;
as yet unsolved problem is that currently black-to-move EPDs would
be presented to the second engine.

2015-10-20 14:43:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Slip in 10 more piece types

Five new piece type without a defined image are added to increase the
length to the unpromoted series from 11 to 16. They all map behind
the Lion, which remains the 11th piece. Five promoted types are added
as well, just before King. No images are defined for these pieces (yet),
not even image-file names, so they can only be used with the 'Tile'
fallback and a user-defined inscription.

2015-10-19 18:50:53 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix grayout


2015-10-16 14:40:58 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix exclusion header fix


2015-10-15 23:41:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Grayout Machine Match menu when aborting match

Clicking the Machine Match menu item when a match or tourney is in
progress will make XBoard drop out of match mode when the game finishes.
The check mark will remain on the item until that moment. But now we
gray out the item to show that the match is scheduled for termination.

2015-10-15 20:57:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Base tinyLayout decision on total board width

The decision whether to include system menu and use one-letter main menus
is now taken based on the total board width, rather than the square size,
to account for boards that do have other than 8 files.

2015-10-15 20:45:41 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use intermediate width menu bar in sizes 37 & 40 (WB)

Due to the increased number of main menus the menu bar wrapped to two lines
in sizes slim and small (which did not use the single-letter 'tinyLayout'
menu texts). An intermediate menu-bar format with 3-letter texts is now
provided as well.

2015-10-15 17:25:21 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Display exclusion header only for engines supporting exclusion

The display of the exclusion header in the Engine Output window is made
dependent on the engine having emitted feature exclude=1 at startup.

2015-09-19 19:35:07 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix periodic updates GTK

Only the first periodic update event would occur, because the clock function
did not retun True to encourage timer events to keep coming.

2015-08-11 09:38:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make -inscriptions a volatile option

Saving unicodein the settings file does not work, and leads to an
octal escape sequence for non-ascii characters, which is not correctly
read back. For now saving thus is avoided.

2015-08-07 18:45:35 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make inscriptions somewhat smaller and non-bold


2015-08-06 23:49:02 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fall back on Tile SVG in pieceImageDirectory

If a -pieceImageDirectory is given, but a needed piece is not found,
and -inscriptions are specified, we first fall back on a general
image White/BlackTile.svg. This can then serve as a background for the
various inscription glyphs, using the latter to distinguish the pieces.
E.g. the Tile image could be a shogi tile, and the inscriptions an utf8
string of kanji, to create Shogi pieces on the fly.

2015-08-06 19:41:28 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Take account of glyph size when positioning inscriptions

We calculate the position of the inscription from its pango extents.

2015-08-06 19:14:05 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Also write inscription on dragged piece


2015-08-06 19:04:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use pango to draw inscriptions

The cairo 'toy fort' interface apparently cannot handle kanji. So we
switch to renderingthe the inscriptions via pango.

2015-08-05 22:40:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let color of inscription depend on piece ID

Only shogi-promoted piece types (with ID defined as +) will get their
inscription rendered in red.

2015-08-05 20:37:25 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Render inscriptions upside-down for black pieces (XB)

The -inscriptions option is intended to supply the kanji on images of
blank Shogi tiles, and thus have to be flipped for the pieces that play
downward. Depending on the -flipBlack setting and -flipView this can be
either white or black.

2015-08-03 21:59:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent printing in non-existing Chat dialog (XB)

The Xaw build of XBoard crashed in -ics -zp mode when the opponent was
kibitzing. According to a stack trace OutputChatMessage() tried to change
the color of a non-existent button. Although it was not clear how printing
there could be attempted if no chats were defined, the routine now is made
a no-op when the Chat dialog does not exist, by an immediate return.

2015-08-03 21:07:04 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Ignore Continue Later when match already in progress

We have to prevent the user from changing the tournament file or parameters
for a tourney in progress through pressing 'Continue Later'.

2015-08-03 20:55:05 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Remember tourney-file changes after Continue Later

After leavingthe Tournament dOptions dialog with Continue Later,
the tournament file would not be set to the entered value, and re-opening
the dialog would keep using the previous value, or a newly generated one.

2015-08-03 20:39:31 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Correctly remember checkboxes on Continue Later (WB)

The WinBoard tournament dialog could be left in an inconsistent state
on Continue Later, when the user untickedthe checkboxes for auto-stepping
and two games per line, after on an earlier attempt their ticking had
already resulted in settng the line/position index to a negative value.
Negative values left in the numeric entriesare now reset to 0 when the
chackboxes are unticked.

2015-07-24 23:55:35 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix bridge capture of Lions

Clearing the kill square for the check test had broken the test for it
being empty or containing a Pawn. We now also test for Go Between,
which was not done at all.

2015-07-24 23:48:58 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Shogi promotion popup

With the new promotion defaults Shogi was using the Chess promotion
popup rather than the Shogi (yes/no) one.

2015-07-24 23:47:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix disappearance of a1 on double capture

The triple-capture patch did indicate a1 as initial second e.p. victim.

2015-05-16 23:35:46 -0700 Arun Persaud <arun@nubati.net>:
Updated copyright notice to 2015


2015-04-28 11:15:22 -0400 Joshua Pettus <herecomethej@sbcglobal.net>:
make install from macports part 2

Oops, forgot a line..

2015-04-28 10:05:53 -0400 Joshua Pettus <herecomethej@sbcglobal.net>:
Make install from macports more robust

better to search for the macports prefix then assume /opt/local

2015-03-24 16:52:22 -0400 Joshua Pettus <jshpettus@gmail.com>:
Change Copyright year in info.plist.in


2015-03-11 17:42:49 -0400 Joshua Pettus <jshpettus@gmail.com>:
renaming fics logo


2015-03-11 17:38:12 -0400 Joshua Pettus <jshpettus@gmail.com>:
Logo Updates


2015-03-11 17:04:15 -0400 Joshua Pettus <jshpettus@gmail.com>:
moving part2


2015-03-11 16:40:52 -0400 Joshua Pettus <jshpettus@gmail.com>:
A little reorganizing


2015-03-10 16:02:05 -0400 Joshua Pettus <jshpettus@gmail.com>:
Remove unused directory


2015-03-10 15:33:05 -0400 Joshua Pettus <jshpettus@gmail.com>:
GTK OSX theme reimplemented

This is a new theme that was included with the GIMP OSX app.  It is
much simpler with no pixbuffs, so there should be no chance of missing
images.  Also had to reimplement the murrine engine.

2015-03-10 15:19:53 -0400 Joshua Pettus <jshpettus@gmail.com>:
gtkmacintegration localization updates

With the update to the gtkmacintegration library, localization strings
have been fixed, so there is no need for us to have separate ones, and
we can pull from the macports install.

2015-03-10 15:16:10 -0400 Joshua Pettus <jshpettus@gmail.com>:
gtkmacintegration name change

with the last update the gtkmacintegration lib was renamed
gtkmacintegration-gtk2 to differentiate from gtk3

2015-03-10 15:14:09 -0400 Joshua Pettus <jshpettus@gmail.com>:
OSX master conf changes

Make OSX app masterconf more in line with the default one, where it was
unnecessary.  Also it was a mistake to use the ip address for FICS as
they changed it.

2015-03-10 14:27:20 -0400 Joshua Pettus <jshpettus@gmail.com>:
Include Pango Modules

Before I was using a special macports variant that had the pango
modules built into the library.  Now that I know a little bit more,
it’s really not necessary to require a special variant here.

2015-03-10 14:21:36 -0400 Joshua Pettus <jshpettus@gmail.com>:
Man and Info Page Fix

Terminal.app doesn’t accept command line arguments. Rather then use OSX
feature of using .command scripts to launch the man and info pages
(which is problematic with gatekeeper),  it is much better to open them
directly with applescript.   Had to move infoProc to xboard.c to do
this though.

2014-12-20 20:47:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement -positionDir option GTK

This volatile option determines where Load Position starts browsing.

2014-11-17 22:51:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow promotion choice in variant asean

Apparently the rules of this game are changed since the first draft
from 2011, and now you cannot just promote to Ferz ('Queen'), but pick
any piece. Meaning the Rook has to be the default, being the strongest.

2014-11-11 14:40:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on using Browse buttons in Tournament dialog Xaw

The Xaw file browser assumes the text entries it is browsing for are
all in dialogs of the class TransienDlg, but the Tournament Options
dialog has been altered to MasterDlg, to allow it to co-exist with
Time Control and Common-Engine dialog (which can be opened through
buttons in it). Xaw did not like that, and the true DialogClass is
now used when setting the widget text.

2014-11-10 14:29:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix -addMasterOption option

The comparison of the date stamps in master and user settings file
was broken, because the date stamps were declared as unsigned, so that
the difference would never be negative.

2014-11-02 15:52:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix premature disappearence of Lion victims

The check test did not correctly undo a Lion e.p. capture, which
would make the victim already disappear after entry of the first leg,
which potentially could affect the second leg move generation.
(Not in Lions, though, but in Betza castlings it manifested itself.)

2014-10-30 15:01:59 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Connect OSX Quit menu to ExitEvent

The Quit menu item provided by OSX was not equivalent to the original
XBoard menu item, as it did not automatically call ExitEvent. (Which
closing the window did.) This meant a hard kill, without saving settings
or the last game, and not properly shutting down the engine(s).
We now catch the OSX 'WillTerminate' event to perform these tasks.

2014-10-28 22:37:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add USI/UCCI checkbox to Load Engine dialog

Assign a default command to the -uxiAdapter when it was not yet defined,
as this will be used after ticking the checkbox, and the compile-time
default for it was an empty string, and will have found its way in
the user settings files of most users (making configuring through
the master settings file pointless).

2015-04-18 11:09:34 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow promotion to piece with letter ID in Chu

Normally all promoted versions in Chu have ID '+', but it could be
useful to allow piece promotion always, as long as the promoted piece
participates.

2015-04-18 11:07:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement triple capture (not finished)


2015-03-13 22:58:15 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make Claws glyph available in non-Chu variants

The variant-dependent replacement glyphs for promotable pieces in Chu
are now assigned to pieces that reuse the replaced glyphs to represent
promoted pieces, rather than to unused promoted pieces. This means that
in Chu they now must be replaced by swapping, which avoids occurrence
of duplicats both in Chu and other variants. And thus frees piece types
that now can be used for new glyphs. As a result the Nightrider remains
available in Chu, and the Claw glyph in other variants. Other freed
pieces are for now used for the promotion Golds of variant shogi.

2015-03-13 21:42:53 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also allow Princess SVG piece to be diversify

The image for the Grasshopper has a copy in the Chu-promoted series.
The unpromoted image (not needed in Chu) is now preferentially taken
from a Crown image rather than Princess, allowing distinction between
the promoted and unpromoted piece in kanji themes for Wa Shogi.
Any piece between Grasshopper and chu-promoted Marhall can now in principle
use a backup.

2015-03-11 13:44:21 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow Lion double-moves in opening book

Double moves can now be encoded in a Polyglot es promoType = 2, and
a code for two King steps in the to-square. The moves are retrieved
in the Alien Edition protocol format (i.e. comma-separated LAN).
HandleMachineMove had to be adapted to handle the two legs coming as one,
but otherwise the book code can just send the retrieved line directly
to the engine.
 For Edit Book the format has to be converted to TSA-like for display,
to make the move parser that will read it on saving understand the move
as a single one.

2015-03-10 17:57:08 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix reading of pieceToChar string and piece command


2015-03-09 22:04:17 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix printing of book moves for double-digit ranks

The book-code move_to_string was not adapted to double digits,
and printed ':' in stead of 10.

2015-03-09 20:35:45 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix display update during Edit Book

When moves were deleted from the book, this was only shown after
quitting and restarting XBoard, because the stream that was used for
reading the book was a different one as the stream writing it.

2015-03-09 20:26:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Remove chu theme file from XBoard install

This file should come with the Chu Shogi piece images, not with XBoard.
In addition the file was obsolete, and used an erroneous option name.

2015-03-08 17:46:08 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix probing of GUI book for board with more than 10 ranks

The move-to-text code was not yet adapted to the convention that rank
counting only starts at 0 for boards of exactly 10 ranks.

2015-03-05 15:58:56 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement piece suffixes

The piece ID can now be suffixed with an 'ornament', which then
is considered part of the piece ID. This expands the number of pieces
that can be indicated in FEN or SAN to several times the alphabet.
This does not yet work in a promotion suffix, as it is mainly intended
for the large Shogi variants, which only use + as promotion suffix.
It also does not work on King (which deserves an unadulterated letter).
Currently the ornaments ' (single quote) and ! (exclamation point) are
defined, (through a macro SUFFIXES in moves.h), increasing the number
of piece types that can be represented to 78.

2015-03-04 09:09:28 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash XBoard on changing Game List Tags

When the Game List was not up, the attempt to immediately update its
contents after changing the game-header format through the Game List Tags
dialog would result in a segfault.

2015-03-04 09:08:57 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix shift-JIS codes for N, P, +B, +R


2015-03-03 22:44:32 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Change book Zobrist key for Chu promoted pieces

Promoted pieces for Chu (i.e. above Lion, with the exception of King)
now get keys derived from their base type, by XORing in a square-dependent
'promoted' key. This makes it possible to extend the unpromoted series
with new pieces without altering the keys for the promoted pieces.
So that the current book code works upto 48 unpromoted piece types,
rather than 48 piece types total.

2015-03-03 22:17:26 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix book encoding of Chu promotion moves

The Shogi promotion suffix had promotion code 8, which was not available
in Chu at all, due to the large board size. So in stead we use code 1 now.
Code 10 (or 2 in Chu) is reserved for encoding Lion moves, which currently
do not work at all.

2015-03-02 22:14:59 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Remove debug printf for kanji


2015-03-02 22:12:36 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Wrap kif comments in braces

The parser assumes that a text that parsed as comment contained
enclosing braces, but in kif files we have to apply those ourselves,
to prevent a bare comment (starting with '*'!) to appear between the moves.

2015-03-02 19:59:18 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve reading of pieceToCharTable

The piece-to-char string can now contain ' and ! suffixes on pieces,
which are taken together with the preceding piece ID. An encountered : will
cause the assigning to skip to the chu-promoted series of pieces, however
these are numbered.

2015-03-02 19:16:09 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Extend book to 48 piece types and 256 squares

Before the Zobrist key could only handle 24 piece types and 128 squares.

2015-03-02 13:15:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix reading of startposition FEN starting with *

When laoding a position file, a FEN starting with * would not be recognized
as FEN, and parsed in an alternative way that did not like the * either,
and caused a segfault.

2015-03-02 12:49:36 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement -rankOffset option

This option is useful on boards with blacked-out ranks, to force rank
number one to be a higher up.

2015-03-02 12:04:58 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use PGN result in Game List build to supply tag

If a PGN tag was missing (as in loading of non-PGN game collections)
the game would be marked as unfinished ('*') in the Game List, even
when it contained a result. The kif-format resign messages are now cast
in a form that also recognizes the result-detail message.

2015-02-28 11:05:21 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement kifu move disambiguation

For sliders the Japanese disambiguation clues cannot be translated
to PSN-like disambiguators, so the problem had to be resolved in the
Disambiguate callback, at the time when the second piece of the
requested type is identified, so that the relative position of the pieces
is known.

2015-02-27 17:13:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make move parser understand kif-format Shogi moves

For now only utf-8 kanji are recognized. The recognition of '*' as an
unfinished game end had to be suspended for this, based on encountering of
bare kanji (from the kif header), and is only regained after reading
of a PGN tag!

2015-02-21 20:08:00 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Do not call illegal moves ambiguos

When legality testing is off, an illegal SAN move would be interpreted
as if the mentioned piece type could move anywhere, which lead to an
'Ambiguous Move' message if there were multiple pieces of that type.
This should not be done if the piece moves are known through engine piece commands.

2015-02-21 20:02:06 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix parsing of illegal drops from PGN

These were parsed as if the first two characters were the from-square.

2015-02-20 20:27:45 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix spurious promo-suffixes on drop moves

The promo-suffix from the previous move would be left on drop moves,
and could even be set to the engine.

2015-02-20 15:46:35 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let promotion zone be 3 ranks on 8-rank shogi boards

For the benefit of Euro-Shogi the rule that the depth of the promotion
zone is the board height divided by 3, rounded down (which works so well
for mini-, Judkins, Tori and regular Shogi) is given an exception when
the numer of ranks is 8.

2015-02-20 14:07:40 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix illegal-drop fix


2015-02-18 22:54:12 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress lift command on deselecting piece

A click on the selected piece deselects it, and thus should not
result in a lift command to prompt highlighting of its moves.

2015-02-18 22:49:20 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress appearance of promotion popup when sweep-selecting

In highlight-induced promotions the popup would appear even when it
should have been off.

2015-02-18 22:47:30 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix illegal drops

Even white was dropping black pieces on those!

2015-02-15 23:17:29 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix click-click sweep-select

If the up-click of the second click of a sweep-select would occur in the
from-square, the whole move would be ignored, and de-select the promoting
piece instead.

2015-02-15 23:12:14 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix promotion sweep of black Pawns in Shogi

The wrap-around when we run past white King should not be done in
toggle mode, where it is guaranteed we won't run out of range.

2015-02-09 10:09:55 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix deselection of piece

The patch to allow entering of friendly capture (intended as a kludge
for entering non-standard castling) had broken the ability to change
the selected piece by clicking another piece, as this was now always
interpreted as a friendly capture (which was then rejected as illegal).
By testing marker[][] in stead of legal[][] this can be avoided; legal[][]
was not a good measure, because in absence of a highlight command it
is completely filled with 1, to make everything legal. No friendly squares
will ever get marked unless a highlight command does it, though.

2015-02-09 10:01:48 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix highlight-induced promotions

A purple square in the highlight color FEN triggered the promotion
procedure, but the chosen promotion piece would not be suffixed to
the move.

2015-02-09 10:01:16 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Castling fix 1


2015-02-06 13:01:44 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Take heed of mnemonic indicator when clipping menu texts

An underscore in the menu text should not be counted when deciding where
to clip the text to make the menu bar fit the window width. If clipping
would occur immediately after an underscore, just clip off the first
character to get the mnemonic back in view. (This makes _n from the
Engine menu.)

2015-02-05 23:01:48 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let Betza jO mean castling with non-edge piece

This is useful in Omega Chess, where the Rooks are not on the edge.
The number of j tell how many pieces have to be between edge and castling
partner.

2015-02-05 20:09:53 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Castle with nearest rather than corner piece

An oversized sideway King step is recognized as castling, but instead
of using the piece closest to the board edge on that rank (ignoring dark
squares) we now use the piece that the King is looking at in that direction.
This fixes castling in Omega Chess.

2015-02-05 19:44:10 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow friend-trampling format also for royal castlings

The restriction that the trampling piece should not be King is lifted.
That the piece has an O atom in its Betza string is enough to qualify.

2015-02-05 19:34:32 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Recognize castling double-moves from engine

An engine could already send double-moves of the Alien protocol,
where the same piece moved twice, which were then glued into a single
step, with the intermediate square as trampled piece. Now when the
second leg is whith a different piece, it keeps the first leg as overall
move, and tramples the second mover. This translates castlings sent
as two-piece moves to the kludge format of trampling the own 'Rook'.

2015-02-05 17:35:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix drops


2015-02-05 17:33:24 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Print castlings as double move


2015-02-05 12:24:00 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix illegal drops

For illegal drops the 'from-square' was subjected to an on-board test,
which of course always failed, after which the move was reclassified
as an ImpossibleMove after all. (Leading to rejection even when legality
testing was off, and error messages like "Could not parse move".)

2015-02-03 12:49:11 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix width of dual board GTK

The message field here was too wide, because it was attached to a
non-existing table column.

2015-02-03 10:14:56 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Tab in ICS command mode

Tab was not working to open a chat after oborting opening a new one,
when only one chat was open.

2015-02-02 16:29:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix sending of messages from kibitz or c-shout chat

Kibitz messages and c-shouts could be captured in their own chat window.
like shouts and whispers, but sending messages from such chats did not
get the proper prefixing, but were treated as tells to nonexistent players
'kibitzes' and 'c-shouts'.

2015-01-29 11:20:37 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Ignore Tab in ICS Interaction if no chats assigned

Thuis used to open a new chat, but Ctl-N exists for that now.

2015-01-29 11:12:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use Ctl-E in ICS chat to end chat


2015-01-29 10:56:45 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Use Ctrl-H in ICS Chat to close chat pane

This used to be done by <Esc>, but that now focuses board instead.

2015-01-28 23:17:23 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let <Esc> transfer focus from Board to ICS Input

<Esc> in the input field of the ICS Interaction window transfers focus
to the board, but there was no way to transfer focus back without actually
typing something in the input field. <Esc> now does that. Unlike typing
printables, it does not close the chat pane, though. In addition, <Esc>
when the chat pane is open now also transfers focus to the board, rather
than closing the chat pane. This makes quick transparent switching between
board and Chat / ICS Interaction possible. It is no longer possible to
simply hide the chat pane, though. But this was usually done for typing
a command, and swicthing to the board with <Esc> and typing the command
there has the same effect.

2015-01-20 12:02:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Define mnemonics for main menu bar


2015-01-20 11:54:52 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Set position dir to handicap positions in shogi theme


2014-12-21 23:09:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let file selecor remember last used directory (GTK)

The file selector now starts in the directory that was last used
to load a file of the type we are now browsing for. (Supported types:
pgn, fen, trn, bin, png.)

2014-12-20 20:47:05 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement -positionDir option GTK

This volatile option determines where Load Position starts browsing.

2014-11-17 13:00:37 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
stash


2014-11-13 20:23:57 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix click-click moving with -monoMouse

A to-click should never be interpreted as button 3.

2014-11-13 18:33:42 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement -monoMouse option (XB)

With the monoMouse option button-3 is no longer needed in Edit-Position
mode, but a button-1 click on an empty square will automatically behave
as if it was button 3. It can only be used with -pieceMenu false,
as it does not communicate the coordinates of the clicked square.

2014-11-11 14:40:43 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on using Browse buttons in Tournament dialog Xaw

The Xaw file browser assumes the text entries it is browsing for are
all in dialogs of the class TransienDlg, but the Tournament Options
dialog has been altered to MasterDlg, to allow it to co-exist with
Time Control and Common-Engine dialog (which can be opened through
buttons in it). Xaw did not like that, and the true DialogClass is
now used when setting the widget text.

2014-11-10 14:29:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix -addMasterOption option

The comparison of the date stamps in master and user settings file
was broken, because the date stamps were declared as unsigned, so that
the difference would never be negative.

2014-11-03 21:59:09 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow creation of DarkSquares in EditPosition mode

Dragging an EmptySquare off board will make it a DarkSquare. Dragging
anything else off board (incl. DarkSquares) makes it empty, as before.

2014-11-03 21:56:29 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let Clear Board respect DarkSquares

Usually we will clear the board to set up a new position. Not to
redesign the board shape.

2014-11-03 21:51:46 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix sweep promotions for Lance on deeper zones

Unlike Pawns, Lances always assumed a zone depth of 1 in deciding on
activating sweep promotion. (Because they did not naturally occur in
any variant that had a deeper zone.)

2014-11-03 21:49:07 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix two-sided non-royal castling


2014-11-02 21:44:48 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix e.p. capture


2014-11-02 15:52:25 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix premature disappearence of Lion victims

The check test did not correctly undo a Lion e.p. capture, which
would make the victim already disappear after entry of the first leg,
which potentially could affect the second leg move generation.
(Not in Lions, though, but in Betza castlings it manifested itself.)

2014-11-02 15:31:34 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement non-royal castling

The Betza move generator allows castlings to be specified on non-royal
pieces, and indeed the Omega-Chess 'guarding' castles Q with R. To
prevent ambiguity this is implemented as a two-leg move QxR-s (with 's'
the target square specified in the O atom). This automatically takes care
of removal of the 'Rook', so that in ApplyMove() we only have to put it
back on the proper side of the 'King'.

2014-11-02 12:24:16 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Also set e.p. rights on move of Lance

The Lance is intended as Pawn alternative (because of its slim shape),
except in Superchess (where it represents Amazon) and Chu. (In regular
Shogi the Lace is represented by Queen disguised as Lance!) So it would
be logical to also make its double-Pushes set e.p. rights. Except in
Spartan Chess, which has no e.p. capture.

2014-11-02 11:29:31 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow e.p. capture on triple-Push

Some variants (like Omega Chess) have an initial triple-Push on Pawns,
wich can then e.p.-captured on both of the squares they skip. To allow
the Betza move generator to supply such e.p. captures, a bit flag is
kludged into the EP_RANK state indicator on triple pushes, while the
main value there is that of the rank directly behind the pushed Pawn.
The Betza generator then also matches the square behind it with the
e.p.-capture to-square when the falg is set.
 ApplyMove() also had to be adapted, to remove the Pawn two squares
behind the capturing one, rather than straight behind it, when this
flag is set.

2014-10-31 23:46:13 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Make the promotion zone always 3 deep in Elven Chess

The promotion zone in Eleven Chess was treated as in Shogi, and set
to the board height divided by 3. It is better to always make it 3.
This only makes a difference when the boardHeight is overruled,
but Elven Chess is a very useful parent variant when a 3-deep promotion
zone is needed. (Makruk would only allow promotion to Ferz, and Grand
Chess would need holdings and allow only promotion to captured pieces.)

2014-10-31 22:59:23 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Locate corner piece in presence of DarkSquares

The 'Rook' move implied by a castling indicated through an obver-sized
King step uses the corner pieces. But the corner isn't necessarily
the edge file if the board is not rectangular, but irregularly shaped
like in Omega Chess. So we have to ignore the DarkSquares, which are
not caounted as belonging to the board.

2014-10-31 14:26:19 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow Betza castling with piece next to DarkSquare

In variants like Omega Chess the board edges are not really the first
and last file, because of the Wizzard squares. So castling has to be
allowed not only with the piece on those files, but also when the square
beyond them is not part of the board anymore.

2014-10-31 13:54:59 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Let Betza generator respect DarkSquares

DarkSquares are not pieces, and should not be moved. When landing
on them they should be considered as off-board.

2014-10-30 15:01:59 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Connect OSX Quit menu to ExitEvent

The Quit menu item provided by OSX was not equivalent to the original
XBoard menu item, as it did not automatically call ExitEvent. (Which
closing the window did.) This meant a hard kill, without saving settings
or the last game, and not properly shutting down the engine(s).
We now catch the OSX 'WillTerminate' event to perform these tasks.

2014-10-28 22:37:22 +0100 H.G.Muller <hgm@hgm-xboard.(none)>:
Add USI/UCCI checkbox to Load Engine dialog

Assign a default command to the -uxiAdapter when it was not yet defined,
as this will be used after ticking the checkbox, and the compile-time
default for it was an empty string, and will have found its way in
the user settings files of most users (making configuring through
the master settings file pointless).

2015-05-02 20:30:08 -0700 Arun Persaud <arun@nubati.net>:
make GTK the default version


2015-05-02 20:26:48 -0700 Arun Persaud <arun@nubati.net>:
updated Dutch translation


2015-05-02 20:26:38 -0700 Arun Persaud <arun@nubati.net>:
updated German translation


2015-04-26 13:31:29 -0700 Arun Persaud <arun@nubati.net>:
fix typo in configure


2015-04-26 12:49:09 -0700 Arun Persaud <arun@nubati.net>:
updated French translation


2015-04-26 12:49:01 -0700 Arun Persaud <arun@nubati.net>:
updated German translation


2015-04-19 20:26:20 -0700 Arun Persaud <arun@nubati.net>:
added French translation


2015-04-19 20:19:18 -0700 Arun Persaud <arun@nubati.net>:
updated German translation


2014-11-22 09:22:37 -0800 Arun Persaud <arun@nubati.net>:
Added Serbian translation


2014-10-24 22:27:31 -0700 Arun Persaud <arun@nubati.net>:
remove OS X theme folder



2014-10-24 00:04:22 -0700 Joshua Pettus <jshpettus@gmail.com>:
removed gtk theme from OSX app

2014-10-23 23:33:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add persistent Boolean option -fixedSize

When set, this option suppresses sizing of the board and clocks when
the window is sized by the user. This is achieved by wrapping the entire
dialog in a non-expanding hbox.

2014-10-23 21:23:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Also do dual-royal test in variant shogi

For the benefit of Sho Shogi we also have to be prepared to find a
Crown Prince in variant shogi, so it can be used as a parent variant
for Sho Shogi with legality testing on.

2014-10-23 16:22:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix promotion in Betza move generator

The Betza move generator was geenrating allmoves as NormalMove, but in
that case XBoard would not allow the move to have a promotion suffix.
Now Pawns and Lances reaching last rank will be assumed to promote.

2014-10-22 13:06:25 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Attempt to make GTK sizing work with tiling WM

The Rezise routine now takes the size of the entire dialog table
(for me always equal to the outer-window size), and checks if the
actual outer window is smaller. If it is, it shrinks the board to fit,
under the assumption that a tiling window manager offers only a limited
'viewport' to our dialog, and we want everything to be visible inside that.

2014-10-22 11:04:47 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix -xbuttons window width GTK

Because Label options not followed by a SAME_ROW element were only
packed into the first two columns of the dialog table, the board window
reserved space for a third column behind the message window if there
was no button bar.

2014-10-21 20:37:41 -0700 Arun Persaud <arun@nubati.net>:
mac: only use gtk compile flag, if osxapp is enabled


2014-10-21 22:40:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent unknown variant getting button in -ncp mode

Normally we fake the engines play the requested variant, for the benefit
of engines that do not send a variants feature (e.g. v1 engines). But this
should not be done if there is no engine, as it would lead XBoard to
believe an unknown variant name is an engine-defined variant supported
by a currently loaded engine, and create a button for it in the New Variant
dialog.

2014-10-21 22:07:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix variant-name recognition

StringToVariant did recognize whether the name to recognize had suffuxes
compared to the tabulated name, but not if it had prefixes. So 'shoshogi'
would be recognized as 'shogi'.

2014-10-21 21:52:21 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress duplicat autoInstalls

If the engine line constructed for -autoInstall already occurs in
the engine list, we should not install it again.

2014-10-21 18:41:03 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Base new square size on board widget allocation GTK

No longer pay attention to the size of the top-level window, but base
everything on the size of the board widget itself.

2014-10-21 13:45:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Ignore first configure event

The first configure event will be the one that adds the window decorations
to the board window, and must not be used to calculate a new square size,
but to expand the outer window instead.

2014-10-21 11:35:21 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let GTK dialogs open with actual-size Graph widgets

The Graph Option size values are now uses as size_request, to give
proper dialog sizing at popup. But the size_request is then reset
so that free sizing by the user becomes possible.

2014-10-19 13:16:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix display of Spin Options with negative range


2014-10-17 21:35:25 -0700 Arun Persaud <arun@nubati.net>:
line numbers in PO got updated


2014-10-17 21:23:47 -0700 Arun Persaud <arun@nubati.net>:
updated ChangeLog, DIFFSTAT and SHORTLOG


2014-10-17 21:17:56 -0700 Arun Persaud <arun@nubati.net>:
updated NEWS


2014-10-17 21:17:28 -0700 Arun Persaud <arun@nubati.net>:
forget a few __APPLE__ ifdefs; changed to OSXAPP


2014-10-17 00:01:44 -0700 Arun Persaud <arun@nubati.net>:
fix typo and prefix

AC_PREFIX_DEFAULT was always set, even if AS_IF didn't get called? Some kind of caching?
Using just prefix=... seems to work though

2014-10-16 23:34:22 -0700 Arun Persaud <arun@nubati.net>:
USE OSXAPP instead of APPLE and fix withval->enableval in AC_ARG_ENABLE


2014-10-16 21:44:33 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix loading of engine-defined PGN games

Somehow there could be disagreement over what the official opening
position of an engine-defined variant was during loading of the game.
It then refused Betza-defined castling, which tests the corner pieces
based on this initial position. We now assume the FEN tag, which such
a PGN game will always contain, holds the official opening position,
so that castling will always be assumed possible (if there is a corner
piece).

2014-10-16 20:29:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Preserve parent variant for PGN of engine-defined game

Rather than decoding an unknown variant name, (which will result in
'normal'), we keep the currently set (parent) variant when an
engine-defined variant is currently set that matches the name in
the PGN variant tag of the loaded game.

2014-10-16 17:54:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix some uninitialized variable bugs

The writing of Seirawan castling rights in FEN was still dependent on a
now unused variable, and encountering a VariantMen tag in a PGN file
could have created the misconception the memory was full.

2014-10-16 17:41:01 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Update Game List after tag selection changed

When the Game List Options dialog changes the tags to be displayed in
the Game List lines, we now automatically redo the entire Game List.

2014-10-16 16:38:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Always accept piece commands in variant great

Great Shatranj belongs to the variants XBoard does not know the rules of,
and should thus always accept engine piece commands.

2014-10-15 21:28:36 -0700 Arun Persaud <arun@nubati.net>:
make all tests for strings in configure use the same scheme


2014-10-15 21:23:26 -0700 Arun Persaud <arun@nubati.net>:
updated Changelog, DIFFSTAT, and SHORTLOG

2014-10-15 21:06:36 -0700 Arun Persaud <arun@nubati.net>:
fix osxapp enable option in configure.ac


2014-10-15 21:06:00 -0700 Arun Persaud <arun@nubati.net>:
remove experimental from gtk build option


2014-10-15 21:02:38 -0700 Arun Persaud <arun@nubati.net>:
only enable osxapp build target on apple systems, clean up configure.ac a tiny bit


2014-10-15 20:57:28 -0700 Arun Persaud <arun@nubati.net>:
update NEWS file


2014-10-15 23:48:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Don't switch to engine-defined variant on game loading

When loading a game from PGN the variant tag will have been decoded as
'normal' in case of an engine-defined variant, and we certainly would
not want to switch to that. Better stay in the variant the user had
selected before, and hope for the best.

2014-10-15 21:50:44 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement displaying of variant tag in Game List

The variant tag was displayed as an empty string in game-header lines.
Processing it during PGN load was not able to handle engine-defined
variants anyway; they were recognized as 'normal'. A new field in the
GameInfo struct now holds variantName in text form, and this is the
primary place from which it is displayed in the Game List.

2014-10-15 21:06:53 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Update Game List when setting new Game List Tags

Using the Game List Tags dialog to alter the gae header lines now
automatically causes an update of the Game list according to the new
tags specification.

2014-10-15 20:26:31 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Reset move entry on Clear Board

The board markers would stay on when the board was cleared, and a
no-longer-present piece would stay selected, leading to deletion of the
first piece that you tried to select.

2014-10-14 09:38:05 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Split Tournament dialog in side-by-side panes

This seems to cure a sickness in some Xaw versions, which refused
to display text in the text widgets, or make them sensitive for mouse
clicks if the last three buttons were added. It also helps keeping
the 'OK' button on-screen in the GTK version.

2014-10-12 19:43:24 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Remember position obtained from setup

When the engine sends a setup command, it should be remembered as
initialPosition, in order for the castling 'rook' test of the Betza
move generator to work.

2014-09-13 12:35:12 -0700 Joshua Pettus <jshpettus@gmail.com>:
Add build script to configure for a XBoard.app for OS X

This relies on the the gtk build and adds some special code in
gtk/xboard.c so that XBoard can be installed inside the app directory
independ on where the app file is located.

2014-10-12 10:09:51 -0700 Arun Persaud <arun@nubati.net>:
replaced hardcoded pngdir with built-in ~~

don't need to create xboard.conf from xboard.conf.in anymore

2014-10-12 00:18:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Some improvement on new Shogi SVG pieces


2014-10-11 10:55:41 -0700 Arun Persaud <arun@nubati.net>:
updated spanish, ukranian, and dutch translation


2014-10-11 19:42:03 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix logos Xaw

The patch for logo standard left a typo and an excess line in the Xaw
version. This is fixed, and also implements the user-logo cascade for
the Xaw version.

2014-10-11 19:26:23 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Try also /home/<user>/.logo.pgn for user logo

The user logo now also has a cascade, first looking in the user's home
folder for a file .logo.png, and then in the -logoDir for <user>.png.

2014-10-11 16:38:03 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix ICS logo display


2014-10-10 18:14:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Show current variant on New Variant buttons GTK in bold

If an engine-defined variant is selected, we compare its name to the
inscription on the button, otherwise we compare the variant numbers.
(Test to trigger this is a bit awkward, to not inadvertantly apply it
to the ICS Text Menu, which also has colored buttoms.)

2014-10-10 17:01:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Increase number of engine-defined-variants Buttons XB

An third column is added to the New Variant dialog when necessary.

2014-10-09 23:25:26 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Force GTK logo size to quarter board width

This is what GTK will do anyway, because clocks and logos are in a hbox
that equally divides space, so telling XBoard different just misinforms it.

2014-10-09 17:08:45 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Replace default Shogi pieces

The SVG Shogi pieces are replaced by a new set, made by Joshua Pettus.
This set also contains and Elephant and Crown Prince.

2014-10-09 09:35:33 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement new logo standard

XBoard now looks in the system directories for plugin logos,
/usr/(local/)share/games/plugins/logos, according to the cascade
-logoDir, engine dir (-fd,-sd), /usr/local/..., /usr/...

2014-10-09 08:47:25 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Relocate OS X' LOCALEDIR


2014-10-08 21:56:28 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix check test with multi-leg moves

The check test after a multi-leg move was still using the same kill
square in the opponent's reply, making it blind to King captures in
a second leg. So far we got away with that because the Shogi multi-leg
pieces also can reach all their potential victims in a single step,
but with engine-defined multi-leg moves there is no guarantee this
will always be the case.

2014-10-08 21:55:17 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix infinite loop in cylinder moves


2014-10-07 19:13:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let t on final leg in Betza notation forbid checking

To allow approximate definition of pieces that are too difficult to
describe exactly, we can revoke their capture rights on Kings,
to prevent imagined moves that happen to threaten a King forces the
opponent to evade this imagined check, making most of his moves illegal.
Then the piece can be safely replaced by an upward-compatible one,
leaving rejection of the extra moves to the engine.

2014-10-07 18:56:59 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza hr and hr as chiral move sets

To easily separate right- and left-handed moves on oblique atoms
(which needs opposite use of l and r in their multi-leg continuations),
the direction sets hr and hl are added.

2014-10-07 08:20:06 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Preserve other Betza mode bits on setting default modality


2014-10-06 20:20:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Switch to new Betza orth-diag conversion standard

The interconversion from orthogonal to diagonal atoms is now possible
for any 4-way atom, based on specification of an 'in-between' direction,
irrespective of modality. Also take backward out of default continuation
direction-set.

2014-10-03 10:31:47 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza t modifier for hop-own

The 't' modifier will restrict any form of hopping as specified by
p or g modifiers to friendly pieces. This only works on non-final legs.

2014-10-02 19:32:45 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement directional modifiers on KQ, and let y&g upgrade

The Betza y and g modifiers now not only change range, but also upgrade
the directional capabilities of the atom to full non-degenerate 8-fold.
Directional modifiers can now be used in that symmetry too, to maximally
exploit this, and implement 4-fold pieces that make 45-degree turns.
Let oblique continuation legs also use the non-degenerate system.

2014-10-02 15:19:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza y modifier

The non-standard modifier 'y' is the spontaneous counterpart of 'g',
changing the range of the atom, and upgrading its directionality.

2014-10-02 10:21:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza g modifier for non-final legs

The g modifier is implemented as a p that turns a rider into the
corresponding leaper when it hops, and vice versa. This is done by
stripping off any existing range indicator, and making the range
infinite by suffixing '0' when the old range was 1 (whether implied
or explicitly written). Except that for sliders/steppers this is done
by atom-name conversion after stripping off the range. Limited range
thus in general turns into leaper (D -> D0, Dn -> D), but with FWK
W3 -> R and R3 -> W, etc.

2014-10-01 15:32:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza a modifier

This is pretty complex, and might overload the current primitive two-leg
legality testing when pieces are defined that can reach squares only in
two legs.

2014-10-01 09:28:32 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza j on W,F as skip first square


2014-10-04 21:56:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Always accept piece commands for Falcon and Cobra

The wild-card pieces Falcon and Cobra do not have any moves assigned to
them, and XBoard would accept any move for them even when legality
checking is on. So for these pieces it is always better to trust the
engine's piece definition.

2014-10-04 21:52:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix pieceToCharTable of Falcon Chess

This variant was using the Falcon piece, but defining ID F for the
unused Lance instead.

2014-10-04 19:59:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Don't preserve setup position on board-size change

Normally the setup command sent by an engine is ignored if the user
already has set up a position, to not render it impossible to do the
latter. But if the setup command orders a different board size nothing
the user has set up can possibly remain valid.

2014-10-04 19:39:06 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Reset move entry on stepping through game

A forward or backward step through the game after selecting a from-square
did not erase the latter, so that it became impossible to select a
from-square for an opponent move, as it would be interpreted as the
to-square for the patially entered move. This was especially annoying
with legality testing off, as the legality test there, based on the
square markings, does not reset the entry state either, but waits
until you do click a legal to-square, so that you had to attempt
moving with pieces of the side not to move to get out of this state.
Now stepping through another position will reset the move-entry state
completely, always considering the first click a from-square selection.

2014-10-07 20:55:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix engine-defined variant as startup

Non-standard names were all recognized as 'normal' in InitBackend1().
Now if the -variant argument was not "normal", it is assumed to be an
engine-defined variant if we run with engine.

2014-10-07 18:53:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix clipping of board GTK

ResizeBoardWindow now measures the with of the window dressing by
brute force, interrogating GTK both for the width of the top-level
window and the board widget, and subtracting the two.

2014-10-08 18:28:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix writing of Seirawan960 virginity in FEN

When variant seirawan was played with Fischer castling, only the
castling rights were written, and not the virginity of other pieces.
Now all virgin files are dumped in Shredder-FEN style.

2014-09-29 21:07:17 -0700 Arun Persaud <arun@nubati.net>:
update po/pot files


2014-09-29 21:00:42 -0700 Arun Persaud <arun@nubati.net>:
new version number for release 4.8.0


2014-09-13 14:33:37 -0700 Arun Persaud <arun@nubati.net>:
fixed whitespace error in configure.ac for os x


2014-09-20 10:06:17 -0700 Arun Persaud <arun@nubati.net>:
update gettext configuration to not include any generated files in git

before we had a somewhat mixed setup, which seems to create problems
when a different gettext version was installed on the users machine compared
to the version used to generate the files in git. This should solve
the problem. The user will now have to generate these files using autopoint,
which we call from autogen.sh.

2014-09-28 22:19:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Configure XBoard for -size 49 in master settings

Now the code for auto-sizing works, it turns out this does more harm than
good in the GTK build, as it takes maximum size that fits the screen as
initial size, and the board window then cannot be shrunk below that.
So we configure a hard -size 49 for a cold startup.

2014-09-28 21:27:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement ff etc. in Betza parser

Dupliacated directional modifiers can be needed with oblique moves
to unambiguously specify a direction set, e.g. ffrrN.

2014-09-28 13:40:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Rename PGN Pieces tag to VariantMen

Following a suggestion from Steven Edwards, this indeed makes a much
clearer name. Also add code to skip the tag on reading, rather than
allowing it to end up with the 'extra tags', as the latter could lead
to duplication of the tag on subsequent saves.

2014-09-28 11:18:10 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Suppress use of promo-Gold bitmaps in Tori Shogi (WB)

In Tori Shogi the Swallow Pawn does not promote to Tokin, so the use
of a Gold General pictogram would only be confusing. So we stick to
the regular fairy bitmaps in Tori, which is recognized by the board
having 7 ranks in Shogi.

2014-09-28 10:55:10 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent board-size oscillations

It could happen that after resize there was room for enlarging the
squares by one pixel, but that this crossed the boundary where the line
gaps also become wider, and there is no room for making both squares
and line gap. This would cause perpetual oscillations of the window size.
Resizing is now suppressed when a 1-pixel square-size increase would also
result in a line-gap increase.

2014-09-28 10:09:17 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow use of second-row pieces for non-promoted in drop games

Second-row pieces were automatically demoted on capture, but this
should really happen only when the piece-to-char table says it is a
shogi-promoted piece (assigned a '+' there). Pieces assigned a letter
should really stay themselves.
 PieceToNumber had to be adapted to skip '+' pieces in order to count
correctly for second-row pieces, as did the code in UserMoveEvent() that
mapped the from-square onto the piece type. (Why do we do that anyway?
The piece type was displayed on the from-square!)

2014-09-26 20:24:05 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix reset of 50-move counter on FRC castling

The FxR internal representation was taken a bit too seriously!

2014-09-26 20:15:33 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix abort of machine game on variant mismatch

When the second engine did not support the current variant, and we clicked
Two Machines, there was an error popup, but the Two Machines menu item
stayed checkmarked. Now we explicitly uncheck it, and switch to EditGame
mode.

2014-09-26 19:47:08 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make unsupported variant on loading 1st engine non-fatal

Like in the startup code, when the loaded engine does not play the
currently selected variant, we now figure out what the engine does play,
and switch to that. The error message still pops up, but not non-fatal.

2014-09-25 23:37:24 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Print PGN Piece tag listing engine-defined pieces

A newly defined PGN tag is printed, which summarizes all non-standard
pieces. Black copies of identically named white pieces are suppressed.
In the future also non-standard naming should be reported here.

2014-09-25 19:11:21 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Always accept piece commands in partly supported variants

Normally piece commands are ignored when legality checking is on, as
XBoard's idea of legality should obviously overrule the engine's.
In variants that are not or only partly supported, however, XBoard has
no own idea of what is legal, so it is better to take the engine's
advice than enforcing wrong rules.

2014-09-25 12:29:15 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Size seek graph to also cover board rim WinBoard

The seek graph always used the plain board size, but in WB it is
possible to diplay a rim around the board, and the seekgraph would
then be positioned in the upper-left corner of the rim, leaving the
lower and right board edge and rim uncovered. Its size is now increased
to fill the entire window (as leaving a rim around it seems not useful).

2014-09-25 11:48:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Reparse ambiguous move under built-in rules

When a move parses as ambiguous under engine-defined piece locomotion,
we re-parse it with XBoard's native idea of the pieces, just in case
it is a move from a game that was saved without the engine having
redefined the pieces. This keeps games created before the introduction
of the 'piece' command loadable.

2014-09-25 11:14:06 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent multi-path moves from parsing as ambiguous

In Cylinder Chess the MovesFromString() generator might generate duplicate
moves, one wrapping, the other direct. When they were both counted as
matching the SAN input move, Disambiguate() would think it an ambiguous
move. So a move that came from the same square as the one we already
have must not be counted.

2014-09-24 21:47:59 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix cross-edge e.p. capture in Cylinder Chess

ApplyMove() did not remove the e.p. victim when an edge-crossing e.p.
capture was made, because e.p. rights are only set to neighboring files
(after checking there is a Pawn there to capture). The e.p. heuristic
has now been changed to also assume e.p. on file-changing Pawn moves
that span a large number of files, assuming that these will be wrapping
moves. Eventually we should change to better e.p. logic that can be
integrated with engine-configured move generation, as the current system
would fail for any Pawn that captures more than just neighbor ranks.

2014-09-24 19:43:27 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza o modifier for cylinder boards


2014-09-24 17:02:37 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve virginity test for engine-defined pieces

Two squares in the board are now reserved for flags that indicate
whether back-rank pieces have been touched. This allows MovesFromString()
to accurately test virginity of these pieces, rather than having to assume
it when the piece matches that in the opening position. For other ranks
the latter test is still used, as these are normally (irreversible) Pawns,
which cannot return there (and in drop games, when they would, would again
be considered virgin enough for the purpose of double-pushing!).

2014-09-24 13:20:31 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement Betza p and g modifiers in piece command


2014-09-24 08:28:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Repair piece defs with showTargetSquares off

The proxy legality checking based on marking of target square was
rejecting all moves when target squares were not highlighted.

2014-09-23 21:53:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow definition of castling in piece command

Castling is defined by the O atom, with a suffix indicating the number
of steps the King must step in the direction of the corner. Kings keep
their normal castling unless overruled by this. Can currently only be
used on the variant's royal piece, as XBoard's ApplyMove() is not smart
enough to understand displacing the corner piece is implied when it is
used on other pieces.

2014-09-23 21:49:44 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Update description of piece command in protocol specs


2014-09-23 14:52:16 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Improve SAN of Pawn moves and allow Betza e.p. definition

The move descriptions in 'piece' commands can now use 'i' and 'n'
modifiers to define a blockable double push. ('n' only work for moves
of stride 2!) The test for initial moves now is based on comparison with
the opening position, rather than on a way-to-generous heuristic. (This
still does not prove in generak the piece did not move, though, but it
does for Pawns.) A new 'e' modifier stands for e.p. capture; to implement
this the rank and file of the e.p. square are now stored in the board.
(EP_STATUS was holding the file of the moved Pawn, which in Berolina Chess
is not the file of the e.p. square!)
 The generation of SAN moves for Pawns can now reliably distinguish between
captures and non-captures even in Berolina, when the move generator informs
it whether the move was e.p. capture.

2014-09-22 22:48:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Retune -stickyWindows GTK

This still does not work well, and in particular windows refuse to stick
to the top of the board window.

2014-09-22 21:59:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix detection of screen size GTK

A gdk call that can get the screen without there first being a window
mapped to it is used now. This fixes initial sizing of the board window
on a cold start.

2014-09-22 21:57:23 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Configure a size for the Eval Graph

If no size for the Eval Graph window is configured in the master
settings file, the window will pop up as 2x4 pixels.

2014-09-22 20:39:21 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Prevent crash on specifying non-existent texture XB

By setting the texture width to 0 when the texture could not be loaded,
XBoard will never attempt to draw it.

2014-09-22 20:30:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Configure some themes in XBoard master settings

The -themeNames option is set to contain some themes that could be
defined with the default pieces and textures that come with XBoard.

2014-09-22 18:48:00 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Remove debug printf


2014-09-21 16:47:41 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Control Eval Graph with mouse

Let mousewheel control evalZoom, and right-click toggle between
normal view and differential view ('blunder graph').

2014-09-21 16:10:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add extra font field to Option struct

Storing the font in the textValue field was too kludgy, as this field
is already heavily used in the various Option types, for storing handles,
or defining colors and callbacks. A 'font' field is now added at the end,
so that it can be optionally initialized in the rare case it is needed.

2014-09-21 13:44:11 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Repair damage done by merging with v4.7.x


2014-09-21 08:36:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Sort fail lows and fail highs below others

Every more recent line should always float up aove lines that were
indicated to be fail lows or fail highs through ? or ! PV suffixes.

2014-09-20 12:58:32 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe the new texture conventions in manual

The exact rules for how textures are scaled in response to their
filename is described in the manual.

2014-09-19 10:22:14 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Force exactly overlayed texture scaling through filename

A filename suffix -NxM.png on a texture image will cause XBoard to scale
the image as if it were the image of a complete board of N files and M
ranks, to make the square size equal to that of the current board,
and adjust the cutting parameters such that contiguous squares are cut
out of it. (If the current board format is larger than NxM, the remaining
space will be padded with white!)
 If N=M=0, N and M are assumed to correspond to the current board size,
and the bitmap will be scaled to fit the height of the board.
 If no suffix is present, the old cut-and-tile algorithm is used. It will
be assumed the texture bitmap is intended for a single square, unless the
pathname contains a file that starts with "xq", in which case it is assumed
that the file contains a Xiangqi board.

2014-09-18 23:30:09 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Allow two Pawns per file in Tori Shogi

When the board has 7 ranks it is assumed to be Tori Shogi, and the
requirement for maximally one Pawn per file is relaxed to two.

2014-09-18 23:08:36 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Test legality even when off if engine defined pieces

After reception of a piece command XBoard will mark target squares
even when legality testing is off, and now also will require the lifted
piece to land on a marked square (like when the engine highlighted them
through a highlight command).
 A problem is that this does not work for drops, as drops do not mark
target squares. So drops are always accepted. Which of course is bad
for Pawn drops. But there really is no way yet for an engine to specify
how pieces can be dropped, similar to the 'piece' command.

2014-09-17 22:32:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix texture scaling


2014-09-17 13:41:58 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement engine-defined pieces

When legality testing is off, XBoard now listens to 'piece' commands
to redefine its move generator. After such a piece command is received,
target-square marking also can be used when legality testing is off.
The engine keeps in charge of legality testing, though.
 Only a very basic version of Betza notation is currently understood for
the move description: mode modifiers have to appear in the order mcd,
and gpz modifiers are ignored. Multi-leg moves as in Betza 2.0 is not
implemented at all. A leading i modifier limits the moves to the first
two ranks, which is no good at all. (But XBoard does not keep track of
which pieces have moved, and this at least would work for Pawns in a
FIDE-like setup, in particular Berolina.)

2014-09-17 09:44:15 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Scale texture bitmaps that are not large enough

Texture bitmaps are now sized up by an integer factor to be at least
as large as the board (if they seem intended for a full XQ board, which is
assumed when they are larger than 256x256) or the square. This necessitated
the textures to be re-initialized in InitDrawingSizes whenever the window
size changes.

2014-09-16 19:04:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Ignore color arguments not starting with #

Old settings files from xpm-using version might still contain color
designations like 'white' or 'red'. Since Cairo would interpret these
as black, it is better to ignore them, so the default color is used.

2014-09-15 15:30:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Implement -autoInstall option

When -autoInstall is a non-empty string, XBoard will scan the system's
plugin specs directories for UCI and WB protocol, to see if new engines
were added since the last settings save. If so, they are added to the
list of installed engines.
 The variants listed in the plugin-spec files are currently ignored,
but the option is already configured to install engines for all variants.

2014-09-14 22:47:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix typo


2014-09-14 21:41:04 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make inlined functions static

Clang apparently chokes on non-static inline functions,
and they were not used from other files anyway.

2014-09-09 20:29:15 -0700 Arun Persaud <arun@nubati.net>:
updated spanish translation, added new polish translation


2014-09-13 09:12:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Look for logo in engine dir first (GTK)

When setting engine logos, we look for a file logo.png in the engine
directory, before trying <enginename>.png in the -logoDir. This is useful
on OS X. Fix bug that checks for existence of -fd/sd rather than -logoDir,
when using the latter (also in Xaw).

2014-09-11 23:10:59 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix checkmarking of OS X menu items

The routine MarkMenuItem() was moved to xboard.c, where it can see
the OSX-specific #defines, and calls to sync_menu_bar were added
to it, and to EnableNamendMenuItem().

2014-09-11 22:48:10 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash of tournament dialog GTK

The font/color disambiguation of the Option.textField in Label and
ulti-line TextBox options cannot stand it if unused elements are
initialized as "" rather than NULL.

2014-09-11 19:17:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let OS X display dock icon


2014-09-11 12:41:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Xaw button color error

The textValue field, now also used to indicate font, was used in two
places when popping up buttons, and the font patch only addressed one.

2014-09-11 10:23:42 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make SVGDIR a variable

Replace all occurrences of SVGDIR in the source by svgDir, a char array
that is initialized to SVGDIR, so that it can be altered at run time.
This is needed to make portable apps. Where SVGDIR was used in string
concatenation, the code had to be re-written to use snprintf to do the
concatenation at run time, through a new function LoadIconFile.
The extension of image files used there is now made dependent on the
__APPLE__ switch, so that it can use .png in OS X (which does not seem
to understand SVG icons).

2014-09-10 21:20:40 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix warning in dead code Show


2014-09-10 20:49:38 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Reorder variants, to comply with Polyglot book specs

XBoard's variant number is used as a key to access Polyglot opening
books, and thus cannot be changed without consequences. (As it was when
we introduced ASEAN and Chu Shogi.)
  We also renamed Chu Chess to Elven Chess (under which name it is now
described on chessvariants.org).

2014-09-10 19:52:12 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Reserve piece command in protocol specs


2014-09-10 18:54:45 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
suppress Alien Edition standard variants

Variants that are standard in the Alien Edition should not be
recognized as engine-defined variants: the engines that announce
them will not respond with the required setup command, so allowing
the user to select them just leads to trouble.

2014-09-10 13:51:44 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix SetWidgetFont GTK

This was testing for an empty font spec in the wrong way, with as a side
effect that some pointers to font strings would be interpreted as colors.

2014-09-10 15:56:59 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Update protocol specs


2014-09-09 21:43:39 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let message field and button bar use GTK -messageFont

The -messageFont spec (using the default coordFont pixel size, like the
others) is now used to modify the fonts of message field and buttons
in the button bar. They pass a pointer to the appData font variable in
their Option's textField. This conflicts with the use of this field in
buttons for specifying a color, as done in the New Variant buttons.
This is resolved by checking if the first byte of the pointed-to value
is a #. The Xaw version must ignore the textField if it does not
specify a color.

2014-09-09 20:51:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix GTK fonts


2014-09-09 19:57:52 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use coordFont default pixel size for other fonts

The message-font is way too large for the dialogs. A better solution
would be to redo the entire table of SIZE_DEFAULTS in xboard.h, as
this file is front-end-specific anyway.

2014-09-09 19:39:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use -gameListFont in Game List

Not implemented in a very generic way, but hacked into the code that
added the handler. There aren't many other listboxes that would need
adjustable font.

2014-09-09 16:49:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Chat window for Xaw build

The ICS output field and Hide button are removed from the ICS Interaction
window, to make it similar to the old Chat window. This required adding
some tests in the handlers of this window, to prevent segfaults due to
accessing it.

2014-09-09 15:53:29 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix infinite-regression problem on OS X

Apparently the OpenFile handler can already be called during
gtkosx_application_ready (or gtk_signal_connect), so we have to make
sure 'suppress' is set before we call those.

2014-09-09 10:47:41 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Correct for .Xresources form->paneA renaming in manual

In the Xaw build the name of the form widget of dialog.layout.form...
hierarchy was changed to paneA, paneB, ... when allowing multi-pane
dialogs through the Break Option (such as the Engine Output window).

2014-09-09 10:36:42 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Use GTK fonts in Engine Output and Move History


2014-09-08 20:42:11 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Include some conditional OS X fixes

DATADIR must be corrected to ~~ in the OS X app, and the info command
must be started in a different way.

2014-09-08 20:12:08 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix WB DoEvents error


2014-09-08 19:06:35 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Limit auto-extending to click on first move of PV

Even when auto-exted on clicks on the tail of a PV will no longer cause
any moves to be added to the game. Only clicks on or before the first
move can do that now.

2014-09-08 16:20:26 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Animate multi-leg in auto-play and forward event

Replaying multi-leg moves is now also done by animating both legs.
In addition, the highlights are set on final and intermediate square,
rather than from-square.
(There seems to be a great deal of code duplication here. Why doesn't
AutoPlayOneMove simply call ForwardInner?)

2014-09-08 14:45:51 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix key bindings for non-menu functions

The accelerator keystrokes for next game, previous game and debug mode,
which don't have menu items, and are grouped in the menu table 'noMenu',
were not treated in the building of the translation table, as 'noMenu'
does not occur on the menu bar. An extra iteration is done now to
treat this menu group.

2014-09-08 14:24:59 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix Xaw key bindings

The routine to automatically construct the translation table for
accelerator keys did not respect the rule that more specific keystrokes
(like :Meta<Key>Home:) have to be defined before more general ones
(like :<Key>Home:). As a result Alt+Home would activate the Revert
item, intended for plain Home.

2014-09-08 14:20:08 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Define default font names


2014-09-08 09:25:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix MSVC problems

Book.c did not include config.h, and thus missed the redefinition of
snprintf (which is not known in MSVC). The use of 'inline' in parser.c
also needed an MSVC redefinition, now added to winboard/config.h.

2014-09-08 09:22:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix GTK font patch


2014-09-07 23:35:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Replace strcasecmp by StrCaseCmp

The MicroSoft compiler does not know strcasecmp, so we better use
our own function for this everywhere.

2014-09-07 23:28:29 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let GTK build pay attention to font arguments

Multi-line text edits now use the initial value of the Option.textValue
field as a pointer to a (char*) holding a font name, to be used for
the text displayed in it. (After which they overwrite the field with
the textView handle.) The font options -tagsFont, -commentFont, icsFont,
-moveHistoryFont and -gameListFont are now activated in the GTK build,
to control the corresponding memos.

2014-09-07 13:58:15 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix auto-display comment option in General Options

This options had the same ID as auto-Queen, making it ignored.

2014-09-07 13:43:48 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Call DoEvents during time-consuming operations

Processing of a game file for reading it, searching positions, saving
selected games or creating a book from them can take minutes. To keep
the application responsive during that time, the main loops of those
tasks calls DoEvents(). A possible risk is that the user can now do
too much, and will initiate actions that interfere with the tast in
progress.

2014-09-07 13:32:49 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix GameListHighlight WB

The routine to highlight a game line in the Game List listbox of WinBoard
used an extremely inefficient linear search to find the game amongst the
selected games. This has now been replaced by bisection, after finding
an upper limit to the number of entries in the listbox by doubling
a trial size.

2014-09-07 12:10:50 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Provide DoEvents function in front-ends

A routine to process all pending events in a non-blocking way is now
provided in the Xaw, GTK+ and WinBoard front-ends, so that time-consuming
tasks (such as PGN loading or opening-book creation) can call it to keep
the user control over the application alive.

2014-09-06 23:13:01 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix syntax error in bitbase code


2014-09-06 22:35:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Describe Save Selected Games menu in manual


2014-09-06 22:29:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let Save Games as Book only use selected games

The book-creation code now only takes games into account that are
selected for display in the Game List.

2014-09-06 22:20:19 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Rewrite key-binding section of manual

This section still wrongly described the key-binding procedure from
before the rewrite of the XBoard front-end.

2014-09-06 13:21:13 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Connect scroll event to Graph Option in GTK

The mouse wheel is now detected in graphics widgets, and passed to
the user handler as button 4/5 mouse events.

2014-09-06 13:15:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make sure node count is positive

Engines that print the node count as an int overflow into negative values
when the count exceeds 2G. This is really an engine bug, but as it
interferes extremely annoyingly with the alignment of the Thinking Output
XBoard now repairs it by adding 4G to undo the overflow.

2014-09-05 14:03:49 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Connect mousewheel to Forward/BackwardEvent (XB)

The mouse buttons 4 and 5 are now processed in the handler for the
board widget.

2014-09-05 13:41:34 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix size of time in Engine Output window

When the thinking time exceeds an hour, the format hr:min:sec is now used,
in stead of min:sec.cents. This prevents the field from extending beyond
the tab stop when thr hours kick in, and should work upto 100 hrs.
(Going beyond that at the moment does not seem useful.)

2014-09-04 22:57:07 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Verify if font-spec looks like one in Xaw

To make XBoard resistant to mixed use of Xaw and GTK builds, which
would not understand each others font specs stored in the settings
file (they have in common), we now determine if the value looks like
an X-font. If it doesn't, the Xaw version ignores it. The GTK build already
ignored it if it did lool like an X-font spec.

2014-09-04 17:03:55 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix alignment in Engine Output window

Numbers above 1000M would become too wide for their field. This is
solved by introducing the abbreviation 'G'. Values below 10M or 10G
now get an extra digit in their fraction, so that the precision is
at least 1%.

2014-09-01 14:44:54 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add Save Selected Games menu item

A menu item to save all selected games in the Game List on a single
file is added.

2014-09-01 12:03:58 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Add final piece count to search criteria

The Load Options dialog now has a text field in which a range can be
entered (like 8-10). Position search will then only select games that
had their final number of pieces in this range.

2014-08-29 21:15:29 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix castling rights on using -lgf

The dummy InitPosition to force loading pieces was taking place after
InitBackend2(), while the latter could have already loaded a game
from an -lgf argument (which would then be spoiled by the InitPosition).
It has been moved to before InitBackend2() now.

2014-07-29 15:03:04 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on double-click in Game List Tags

A double-click in the Game List Tags listbox has no function, but it
crashed XBoard, because the textValue field of teh ListBox Option definition,
supposed to contain a pointer to the user-supplied handler, contained a
pointer to an empty string.

2014-07-02 14:34:53 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix typing of null moves

Entering a null move through the move type-in could fail because the
to-square coordinates (not used in its encoding) could have invalid values,
which would reject the move in an early stage of UserMoveEvent().
Null moves are now exempted from this vaidity test, while variants where
null moves are legal now accept them in any gameMode.

2014-07-02 14:04:22 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix adjusting clocks in Xaw version

The handler attached to Label options failed to flip the sign of the
option number when a button other than Button1 was pressed, so that time
would always be subtracted on Shift + ClockClick and never added.
Shift now also suppresses interpretation as null move when playing.
(In Analyze / EditGame mode it is still null move starting a variation.)

2014-07-02 12:37:18 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix null-move entry during play

Null moving by clicking the clock was only accepted in Edit Game and Analyze
mode, while in Chu Shogi and spin-offs it is also allowed during play.
An F_NULL_MOVE flag was introduced to make it easy to test for such variants,
and Machine White/Black mode now also interpret clock clicks as a null move
if the opponent's flag has not yet fallen.

2014-04-09 09:53:56 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Let EditPosition double-click on piece promote it

For pieces with Shogi-like promotion (i.e. if the promoted piece has
pieceToChar defined as '+'), let a second click on it in Edit Position
mode promote or demote it (as the case requires) when the piece menu is off,
rather than remove it (as was the old behavior.

2014-04-09 09:19:43 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Make EditPosition pallette work in Asian variants

Construction of the pallette position was not working in variants that
did not have Pawns start on 2nd rank, or that had multiple ranks of pieces.
Now the algorithm is applied to all ranks.

2014-04-05 23:00:17 +0200 H.G.Muller <hgm@hgm-xboard.(none)>:
Fix crash on opening Tags window Xaw

Suppressing the optional book button made the Xaw generic popup crash,
because the following button had the SAME_ROW modality, and was thus
positioned w.r.t. a non-existent widget.

2014-04-05 20:39:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix writing of Chu-Shogi FENs

Promoted pieces were getting the wrong ID letter, of the piece demoted
by 11, rather than 22.

2014-04-01 18:20:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow pseudo-engines to adjust the clocks

Implement new options -first/secondPseudo, which declare the corresponding
engine to be a pseudo-engine, which will then be granted super-powers
through some new engine->GUI commands. For instance, to adjust the time
remaining on the GUI clocks through wtime and btime commands (using msec).

2014-04-01 12:00:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix piece inscriptions


2014-04-01 11:16:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix reading Chu Shogi FENs

The X (for Phoenix) was interpreted a 10 empty squares.

2014-03-17 23:26:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix loading positions in engine-defined variant

Paste Position did not work when an engine-defined variant had redefined
the pieceToCharTable, as the position would be interpreted and sent to the
engine before receiving the setup command. Copying the pieceToCharTable
received from an earlier game to appData cures this, because it will then
be used by InitPosition, which would reset the table to default otherwise.
 Another problem was that setupSpoiledMachineBlack would not be reset
after a game with no moves, leading to a spurious 'go' command to the engine.

2014-03-17 23:05:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Render inscriptions on Chu-promoted pieces in red


2014-03-17 22:56:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow writing text on pieces

A new persistent string option -inscriptions allows the user to define
characters to be written on the various piece types. The string is
interpreted as UTF-8. This option is useful for on-the-fly synthesis
of Shogi pieces, where the string can contain the various kanji in
the canonical pieceToCharTable order. Except that only a single color
has to be given.

2014-03-12 22:08:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix initial sizing of board

Previous patches had destroyed the ability to obey the -size option.

2014-03-10 21:15:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix width of menu bar

The truncated name might not have been terminated with '\0'.
TinyLayout now specifies the number of characters kept in the menu names.
In the OS X version truncating is never needed, as the menu bar is
at the top of the screen, independent of board size.

2014-03-09 20:38:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warnings fonts patch


2014-03-02 23:10:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement (clock-)font handling in GTK

The options -clockFont, -coordFont and -messageFont are activated,
and supposed to have string values like "Sans Bold 12". The default
values have the point size as 'wild-card' %d, however "Sans Bold %d",
and are expanded by a printf with the point size taken from the defaults
table. The expanded versions are saved back into the settings file,
prefixed with a size tag, as usual.
 So far -clockFont is the only font that is actually applied while
writing.
 The 'clock kludge' was interfering with the initial sizing, as for some
sizes the initial clock-widget height happened to be equal to the final
height. It was therefore abandoned, and we seem to be able to live without
it.
 Sizes smaller than 49 were dominated (for 8-wide boards) by the menu bar.
Therefore tinyLayout now uses single-letter menu labels.

2014-03-02 20:45:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also search indirection files in user's .xboard tree


2014-03-02 18:53:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix error Engine Output text highlighting

In wengineoutput.c higeTextStart and End where decalred both static and
extern, which somecompilers justifiably don't like.

2014-03-01 16:09:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Board-dialog bug WB

The drawing code for the sample square did ot restore the correct brush.

2014-02-28 21:48:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix various warnings

Mostly written but never read errors. Also removed a debug printf that was
causing a format warning.

2014-02-26 16:34:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Kludge repair of expose after startup resize

Redraw of the main board after resize is delegated to DragProc, which is
scheduled after a delay, to make sure the user is done sizing (mainly to
reposition docked windows). But at startup the program-requested resize when
an engine does not support variant normal and needs a different board format
takes so long that the finale size expose occurs after the DragProc timeout.
As a result, the board was never drawn on the resized canvas.
  This is quite hard to fix in a satisfactory way. For now the suppression
of board redrawing during resize is disabled during the first 10 seconds
after startup, as any resize during that time is likely to be the result
of a program request.

2014-02-26 13:08:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use first engine as default for second

Rather than having the same fixed default for both engines, we noww only
have a fixed default for the first, and use the actual first as default
for the second. One advantage is that this guarantees the second engine
plays the same variants as the first by default.

2014-02-23 23:51:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow adding played move to book

A button is added in the Edit Book dialog to prime XBoard for adding the
next move entered through the user interface to the book window, without
actually playing it.

2014-02-23 22:54:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Play move right-clicked in Edit Book dialog

A handler for button-3 down-clicks is added to the Edit Tags dialog,
which fakes the clicked word was typed in the move type-in box.

2014-02-23 19:23:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix pop-down of ChatDlg and TextMenuDlg from menu

Unlike other windows these two would not react to clicking the menu item
once they were up. Now they pop down in that case.

2014-02-21 11:10:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Preserve window width on board-format change

When a variant switch would cause recalculation of the board window,
we now first recalculate square size to keep the window width fixed.
Also adapt initial width on high boards.

2014-02-18 22:37:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Equip Board Options dialog with themes listbox

The option -themeNames is made persistent for XBoard, and its value is
displayed in a listbox added to the View -> Board dialog. The user
can select themes from this, and manipulate the contents similar to
the engine list in Load Engine. A textedit allows the user to define a
theme name for the current settings, and doing so adds the theme to the
-themeNames list.

2014-02-07 11:22:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement copy function in ICS Text Menu

A command consisting of the word $copy will place the clicked word on
the clipboard. When there was already text selected during the click,
that selected text will be used for $copy and $name, rather than the
right-clicked word.

2014-02-07 09:48:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
When ICS Console open EOF from keyboard is no error

In case the user started without a terminal, we just close the input source,
and suppress future writing to the xterm.

2014-02-06 18:46:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Leave xterm at start of new line after quitting XBoard


2014-02-06 18:36:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also display channel tell in ICS Console during private chat

Channel tells of players for which a chat wa opened were displayed in that
chat, as well as in the channel chatbox, if the latter was open. But when
there was no channel chatbox it would not appear as colorized channel tell
in the console. This is now fixed, and in the private chat box such a
message is indicated as 'broadcast'.

2014-02-05 23:08:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Write broadcasts also to private chatbox of talker

The shouts or channel chatboxes capture messages first, but if a private
chat with the talker is opened, it now goes there too. Prefixed with
the type of broadcast.

2014-03-02 13:18:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Xaw Chat Console


2014-02-05 22:38:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let Ctrl-O key open chat for last talker


2014-02-05 22:15:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add End Chat button

This button clears the current chat, so that it becomes free for
assignement to another partner.

2014-02-05 21:59:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Ctrl-N in chat opens empty chat

This key isequivalent to pressing the left-most New Chat button.
If no unused chat present, it the command will be ignored.

2014-02-05 21:29:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Preserve unfinished input lines during chat switch

This is problematic, as apparently we cannot write in widgets that are
active with key hits, so attempting to write it back in response to Tab
did not work. This is now done with a delay, for lack of a better method.

2014-02-04 13:57:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Recognize Esc and Tab in ICS Console input

Esc is used to close the chat, or transfer focus to the board window.
Tab is used to navigate between chats (or open the first). Priority
is given to dirty chats.

2014-02-03 20:35:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let ICS Console pop up GTK in stead of ICS Input Box


2014-02-03 19:45:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add context menu to ICS console XB-GTK

A right-click handler is added to the output memos of the ICS Interaction
window. It pops up the ICS text menu. It is remembered whether the menu
was already up; if not, it will be popped down after a command is selected
from it. Like the WinBoard context menu, the commands will be able to use
the clicked word.
The -icsMenu 'command' $chat is now recognized as a special case, not to
be sent to the ICS, but executed by XBoard. It will assign one of the
five chats to the clicked name. If no empty chat is available, the last
chat will be used (but not cleared).
 The -icsMenu in the master config file is now configured to contain
this command, but unfortunately this will not become effective for users
that already have a settings file.
The Text Menu now puts $input commands in ICS Console Input field when the
ICS Input Box is not up.
 The text placed in the input field for completion (as per $input directive)
turned out to be selected in GTK, so that when you stated typing, it was
erased again!
 By making the Text menu dialog subject to WindowPlacement control,
and interrogating the poition of the ICS Console window, the Text Menu
can be popped up such that the mouse pointer is on the bottom-left button.

2014-02-02 21:17:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Integrate ICS output into Chat Window

An extra pane has been added to the Chat Window to display the ICS output.
In GTK this output is colorized just as in the xterm. For Xaw this is not
possible. This pane is always visible, and the chat output can be hidden,
to double its size. Entered input will go to the selected chat (when not
hidden) as a tell or shout, or to the ICS as a command. The Chat-Partner
field is hidden together with the chat pane and the Hide button. Each of
the five chats now has a dedicated button; for unused chats (empty Chat-
Partner field) these now gets the text 'New Chat' inscribed on it.
Focussing is made more intelligent (to the Partner field when shown and
empty, otherwise to the input field).
The Up and Down arrows now work in the input field to recall old input.
 ScrollToCursor() was broken in GTK, because a mark was made for only
a single buffer. Now each buffer has its own end mark.
 Another problem was that using ScrollToCursow immediately after a memo
was shrunk (because a neighboring one expanded) it would still use the
old memo size, so that the bottom part remained out of view. Delaying it
50 ms solved that problem.
 A new option -icsUp was added to store the visibility in the settings.
It is updated only in ICS mode. The ICS Console pops up automatically
when the stored parameters say so. It is also made sticky.
 Unlike the xterm the textView does not extend background color to unwritten
positions behind the line. A separate GTK call is now added to set the
unwritten part to the same color as the background in normal text.
 A  control was added in the ICS Options dialog for setting the colors
of normal text (-colorNormal).

2014-02-02 17:27:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add logo-size control XBoard

This is mainly for the benefit of OS X useres who cannot find their
settings file. It requires a restart to become effective, which is
really sub-standard.

2014-02-02 17:18:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add Edit Engine List menu item to XBoard

In OS X the settings file is hard to find...

2014-02-02 16:41:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warnings

Some unread variables are commented out, rather than removed, because they
can be useful for future development.

2014-02-02 16:33:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix moves of Spartan Captain

The rewrite of the move generator did no longer pay attention to rookRange,
so that the Spartan Captain moved like a Rook.

2014-02-02 16:18:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add Option type 'Skip'

The value -1 used to suppress rendering of option controls was drawing
error messages, because enums are unsigned. So a new member Skip was added
to the enum.

2014-02-02 14:40:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Detect Fischer castling in FENs

Castling rights with unorthodox piece placement imply Fischer castling.
Make sure shuffling is done after detecting this, because it means K & R
can also be shuffled (as long as K remains between both R).

2014-02-02 14:09:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow shuffling indicators in FEN

If the back ranks are enclosed by < > in a FEN, the route to shuffle
initial positions is invoked on it.

2014-02-02 13:51:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow wild-cards in FEN

A question mark in a FEN will now be interpreted as a piece randomly
chosen from the holdings. (From which it will be removed.) Intended
for use in symmetric black/white pairs; when used on asymetric locations
or with non-identical holdings the results will be undefined.

2014-02-02 10:40:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Seirawan reverse-castling animation

In Chess960 animation of castlings is suppressed, because the move is encoded
as KxR, so that the to-square in general is not the final destination of the
King. So it is just confusing to the eye to see the King slide to the Rook,
and then jump to an entirely different square. In S-Chess castlings can
similarly be encoded as RxK (to indicate gating at the Rook square), and
animation of those moves should be suppressed for the same reason. But it
wasn't, and in Fischer castlings denoted as RxK this even caused the Rook
to disappear when it didn't need to moved.
 Perhaps one day a smart method of animating Fischer castlings can be
designed. (E.g. remove Rook, animate King move to true to-square, place Rook?
But what if the King doesn't move at all? Animate Rook then? Normal castlings
now animate the King, and then just displace the Rook.)

2014-02-02 10:22:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make Fischer castling generally available

A new volatile option -fischerCastlings allows every variant to be played
with Fischer castling, which so far was only allowed in variants FRC/CRC.
This only makes sense in shuffle variants, where King and Rooks might not
be in their orthodox locations. But even when they are, it has consequences
for the user interface, which will require dragging King on Rook as the only
way to enter castling. Like -shuffleOpenings the setting will be cleared
as soon as you switch variant (unless you switch to FRC/CRC, where they
Fischer castling is on by default). It can be set from the New Shuffle dialog.

2014-01-19 22:41:52 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files


2014-01-19 22:19:10 -0800 Arun Persaud <arun@nubati.net>:
new version number for developer release


2014-01-19 22:15:33 -0800 Arun Persaud <arun@nubati.net>:
updated Dutch translation


2014-01-19 20:44:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put ponder checkbox in Common Engine dialog WB

This is yet another duplicate of the one in General Options and Adjudiactions.

2014-01-19 20:27:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Expand %s in -openCommand to DATADIR and fix OSX settings-file name

This can be used in OS X to biggy-back a cd to a directory in the App
on the open command.

2014-01-18 23:42:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add some checkboxes in General Options dialog WB

Checkboxes are added for -variations, -memoHeaders and -autoExtend.

2014-01-18 23:26:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warning in CheckTest


2014-01-18 22:40:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix printing of engine-output headers

They were not printed on analyis of the first position after opening
the Engine Output window.

2014-01-16 23:07:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sticky windows on Win8


2014-01-16 22:54:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Drag touching edges together (WB)

When an auxiliary window is dragged by an edge, the snap code now checks
if that edge was touching another window. If so, that other window is sized
to keep touching the dragged edge. Unless it was also touching the main
window.

2014-01-15 22:35:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement new mate-score standard

Matescores are now indicated in the protocol as +/- 100000+DTM,
and in the Engine Output window as #DTM or #-DTM.

2014-01-15 21:28:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put fail-high/fail-low indicators in protocol specs


2014-01-15 20:43:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
switch to new tbhits protocol

The extended info is now expected as 3 bare integers, the last one
separated from the PV by at least one tab character.
The protocol extension is described in the CECP specs document.

2014-01-14 22:37:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sorting of Engine Output

The moveKey of the top line was never stored, so that more recent
lower scores could not pass it even if they had the same move.

2014-01-14 22:35:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Handle fali-low & fail high

A ? or ! at the end of the PV are now also written behind the score.

2014-01-14 20:31:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement extended thinking output

The PV field can now start with three quantities, selective depth,
engine speed and tablebase hits, disguised as PGN comment. XBoard will
strip that off, and allow them to be displayed in separate columns of
the engine-output window.

2014-01-14 14:46:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow hide/show of columns in Engine Output

A new persistent Boolean option -memoHeaders enables a new feature:
text headers are shown above the depth, score, nodes, time columns in the
engine output. Right-clicking them will subsequently hide the corresponding
data, and move the column header to above the PV in a 'not shown' list,
where it can be clicked again to re-open the column.
Configure maseter settings to switch -memoHeaders on by default.

2014-01-14 09:55:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ManProc for OS X


2014-01-14 10:02:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix access to ~~/themes/conf for OS X

In OS X DATADIR is a variable.

2014-01-13 19:23:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add 'Continue later' button to Tournament dialog XB

To do GenericReadout without triggering a call to the OK function,
we introduced a new value for the option-number parameter, -2.

2014-01-13 17:32:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Tournament Options dialog

Deleting a Label option had renumbered the remaining Options, breaking
the dialog and causing a crash when an engine was selected. A considyency
check is now added to catch this condition, and throw an error popup
when we mess up again.

2014-01-13 17:09:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow popup of TC and Common Engine from Tournament dialog

A new dialog class MasterDlg was added, similar to TransientDlg,
but to allow two dialogs to be up simultaneously. The Tournament Options
dialog was migrated to this class, so it can now get buttons to pop up
the Time Control and Common Engine dialog, like WinBoard. It even has
a button for the General options dialog.
Special care had to be taken to prevent popdown of the MasterDlg when
a Transient child is still up (similar to browser or error childs).

2014-01-13 16:21:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add --show-config special option

This prints a list of configure parameters, and then exits. If a second
argument is given, it only prints the value of that config parameter,
so that tricks like cp *.svg `xboard --show-config Datadir`/themes/chu
can be used in install scripts of packages with piece images.

2014-01-13 14:25:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Overhaul kill code

Engines were not always forcefully killed in XBoard, which could make
the tournament manager hang when an engine became unresponsive to "quit".
The various levels of killing are now revised, and the -delayAfterQuit
is absorbed in DestroyChildProcess(). There is a hard killing mode 9,
which immediately sends SIGKILL, intended for engines that have already
proven to malfunction or could not start at all. In other cases SIGTERM
is sent according to specs, but a SIGKILL is scheduled -delayAfterQuit + 1
sec later just in case the SIGTERM would be ignored.

2014-01-13 13:38:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix name of master settings file in OS X

The name needs to be relative to the bundle path, but ~~ expansion
did not work for compiled-in defaults, as the expansion takes place
when parsing an option. The dataDir is now also kept in an array rather
than as a pointer, to allow it to appear in statically initialized tables.

2014-01-08 16:25:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Chu promotion of L, HM and GB

The promotion popup would not be shown for HM and GB with legality testing
on because the piece types used for them were wild-card pieces. The Lance
was treated as a Pawn in HasPrmotionChoice().

2014-01-08 16:09:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove redefine of DATADIR that leaked in from v4.7.x

2014-01-05 12:52:46 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files


2014-01-05 12:51:50 -0800 Arun Persaud <arun@nubati.net>:
new version number for release 4.7.3


2014-01-05 10:58:48 -0800 Arun Persaud <arun@nubati.net>:
updated copyright to 2014 in menu.c


2014-01-05 10:37:56 -0800 Arun Persaud <arun@nubati.net>:
removed .DS_Store file from git


2014-01-05 10:34:08 -0800 Arun Persaud <arun@nubati.net>:
Updated copyright notice to 2014


2014-01-05 10:27:53 -0800 Arun Persaud <arun@nubati.net>:
cleanup some trailing whitespaces


2013-12-29 13:46:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on use of dialog Browse buttons GTK

The code to set a filter did not expect multiple extensions, and would
cause a buffer overrun when there were.

2013-12-27 20:12:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make building of Windows .hlp file optional

By using && and || operators in the build recipe, the building of WinBoard
with Cygwin is now not aborted whe the Help Compiler is not installed.

2014-01-05 11:47:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use __APPLE__ compile switch for OS X

It seems that on Apple machines the compiler will always define the
symbol __APPLE__, so this is now used instead of OSX, which had to
be defined with a -DOSX compiler flag. The gtkmacintegration header
is now using <> in stead of "" in its #include. (Strange enough both
were working.)

2014-01-04 12:18:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Expand ~~/ to bundle path (OSX)

DATADIR is #defined in WinBoard as "~~" to make the expansion a no-op
there. Same for Linux compiles. For OS X it is #defined as a variable,
obtained from GTK-OSX at startup.

2013-12-29 23:27:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Activate ManProc in GTK


2013-12-29 22:14:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove use of strndup

The use of strndup was actually unsafe, as the length was passed using
an ordinary strlen. strndup was not availableon OS X 10.6, and is now
replaced by an ordinary strdup, which should be save enough.

2013-12-29 22:09:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put some OSX code into gtk version

Under control of #ifdef OSX code is added to integrate the GTK front-end
into OS X. This involves moving the menu bar to outside the window, and
catching the signal that OS X sends to running applications when opening
another instance was requested. Som files are renamed to conform to the
file tree of the OS X App package.

2013-12-27 21:47:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Cure weirdness when dragging outside of board

Dragging outside the board (when people maximized the window) did not
properly restore background, (leaving a trail of dragged piece). Filling
the canvas with white when it is creatd cured this. The problem most likely
was that unitialized cairo surfaces had transparancy, and writing back
transparancy doesn't helpmuch to erase things.

2013-12-09 14:52:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sorting of lines in Engine Output

Lines tat were fail-lows or fail-ighs should get the scores on the basis
of wich they are sorted corrected to that of te line (for the same move)
superceding them, so that other moves can rise to above them, when they
score higher than the corrected score.

2013-12-05 20:08:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make filler variant button inactive


2013-12-05 17:50:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix packing of FRC castlings

The routine for packing moves to the internal database format was not
working for FRC castlings, totally messing up position search for FRC
and CRC.

2013-12-05 16:23:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Xaw file-browser New Directory

Prevent people from using the error messages that will be printed here
as directory name by pressing New Directory a second time after first
pressing it with an empty or existing name.

2013-12-05 16:14:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Widen Xaw text entries for larger square sizes

Presumably people will use larger fonts if they use larger board squares.
(And in any case te default fonts would be larger.) This means they need
more space to see what is the current value of text options.

2013-12-05 15:47:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove width limiting of shuffle checkbox


2013-11-28 13:30:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow castling and e.p. to be edited in opening book


2013-09-16 22:32:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Repair FRC A-side castling legality testing

XBoard allowed A-side castling when a rook started on the a-file,
and the b-file was blocked.

2013-09-16 22:27:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Repair XBoard from node-count patch

u64 was #defined in backend.h, which unfortunately was almost alwats
(Not sure why WinBoard did not suffer from this!) This, and related
definitions have now been moved to common.h (which is always #included
first).

2013-09-15 20:13:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
WinBoard multi-monitor support

A patch provided by Tim Kosse

2013-09-15 19:28:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix node count range

The node count was still clipped to 32 bit because one of the structs
it passes through (FrontEndProgramStats) had the nodes field declared
as an unsigned long.

2013-09-15 19:12:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix adjudication of Giveaway stalemates

The case where the side-to-move would win by stalemate was not treated
in the Adjudicate switch.

2013-08-30 17:33:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix buffer overflow in parser

When a line ended with a comment, the parser had to read a line ahead
to check if there was a PGNresult following, without being able to
throw away the previous line yet. This could lead to buffer overflow
in a long game where every line ended in a comment. The buffer now is
cleansed of already parsed data when starting on a new syntactical unit.

2013-08-27 22:55:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix -zippyVariants option

Due to the change of cps->variants from (char []) to (char *), copying
zippyVariants to it on behalf of v1 engines would no longer work. This
is fixed by using ASSIGN() in stead of safeStrCpy().

2013-08-26 18:25:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix initial board sizing WB

The initial board size was based on the assumption the board would be 8x8.
This could push auxiliary windows off screen if the board was smaller,
after which EnsureOnScreen would undock them and park them in the upper-
right corner before the board assumed its true size. InitPos() is now called
before the initial sizing to et the board format correctly, InitDrawingSizes()
had to be made resitant to calling before a board size was picked for this
(because InitPos() might call that too).
  ActivateTheme() now uses the new board size, not the previous one (as was
indicated by size -2), so that -boardSize specifications inside a theme
will take effect.
  Board size petite should not be forbidden for Shogi; all pieces exist there.

2013-08-26 14:40:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix grabbing of selected piece

A second static click on a selected piece should deselect it, but an attempt
to drag an already selected piece should not 'bounce off'. It was already
possible to move a selected piece to another square, but the dragging was
not animated. This is now fixed, by only skipping the code to start dragging
when the second click is part of the only-move double-click for only capture.
(Before it was skipped on any second click.)

2013-08-26 13:35:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow entry of negative numbers in spin control (WB)

Windows numeric controls do not accept negative numbers, so in case the
range of a spin option can go negative, the style ES_NUMBER should not be
set on the control.

2013-08-26 11:37:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow drops / promotions/ deferrals to be edited into book

For no real reason only NormalMove would be accepted when parsing the list
of book moves.

2013-08-26 11:28:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix GUI book after setup position

The routine to send move to the engine would automatically append a 'go'
is a preious setboard had put the engine in force mode, but this should
not happen on a book hit, where the engine should even be put in force mode
if it was not yet there.

2013-07-05 18:32:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix book creation

Due to duplicate use of the same file pointer variable the game file would be
closed before any games were read from it.

2013-05-20 11:14:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make PGN parser immune to unprotected time stamps

The parser choked on time stamps of the form dd:dd or dd:dd:dd if one
of the fields happened to be 00, because it wouldmistake that for a
non-compliant king-side castling. By excluding this interpretation when
the 00 is immediately preceded or followed by ':' this is now prevented.

2013-05-05 08:03:00 -0700 Arun Persaud <arun@nubati.net>:
updated po files for new release (make distcheck)


2013-05-05 07:57:22 -0700 Arun Persaud <arun@nubati.net>:
new version number for release 4.7.1


2013-05-05 07:53:54 -0700 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.


2013-05-02 22:47:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update zippy.README

It is explained how to generate multi-line commands for -zipyGameEnd.

2013-04-01 20:43:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Xaw file browser

The 'next page' entry of the Xaw file browser contained a \177 character
to keep at sorted at the bottom. This caused trouble for gettext.
Now the sorting range is adapted so the 'next page' is never part of it.
  More seriously, the listbox fill code had a wrong cast when testing for
an empty listbox on the first element, so that it only tested the low byte
of the pointer, in stead of the entire pointer for NULLness. As a result
the contents of the listboxes could suddenly disappear when even when it
was non-empty, because the first filename was allocated at an unlucky address.

2013-03-22 19:23:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make Chat Box window obey -topLevel option

It was always popping up as a dialog of the main board, covering it.
One could argue it should always be to-level.

2013-03-19 13:20:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix scrolling of Chat Box

Seems the problem is that scroll_to_iter does not work until after some time,
needed to calculate line heights. Use scroll_to_mark instead, after clumsily
adding a text_mark.

2013-03-17 10:33:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix GTK SetInsertPos

SetInsertPos() was not yet ported to GTK, with as a result that the cursor
was positioned at the start of a line recalled in the ICS Input Box,
rather than at the end. The code also called SetInsertPos to force scrolling
to that point in the text (which in Xaw is an automatic side effect). So for
multi-line text edits this function calls ScrollToCursor(). For some reason
this does not work when replacing texts in the Chat Box memo, when switching
chat, although it does work in the same memo when a line is added to the
existing text.

2013-03-07 21:38:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Print score of final position in Analyze Game

The score/depth of the final position of the analyed game is added
(as an explicit comment) behind the PV of the forelast position.
To make this work, a new 'addBraces' mode (3) had to be added to
AppendComment, which suppresses stripping of the score/depth from
the comment.

2013-03-12 18:50:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix horrible bug in reading scores from PGN

Reading scores like -0.94 flipped the sign, because the integer part
-0 would read as 0, and thus was no reason for sign flipping.

2013-03-10 12:43:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix disappearence of pieces that were moved illegally

Dragging damages the from-square, but it is not marked as such, because
selective board redraws to update highlights and such would draw the piece
that is really still there, making it flash on the from-square before
the position after the move is drawn. This, however, backfires when the
move was illegal, as then there is no draw of a new position, and the
from-square stays empty. For now this is solved by making DisplayMoveError()
order a total redraw. (As this is rare, only done in case of an error,
and might even throw up a pop-up, the performance cost of this is acceptable.)

2013-03-20 17:50:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix quoting of book name in tourney file

The argument of -polyglotBook was written to the tourney file unquoted,
which effectively made it disappear if it was an empty or blank string.

2013-03-07 18:11:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Provide compatibility with Alien Edition setup command

The setup command of the Alien Edition has a board-size specifier
(possibly as prefix on a parent-variant name) between pieceToCharTable
and FEN. The regular version would choke on that, precluding engines
designed for the Alien protocol extension to have their setup processed
when running under regular XBoard. This patch makes it skip the extra info.

2013-03-07 17:52:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix saving of analyzed game

Anotated games after batch-mode Analyze Game were not auto-saved,
because the GameEnds() call supposed to do that was called with a NULL
argument for resultDetails. Now it is called with the resultDetails as
pre-existing in the gameInfo, or an empty string if none exist. This bug
was masked by the fact that in standard game ends (mate, etc.) the
analyzing engine would declare game end and supply a message.
 Also makes a distinction between Analyze Game and regular Analyze mode
when resuming analysis after loading a game; only the former now would
trigger a batch analysis.

2013-03-07 17:48:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix spurious popup after batch-mode Analyze Game

A batch analysis of games was not properly terminated, because the game
mode was tested after it had already been changed. No oldGameMode is
tested in stead.

2013-03-02 22:21:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let XBoard -autoBox option also affect move type-in


2013-03-02 22:17:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix GTK box popup

Key values > 255 are used for PgUp, PgDown etc., so to pop up only on
printables needs a two-sided test.

2013-03-01 12:50:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix fatal error on unsupported board size

When a board size unsupported by the engine was requested through the
New Variant dialog, this was discovered while the dialog was still up,
causing the error message to pop up as a child of the New Variant dialog,
so that it would immediately be taken down as the latter closed.
As a result it could not be confirmed, so that XBoard would not exit, and
was left in a pathologic state (ignoring window-close). This is fixed
by performing Reset (which detects the error) after PopDown of New Variant.

2013-03-01 12:39:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Accept setup command for non-standard board size

The code to test if board-size is standard for the current variant
has been moved to a subroutine, to allow its calling when receiving
a "setup" command from the engine.

2013-03-01 11:57:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix buffer overflow in feature parsing

String features (variants, egt, myname and option) relied on a buf[MSG_SIZ]
for processing their value. The Nebiyu engine had combobox options that
required more than that. All string features are now stored in allocated
memory rather than in static arrays, and StringFeature allocates a buffer
of sufficient size for them. Only limitation now is the low-level input
buffer in the InputSource threads, whih is a static buffer of 4096
(=INPUT_SOURCE_BUF_SIZE) characters.

2013-02-27 23:44:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix vertical sizing of GTK board

The clipping of the boad at the bottom was due to resizing of the clock
height when we first write it with a big font. This patch delays calculation
of the final size until after the clock height changes.

2013-02-26 21:13:32 -0800 Arun Persaud <arun@nubati.net>:
Updated German translation


2013-02-26 20:27:24 -0800 Arun Persaud <arun@nubati.net>:
Updated Ukrainian translations


2013-02-26 17:59:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix of argument error

Oops. Pevious patch for skipping unknown multi-line arguments
was still buggy.

2013-02-26 17:44:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let popping up of WinBoard chatbox for channel open it

WinBoard now issues a +ch command for a channel when you pop up a chatbox
for that channel. A work-around is added for the fact that the public
FICS seems to ignore the first such command.

2013-02-26 17:27:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make skipping of unknown option smarter

To make XBoard better resistant to the presence of disbanded or future
options in its settings file, encountering those is no longer a fatal error.
But the error recovery only consisted of skipping the rest of the line.
This fails badly on string options with a multi-line value, which is
enclosed by {braces}. We now detect that case, to skip to } instead.

2013-02-26 17:15:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add -backupSettingsFile option

For better configurability of WinBoard, an option is added to optionally
read a settings file, namely if no other settings file (other than the
master file) was read so far. This can be used to import settings from
a previous version, without destroying its settings file.

2013-02-26 16:55:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Repair WinBoard compile error

__GITVERSION was not defined in WinBoard, as it was only defined with a
compiler flag by ./configure, which WinBoard does not use.

2013-02-26 16:47:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Work-around for Xt selection bug

In some Xt implementations calling extend-end with 0 params causes a crash,
although the mmanual specifies this should default to a call with 'PRIMARY'.
The default selection is now explicitly mentioned in all extend-end calls.

2013-02-24 09:31:57 -0800 Christoph Moench-Tegeder <cmt@burggraben.net>:
fix bug #38401: xboard.texi doesn't build with texinfo-5.0 (tiny change)

xboard-4.7.0's documentation is not buildable with texinfo-5.0, it fails with a lot of error messages from makeinfo like
./xboard.texi:1026: @itemx must follow @item
makeinfo seems right, @itemx is not used as described in the texinfo manual.
Attached patch puts each item of the "Options" menu in it's own @subsection and formats the description of each item as a @table as neccessary. This way, xboard builds again and the manual doesn't look too bad.

2013-02-24 09:09:54 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files


2013-02-24 09:04:48 -0800 Arun Persaud <arun@nubati.net>:
new version number for developer release


2013-02-20 21:28:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Try to make life more bearable in Xaw menus

The alignment still sucks, but not as much as before.

2013-02-20 19:26:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix -topLevel option

This option was copletely ignored, after the refactorig.

2013-02-20 18:16:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix testing for valid window placement Xaw


2013-02-20 12:15:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress printing of status line in dual-board mode


2013-02-20 11:56:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sizing of slave board GTK

For lack of a known method to specify a default size for Graph widgets,
we have to use the same system as for the main board: create with 0x0 size,
and measure the size of the outer window to determine margins.
After every popup we then resize to the required board size plus these
margins. (Awful...)

2013-02-20 10:08:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Better handling of undefined window parameters

Repositioning and resizing a newly created dialog was based on the width
parameter of the stored sizing info being valid. Now it is separately
tested if the position is valid, so that sizing and moving can be done
independently. This allows us to store position info, but not size info
for the slave board, so that it automatically will use the size of the
main board when first opened.

2013-02-19 19:14:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Limit debug print to debug mode


2013-02-19 19:14:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix repositioning of GTK windows

After 'hide' and 'show' GTK would not position the window in the same place,
but center it on the parent. Now we reposition the window after 'show' based
on the WindowPlacement data (if available).

2013-02-19 18:52:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remember window params of slave board

The slave board now has been assigned a WindowPlacement, which is also
saved in the settings file, through new options -slaveX/Y/W/H.

2013-02-19 17:48:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix repairing of arrow damage

The '2' bit in damage[][] to indicate the arrow was erroneously cleared,
rather than kept.

2013-02-18 19:55:20 -0800 Arun Persaud <arun@nubati.net>:
fix OK-response in gtk dialogs, see c7f8df124

the fix in c7f8df124 needs to be applied to both of those if cases

2013-02-18 17:11:32 -0800 Arun Persaud <arun@nubati.net>:
removed two more translations from debug output


2013-02-18 17:09:30 -0800 Arun Persaud <arun@nubati.net>:
fixed segfault of g_markup_printf_escaped which needs utf-8 strings

defined text-domain as utf-8 solved this

2013-02-18 13:38:51 -0800 Arun Persaud <arun@nubati.net>:
fixed gtk-warning


2013-02-18 10:06:36 -0800 Arun Persaud <arun@nubati.net>:
removed some translation calls for messages in the debug log


2013-02-18 09:46:53 -0800 Arun Persaud <arun@nubati.net>:
add keyboard shortcuts back into Xaw version


2013-02-17 14:13:30 -0800 Arun Persaud <arun@nubati.net>:
in debug mode also print the git-version if available during build


2013-02-18 21:19:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Print game-list timing messages only in debug mode


2013-02-18 21:01:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix title of top-level windows


2013-02-18 18:51:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Cure GTK warning in top-level windows

There is no OK button in top-level windows, so the 'response' signal is
not defined, and should not be connected.

2013-02-18 18:33:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix graying of Revert menu item

The new code was checkmarking it in stead of enabling it!

2013-02-18 11:38:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add -onlyOwnGames option

This suppresses auto-saving of ICS observed games.

2013-02-18 11:17:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow display of 50-move counter in zippy mode

No chance it could be considered cheating there.

2013-02-18 10:48:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add new vertical pixel fudge

With the new GTK window type the board is 13 pixels too small.

2013-02-18 10:29:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Don't add PV moves on board clicking in AnalyzeMode

Playing PV moves by right-clicking the PV was only intended for clicks
in the engine Output window, selecting from multi-PV analysis output,
where by default it plays only the first move. PV walkig by right-clicking
the board, however, would start the walk at the end even in AnalyzeMode,
and thus add the entire PV. Which is probably not useful. So adding moves
in that case has now completely been suppressed, so it can be used for
harmless viewing of the latest PV.
 The behavior has also been made subject to a persistent Boolean option
-appendPV, configured to true, with a checkbox in General Options.
 A checkbox has also been added there for controlling the -variations option,
which is now also configured to true.

2013-02-18 10:25:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove checkbox for 'Move Sound'

This function is better controlled from the Sounds dialog.

2013-02-18 09:59:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make switching between board windows absolute

Selecting the window in which to draw the board when the slave board for
-dualBoard was up was done by a toggle. For unknown reason this could cause
a situation where the drawing took place in the other window than the
intended one. The code is made more robust by explicitly specifying which
window to draw in, based on the partnerUp flag.

2013-02-18 09:50:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Warn about experimental nature of dual board

The message field, which for now is unused, now contains a warning message.

2013-02-17 10:49:21 -0800 Arun Persaud <arun@nubati.net>:
add close buttons to gtk windows

use windows instead of dialogs for toplevel elements

2013-02-16 19:02:52 -0800 Arun Persaud <arun@nubati.net>:
keyboard accelerators for both front ends.

moved them out of the string definition, so that gtk can add them automatically.
Also wrote a function that loads them for X11.

TODO: add them again when creating X11 menu names

2013-02-15 11:03:02 -0800 Arun Persaud <arun@nubati.net>:
added rotated shogi pieces for -flipback option and moved them to the themes directory


2013-02-14 17:27:27 -0800 Arun Persaud <arun@nubati.net>:
add test for pkg-config

exit configure in case we can't find it.

2013-02-14 13:02:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Only perform e.p. capture if there are rights

The heuristic for e.p. capture was such that any non-forward move with
a Pawn to an empty square would delete the piece behind its new location
(Xiangqi exempted). This is now limited to cases where EP_STATUS indicates
that the deleted piece was a Pawn that performed a double-push on the
previous move. (Or if there is unknown EP_STATUS.)
 This makes XBoard more generally suitable for use with variants that have
non-conventional Pawn moves (with legality testing off). To guarantee this
will not have any unexpected effects in normal Chess, this patch will only
be active if legality testing is off.

2013-02-11 16:25:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Unreserve tourney game on exit during engine load

While waiting for the feature timeout we are not yet in TwoMachines mode,
so quitting XBoard at that stage would not unreserve the upcoming game.
A global flag 'startingEngine' similar to 'waitingForGame' now signals
this condition.

2013-02-10 13:40:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Better fix of feature timeout

The previous fix of the 2nd engine's done=1 aborting the 1st engine's
feature timeout by starting the game caused problems with v1 engines,
or other engines that would never send done=1. It is now fixed by
explicitly testing for a pending feature timeout after resurrecting
the 1st engine, rather than having TwoMachinesEventIfReady wait for
initDone to be set by reception of done=1.
 Also refrain from freezing the UI between match games, as in TwoMachines
mode the UI is mostly disabled anyway.

2013-02-08 16:24:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Connect Ctrl key in WinBoard

The Control key is now checked during move entry, for excluding moves
during analysis, or for copying pieces when editing a positions. But the
WB front-end did not read it out yet!

2013-02-08 16:23:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Makefile for install of Xiangqi pieces


2013-02-08 15:35:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add Xiangqi piece images to project

Let the images install in themes/xiangqi.

2013-02-08 15:14:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Revive -flipBlack option

The -flipBlack option in the cairo version is now implemented the same
way as it was in XBoard, swapping white and black pieces in filpView mode.
This requires a set black piece images that are the upside-down versions
of the white ones.

2013-02-07 13:55:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove empty-square SVG images from project


2013-02-06 19:00:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add desktop stuff for .xop MIME type.

Icons and desktop file were missing, as was the automake code to package them.

2013-02-06 16:48:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update NEWS file


2013-02-06 14:48:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add boolean -autoBox option

This option controls the automatic popup of the ICS Input Box on typing
a printable character, which was annoing to some. The option can be
set from the ICS Options dialog.

2013-02-06 10:56:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Draw both coords in a1

The lower-left board square needed two inscriptions, but DrawOneSquare()
only allowed one, so that the file ID would not be written. Now two strings
can be passed, and when align > 1 to indicate the alignment of the top
string, it is still checked if a bottom string is present as well, which
then is drawn with alignment 1 (= bottom right).
 The rank coord or piece count can now also be double digit.

2013-02-05 23:03:42 -0800 Arun Persaud <arun@nubati.net>:
updated po files for new release (make distcheck)

2013-02-05 23:02:07 -0800 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.

2013-02-05 22:52:42 -0800 Arun Persaud <arun@nubati.net>:
new version number for release of 4.7.0

2013-02-05 11:56:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let initial setting of Twice checkbox reflect current state

The Twice checkbox in the Tournament dialog of WinBoard was by default
starting unticked. It is more convenient to have it preserve the current
state, however, based on the -lpi or -lgi value. Like the auto-incremet
checkbox already did.

2013-02-04 22:07:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put GTK warning in about-box


2013-02-04 21:59:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warnings of build server


2013-02-02 15:58:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix GTK error auto-raising board

The variable mainwindow is not set in the gtk2 version. Unfortunately
it is still used to determine default board size...

2013-02-01 19:42:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update Dutch WB translation


2013-02-01 19:37:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add some new strings to WB translation template


2013-02-01 19:34:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Assign shortcut char to WB menu item

The new Save games as Book item did not have a shortcut yet.

2013-02-01 19:31:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let WinBoard start in its installation folder

The current directory in WinBoard was not automatically the same as the
installDir returned by SearchPath. Especially not if used without shortcut
by file association.

2013-02-01 19:29:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warning in WinBoard


2013-01-30 14:25:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix expose of to-square with grid off

The code relied on drawHighlight to request an expose evet for the entire
square, but when lineGap = 0, drawHighlight is a no-op.

2013-01-29 08:39:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix library order

On OS X dialog windows could not get focus if -lXaw appeared after
-lX11 -lXt in the linker command. This was cured by moving
@FRONTEND_FLAGS@ (which expands to -lXaw) first in the LDADD parameter
of the automake file.

2013-01-28 17:38:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Preserve PGN tags when loading engine

Switching to EditGame mode would normally erase the tags, but when analyzing
a loaded game this would be undesirable. When the engine is playing, keeping
the tags is dubious, but it is not obvious what to put in a new name tag,
so we leave that for now.

2013-01-28 17:23:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Preserve mode on engine loading (sometimes)

That the mode always switched to EditGame after engine loading was
particularly annoying at the start of a game (where leaving BeginningOfGame
mode would disablethe Time Control dialog, and the engine would not
automatically reply if you start playing) and AnalyzeMode. These two
modes are now preserved, BeginningOfGame by refraining from calling
EditGameEvent() and sending 'force' to the new engine, and AnalyzeMode
be calling AnalyzeModeEvent() after the engine is loaded and repositioned.

2013-01-28 14:14:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Catch unknown engine in tourney games

When an XBoard instance is playing on a tourney it can happen that it is
using a settings file with an engine list not yet containing a certain
participant, because that participant was just installed in the instance
that created the tourney file, but it did not save those modifications yet.
This error is now caught, and leads to an error popup and stopping of the
tourney play. This error was made non-fatal to allow the user to decide
if he wants to quit with or without saving the settings (which, after all,
does not seem up-to-date).

2013-01-26 18:08:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Adjudicate pawn-drop mate as loss in Shogi

Mating with a Pawn drop is illegal in Shogi, but rather than burdoning
the legality-testing by this complex rule, we simply invert the result
for such a mate. After all, Shogi customs are such that everything illegal
leads to an immediate loss.

2013-01-25 10:05:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Adjudicate perpetual checks as loss also in Shogi

The Xiangqi code for recognizing perpetual checks is now also activated for
Shogi, but in this case we bail out before checking for perpetual chases.
The mini-Shogi case is then recognized as a win for gote.

2013-01-25 09:55:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Stalemate is a win in Shogi

In regular Shogi this never occurs, but in the mini variants it happens
often enough.

2013-01-22 20:49:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix engine timeout problem in match mode

Reload of a reuse=0 engine would cause a done=1 event which would be
abort the feature timeout of the other engine in the first game.

2013-01-22 20:32:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Enforce -popupMoveErrors

One move error was using DisplayError(), in stead of DisplayMoveError(),
and thus did not obey the -popupMoveErrors option.

2013-01-21 15:30:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file


2013-01-21 10:26:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some warnings


2013-01-20 19:09:05 -0800 Arun Persaud <arun@nubati.net>:
Updated German translation


2013-01-19 17:54:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Do delayed board draw also with -stickyWindows false

Only CoDrag needs to be suppressed on a configure event with
-stickyWindows false, not the board redraw.

2013-01-18 11:11:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let tellothers command add comment to PGN in local mode


2012-12-30 15:19:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow use of ~ in pieceToChar for shadow pieces in any variant

The use of shadow-pieces for promoted Pawns was limited to Crazyhouse and
Bughouse. But this is not necessary, and in fact undesirable, as it made
it impossible to implement Crazyhouse960, which combines shadow promotions
with Fischer castling (only available in variant fischerandom)s, and thus
has to be played as 8x8+5_fischerandom, using the Crazyhouse -pieceToChaTable.

2012-12-30 15:06:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Resend engine-defined options after reuse=0 reload

When the engine process is re-spawned for a new game under -xreuse setting,
any alteration of engine settings brought about through the Engine Settings
dialogs would be lost, and revert to the engine's default. This is now fixed
by re-sending all options (known from the previous load of the same engine)
with the current settings immediately after "protover 2", and ignoring the
engine's option features. Rather than clearing the option list, and
redefining it from the option features.

2012-12-30 14:58:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement aborting of games on engine request.

A new game-end command is added. For bakward compatibility it is disguised
as an old one, namely "1/2-1/2 {Engine Abort Request}". These resultDetails
are recognized as special, and rather than ending the game in a draw (which
GUIs not implementing this), the game will be completely 'expunged' from
the match or tourney it is part of, leaving no trace in the saveGameFile.

2012-12-30 14:54:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Store some more tourney params in tourney file

The hash and threads settings, as well as ponder and book options are now
also saved in the tourney file, so that tournaments can be played in
parallel where these parameters differ, and no mess up can occur on
restarting a touney after doing something else.

2012-12-23 11:26:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Do not automatically save aborted games in tourney PGN

When the game result is 'unfinished', we prompt for a filename rather
then using the specified saveGameFile if a tourney is in progress.

2013-01-19 08:35:52 -0800 Arun Persaud <arun@nubati.net>:
fix configure bug that showed up on OS X (couldn't find X11/Dialog.h)

X_CFLAGS (set by AC_PATH_XTRA) was not used in Makefile.am. It was used in tests for X11/Dialog.h, etc. so configure worked, but make didn't.

2013-01-18 22:26:13 -0800 Arun Persaud <arun@nubati.net>:
Updated Ukrainian translations


2013-01-09 07:57:43 -0800 Arun Persaud <arun@nubati.net>:
removed trailing whitespace


2013-01-09 07:49:20 -0800 Arun Persaud <arun@nubati.net>:
Updated copyright notice to 2013


2012-12-22 22:46:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Do not move to forwadMostMove when unpausing AnalyzeMode


2012-12-22 22:44:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use Ctrl key in AnalyzeMode to exclude entered move


2012-12-22 20:40:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement insufficient mating material for Knightmate

KBK is draw with Royal Knight. With exo-pieces also KNK and KFK.

2012-12-22 20:25:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix rep-draw detection in drop games

In games like Crazyhouse every move is reversible, as captured pieces
can eventually change sides again, and be dropped back on the board.
So we have to search back a full 100 ply for repetitions, passing captures
and Pawn moves.

2012-12-11 22:33:07 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files


2012-12-11 22:18:05 -0800 Arun Persaud <arun@nubati.net>:
new version number for developer release


2012-12-10 14:48:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Prefer pause mode on pondering engine over 'easy'

If the thinking engine is stopped after its move because it does not
support pause, is is still better to use pause on the pondering engine
than to switch of its pondering with 'easy', as the latter might not
be instantaneous. Also switch off pondering in the thinking engine before
it gives the move, just in case it does not respond immediately to
easy / hard.

2012-12-10 13:40:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update WinBoard translation template


2012-12-10 13:35:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix min-Shogi promotion zone

In integer arithmetic N*2/3 is not the same as N - N/3, with as a result
that the white promotion zone was 2 ranks deep on 5x5 boards. This only
happened in LegalityTest, but because this would classify all moves to
4th rank an non-promotions, they would be printed with a faulty
deferral (=) sign as promochar in SAN.

2012-12-10 13:32:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Do not clear PGN tags on Analyze File


2012-12-10 13:28:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix -fSAN in AnalyzeFile mode

The exception that a PV relates to currentMove rather than forwardMostMove
applies not oly in AnalyzeMode, but also in AnalyzeFile. Furthermore,
PvToSan did not properly restore the pushed game tail in this case.

2012-12-08 16:02:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Improve scaling of border bitmap (WB)

The StretchBlt mode is set from dither to delete.

2012-12-05 16:34:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement use of pause / resume protocol commands

Engines that implement feature pause=1 will be paused during their move
on a pause event; pondering engines will be controlled either through
'pause' or (if they don't support that) 'easy', which both should work
instantaneously. If the thinking engine does not support 'pause', the pausing
will be deferred to when it produces its move, and is implemented by not
relaying the move, and switch off pondering for both.

2012-12-03 12:58:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Loop-Chess promotions

Loop Chess is not a supported variant, but hould be playable as Crazyhouse
with an altered pieceToCharTable, not defining the shadow promotion pieces.
But with legality testing on promotion to shadow piece would take place
even if the shadow piece was not defined.

2012-12-02 22:44:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix move highlighting with animation off

In WB the moving of SetHighlights to after the animation had broken the
highlighting of engine moves, because it was also moved after DrawPosition.
While it is DrawPosition that actually draws the highlights. Now it has been
moved to just before DrawPosition.

2012-12-02 11:09:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Start browsing in currently-selected folder (WB)

The folder-browse dialog always started at My Computer, while file browsing
started in the globally last-used folder (which might not be related at all
to the file entry we are now browsing for).

2012-11-29 23:38:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement book-creation functions

A new menu item triggers conversion of the currently loaded PGN file
to a Polyglot book, saved with the GUI-book filename. A (volatile) option
-mcBookMode alters the probing algorithm to build a book from scratch by
playing games (and using a form of learning).

2012-11-29 22:23:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use colors in Board-Options dialog also for font pieces (WB)

The piece color settings now control the pieceColor or fontPieceColor
settings, depending on the setting of -usePieceFont.

2012-11-29 22:14:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement auto-creation of ICS logon file

Under control of the new option -autoCreateLogon (which can be set from
the ICS Options dialog) the first two lines in response to the ICS "login:"
pompt will be saved on a newly created logon file (if logon from such
an existing file failed).

2012-11-29 21:56:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add Themes dialog (WB)

This dialog, done by the generic popup, contains controls for many settings
that so far could only be controlled by options. It also introduces the
concept of 'themes', sets of options stored in the multi-line option
-themeNames.
  Add some dummy routines to suppress compile errors in functions that
cannot be called yet in XBoard.

2012-11-29 21:32:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow external piece bitmaps and board border (WB)

The -pieceImageDirectory is now also used for WinBoard, to indicate
a directory of .bmp files, used to replace the built-ins. The outline
and solid bitmaps can be full-color. This allows winBoard to use the
WinBoard-zeta graphics. A new option -border can indicate a bitmap file
used to draw a half-square-wide border around the board.
  A white background has to be drawn underneath the black pieces, to avoid
color-interference with the board, just like happens for the white pieces.
These backgrounds now always use bright white, rather than -withePieceColor.

We still have to work on the scaling of the zeta (600x600) bitmaps to
the actual board size, as for some bitmaps the stratchblt is ugly.

2012-11-29 21:05:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add 'Continue Later' button in Tournament dialog (WB)

This button makes it possible to accept the values specified in the
dialog without immediately starting the tournament (as OK does),
so you can re-open the dialog later, and OK it then.

2012-11-29 20:25:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Load opponent logo based on handle in ICS play (WB)

The logos for handles on FICS are sought in folder logos\freeches.org\*.bmp,
etc. If no logo for the handle is found there, the logo of the ICS is
displayed as usual.

2012-11-19 20:35:05 -0800 Daniel Dugovic <dandydand@gmail.com>:
Fix configure script for --enable-zippy  (tiny change)

reported and patch by Daniel.

edited by Arun Persaud:
- also fixed #ifndef ZIPPY -> #if !ZIPPY
- didn't change #if -> #ifdef

2012-11-10 00:12:34 -0800 Arun Persaud <arun@nubati.net>:
don't define X_LIBS when using gtk-frontend


2012-11-07 22:16:09 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files; added new frontend files


2012-11-07 22:14:20 -0800 Arun Persaud <arun@nubati.net>:
fix configure script for --with-Xaw and --with-gtk

made Xaw the default and included xaw or gtk sources as extras
in case the other frontend is selected for make distcheck

2012-11-07 21:13:38 -0800 Arun Persaud <arun@nubati.net>:
new version number for developer release


2012-10-31 09:55:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Draw frames around memos and listboxes


2012-10-30 17:39:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt lineGap during sizing


2012-10-30 15:04:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix clock highlighting


2012-10-30 10:59:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Chat Box

The genric TypeInProc is re-instated, and replaces ICSKeyEvent as primary
handler for special keys in one-liner text edits.

2012-10-29 19:46:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Pay attention to NO_CANCEL dialog flag


2012-10-29 14:18:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix clock clicking with GtkEventBox

Like in WinBoard the button-3 case is now handled in the primary
event handler (and communicated to it in a kludgy way). It would be
better if this was absorbed in ClockClick().

2012-10-28 22:25:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix logo placement

Graphs were not recognized as possible SAME_ROW elements. A Graph requesting
FIXED_H (which only the logos did) is now packed into a (borderless) aspect
frame.

2012-10-25 23:04:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add window positioning

Sticky windows now sort of works, but needs unexplained fudge factors.
Reopening a persistent dialog centers it on the board, and disobeys
the positioning command. The WindowPlacement of the BoardWindow was
again added (it was commented out during development).

2012-10-22 22:41:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make board sizing work through subtracting fixed height

There is now no attempt to give a size to the board drawing area, so it
can later be sized as small as we want. The frame width is determined
by subtracting the nominal board size from the actual window size,
(because the clocks will have that width, and the board will startas 1x1),
while the vertical margin is determined as the difference between the
bactual window height, the drawing-area height minus a fudge of 25 pixels
to compesate for the erroneously allocated blank space below the board.

2012-10-22 21:09:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warnings

The highTextStart/End are now declared in engineoutput.h, shared between
nengineoutput.c and xengineoutput.c. Unused variables were removed.
Also fix warnings in xboard.c and xoptions.c.

2012-10-22 17:40:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Delete emptied front-end files, and move rest to gtk directory

Remove #ifdeffed-out Xt code that has GTK implementation. The xgamelist
and xhistory have been completely cleared off content, and were removed.

2012-10-27 00:12:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add copy-paste

The code from gtk-xt could be used with almost no modification.

2012-10-21 09:09:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Some experimenting with sizing

Does not work as intended yet.

2012-10-21 23:04:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add task-bar icon

Funny enough it was necessary to swap the two svg icons to make this work!

2012-10-20 10:29:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make some tall dialogs multi-column

A dummy button was added to the last row of New Variant to make the
number even. A legality-test warning as put in the New Variant dialog
Fix width of tourney-file in Match dialog

2012-10-20 21:14:33 -0700 Arun Persaud <arun@nubati.net>:
updated some icons to SVG


2012-10-20 19:57:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add displaying of icons

A new Option type, 'Icon', was added for this as in GTK Icons and Labels
need different types of widget. The icons are now svg, so we could
remove the icon pixmaps.

2012-10-20 14:25:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix button bar


2012-10-20 14:03:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add BarBegin, BarEnd options

This makes the button bar display correctly. Also fix v-sizing of menu bar.

2012-10-20 10:01:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add listbox double-click callback

This function was formerly performed by WheelProc.

2012-10-19 17:29:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add hiding / showing second Engine Output pane

The handle of the GTK table for the second engine is stored in the
EndMark handle by GenericPopUp, so it can be used later to hise/show
that table.

2012-10-19 17:15:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use different tables for different dialog columns

Making the same table wider (in steps of 3) to get multiple columns
does not work, because it forces options to align vertically. This
wrecks dialogs like Load Engine, where one column contains a very
high option (listbox). Now differnt tables are created for each column,
packed in a new itermediate hbox. In case of the Engine Output window,
a vbox is used instead to cause vertical stacking.
  Only multi-line text-edits and listboxes are now allowed to take up
vertical space changes, while only the middle colum of the table
can take up horizontal size changes. Within packing boxes space is
equally distributed.
  The labels above the particiant-selection widgets had not the same width
as the textview / listbox, leading to misplacement of the second label.
  For Engine Settings the spontaneous breaking into columns did not
involve a SAME_ROW flag, so the 'columns' were stacked vertically.
In addition the columns were too tall for GTK. They are now 20 options max.

2012-10-19 13:46:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Deselect first char in Move Type-in and ICS Input Box

After popup the Move Type-In had the typed character in it, but it was
selected, so that typing a second character would erase it again.
Same for the ICS Input Box. A prototype for CursorAtEnd is now also added.

2012-10-19 13:33:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Close Move Type-in on Enter

The code is squeezed into the ICSKeyEvent callback.

2012-10-18 21:57:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add access routines to checkboxes and FocusOnWidget

The <Enter> handler of the filter field needs it to return focus to
the listbox.

2012-10-18 21:42:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add game-list callbacks

The callbacks for listbox and filter text are treated by the same callback,
which does both key presses and button double-clicks.
Giving focus back to the listbox after filtering does not yet work!

2012-10-18 16:27:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add optional callback to Label Options

For some reason this does not work. The callback isn't called!

2012-10-18 13:40:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add type-in event to board for popping up box


2012-10-18 13:12:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add Shift detection

The state of Shift and Ctrl was only probed on button clicks, so it
is now read out of the button-event struct in the relevant button handlers.
For backwad compatibility, they store it in a global, so the routine
ShiftKeys can take them from there.

2012-10-18 12:35:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove some unneeded low-level X11 code

Things like tabbing between controls, mouse-wheel scolling etc. are all
automatic in GTK, and thuse don't need to be ported.

2012-10-18 10:12:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add file browser

The gtk-xt code for browsing in response to menu items rather than dialog
browse buttons) was grafted. It seems desirable to merge the two browsing
functions, though. Pass extra params used by Xaw to FileNamePopUpGTK.
The code was altered to use DelayedLoad.

2012-10-18 09:54:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ListBox, and add some support routines

The srolled-window for the listbox used a uninitialized variable for its
width, causing a crash. Now it pays attention to the Option.max and .value
size hints. The access routines were copied from gtk-xt. HighlightWithScroll
could just a wrapper for HighlightListBoxItem, as GTK auto-scrolls.

2012-10-17 20:01:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Connect CommentClick handler

This can make use of generic memo callback, so it could be entirely
backend. Therefore it was moved to dialogs.h. As it shared a global with
some other back-end popup routines to remember the current move, these
could now be moved out of xboard.c too. (Well, not so for the X11 front-end,
so it has now been put in a header. :-( )

2012-10-17 19:41:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix animation

Because FrameDelay does block the event loop, even though it releaes the
CPU, expose events start to lag behind the actual drawing. By combining
expose events for overlapping squares, rather than decompose them into
3 rectangles, this problem seems to go away. But only if there is an
extra exposure on the squares to be drawn also non-overlapping frames
will be properly drawn (?!).

2012-10-17 14:40:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement highlighting in engine output by through generic method

HighlightMove was made generally available for all text. It is now just a
wrapper for the generic HighlightText, and could be moved to the back-end.
(This requires the initialization to be widget specific, and the flag
indicating it has been done is now stored in the Option.min field.)

2012-10-17 14:33:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let engine-output memos use new generic callback


2012-10-17 13:53:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add scrolling of Move History

To have access to the textview, its handle is now stored in the
Option.textValue field.

2012-10-17 13:11:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add highlighting in move list

For now it is assumed the normal background will be white (for clearing
the highlight).

2012-10-16 19:44:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make generic memo-event handler, and connect history callback

Large text widgets can now define a user handler in their Option.choice
field. If they do, agneric callback is added tothem, which catches mouse
events. Button release and pointer motion pass their coordinate and type
to the specified user routine. Button presses in addition retrieve
the text from the widget, set the cursor in it to the clicked point,
and convert it to a character position, also passed to the user.
  The user is responsible for ignoring events he is not interested in.

2012-10-16 15:58:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add key-handler for ICS Input Box

In contrast to the X11 code, all intercepted keys are now treated by
the same callback. The ICS Input Box callback triggers on Up, Down and
Return key, and refers to these symbolically.

2012-10-16 15:05:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Highlight Pause button


2012-10-16 13:52:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Better cleansing of xboard.c from X11 types

The #includes for X11 files were still in there.

2012-10-16 13:28:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add text insertion in engine-output memos


2012-10-16 09:34:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Append recent engines to engine menu

This is now entirely moved to the back-end, by doing it in the table
from which the menus are later generated. The special callback for engine
items is abandoned, and the euProc for such items is left NULL to flag
that RecentEngineEvent should be invoked with the applicable engine number.
To calculate the latter a global variable firstEngineItem is dynamically
set to the length of the regular engine menu.

2012-10-15 22:17:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Transfer more gtk-xt code, and add some new

Add input-source handling
Graft color picker (<Enter> callbeack in the text field is still missing!)
Handle contents of label widgets (store handles in Option for access)
Add printing of clocks
Add printing of window title
Pay attention to BORDER attribute of Label Options (pack in frame)
Delete ReadBitmap code (also remove #including of bitmap files for icons)
Fix layout of textviews (adapt to newer Option format, incl. wrap, scroll)
Support vertical stacking in Break Option (no table widening when !SAME_ROW)
Make default horizontal scroll policy automatic (for engine-output window)
Fix disabling of unused spinners in TC dialog

2012-10-15 20:47:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Connect dialog Browse buttons to GTK browser


2012-10-15 19:52:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement menu checkmarking and enabling

odes in the (later over-written) handle field specify which items
are to be checkmarked, and by what style button.

2012-10-15 16:18:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Attach expose handler and connect to mouse events

The GraphExposeProc is conected to the Graph widgets. A gdk draw routine
is used to copy the buffer bitmap to the display. It is also connected
to button and motion-notify events.
  In this version the board can be fully operated with the mouse.

2012-10-14 22:00:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Transfer most available gtk-xt code to xoptions.c

GenericPopUp and PopDown are grafted from gtk-xt into gtk2.
The version compiles, but segfaults before doing anything, with error
messages about unexpected cases in GenericPopup for Graph and PopUp Options
of the main board. The spin options need special treatment in GetWidgtText.

2012-10-15 11:41:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Give LoadListBox two extra parameters

It often occurs that we just want to swap two elements, and reloading
the entire listbox would be a very inefficient way to do this in widget
sets that allow access to a single element.

2012-10-14 20:36:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove all X11 code by #ifdeffing it out

With #ifdef TODO_GTK we disable all X11 code, in order to get a compiling
X11-free version. The disabled sections can then be replaced by code
for another widget set, the X11 version still showing what it was supposed
to do.

2012-10-14 17:37:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move timer functions to new file xtimer.c

The timers for the clocks, periodic analysis events and ScheduleDelayedEvent
go into a separate file.

2012-10-14 15:31:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make xevalgraph.c backend

The only front-end stuff left in xevalgraph.c was an unnecessary reading
of the window size (which could be obtained from the WindowPlaceent struct),
and drawing (all cairo now). The drawing was moved to draw.c, and the
remaining part renamed nevalgraph.c.

An attempt to list them in a less chaotic way.

2012-10-14 14:34:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cleanse back-end code of all references to X11 types

When compiling for X11, common.h #included X11/Intrinsics.h so that
X11-specific data types could still be used throughout the back-end part
not shared with WinBoard. By temporarily disabling this, error messages
could be generated on all such occurrences, and were then solved. This
included the following:
  The InputSource struct is not uses in usystem.c at all, and its definition
could be moved to xboard.c. InputSourceRef, which logically should heve been
defined as (InputSource *), is in reality (void *), so the back-end can
pass it around.
  Some non-platform-dependent stuff of general interest had prototypes
(or external vars) in xboard.h. This is now moved to a new header xboard2.h,
to allow it to be shared without bringing in X11 dependence.
  The EngineOutputProc was defined inconsistently, but the header was not
sufficiently shared to flag this error. This has been repaired now, by moving
the template to menus.h.

2012-10-14 13:39:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove xedittags.c, .h from project

The tiny bit of code that was left was absorbed in dialogs.c, the one
prototype to menus.h.

2012-10-14 12:53:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove inclusion of frontend.h from backendz.h

This did not seem to serve any purpose at all.

2012-10-14 12:49:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Split xhistory.c in front-end and middle-end part


2012-10-14 12:21:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move MarkMenuItem to xoptions.c

This to make xoptions.c completely independent from the inclusion of
frontend.h. The prototype is moved to menus.h.
  Loose end: DrawPosition in board.c does not see the prototype.
Very suspect that it wants to see it. Why would it have to correct the
flipView setting??? Better se to it that it is correct to start with!

2012-10-14 12:14:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
move testing for no options to back-end

The test if an engine has options and display a note instead of
the Engine Settings dialog when this is not the case is moved
to outside of GenericPopUp, to make the later independent of calling
other routines.

2012-10-14 11:20:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove some unnecessary header includes


2012-10-14 10:47:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move ICS-engine analyze and AnalyzeGame code to shared back-end

This code was still duplicated between WB and XB in the front-ends.
Because of its incorporation in AnalyzeModeEvent the 'middle-end'
function AnalyzeModeProc could be eliminated. AnalyzeModeEvent was made
to return an int to flag its success, and keep the JAWS code based
on it out of XBoard.
 The AnalyzeGame code  is now incorporated in AnalyzeFileEvent().

2012-10-26 10:28:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add configure switches for Xaw vs GTK.

This patch is an adapted version of the one Arun made at the end of the
gtk2 branch. It uses the exact same version of his configure.ac, but the
Makefile.am is adapted to the situation in master at the beginning of it,
after duplication of the X11 front-end files in the xaw directory for
preserving them, while the versions that will be modified to GTK front-end
are still in the xboard directory.

2012-10-25 11:12:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Prepare xoptions.c for middle-end changes

Some changes that can be pre-empted, such as the splitting of Label
into Label and Icon Option type, and some dummy wrappers are already
implemented, so they can be used when needed by GTK.

2012-10-25 09:20:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Preserve copies of the X11 front-end in xboard directory

The X11 front-end has been moved to the xaw directory, but copies
are retained for modifying them to gtk versions.

2012-10-24 08:55:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move X11 front-end to directory xaw


2012-10-31 18:18:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix initial enables in TC dialog


2012-10-30 14:47:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix image extension used for browsing to .pgn


2012-10-28 21:39:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WinBoard compile error on enum PEN


2012-10-30 11:20:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash in promotion popup

There were not enough entries for Capablanca Chess with legality-testing off,
where King is also presented as a choice.

2012-10-28 18:19:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix message in New Variant dialog

Even in -ncp mode the message was referring to the 'current engine'.

2012-10-28 18:16:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on animation after resizing

The animate buffers were still holding pointers to a discarded cairo surface.

2012-10-21 14:49:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix variant-dependent pieces

The code to select the actually used piece images from the available ones
(from InitDrawingSizes) is now made into a subroutine, and also called
after resizing the pieces.

2012-10-26 10:18:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Replace marble texture pixmaps by png


2012-10-26 10:13:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Replace xiangqi board pixmaps by png images


2012-10-26 10:08:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove the texture pixmaps from project

These were already replaced by png textures.

2012-10-23 15:02:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix re-rendering of svg on resize

The previously prepared bitmaps were retained if we resized, rather then
rendering the svg atthe new size.

2012-10-21 15:48:30 -0700 Arun Persaud <arun@nubati.net>:
update po/pot files


2012-10-21 15:47:12 -0700 Arun Persaud <arun@nubati.net>:
new version number for developer release


2012-10-21 11:10:36 -0700 Arun Persaud <arun@nubati.net>:
we still need a few bitmaps, so the directory needs to be included in Makefile.am

make distcheck complained about this

2012-10-21 15:56:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Rename svg shogi pieces, so they become usable

Only white pieces are present. For black they would have to be flipped.

2012-10-21 15:54:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in resizing on variant switch

The fix of the garbage pixels had unfortunately broken this.

2012-10-21 15:15:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in fallback mechanism

After failure to load a piece from a specified -pieceImageDirectory
the default theme was not tried, because the cairo function to load
from a pgn file returns a valid handle even if the file does not exist.

2012-10-21 14:58:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Get svg error message


2012-10-21 14:49:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix variant-dependent pieces

The code to select the actually used piece images from the available ones
(from InitDrawingSizes) is now made into a subroutine, and also called
after resizing the pieces.

2012-10-16 12:08:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove caveat on available pieces fromNew Variant dialog

In the cairo version all pieces are available at all board sizes.

2012-10-21 11:41:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove some unused images from png directory

Currently only the three board texture files are used. But the piece
images are still left, because they might be useful if we ever want
to mae XBoard configurable for not using librsvg.

2012-10-21 10:40:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in resizing

The nominal size of the window was not set in the correct Option struct.

2012-10-21 09:58:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Prevent odd-width line shift in length direction


2012-10-21 09:48:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Print missing-pieces error message to console

The GUI might not yet be up at this point.In addition, suppress
the rest of the code, because it could give segfaults.

2012-10-21 09:30:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix garbage pixels on the right of the board

The extra pixel that is requested in sizing the board window back to
an available size because we ofte get one less pixel than we ask for
can lead to a line of garbage pixels next to the board. This is combatted
by limiting expose events to the true board area, remembering that in the
Graph Option rather than the actual window size, and suppressing resizing
when the latter only exceeds the stored width by more than 1 pixel.

2012-10-15 10:27:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Trim board-window size

The board window will sometimes be a pixel larger than requested.
The ReSize routine will now reset the size values in the Graph Option
to what they were supposed to be, to prevent expose events will
draw nonsense in the extra space.

2012-10-13 23:26:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt docs for svg/png in stead of bitmap/pixmap


2012-10-13 09:35:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Spontaeous changes in gettext stuff


2012-10-13 08:03:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move Shogi svg pieces to own directory


2012-10-13 07:57:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove unnecessary Xt colors and call to MakeColors


2012-10-13 07:50:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Code cleanup: move expose redraw to draw.c


2012-10-13 07:37:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress warning for InitDrawingHandle


2012-10-13 07:33:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make fallbackPieceImageDirectory hardcoded


2012-10-13 07:18:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Increase drag delay too 200 msec

On my slow laptop it can take more than 100 msec to reallocate bitmaps
in the generic expose, with as a consequence that the DelayedDrag event
is not processed before the timeout expires. The timeout event then triggers
a redraw, which again takes so long that the timeout expires before the
event to reset the timer could be processed, and this just perpetuates
itself, leading to a large series of queued redraws, and a long waiting time
for an image to appear after the sizing stops.

2012-10-13 07:01:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix segfault on faulty command-line option


2012-10-12 14:42:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress anti-aliasing in -monoMode

In the color-substitution code, always use bi-level alpha and color.

2012-10-12 13:34:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove piece pixmaps from project


2012-10-12 11:47:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement proper fallback cascade

Try in order cached svg, cached bitmap, user png, user svg, default svg.

2012-10-12 11:06:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cache svg handles


2012-10-12 10:45:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Install svg pieces in themes/default

The svg pieces are installed with the XBoard data in the directory
.../xboard/themes/default . A new option -fallbackPieceImageDirectory
is added, and is configured in the master settings file to point to
these pieces. This options, which replaces -svgDirectory, is volatile,
and the menu control to set it is removed. The -pngDirectory option
is renamed to -pieceImageDirectory (-pid).

2012-10-12 10:02:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove bitmaps from project


2012-10-12 09:55:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Install the wood textures as png

The xboard.conf has to be edited to set these as default textures,
in stead of the .xpm files.

2012-10-12 09:50:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add hatched board texture

A png file with hatching is added, so it can be used for dark squares
in a monochrome theme. It is installed in a new data directory
.../xboard/themes/textures.

2012-10-11 22:21:06 -0700 Arun Persaud <arun@nubati.net>:
added a black and white theme to replace the mono option


2012-10-11 20:56:42 -0700 Arun Persaud <arun@nubati.net>:
added SVGs to dist files in automake


2012-10-11 19:44:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix exposure of atomic captures

The grid lines had to be repaired too, so damage marker 2 had to be used.

2012-10-11 19:13:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix animation with textures off

The blank square was not shifted to (0,0) when drawing the animation buffer.

2012-10-11 19:08:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix 1-pixel offset of grid lines on some cairo implementations


2012-10-11 09:51:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Solve odd lineGap problem

Not all cairo versions seem to round the same when an odd-width line
is to be drawn at integer coordinates. So now we explicitly ask it
to be drawn centered on half-odd-integer coordinates.

2012-10-09 18:52:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -trueColors option


2012-10-09 14:56:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Always render svg pieces anew on size change

The svg pieces are now unconditionally rendered to supply the pngPieceImage
master source otherwise read from png file. This is then fed into the
original png code (so that if for some reason it fails, we fall back on png
pieces, and finally on built-in pixmaps).

2012-10-09 14:06:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix rsvg version in configure.ac


2012-10-08 19:54:19 -0700 Arun Persaud <arun@nubati.net>:
initial svg rendering


2012-10-08 18:34:05 -0700 Arun Persaud <arun@nubati.net>:
added cairo and librsvg to configure process


2012-10-08 18:32:55 -0700 Arun Persaud <arun@nubati.net>:
added SVGs

converted from inkscape SVG to plain SVG before adding

2012-10-10 21:19:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt Eval Graph code to new drawing system

The eval graph now triggers an expose after drawing, and gets its size
from the Option fields.

2012-10-10 20:37:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix expose requests seek graph


2012-10-10 20:07:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make draw handle for board globally available


2012-10-10 19:45:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let expose requests pay proper attenton to widget

So far, expose requests were always assumed to be for the board widget,
preventing display of the labels.

2012-10-10 18:45:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix initial display of logos

The logos were selected and printed during the initialization,
before the main event loop was started. So the expose events during
widget creation, which created the drawing surfaces, were only processed
after the initial drawing of logos, so that there was nothing to draw on!

2012-10-10 17:25:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix alignment of highlight expose


2012-10-10 17:19:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
remove NewSurfaces


2012-10-09 13:57:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make expose handler generic

The Graph Option now returns two handles in hitherto unused fields of its
Option struct: Option.choice is a cairo handle of a memory buffer the user
must draw to, while Option.textValue is the handle to the widget.
Expose events copy the memory buffer to the display for the exposed area.
A routine DrawExpose() is supplied to let the user generate expose events.

2012-10-06 21:30:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reload piece images when pngDirectory is changed

The OK function of the board options dialog now tests for a change
in pngDirectory and passes a parameter to InitDrawingParams to tell
it to destroy the old images. This cause a reload on scaling the pieces.

2012-10-06 20:16:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress redraw during sizing


2012-10-06 20:10:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in resize trigger

Even if the square size does not change, the window has to be shrunk
back to fit the board.

2012-10-06 19:54:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make Piececolor options work on png pieces

The scaled, antialiased bitmaps are now colored according to the option
settings. This is done by decomposing every pixel in a white, black and
transparency component, which is possible because the opacity is
directly give in the alpha channel, and black originally was a hard zero.
So what you se in the red channel must be white (as the original white
was #FFFFCC), and the rest of the opacity must be due to black.
  The color to be replaced (white for the white pieces, black for the black
pieces) is then replaced by the original weight of this color times the
color from the option.

2012-10-06 17:53:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Plug resource leak on rezising with pixmaps


2012-10-06 16:19:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fall back on built-in pixmaps if png pieces unreadable


2012-10-06 14:21:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Do coordinate text alignment with cairo


2012-10-06 13:40:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Some cleanup


2012-10-06 12:14:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Clean up drawing code

Now all routines only draw through cairo, the destination surface can
be passed to them, making it possible to do the duplicate drawing
to the memory board image in a cleaner way.

2012-10-06 11:37:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Check in draw.c, draw.h


2012-10-06 11:26:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove all bitmap & pixmap drawing

All Xt code for drawing the board is now removed, as are the
-pixmapDirectory and -bitmapdirectory option. This version is now
completely dependent on cairo for handling of all graphics anywhere.
(The build-in pixmaps are still left, though, for later use as an
alterative cairo source when no png files are found.)

2012-10-06 10:29:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Separate off drawing routines from xboard.c

A new source file draw.c is created to hold all code associated with
board drawing. The routines for loading bitmaps and creating colors
were left in xboard.c, though, as they are also used for handling
icons and colors of widgets.

2012-10-05 19:53:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix erasing dots in seek graph

The cairo dots were just a little bit bigger than the old ones, so they
were not properly erased, but left a remnant.

2012-10-05 19:25:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cleanup CairoOverlayPiece


2012-10-05 19:22:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Draw arrow also on backup image


2012-10-05 19:16:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix highlight clearing


2012-10-05 18:59:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove acceleration trick


2012-10-05 18:54:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement variant-dependent png piece symbols


2012-10-05 18:42:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix clearing of markers dots with promo popup


2012-10-05 18:32:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Also render coordinates to backup board


2012-10-05 18:30:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove debug print


2012-10-05 18:29:13 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let cairo also do evenly colored squares.


2012-10-05 17:56:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make dragged piece for excluding moves transparent


2012-10-05 17:42:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix DrawSeekText


2012-10-05 17:40:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo coordinate / piece-count printing ith cairo


2012-10-05 15:40:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Also use cairo on slave board

With dual-board observing the drawing should be redirected to the
slave board, so SwitchWindow should also switch the xlib-surface to
one for the slave window.

2012-10-05 15:12:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cure flashing of piece on from-square

In a drag-drop move the piece was flashed on the from square after the
user dropped it on the to-square, because highlights were set before the
move had updated the board. And highlighting with arrow can cause a redraw
of the last board. Same with setting or clearing marker dots.

2012-10-05 14:20:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Specify proper condition for using cairo animation


2012-10-05 14:07:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow resizing of board window

In full png mode the size of the board window is no longer locked.
After resizing, the square size is calculated as the largest one that
would fit the window, and the window is then shrunk around it. To prevent
excessive redrawing during sizing, the redraw is delayed by putting it
in DragProc.

2012-10-05 10:41:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Switch to using 64x64 png images

The bitmap scaling works better when the needed factors are not too large,
as the svg rendering's anti-aliasing did not blur more than 1 pixel.
So after shrinking too much the images are not effectively anti-aliased
anymore.

2012-10-05 10:16:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Maintain in-memory copy of the board image

As reading back from the xlib-surface proves incredibly slow (cairo probably
converts the entire image from Xt format to cairo format when we set it
as a source, even though we only want to read a few dozen pixels), we now
keep an exact copy of the board image as a cairo bitmap in memory. This
restores the speed of the animation, but unfortunately leads to awful code.

2012-10-04 22:15:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Do animation with cairo

Unfortunately this is incredibly slow.

2012-10-04 18:36:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow back-texture files to be PNG, (drawn with cairo)


2012-10-04 15:10:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add png pieces

A new directory with 256x256 png piece images is added to the source tree.

2012-10-04 15:01:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add mode to draw PNG piece images through cairo

The PNG images have to be supplied as files in a -pngDirectory (a new
option) with a 256x256 bitmap. They are then scaled by cairo to the
desired square size. This does not work very well for the smaller sizes.

2012-10-03 14:45:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo marker dots with cairo


2012-10-03 14:27:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo highlights with cairo


2012-10-03 14:07:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make convenience routine SetPen globally available

The routine to set a pen as specified by  a color string that was used
in xevalgraph is moved to xboard.c, where there also is lots of demand
for it. The arrow drawing now uses it for setting the highlightSquareColor.

2012-10-03 12:28:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo grid with cairo


2012-10-03 12:00:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo arrow highlighting with cairo


2012-10-03 11:20:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo seek graph with cairo

New front-end services DrawSeekOpen() and DrawSeekClose() have been
added, and are called from the back-end to enclose any drawing activity.
In WinBoard these had to be defined as dummies.

2012-10-02 15:31:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo logos with cairo

The logos must now be .png files, and are internally handled as their
filenames. (So no preparation of a drawable from it at startup.)
Cairo allows them to be scaled to the requested logoSize.

2012-10-02 14:02:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Eval Graph resolution problems

Anti-aliasing had to be switched off to get a crisp graph. A second problem
was that the dashed lines were drawn in both directions, with interfering
dashes.

2012-10-02 10:54:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Eval Graph drawing with cairo


2012-10-21 10:21:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix button-border-width bug in monoMode

The kludge of signalling we are dealing wih a button rather than a label
was wrongly implemented in case of momoMode.

2012-10-21 10:14:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reserve more space for button bar

In some board sizes the button bar was wider than the code guessed,
so the window width would be determined by the message + buttons row rather
than the board.

2012-10-21 11:24:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WinBoard compile errors


2012-10-13 09:33:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix non-NLS compile error for XFontStruct


2012-10-12 12:04:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix browsing for path

A pathname was still prefixed with the cuurent directory.

2012-10-07 21:00:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use Pause state in AnalyzeMode to imply move exclusion

The pause state was not used in AnalyzeMode so far. Now it is used to
imply all entered moves are for exclusion/inclusion.

2012-09-30 18:55:13 -0700 Arun Persaud <arun@nubati.net>:
new version number for developer release


2012-09-30 22:16:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix broken -ics and -cp options

The patch to specify engines and ICS by nickame broke the use of the
regular options to do this, because they could also reset them. Now
this is fixed by only setting them (through |= in stead of =).

2012-09-30 22:01:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file

The description of exclude-moves, multi-game ananalysis and duo-analysis
is added.

2012-09-30 10:07:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Resolve conflict between -mps and -inc options

The age-old problem that a persistent valid -inc value will cause -mps
to be ignored is solved by the kludge of storing these two as a single
option (-mps) in the settings file, and declaring the other (-inc) volatile.
The range of negative numbers (invalid as -mps value) was available for
that, and now is used to store the negated value of -inc in msec.
For backward compatibility, specification of -inc causes interpretation
of -mps in the old way. The forcing of -inc to -1 in the master settings file
could be safely removed because of this change, so that the time increment
now is a persistent option.

2012-09-29 23:13:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow entry of fractional increment in WB time-control dialog

The numeric edit is changed to a general text edit, and code is added
to convert the text it contains to and from float, with proper error check.

2012-09-29 23:05:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Preconfigure -icsNames in xboard.conf

Although XBoard has no startup dialog with an ICS combobox, the -icsNames
option is now used to select lines from with the -is option, and in
interpretation of positional arguments. The most common ICS are configured
together with a short nickname, so that commands like "xboard fics" will work.

2012-09-29 22:58:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow ICS nickname as positional argument

If an argument is encountered that is not preceded by an option name,
it is now first checked if it corresponds to the nickname of an ICS
in -icsNames. If so, it is assumed to be the value of an -is option,
selecting -ics mode with that ICS and all the options installed with it.

2012-09-28 20:28:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cure some sick behavior in XBoard Engine Output right-clicks

When a PV-walk is in progress, the PV is highlighted by selecting it,
and this focuses the attention of the scroll bar on it, so it remains in
view. But after release, that line was kept in view, rather than scrolling
back to the top of the window (where the header line bust be available
for clicking)

2012-09-28 13:28:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow Analyze Game to auto-step through entire game file

If the game index is set to auto-increment (-lgi -1), the Analyze Game
function will automatically load the next game of the current game file
(starting to auto-play/annotate that) when the end of the current game is
reached. This flushes the annotated game if auto-saving was set,
so that eventually all games in the file will be annotatd and saved.
  The game index is automatically set to auto-increment when we load
a file while in Analyze Game mode, but switching this mode on while a game
is already loaded will stop at the end of that game, as usual (if -lgi was
not explicitly set).

2012-09-28 13:24:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let second engine move in lockstep during dual analysis

When the second engine is also analysing (as indicated by its stat variable
second.analyzing), we send all moves / undos / positions /  in&excludes that
go to the first engine also to second.

2012-09-27 19:07:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow second engine to analyze too

Clicking the Analysis menu when analysis is already in progress will
now toggle the secon engine to analyze the same position. For now,
this lasts only until the position changes (or you leave analyze mode),
after which the second engine is always switched off, and the Engine
Output window returns to single pane. Each pane now has its own header
line; the exclude header is suppressed in the second pane.

2012-09-27 18:11:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add options -fe, -se, -is to load installed engines/ics from list

The volatile string options -fe, -se ('first/second engine') load the first
and second engine of the given nickname in the -firstChessProgramNames list,
including all options that were installed with it (similar to when in
WinBoard the that engine line had been selected through the Startup Dialog's
combobox). The option -is is similarly used to retrieve the line for an
ICS in the -icsNames list.

2012-09-27 18:02:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add check on validity of tourney participants

Before allowing OK of the Tournament Options dialog, it is now checked
whether all participants (which are given as nicknames) can be found
in the list of installed engines, so that no problems will occurr with
non-existing engines during the tourney (if typos crept in after hand-
editing the list).

2012-09-25 16:21:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement --help option

The list of options is printed before exiting. Some attempt is made
to do it in a nice way.

2012-09-23 20:10:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement variant seirawan in -serverMoves option

Write the gating moves such that the ChessLive! viewer will understand them.

2012-09-23 20:05:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Workaround for FICS bug

FICS does not properly understand SAN, and thinks bxc3 can be a Bishop move.
This broke 'Upload to examine', because that uploaded in SAN. In case the
SAN starts with Bx or bx, it now uses long algebraic (with = before the
promo char).

2012-09-20 18:17:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Define XOP mime type for XBoard

Supply a white-knight icon for this mime type, called application/x-xboard-opt,
and a sesktop file to associate it with running XBoard with this settings file.

2012-09-20 17:24:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Pay attention to extension of 'positional' arguments

An argument without preceding option name was assumed to be an -lgf argument.
This patch still does that by default, but if the argument ends in .fen, .epd,
.trn, .ini or .xop it is considered an -lpf, -tf or -opt argument.
  In addition, an implied -lpf or -lgf argument also imply the option -viewer,
which inserts the -viewerOptions string into the command line, and proesses it
as options. A new option -tourneyOptions is similarly inserted for an implied
-tf argument. These strings should contain all options needed to start XBoard
fully configured as game viewer or tourney playing agent on the mentioned file.

2012-09-20 15:29:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let windows stick to right display edge (WB)

Auxiliary windows docked to the board window from below or to the right, which are
pushed out of view when the board window resizes, will be trimmed to just touch the
diplay edge (if sufficient width or height remains). When the board window shrinks,
auxiliary windows touching the edge will be resized so they remain touching it.

2012-09-20 15:20:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Round board size to one where piece images available (WB)

When using built-in bitmaps, in sizes where unorthodox pieces are needed, but not
available, the size is temporarily rounded to one of the sizes where they are.

2012-07-03 17:21:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in Edit Position

Due to = in stead of == the variant was always set to S-Chess in
EditPositionDone().

2012-08-28 21:24:51 -0700 Daniel Macks <dmacks@netspace.org>:
bug #37210: Mishandling of X11 -I flags (tiny change)

AP: applied patch from bugtracker and added one missing 'save_cppflags="$CPPFLAGS"'

2012-06-02 14:31:18 -0700 Arun Persaud <arun@nubati.net>:
bug #36229: changed ICS_* from define to enum


2012-05-28 13:58:00 -0700 Arun Persaud <arun@nubati.net>:
bug #36229: changed STATE_* from define to enum

enabling better compiler checks

2012-05-28 13:50:50 -0700 Arun Persaud <arun@nubati.net>:
bug #36229: changed PEN_* from define to enum

This should allow better checks by the compiler

2012-05-28 13:01:15 -0700 Arun Persaud <arun@nubati.net>:
fix bug #36228: reserved identifier violation

variables and macro names beginning with _ are renamed to XB_. More consistent naming of include guards.
See link in bug report.

2012-05-28 12:36:37 -0700 Arun Persaud <arun@nubati.net>:
Updated German translation


2012-04-30 20:06:00 -0700 Arun Persaud <arun@nubati.net>:
new version number for developer release


2012-04-24 11:23:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Decapitalize promoChar in move parser


2012-04-23 14:12:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Keep track of virginity of back-rank pieces in variant seirawan

The forelast rank of the Board array is now used in VariantSChess to
contain flags that indicate virginity of the back-rank pieces, one bit
for white, the other for black. Legality checking of gatings now makes
use of this info. FENs mention all virgin pieces not implied by castling
rights in the castling field, by printing the corresponding file IDs,
as long as holdings are non-empty. The FEN reader now also understands
this format. EditPositionDone fakes virginity for all pieces that are
on their starting square.

2012-04-17 19:49:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress clear-board message after pasting FEN

The message field is now always cleared when you leave EditPosition mode.

2012-04-17 19:45:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix faking of castling rights after editing position with holdings

The queen-side rook was always imagined at X=0, which is in the holdings
when these exist, so that Q-side castling in such games was never allowed
after EditPosition.

2012-04-20 10:29:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WB Engine Settings window

The listbox patch has broken this window, by making it only list the
first option of the engine, by switching to the next column based on a >=
test rather than == test. Fixed by using 1000 as invalid value for the
break point, rather than -1.

2012-04-20 00:01:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix key binding of DebugProc

The name used for binding was DebugProc, while the ite was named Debug.

2012-04-16 20:51:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ICS Text Menu popup

The space for the option names needed to be allocated.

2012-04-16 20:37:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix disabling of Load Engine menu


2012-04-15 22:53:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Port chat boxes to XBoard

A new menu item Open Chat Window is added to the View menu. It opens a
window that can handle 5 chats. A row of buttons on top selects which is
the foreground chat partner, to which we type, and whose incoming messages
will be displayed in the memo. The leftmost 'button' is not really a button,
but a text edit, and the active partner is displayed there (so it can be
altered). Selecting another chat partner through a button, moves that partner
to the text-edit, and reshuffles the buttons. Incoming messages in a chat
that is not foreground make the corresponding button color orange.

2012-04-16 20:27:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow chaining of single-line text-edits to top

For the benefit of the chat window, a text-edit plus leading description
can now also be chained to the top edge of a dialog. The chaining of the
(degenerate) multi-line ICS Input Box and Move Type-In was entirely to the
bottom, which has now been corrected.

2012-04-12 09:30:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add logo widgets in main board window

New options -logoSize and -logoDir are added. The former enables logo display,
when non-zero and not too big. The latter is used by -autoLogo. The options
 -firstLogo and -secondLogo also work. Problem is that the clock height
is larger than the logo height, and for now a nasty trick in GenericPopUp
is used to position the next element (message field) w.r.t. the clocks,
rather than the last element of the row above (the logo): in case of a
SAME_ROW Graph element, 'last' is kept at the previous element.

2012-04-19 10:48:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on time forfeit with -st option

When fixed time per move was set from the command line, the time-control
strings were not set. This let to a crash when an engine forfeited.
The GetTimeQuota function is now made resistant to a NULL pointer here.

2012-04-19 10:39:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Solve WinBoard name clashes, fix zippy-analyze menu graying

Some of the function names used in the refactored X11 front-end collided
with Windows system names from winboard.h, or with names of internal routines
in WinBoard front-end files (so they could not be declared in frontend.h).
These were renamed. Some prototypes in engineoutput.h contained X11 types,
and they were moved to xboard.h.
  In addition, two menu-item names were corrected to two-part names.

2012-04-18 12:00:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Offer primitive paging in file browser

If there are more than 1000 files that would have to be displayed,
the number will be limited to 999, and a 'next page' entry will appear
at the bottom. Clicking that will give you the next group.
 This is an emergency measure only, as it interferes with sorting
(grouping is based on order inside the directory, i.e. kind of arbitrary,
and sorting is only done within a group.) There is no such thing for the
folder list yet. There is no way to go back to a previous page, other
than closing and re-opening the browser, or selecting another file type.

2012-04-18 11:16:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add pixmap as file type known to browser

Users can browse for a pixmap to set the board texture.

2012-04-17 15:45:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warning about signedness

Note: the promoChar in ExcludeMoves was explicitly defined to make
sure the kludge promoChar = -1 for indicating best move works. But it
should be equivalent to casting the promoChar to (signed char) just
before the comparison.

2012-04-17 15:44:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warnings about character index


2012-04-17 15:37:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move ManProc to xboard.c

It calls ManInner, which requires X11 data types, even if the values are NULL.

2012-04-17 15:27:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move FileNamePopUp to dialogs.c


2012-04-17 15:15:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix readout of numeric combobox

As currently no numeric comboboxes are used, this bug was silent.

2012-04-17 15:10:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Shuffle prototypes to correct header, or add them there


2012-04-17 14:15:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix MenuNameToItem

This function could crash when called with ann argument that did not
contain a period, while the idea was that it should handle this as if the
item is in noMenu (for user-specified key binding to non-menu funtions).

2012-04-16 19:43:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix click-click under-promotion animation save


2012-04-17 11:02:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Define TOPLEVEL in winboard.c


2012-04-17 10:59:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add two new strings to WinBoard language file


2012-04-17 10:51:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix second-engine variant test

The test whether the second engine supports the selected variant took place
before the second engine was loaded, thus always coming to the conclusion
that the variant was not supported, and aborting the TwoMachines command.
The test is now moved to after second-engine loading (but before its
initialization, where non-supporting would become a fatal error).

2012-04-16 12:11:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix clearing of ICS input box after send


2012-04-16 19:08:10 -0700 Arun Persaud <arun@nubati.net>:
enable -Wall -Wno-parentheses for all compilers that understand them


2012-04-16 13:18:37 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove 5 unused variables from zippy code


2012-04-16 13:14:06 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove unused static function ShowTC


2012-04-16 13:10:58 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove unused static function MenuBarSelect


2012-04-16 13:07:01 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove unused variable first_entry from function find_key


2012-04-16 13:01:09 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove unused variable tm from function SaveGamePGN


2012-04-16 12:56:46 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove unused variable delayedKing from function QuickScan


2012-04-16 12:52:57 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove unused variable pdown from function UserMoveEvent


2012-04-15 04:25:59 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Change some double literals to floats.

To avoid unnecessary implicit promotions of float variables to double.

2012-04-15 11:12:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove debug printf


2012-04-14 22:43:03 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
Translate "NPS" also in engine output window


2012-04-14 16:19:34 -0700 Arun Persaud <arun@nubati.net>:
removed unused variables (-Wunused-variable)


2012-04-14 15:37:05 -0700 Arun Persaud <arun@nubati.net>:
added m4 directory to search path for aclocal. As suggested by Michel Van den Bergh


2012-04-14 23:21:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Eval Graph scale in drop games


2012-04-14 23:16:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ArrowDamage out-of-bounds access on drop moves


2012-04-14 21:33:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement automatic partner observe

Starting a game, or starting to observe one, now automatically issues a
'pobserve' command if dual-board is switched on, so that the partner game
will pop up in the secondary board (assuming it is bughouse).
 The secondary board now displays the players in the title. (This (lightly)
breaks WinBoard again.) When the primary game ends, the secondary board
closes automatically. Initial sizing of the board is repaired, and now uses
the actual current board size, rather than the initial size of the main board.

2012-04-14 15:43:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash due to empty PV

Reception of a stat01 command before the first PV could cause a crash,
as apparently the parser cannot handle this.

2012-04-14 13:27:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress testing for availability in bughouse drops

Give up on testing legality of bughouse drop moves; this only causes problems,
because the move list sent by the ICS is not accompanied by holdings updates.
So XBoard parses it thinking the holdings are empty, making every drop move
an ImpossibleMove. Bughouse can only be played on ICS, and we might as well
trust the ICS that it will only pass us legal moves. A user should not be
able to enter illegal drops; unavailable pieces cannot be grabbed from the
holdings, and typing is diverted to the ICS directly (which would reject the
illegal drop without XBoard even knowing about it).
  Also improve switching to bh/zh, based on drop move in initial board.

2012-04-14 09:11:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some compile errors / warnings


2012-04-13 19:06:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix promotionPopDown on new move entry

The promotion popup is non-modal, and old XBoard versions popped it down
as soon as the user clicked the board, so he could just enter a new move
to abort the promotion. This was broken in the new version, because the code
to do the PopDown and abort in HandleUserMove had not been ported.

2012-04-13 18:38:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use in-place sweep-selection for click-click under-promotion

With detour under-promotion a piece cycles through all possible choices
during backwards dragging. But in a click-click move there is no dragging.
This used to be solved by letting the second click start a drag event of
the default promotion choice, which you could accept by immediately
releasing the mouse button, or drag around to change it first.
 The dragging in this case seemed a little unnatural, because the to-square
was already indicated by the down-click. So it has been changed now to the
promo choice appearing on the down-clicked to-square, followed by
EditPosition-like sweep-selection on that square when one wants to under-
promote. The move is always accepted no matter where the up-click takes
place, except when it takes place on the from-square (which offers a last-
resort abort possibiliy).
 Note that click-click promotion is essential in variants where it is not
obvious from the from-square alone that a promotion is imminent, but where
it depends on the to-square. (Such as Shogi.) There drag-drop detour under-
promotion is not possible.

2012-04-13 16:05:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve arrow drawing

The arrow is now erased together with the border highlights, by marking
the damage it did, and then doing a selected redraw of the board to let
the damaged square be re-drawn. Highlights of a previous move are now
cleared on the down-click that selects a new piece, so there never is an
arrow to infavorably interact with animation of dragging.

2012-04-13 14:57:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Also do selective redraw with showTargetSquares on

The XBoard DrawPosition now also keeps track of the previous marker state,
and redraws squares for which thi shas changed. As a result, the routine
MarkTargetSquares does no longer have to force to complete redraw.
(Breaks WinBoard?)

2012-04-13 00:33:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix click-click sweep promotions to empty square

These did not work, because DragPieceBegin would fail on an EmptySquare.

2012-04-12 23:58:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move clearing of target squares to after drag end

A dragged piece that would partly overshoot its destination into a square
with a marker would effectively protect that marker from erasing, when the
erasing was done before the piece was released, because redrawal after the
move only would draw the target square. (Unlike erasing, which forces a full
redraw.)

2012-04-12 23:49:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix double promotion popup

Only the up-click of a click-click move gives a promotion popup now.

2012-04-12 23:32:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix promotion popup

The new GenericPopUp did not like it if the first button had 'SAME_ROW' set.

2012-04-12 17:28:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow clearing of marker dots in any mode

There might already be dots when you change to a mode where there should
be none, and you don't want them to stay on forever in that case...

2012-04-12 17:00:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix redraw of secondary board on flipping view


2012-04-12 10:30:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let clocks of secondary board count down

The back-end now remembers what is the active clock, and the time left on it.
This is then decremented and updated together with the clocks of your own
game, using the partnerUp flag to divert the clock display to the secondary.

2012-04-12 09:47:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix 3 forgotten symbolic widget references


2012-04-11 19:24:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add sound files to browser menu


2012-04-11 13:04:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add New Directory button to file browser


2012-04-11 09:54:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Detect engine exit during startup

The case where engine startup failure does not result in a fatal protocol
message, like "No such file", but where it simply exits, is now also covered.

2012-04-10 22:55:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress popup for fatal error after tellusererror

For cooperating better with Polyglot, and allowing more to-the-point
error messaging, the (awful) default message will be suppressed if the
dying engine already provided an explanation for its demise to the user.

2012-04-10 20:28:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Engine Output icon heights in international versions

The text in a label option could not be an empty string, or it would be
'translated' to something of enormous size. So it is set to a space now.

2012-04-10 20:21:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix internationalization

The internationalization was broken by moving the XtSetLanguageProc
to behind 'bindtextdomain'.

2012-04-10 20:03:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make reference to board widgets symbolic


2012-04-10 18:39:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Don't strip path from engine name if directory given


2012-04-10 17:54:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix vertical chaining of Buttons and browser ListBoxes


2012-04-10 15:53:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix auto-play

The 'narrow search' modification had broken auto-play, because all selected
games were marked as matching position 0, so that they would all start in
thr opening position.

2012-04-10 13:30:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
updated po/pot files


2012-04-10 11:54:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
new version number for developer release


2012-04-10 13:22:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update POTFILES.in


2012-04-10 13:21:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Makefile EXTRA_DIST


2012-04-02 17:53:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use Ctrl key in EditPosition mode to copy pieces


2012-03-28 23:51:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in FRC castling for position search

In FRC it is essential that both pieces are taken off the board before
any of them is put back, lest they obliterate each other.

2012-03-28 12:25:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug on loading engine

A newly loaded engine was put at the end of the game, rather than at the
current position, (which is required in EditGame mode).

2012-04-06 17:02:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add 'Narrow' function to position search


2012-04-06 10:52:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reorganize main() a bit

The font stuff goes into a separate routine, and the X11 stuff is
moved backwards as far as possible.

2012-04-04 21:55:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Give the dual-board option a separate board window

The second board window pops up whenever an alien board is received
during your game. Moves in it are highlighted by an arrow, irrespective
of the 'Highlight with Arrow' setting. The clocks are displayed, but do
not count down.

2012-04-05 11:23:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Port engine grouping to Match Options dialog


2012-04-05 15:18:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Change default directory in Load Engine to "."


2012-04-05 10:49:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Port grouping to XBoard Load Engine Add highlight to Load Engine grouping


2012-04-06 17:19:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix default file types for browse buttons


2012-04-03 09:14:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
New browser

Redo file browser with GenericPopUp

This had to solve quite some problems, because it wanted to use a ComboBox
option while a transient dialog could be up, was a non-engine dialog
while an engine dialog is up, and XRaiseWindow does not work properly.
  Sorting is done alphabetically, or for digit groups by numeric value.

2012-04-02 14:43:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use ListBox in stead of ComboBox in Match-Options dialog


2012-04-02 14:09:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use ListBox in stead of ComboBox in Load Engine dialog

Make Load Engine listbox sensitive to double-clicking

2012-03-26 17:06:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add message about enabling in New Variant dialog


2012-03-31 20:27:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move LoadGamePopUp to menus.c


2012-03-31 20:25:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move DisplayMessage to dialogs.c

Use the wrapper SetWidgetLabel to make it back-end.

2012-03-31 15:23:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix switching debug option during session.

Switching on debug mode during the session did not create the requested
debug file.

2012-03-31 15:22:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Correct texi file for use of .Xresources


2012-04-02 19:19:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix recent-engines menu

A new primitive to create an item in a given menu was added to do this.

2012-03-31 10:54:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Switch back two two-part menu names

The menu code is again completely changed; a handle field is added
to the MenuItem tables to store the widget for the item, and this info
is used to alter sensitivity or marking. MenuToNr is replaced by
MenuNameToItem, which looks up the two-level name directly in the
menu tables. Put all currently unused MenuProcs in noMenu table,
so they are available for key binding through the new method.

2012-03-24 18:36:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo main board window with generic popup

Some of the improvements in GenericPopUp (committed earlier) were added
especiall for this (menu and box Option types), and the commits that used
them to make a fully functional board, listed below, were collapsed into
this one.

This uses the new box and menu features of the Generic popup.
Make option table shadow board consistent with refactor
Do main menus in shadow board
 The board made by GenericPopUp now also has (functional) menus. The Expose
 callback now also uses the new format (passing coordinates).
Use BoxEnd callback to decide about smallLayout
 The shadow board now dynamically decides whether it should use smallLayout
 positioning of the title-in-window widget, using a callback in the BoxEnd
 option for the menu bar: If no reasonable amount of space is left behind
 the menu bar, the title is forced under the clocks (smallLayout).
Do some mouse handling on shadow board
 Only button 1 events for now. We have to keep track if the button is down!
Connect button 3 to shadow board
 For now only for piece and PV manipulation: no context menus yet
Symbolic reference in option formatting
choice <-> textValue xboard.c
Improve expose callback shadow board
Implement context menus of shadow board
 This uses the new generic PopUp option
TopLevel xboard.c
Make mock-up board available through menu item
Make clocks of shadow board sensitive to clicking
Make button bar of shadow board operational
 The back-end Event functions are specified as user callbacks directly;
 this is not very clean, as they are parameterless, but called with an int
 argument. This should have no bad consequences, though.
Switch to using shadow board as main board
 The menu marking and enabling had to b switched off for this, as it
 only worked on the old menus. Remove HandleUserMove.
Deleting of unused shell variables, clocks to dialogs.c
Move BoardPopUp to dialogs.c
 This required passing on fome front-end vars as parameters, and returning
 apointer to the option list, to make the handles available in xboard.c.
Simplify InitDrawingSizes
 Now that all widgets of the main window are properly chained, there is
 no need to resize them when the board format changes: setting a new width
 for the shell suffices.
Cleanup some unused Xt Args

2012-03-31 10:53:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove unnecessary menu unmarking for Edit Tags


2012-03-29 19:09:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Split sync-after options in Match dialog into checkbox + label

Now the checkbox texts are highlighted on hovering, we don't want the
explanatory text behind it to be highlighted with it.

2012-03-26 17:12:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make variant-unsupported-by-second error non-fatal


2012-03-23 20:06:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Eval Graph with generic popup

The Graph option of the GenericPopUp is used to implement the Eval Graph.
Compared to the previous implementation, which was drawing directly in the
form widget, the new one has one extra widget layer, but that did not
affect the code anywhere. Adapt eval title to width of eval graph.

2012-03-23 15:17:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Engine Output window with generic popup

A new file nengineoutput.c holds the X-independent code. This makes use
of new capablities of GenerciPopup, for having Label widgets on same row,
stacking panes after a Break, and chaining Label and Text widgets.

2012-03-21 23:00:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Game List with generic popup

Check in ngamelist.c
Redo Game List with generic popup
 The X-independent code (i.e. almost all) is moved to a new file
 ngamelist.c.
Make button in Game List to pop up Game List Options
Fix scrolling game list
Fix popup of existing Game List after loading file
Wheel-scroll game list
Symbolic reference game list
TopLevel game list
Put format flags with listbox options

2012-03-21 17:58:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Game List Options with generic popup


2012-04-05 21:56:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -dialogColor and -buttonColor options

These only override system defaults if they are non-empty strings.

2012-03-28 15:52:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -topLevel option

This persistent Boolean option determines if the auxiliary windows
(Game List, Move List, Engine Output, Eval Graph, Tags and Comment)
use top-level shells (with their own icon on the task bar, and
independently closable). Other dialogs will always use transient shells.
(Also he modal Error and Promotion dialogs, for which the modality
presumably only serves to pop them down without special attention.)
A control for this was added in the General Options dialog.

2012-03-20 15:30:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo ErrorPopUp with generic dialog

<Enter> keeps popping down error popup.Multiple Error popups remeain tricky;
add comment to describe problem with multiple ErrorPopUps.

2012-03-20 10:22:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo PromotionPopUp with generic dialog

The dialog is no longer modal.

2012-03-19 21:56:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo AskQuestion dialog with generic popup


2012-03-19 21:55:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Major refactoring of GenericPopUp

Allow more transient dialogs in GenericPopUp
Remove grab from promotion popup
Fix other generic popup over transient popup
 To use the generic dialog generator for 'asynchronous' popups (Ask Qustion
 or Error popup caused by engine), the currentOptions setting has to be
 restored for the combo and checkbox callbacks of the transient to still
 work after the asynchronous dialog returns. Note that only transient dialogs
 can have check and combo controls.
Make generic calcel button suppressible
 Also #define some more symbols for Option.min flags,
 and move them to dialogs.h.
Change TypeInProc to general OK handler
 The move type-in now has its own option list, to distinguish it from
 the ICS input box, and give it its own OK handler. Rather than having
 the translation for <Enter> on the text widget call TypeInEvent directly,
 we let it call GenericCallback, which calls GenericReadout, which calls
 the OK proc, which does the job.
  To be able to call GenericCallback from the TypeInProc, the recognition
 of OK and cancel buttons had to be changed. This because it was too difficult
 to arrange the calling widget had label OK or cancell. So these buttons are
 no longer recognized by name, but by the option number passed as client data.
 (This solves the problem that a user could not make buttons named 'cancel'
 or 'OK'.)
Make Cancel button optional
Fix closing multiple popups of same kind
 The GenericCallback figures out its own shell, so all buttons of
 multiple dialogs keep working. External calls to PopDown only work
 on the lastcreated instance of that kind, though (including those from
 the Delete Window button, which can do 'cross-closing'). shellUp is now
 a counter, and PopDowns are only prevented when it reaches 0 or the
 current shell does not exist. (To know this, PopDown now resets shells[n]
 to NULL when is shell is destroyed.
  Beware of double PopDowns (through OK procs); they wreck the system.
Fix Delete Window button of multipe ErrorPopUps
 The action routine for handling the Delete Window now pays attention
 to the shell widget that the system passes to it, and temporarily
 replaces shells[n] by it to let PopDown act on the proper instance.
Add ListBox dialog type to GenericPopUp
Fix vert sizing of ListBox
Put listbox widgets in viewport
Put listbox in viewport
Improved xoptions.c support for focussing and listboxes
Fix OK-row button positioning
Let GenericPopUp take parent and modality as arguments
 This makes the code a bit more explicit and less kludgy. It also becomes
 possible to call the same dialog (e.g. Load Options) from the main menu
 and from another dialog (e.g. the Game List).
Support scroll function for generic popup listboxes
Fix scrolling
Move HighlightWithScroll to xoptions.c
Change scroll algorithm
Add mouse-wheel scroll to generic list boxes
Implement tabbing between text edits
Implement same-row text labels in generic dialog
Allow labels to specify their chaining in generic popup
 The opt.min variable is used to specify the chaining: 0xF0 are the bits
 for (left, right) chaining of the left side (0xC0) and right side (0x30).
 The 0xC bits determine top or bottom chaining of the entire label.
 Without anything spcified (0), the chaining is XtRubber.
 TextBox options can also specify top-chaining of their top. All this was
 needed to allow decent implementation of the Engine Output window with
 the generic popup. (Although tags and comment popup ca benefit from the
 latter feature.)
Let GenericPopUp support a Graph option
 The Graph option results in an area where one can draw something. It is
 positioned / chained similar to Label options. A handler for expose events
 can be specified in the textValue field of the option.
Implement box widgets and menu buttons in GenericPopup
 To enhance the capabilities of GenericPopUp such that it could create the
 main window, it needs to be able tha packaging of controls into a box widget
 (for mennu and button bar). Menu buttons are also required elements
 (although they do look a lot like comboboxes?) Option types BoxBegin and
 BoxEnd can now be used to bracket a group of controls that will be put
 in a box widget. (Cannot be used recursively!) The positioning of the box
 is similar to that of a Label, and is specified in the BogBegin option.
  The code to shrink the menu buttons to fit is also incorporated, to act
 on any box widget: if the BoxBegin option specifies a width, the elements
 in it are shrunk to meet the requirement. Otherwise the box just gets the
 size of the sum of its children (plus spacings).
  Label options can now specify a font, casted into their textValue field.
 (This is needed to get the proper size for the clock widgets.)
Implement callback in BoxEnd options
 BoxEnd is a pseudo-option, to trigger packing the preceeding ones in
 an earlier-opened box widget. In the process it calculates the size of
 the box widget (and trims it if a size was specified for it in the
 corresponding BoxBegin). The Option.target field of BoxEnd is now
 interpreted as a callback, which can be use to take decisions based
 on the determined size for the remaining options in the list, before
 these are processed b GenericPopUp.
Refactor xoptions.c
 Make a subroutine to set args shared by almost all widgets. Swap meaning
 of '1'-bit in option.min flag of Break option, to be consistent with
 SAME_ROW interpretation in other option types.
Make option tables consistent with refactored GenericPopUp
 The flag for stacking in the Break option needed to be inverted, and
 the BoardPopUp needed to pass the font in another field. Better use was
 made of the improved chaining options too.
Improve Graph-option event handling
 The user-supplied callback now gets 3 arguments passed: the event type
 (0 = pointer motion, 1...5 button press, -1...-5 release, 10 = expose),
 and two coordinates. For ouse events these are the pointer (x,y), while
 for expose events they are the window size (w,h). The callback is now
 specified in the option.target field of the Graph option.
Store engine options in malloc'ed memory
 The Option.name field has been re-declared as (char*),  from (char[MSG_SIZ]).
 There are still MSG_SIZ chars allocated irrespective of actual size, because
 the field is also supposed to store the textValue, which can be changed by
 the user. But at least it means that unused options of the generous list
 now don't waste much space. (And the prparated Option tables in dialogs.c
 will shrink by a large factor as well.)
Improve GenericPopUp ComboBox handling.
 The dialog type is now passed to the combobox callback as well, and this is
 used to really figure out what option it is called for.
Allow numeric comboboxes
 When no list of strings is given in Option.choice, the target is assumed
 to be (int), and the number of the slected entry is stored there. Also
 adapts the Label options that act as fillers to the new method for making
 dummies (namely NULL in the Option.name field).
Put comboCallback in Option struct
 Rather than having a general comboCallback variable for the entire current
 dialog, each ComboBox option can now specify its own callback in the
 target field of the option: the COMBO_CALLBACK bit of Option.min indicates
 whether the target is a variable to be set or a callback. The callback can
 still fetch the choice from the values array.
Allow generic CreateComboPopup also to do main menus
 An extra parameter to CreateComboPopup determines if the menu texts
 should be taken from a list of strings (the old method with engine-
 supplied choices), or from a menu table of MenuItems. It can now also
 recognize "----" as a menu break, and keeps margins (for the marking).
Make subroutine for determining curren combo selection
Various fixes to GenericPopUp
Delete one border-width setting
Fix max nr of args in GenerocPopUp
Fix button release events of Graph options
Fix generic Graph callback pointer motion coordinates
Make all format referencing in Option tables symbolic
Let Option.choice define menu texts, rather than Option.textValue
 This is more logical than ussing textValue for it, because choice already
 has the correct (char**) type, while textValue was (char*), and needed
 casting everywhere. Note that for engine options, the fields were the
 same anyway, so no back-end change was required. The textValue now
 contains the (casted) list of actual string values, where these are
 needed. (But for numeric and function menus they aren't.)
Add PopUp Option type
 An new pseudo-Option is defined, to add a popup menu to a previous Graph
 option. The actual popping up is done by the expose handler.
 The function XUngrabPointer is the key to success here. A PopUp option
 specifies a callback for handling the selection from the menu, which will
 be called with the option number, exacty as with ComboBox options.
Update option explanation in dialogs.h
Make Spin and CheckBox callbacks pass dialog number
 No longer rely on 'currentOptions' for getting the option belonging to
 the callback, but get it out of the dialogOptions array indexed by dialog
 type. This way things cannot be messed up by an asynchrounous error popup.
 It also means that it is now save for non-modal dialogs to use these options.
Use button widget for text behind checkbox
Let listboxes use general formatting hints
Let GenericPopUp option always finish last pane after Break
Allow LisBox to specify select callback in Option.textValue
Use double-click to trigger ListBox callback
Make ListBox callback re-entrant
Fix multi-line Label options
Separate CreateMenuItem out from CreateComboPopup
Chain checkbox texts entirely left
Allow a user-specified callback to Label options
 This is needed to implement the clocks. Let the CheckBox callback handle
 it. For now ther is no distinction between different mouse buttons.

2012-03-21 11:15:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Prevent double PopDowns

Some DialogOK functions ordered an early PopDown themselves. This,
however, resulted in PopDown being called twice when they returned TRUE.
This interfered with the new system for allowing multiple instances of
the same dialog. So these functions are now fixed to suppress the
standard PopDown by always returning FALSE.

2012-03-20 19:10:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Split usounds.c and usystem.c from xboard.c

X-independent code was moved to separate files. The nef file usound.c
contains the sound handling, which in XBoard is trivial, because it uses
an external player, but could be replaced by a complex one on platforms
that have to handle the sound themselves.
  The usystem.c file contains all non-X Unix-like stuff, such as fork,
pipe, system, getenv. I also contains some color parsing for the xterm
colors. This stuff could be useful on platforms that support Unix-like
system calls.

2012-03-26 19:03:19 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make routine to probe shift keys

The code to probe Alt keys was taken out of MoveTypeInProc, and extended
to probing Ctrl and Shift keys too. These are now returned in the 6 LSB
of an int by ShiftKeys().

2012-03-19 13:15:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove one level of indirection on ICSInputBoxPopUp


2012-04-10 10:26:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cleanup of xboard.c

Remove AskQuestionProc
A bit of cleanup on xboard.c prototypes
Remove dead file-browser code
Delete vestigial jail code
 All the stuff about jailColor was deleted. Only one fishy thing remains:
 xpmJailSquare seems under some conditions used in BlankSquare to draw a
 'neutral' square. it is set to a copy of a light square image. But in the
 current design 'neutral' means blacked out between board and holdings,
 and even with image use, it should not resemble a light square...
Remove registering of CommentPopDown and TagsPopDown
Merge CopyGameSelection into CopyPositionSelection

2012-03-19 11:38:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Move some back-endish routines from xboard.c to dialogs.c

Move ICS input-history handling to dialogs.c
Move ICS Input Box text handling to dialogs.c
Move DisplayXxxx routines to dialogs.c
Move DisplayTitle to dialogs.c
 A wrapper SetWindowTitle remains in xboard.c.

2012-03-18 20:10:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Split back-endish part off xoptions.c, and move to dialogs.c

Some MenuProcs for dialogs were also moved to dialogs.c from menus.c.
MoveTypeInProc which is an event handler for the board widget,
was moved to xboard.c, where it can be static.

Identify dialogs by enum type
 A new header dialogs.h is created, which defines an enum type DialogClass
 that is now used to identify the various dialogs done by GenericPopUp.
 The prototypes for GenericPopUp/PopDown, and other globals shared by the
 dialogs code and other modules can go in here as well.
Remove ClearTextWidget
 This did the same as SetWidgetText with an empty string.
Split X-code from PutText
Split back-end part from MoveTypeInProc
Take set-title out of comment popup
Sort MenuProcs in dialogs.c with their support functions
Declare globals in dialogs.c with functions where they belong
Add prototypes to dialogs.h
Move prototypes and globals from xoptions.c to dialogs.h
Make accessor DialogExists for dialog shells
Add dialogs.c to makefile: compiles and runs!
Combine 3 calls into front-end to InitDrawingParams
Move EditCommentProc and ICSInputBoxProc to dialogs.c
Pass option list as argument to GenericUpdate and GenericReadOut
Shorten argument name from currentOption to opts
 This to prevent confusing it with the global variable of that name.

2012-03-18 15:33:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Declare some shared global variables in backend.h

The vlobals twoBoards and partnerUp were only shared through an extern
declaration in xboard.c

2012-03-18 12:34:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Split back-endish part off drawing code and move to board.c

Split DrawSquare in front-end and back-end part
Back-endize DrawHighlights and DrawPosition
 The already existing wrapper FlashDelay is used as a kludge to do an XSync.
 We now pass a code for the line color GC to the highight routine. New
 wrappers are DrawGrid() and DrawBorder().
Back-endize atomic explosions
Back-endize DrawArrow and DrawDragPiece
 DrawDragPiece now calls DrawOneSquare with argument EmptySquare in stead
 of the X-type referring BlankSquare. A new wrapper DrawPolygon fixes
 DrawArrowBetweenPoints.
Move board-drawing logic to new file board.c
 All X-independent drawing logic (board, squares, arrows, highlights,
 some animation stuff) has been extracted from xboard.c, and moved to
 a new file board.c, which is back-end (but unshared with WinBoard).
 A new header board.h defines the cross-references (which of course
 required some functions to be no longer declared as static).
  A bit of code was moved from DragPieceBegin to BeginAnimation, which
 now has an extra argument to indicate which piece should appear from
 under a dragged piece. This makes DragPieceBegin free of XCopyArea calls,
 so it could be moved too.
Make board.c truly back-end
 Get rid of all X data types. For this the AnimState struct had to be
 redefined: the GC and Pixmap was taken out and put in front-end arrays
 indexed by anim agent (game and player). For this indexing a new enum
 was defined. The XPoint type was also replaced by our own type of an
 int pair (which is nasty, because the int size could be different).
Move more animation code to board.c

2012-03-18 10:08:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Contract some awful code replication

The code for making an X-color was replicated 6 times, and is now made
into a subroutine. The code for creating GCs was quite repetitive as well.

2012-03-18 08:34:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Move more back-endish menu-related stuff from xboard.c to menus.c

Move menu enabling to menus.c
 Only the wrapper EnableMenuItem stays in xboard.c. A new wrapper
 EnableButtonBar was necessary, because Training mode wants to enable/disable
 that too.
Move all back-endish MenuProcs to menus.c
 Many if the MenuProcs that could not be eliminated by listing the
 corresponding back-end MenuEvent function as handler directly, are
 still completely plactform indpendent. (E.g. when the MenuEvent needs
 a parameter.) These are all moved to menus.c now.
Convert all dead MenuProcs to using MarkMenuItem
 The MenuProcs for the option items that no longer exist were also
 converted for check-marking their item in the new way, because we
 might revive them for key binding.
Move the dead MenuProcs also to menus.c
Revive dead menu procs
Move GreyRevert to menus.c
Move ModeToWidgetName to menus.c
Move initial menu marking to menus.c

A new function InitMenuMarkers was split off from main() to do this.

2012-03-18 08:17:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Switch to use of short menu references

The prefixes menuXxxx. for the item names are abolished. This made it
necessary to also add a MarkMenuItem function that can handle short names
for putting the xMarkPixmap on the items, as the names returned by
ModeToWidgetName are used for both enabling and check-marking.
Let MarkMenu use MarkMenuItem wrapper

2012-03-17 10:47:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Refactor menu code, and move it to menu.c

Supply new method for key binding
 It is annoying that every menu item needs its X-specific handler routine,
 because this handler has to be registered to X for becoming eligible as
 a key binding. Another disadvantage of this method is that the user wanting
 to make the binding has to know the name under which the menu function
 is registered (e.g. FlipViewProc).
  A new method is now made available, which uses only a single (X-specific)
 routine, registered with X as "MenuItem", as generic key-binding handler.
 The bindings can then be made by the user specifying "MenuItem(FlipView)".
 This requires a new list of potential bindings, which should be filled
 by the menu-creation routines. (Currently only contains only a predeficed
 example.)
No longer register all MenuProcs with X
 The list with available menu procs is moved to the user-maintained
 menuItemList. Only QuitProc had to stay registered with X, because it is
 used in CatchDeleteWindow. (So it is in both lists now.) In the future,
 most of the list can be built automatically from the menu tables.
Alter type of MenuProcs to void(void)
 By getting rid of the argument list with X-types, most menu procs can
 become back-end. In the cases of ManProc and QuitProc the original
 version had to be kept as well, because in ManProc the argument was
 actually used (with key binding), while QuitProc is used for delete window.
Remove now unnecessary menu wrappers
 Now the MenuProc have an empty argument list, those that also call a
 single 'MenuEvent' without arguments have become completely redundant,
 and have been taken out of the loop by calling the corresponding MenuEvent
 directly.
Build menuItemList from menu tables
 Rather than having an initialized table of name-proc associations (which
 used to be the X registrations) for the menu items, we now build the list
 during menu cration from the menu tables. The menu "ref" is now used as
 proc name. This means the old MenuProc names used in the predefined
 key bindings had to be changed to conform to this. Note that the bindings
 would slice up names containing spaces in several parameters, so in the
 translations the spaces were squeezed out of the item names. This requires
 a hand-written comparison routine Equal() to identify the binding.
Remove prototypes of deleted MenuProcs
Move prototypes of platform-independent MenuProcs to menus.h
 Create a new header file for the menu stuff, so that we can move
 the corresponding handler routines out of xboard.c to a back-end file.
Extract back-end code from menu creation
 The menu tables and code to interpret them is moved to a new file menu.c.
 Only basic fuctions for creating a pop-down list and for adding an item
 to it remain in xboard.c.

2012-04-07 15:59:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove some unused (exclude-moves) variables


2012-04-07 15:57:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Install engine within current group


2012-04-07 15:53:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Switch to using listboxes for engine-selection in WinBoard


2012-04-07 15:36:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Narrow button in WB Game List


2012-04-05 15:15:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Silence unjust warning


2012-04-04 12:18:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix memory corruption through InitString and second-engine loading

The InitString and ComputerString options were not swapped when replacing
the second engine, so that the ChessProgramStates of the first engine
could point to an invalid (already freed) init string. Also make sure
that appData.directory contains its value in allocated memory, even
when hand-loading engines.
  Some of the rare options were not swapped either, and would thus
always be loaded for the first engine when -singleEngineList was true.
They are now also all reset to their default, before engine load,
to prevent options of one engine to linger on for a next that does
not specify them. The intentional exception is -firstHost.

2012-04-01 20:51:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix PV sorting during fail low

When an engine reports a fail low as thinking output, and then re-searches
the same move with larger window, it now gets a lower score. This line
would then be sorted below the earlier fail low, because it was mistaken
for a multi-PV line for an inferior move. This patch suppresses PVs
overtaking each other if they start with the same move.

2012-03-30 20:09:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Extend smallLayout regime up to size Medium

Because of the increase number of menus, there is not enough space for a
title next to the menu bar at smaller sizes. In fact it is questionable if
the title should ever go on the same line as the menu bar.

2012-03-30 10:38:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parsing crazyhouse promotions with legality testing off

With legality testing off, any promotion suffixes in a move are taken
'on faith'. But in crazyhouse the piece ID for normal pieces is used as
promotion suffix for promoted pieces, so this would Loop Chess rather than
Crazyhouse. Now attention is payed to presence of ID-less promotion pieces
(indicated by ~ in the pieceToCharTable), and if there are, these prevail
ovr the specified type.

2012-03-30 10:07:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix browsing for save file in WB

The generic popup browse buttons used the wrong flavor of browser,
which would only accept existing files. This was inconvenient when browsing
for a save file. The other flavor of browser is now used by default (so that
engine options also use it), and a new flag is added in the option.max field
(which was already indicating file type) to request readonly browsing for a
save file.

2012-04-02 10:18:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let clicking on header line exclude moves

The exclude header in the Engine-Output window can now be clicked, to
toggle the exlusion of the listed move. Clicking on 'none' resets all
exclusions, clicking on 'best' excludes the first move of the latest PV.
The pseudo-move 'tail' represents all non-listed moves.

2012-04-01 22:39:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Keep list of excluded moves in Engine Output header

As long as there is still space, excluded or included moves are added
to a new header line in the Engine Output window (prefixed with + or -
depending on whether they are currently excluded or included). Future
in/exclusions of that same move then alter the prefix.

2012-03-21 23:12:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix focus of Game List

After focus was transferred to the filter text-edit, it was impossible
to get it back on the game list (to make the arrow keys working again).
A translation to left down-click is now used to assign focus, just as
it would for text edits. For unknown reason this only worked if the
translations were instated by Overriding, rather than Augmenting,
which again required the normal translation of downclick, Set(), which
selects the clicked item, to be explicitly mentioned as well.

2012-03-16 22:41:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix taking effect of some option changes

This fixes a bug reported at Ubuntu: when switching off move highlighting
in Two Machines mode, the last move before the switch stayed highlighted.
The GeneralOptionsOK() now clears any remaining highlights when highlighing
is off. Similar problems with blind-fold mode and coordinates, which require
a total board redraw to take effect, are now solved by also forcing such a
redraw in GeneralOptionsOK() when they change.

2012-03-16 21:58:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add exclude and setscore to protocol specs


2012-03-16 14:47:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix clock stop after dragging

DelayedDrag always cancelled the previous drag timeout event, even when
this was no longer pending because it had already taken place, and the
event ID was resused by some other timeout (usually a clock tick).

2012-03-14 21:06:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement exclude moves

Dragging a piece by double-clicking it on the from-square in analysis mode
will not perform the entered move, but send an exclude or include command
to the engine for that move (provided the engine enabled this with
feature exclude=1), depending on if the move was already excluded or not.
To this end a map of excluded moves is kept, and cleared when we move to
another position through moving, undo, setboard or new. The user can see
whether he included or excluded the move, as exclude uses premove highlights.
  Commands "exclude|include all" are sent when we throw a double-clicked
piece off board (vertically or horizontally, respectively), but after
exclude all the most recent PV move is included again.
  Remaining problem is that promotions can only be excluded.

2012-03-14 15:13:18 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Mark new text "Click clock to clear board" for translation


2012-03-13 21:46:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
More thorough switch to -ncp on engine failure

The ProcRef and InputSource are now also cleared, and just to be sure there
are no surviving adapters, the child is killed when engine startup fails.

2012-03-13 21:25:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Install engines as ./exefile in XBoard

When a path name is split into directory and filename, the latter in Linux
must be preceded by ./ in order to make it executable in the directory
XBoard starts it in.

2012-03-13 14:11:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Inform user in EditPosition mode how to clear board

With -pieceMenu false the board is cleared by clicking the clock, but
since this is impossible to guess, it is now printed in the message field.

2012-03-13 14:06:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix fall-back on -ncp mode

When the requested engine could not be started, the user still had to
wait for the feature timeout to expire before the UI was re-enabled,
and the now-useless loading action would continue. In stead we now
cancel any scheduled continuation, thaw the UI immediately, and switch
the menus and gameMode to ncp straight away.

2012-03-10 18:55:24 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files


2012-03-10 18:54:32 -0800 Arun Persaud <arun@nubati.net>:
new version number for developer release


2012-03-06 16:37:02 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix typo (seach) in string. It is already fixed in branch v4.6.x


2012-03-04 14:52:34 -0800 Arun Persaud <arun@nubati.net>:
added some documentation about what's need to be done for a release and a bash-release script


2012-02-28 21:09:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix suspected bug in Makefile




2012-02-26 18:55:10 -0800 Arun Persaud <arun@nubati.net>:
add information about our webpage and were to report bugs into the help menu


2012-02-26 18:40:27 -0800 Arun Persaud <arun@nubati.net>:
fixed "make install-pdf": missing target for recursive make in po directory


2012-02-26 23:06:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress recent-engines menu items in ICS mode


2012-02-26 22:45:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix 50-move counter in ICS mode

Marking irreversible moves in the EP_STATUS did not work in ICS mode,
as ApplyMove,which did that is never executed there. Only the boards
sent by ICS are displayed,especially in observing mode. Now the status is
derived from the ICS mov strings (x in the SAN move, or P in the long move.

2012-02-26 17:18:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix two 64-bit warnings

Passing the engine number in a pointer variable to the callback needed
a two-step cast.

2012-02-26 16:53:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix piece symbols on switch back to variant normal

Variant switches were not properly detected, meaning the variable pieces
could keep a form belonging to a previous variant. (E.g. Queen remained
a Lance image after switching from shogi to normal.)

2012-02-26 14:07:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Keep XBoard windows attached on resize

Windows attached to bottom or right are displaced with the size increase.
Their perpendicular dimension is also scaled, to keep their edges at the same
fraction of the main window, unless they stick out. In the latter case the
fraction is clipped to 1, so that edge moves with the full size increase.

2012-02-25 22:40:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -stickyWindows in XBoard

This makes the auxiliary windows  move with the main window when they were
touching, as in WinBoard. A control is added in the General Options dialog.

2012-02-25 21:14:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use more reliable X-call for getting window position

XtGetValues on XtNx, XtNy is unreliable. XGetWindowAttributes seems
to give more reliable results, and automatically accounts for the width
of window dressing. The -frameX/Y options are no longer needed bcause
of this, and were removed.

2012-02-25 11:55:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make frame width configurable in XB

New persistent options -frameX, -frameY now can be used to specify
the amount by which Xt lies about the window coordinates.

2012-02-23 20:01:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use combobox line for recent engines when available

The entry made in the -recentEngineList for the startup engine was
derived from the -fcp value, but this would ignore a possible nickname.
In WinBoard we now use the full combobox line to derive the entry.

2012-02-23 09:29:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix translation of EngineOutputTitle WB


2012-02-23 01:34:12 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Updated Danish translation


2012-02-23 00:59:36 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
One missed translation of cps->which


2012-02-22 19:58:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Undo translation of cps->which = first/second

The string in cps->which should not be translated, because it goes into
the debug file to label engine I/O, and many tools for processing
debug files (broadcasters, PGN extractors) rely on this being "first" or
"second". In all contexts where "first" and "second" need to be translated,
cps->which itself is already enclosed in _().

2012-02-22 18:27:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -serverFile option

This writs an extra debug file with only engine communiation on it,
for the benifit of programs like TLCS.

2012-02-22 17:46:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -autoCopyPV

This option causes automatic copying of the last position of a PV walk
to the clipboard.

2012-02-16 14:58:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Delete some load-game debug printing

The debug printing in Disambiguate was no longer needed. The printing
of the started process in XBoard that went to stderr is now diverted
to debugFP, so it ends up in the debug file.

2012-02-16 14:41:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Move change of debug file to before game load

Loading a game from -lgf is done before TwoMachinesEvent is called,
but logically belongs to the game. So the code to switch to the new
debug file for the game is moved to NextMatchGame now.

2012-02-16 14:09:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix button grab for sweep selection

The piece-menu initialization limited the grab of button events to those
occurring inside the board window (presumably intended to limit them to
the piece menu, but that does not pop up in sweep-selection mode).
This is now suppressed when -pieceMenu is off, so that selection continues
outside the the board. (Which is very convenient for pieces pu close to the
edge.)

2012-02-16 13:16:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Don't leave piece selected after piece menu

PieceMenuEvent left the just introduced piece selected, which is almost
never what one wants, as it makes it jump to the next square when selects.
Which is especially annoying if it captures the piece you wanted to grab...

2012-02-16 12:57:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix use of middle button for position setup

With sweep selection the actual drop is made on releasing the button,
and this event was not caught for button 2. Button-2 motion events were
also not caught by the sweep-selection handler.

2012-02-16 23:53:08 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix one more typo in the translator comments explaning "first" and "second"


2012-02-16 23:39:32 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix typo in translator comments explaning "first" and "second"


2012-02-16 23:23:20 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Add args.h to POTFILES.in and change the interface to ExitArgError() so msg is c format string

Having msg as a format string will ease translations because then
badArg doesn't have to come last.

2012-02-16 22:51:44 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Mark the strings "first" and "sencond" for translation.

... and assign the translated strings to cps->which in function InitEngine()

2012-02-16 18:42:10 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Use ngettext() instead of gettext() for a string to allow better translation.


2012-02-16 00:19:59 -0800 Arun Persaud <arun@nubati.net>:
translation: updated uk.po


2012-02-15 20:59:09 -0800 Arun Persaud <arun@nubati.net>:
modified configure and makefile for handling mimedb update

the default configure will install them using the xdg commands (if they exist on the system)

2012-02-13 22:29:48 -0800 Arun Persaud <arun@nubati.net>:
add configure test for xdg-programs to install mime types; can be disabled for building of e.g. rpms

in case the target system doesn't have the xdg-programs available, we test for them.
Distributions often have their own macros to install these, so we add an enable option to configure

2012-02-13 22:05:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove a debug printf

The parsePV debug printf becomes extremely verbose with -fSAN, -sSAN,
so it was deleted.

2012-02-12 22:18:24 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2012-02-12 22:19:37 -0800 Arun Persaud <arun@nubati.net>:
updated po/pot files


2012-02-12 22:17:03 -0800 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.


2012-02-12 07:52:54 -0800 Arun Persaud <arun@nubati.net>:
translation: updated uk.po


2012-02-12 11:38:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Leave height of row that only contains buttons free

All elements of the GenericPopUp are still scaled to the text height,
including buttons appended behind them (browse or color buttons).
But we now make an exception for a row that only contains buttons,
as there is no harm in it being a little higher (and the buttons look
prettier that way).

2012-02-12 00:01:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix OK button of error popup

The error dialog popped up as a child of the board window, even when
DisplayError was called from a dialog. Now it checks if a transient
dialog is up, and if so, it pops up as a child of that, grabs focus,
and suppresses the system popdown of the transient dialog through a flag
dialogError until it is popped down itself.

2012-02-11 20:07:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file


2012-02-11 10:18:02 -0800 Arun Persaud <arun@nubati.net>:
added some comments for translators


2012-02-11 10:08:46 -0800 Arun Persaud <arun@nubati.net>:
fixed comments for translators: comments starting with TRANSLATORS: are now copied to the po file


2012-02-11 19:01:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also configure sweep selection

To make sure this feature is tested, we set -pieceMenu false in the
master settings file.

2012-02-11 18:26:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix date in copyright notice about-box


2012-02-11 17:15:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix switching animation masks on variant switch

The masks for variant-dependent piees (E,H in Seirawan, promoted Golds
in Shogi, the Gothic Chancellor) were no longer updated in InitDrawingSizes
because of the patch to reduce X-server calls.

2012-02-11 16:46:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure wider game list

The game list was by default too small, so that there was no room for the
filter field. Now a width of 500 is specified, whcih works at -size 49
as well as 72.

2012-02-11 16:29:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix button chaining and combo/textbox label height

Previous patches forgot to specify the height for the text labels on
-combo and -text options, so they were still too high. Buttons that go
on the same line as the previous element should be chained right, not rubber.

2012-02-11 15:52:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make -pgnNumberTag option setable from menu

The Save Options dialog now containes a checkbox for this.

2012-02-11 15:48:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure some new features switched on

The master settings file switches -showTargetSquares, -sweepPromotions
and -seekGraph on, so that they will get more testing.

2012-02-11 14:43:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix heigth of multi-line labels

The previous height patch overlooked that some labels are multi-line,
and need more height.

2012-02-11 14:10:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix popdown seekgraph on forward-event XB

Only the grid was drawn when the > or >> button were operated, because
a full redraw was not forced by ForwardInner. The recent patch to take
the seek graph down on such events did not account for that. (BackwardInner
always seems to do full redraw, however?)

2012-02-11 12:59:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put front-end support for -recentEngines in XBoard

The engines are added to the menu. Problem is still that in XBoard
startup engines are given by command, rather than selected by combobox,
so the command rather than the nickname ends up in the menu. If this is
then selected, it cannot be found in the list. To limit the damage,
Fairy-Max is now pre-installed without nickname. -recentEngines is now
configured to 4.

2012-02-11 11:53:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Better solution to button-height problem

In stead of adapting the height of text widgets to that of buttons,
(as represented by the message widget), we now do the opposite, and
adapt the button & label heights. This is made safe by obtaining textHeight
from the fontSet's max_logical_extent, though an XExtendsFontSet() call.
Turns out the default height of text widgets is not exactly that, but
4 pixels larger for borders and margin.
  The parameter XtNvertDistance is now used to align the checkboxes with
the following text widget, and their size is derived from textHeight as
well.
  The XtNvertDistance is set to -1 for the lower spin button, so that it
its border coincides with that of the upper spin button. Their height is
set to textHeight/2. This makes their combined height just 1 pixel more
than that of the preceeding text widget. (Uh? 2 x tw/2 -1 > tw?), so for
other buttons we use that too (i.e. textHeight = font_extent + 5).

2012-02-10 22:39:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warning

Deleting debug printing had made a variable unused.

2012-02-10 22:26:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sleeping bug

The text-edit-height patch introduced a bug that did not have any consquences
(yet), as the extra arg erroneously included leftover from a previous
SetValues call happened to be the same as one of the intended args.

2012-02-10 20:51:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix unloading of first engine on tourney start

Because NextTourneyGame was loading a new engine before ReserveGame was
called to unload it with dummy game nr = -1), the first engine proc kept
hanging.

2012-02-10 18:39:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove some of the most verbose debug output


2012-02-10 17:46:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Delete some unused WinBoard bitmaps

There waere up-side-down knight icons that apparently hid by mistake
in the bitmaps directory: they were not part of WinBoard

2012-02-10 17:39:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Cosmetic: change 4.5 to 4.6 in xboard.conf comment


2012-02-10 17:35:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on empty combobox menu XB

XBoard crashed when a combobox without items was opened, as could easily
happen in the Load Engine dialogs when -firstChessProgramNames contained
no items, as it would without configuring. Now the creation of the popup
menu is suppressed in that case.

2012-02-10 17:13:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix position of checkbox XB

With the large height the widget get in internationalization, the
checkboxes are position way too high above the text. To shift them down
a dummy borderless label widget is drawn above them (when needed).

2012-02-10 15:07:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix heights in Engine Output window XB

The icons did not fit in the space above the memos anymore, so the height
of this area is now left free.

2012-02-10 14:55:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Derive height of text-edits in dialogs from message widget

With internationalization the default height of buttons has inexpliquably
inreased compared to that of text-edits, messing up the layout of the
GenericPopUp. The message widget is now used as a emasure of how high
the widgets should be.

2012-02-10 14:21:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure XBoard engines and textures

The new -useBoardTexture option is needed in xboard.conf, as we want to
distribute with the texture on, while the compiled-in default is off.
A list of 4 engines has been configured (fairymax, fruit, crafty, gnuchess),
as the Load Engine and Match Options checkboxes crash XBoard when the list
is empty. The -recentEngines option is set to 0 to make sure the code
associated with it is never executed: the code is still experimental,
and the required front-end support is only present in WinBoard anyway.

2012-02-10 13:30:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update Dutch WinBoard translation


2012-02-10 13:18:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Create room in some WB dialogs for translations


2012-02-10 13:17:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add 5 missing strings to WinBoard translation template


2012-02-09 23:03:58 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2012-02-09 23:04:46 -0800 Arun Persaud <arun@nubati.net>:
updated po-filies


2012-02-09 22:59:05 -0800 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.

2012-02-09 22:44:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix non-bug in WinBoard

The IDM_RecentEngines was not used in symbolic form everywhere.

2012-02-09 18:46:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix MAXENGINES in WinBoard

The front-end arrays for expanding the engine list measured 1000 entries,
in stead of MAXENGINES, leading them to overflow.

2012-02-09 13:05:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement kludge to set options through Move Type-in

A leading "!!! " will cause the rest of the line to be parsed as
command line. Very dangerous, as an unknown option (e.g. because of a typo)
will cause a fatal error, which makes XBoard exit.

2012-02-09 13:04:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put move number in Eval Graph title


2012-02-09 13:00:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -pgnNumberTag option

A new (persistent) boolean option controls if the sequence number is to
be written in saved tourney games as a Number tag, to make it easier
to correlate games with debug files.

2012-02-09 12:55:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Create separate debug fil for each tourney game

Users can now apecify a -debugfile with %d in its name, and this will
be replaced by the sequence number of the game. TwoMachinesEvent then
starts by opening a new file when the name has changed, so that each
game will go to a different file, with recognizable name.

2012-02-09 12:51:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in WB combobox readout

The previous patch exposed a latent bug in the readout of the generic popup.

2012-02-08 23:25:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow grouping of engines in engine list

Lines "# GROUPNAME" and "# end" enclose a group in -firstChessProgramNames.

2012-02-08 17:47:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix TidyProgramName

A trailing .exe was not removed if the engine name was quoted.

2012-02-08 17:45:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put recently used engines in WB menu

A new option -recentEngines specifies how many engines should be listed.
The list of nicknames is stored in the ettings file as -recentEngineList.
The engines are appended to the Engine menu.

2012-02-04 19:37:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix registering of EditTagsProg

This was registered with X as EditCommentProc!

2012-02-07 23:04:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Increase max nr of engines to 2000

Move the #define for MAXENGINES also to common.h, so that both the
Load and Tourney dialog use the same maximum.

2012-01-19 23:01:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix fix of switch to mono-mode

The previous fix had == in stead of != for testing if mono-mode had changed.

2012-01-19 22:21:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make New Variant dialog visible in mono-mode

All colored buttons did get a black background, and also black text...
Use timer background color in stead, which is white.

2012-01-19 20:48:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Incease size of WB array of translated items

For the BoardOptions dialog 42 items are now needed

2012-01-19 17:18:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Clone Tourney button XBoard

This makes use of the new GenericUpdate().

2012-01-19 16:34:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement GenericUpdate function

This does the opposite from GenericReadout: it copies the current
parameter values into the dialog.

2012-01-19 12:19:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix arrow damage with highlightDragging XB

With highlight dragging the highlights of the previous moves are cleared
when lifting the piece. Logically, this should also clear the arrow, but
to do that requires a board redraw, which is not done at this stage. (And
even then this would only be effective after marking the arrow damage,
which is not done yet either). As a temporary fix, we repair the arrow
by redrawing it.
  This patch has moved marking of the arrow damage from DrawArrowHighlight
to a separate routine, so a future better fix can also call that when the
arrow should be erased.

2012-01-18 16:01:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Prevent unnecessary loading of engines

For engines that can be reused, the unloading at the end of a pairing
is in some cases wasteful, as the same engine will be used in the next
pairing as well. In simple gauntlets the gauntlet engine will always
stay first engine, while in multi-gauntlets the oppent engine will stay
the same for an entire round. In these cases unloading is now suppressed.

2012-01-17 22:22:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reset protocol version before loading new engine

The protocol version was not reset, so if the previous engine was v1,
the newly loaded engine would not be sent a protover command, so
that its features would remain unknown!

2012-01-17 19:33:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Give focus to board window after ICS login

toprevent that the focus remains on any popped up chat boxes, it is
explicitlly set otherwise. The board window is preferred over the
ICS interaction window, because you can type from there to the ICS anyway,
and it makes all accelerator keys available.

2012-01-16 14:37:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix seek-graph popup and  popdown

Clicking outside the board area in WB (e.g.on the clocks) would also
trigger seek-graph 'popup'. This is now suppressed by testing for
y-coord > 0. In addition, the seek graph is automaticaly taken down
when we step to another position in the current game (using buttons,
arrow keys or whatever).

2012-01-15 21:29:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress empty lines when observing on VICS

Capture of the engine kibitzes when observing an engine game with
-autoKibitz on was still leaking a linefeed on the Variant ICS
(but not FICS or ICC!?).

2012-01-15 21:24:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix printing non-numeric kibitz with -autoKibitz

Messages that were not considered kibitzed engine PV info for lack of
numeric content, were kibitzed as coming from "your opponent", which
is nonsense if you were iobserving, and masked the source. Fortunately
star_match[0] is still holding the original name, at that point.

2012-01-11 17:33:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix 4 warnings


2012-01-11 17:00:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use same translation of "vs." everywhere


2012-01-11 17:08:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add new translations to WB language file


2012-01-11 16:20:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix re-allocation of PGN-cache memory

It  allocated 8 times too much!

2012-01-11 12:47:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix height board dialog


2012-01-11 12:34:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Enable WB time-control dialog even when no clock mode

The dialog could be called from the tournament dialog to set a TCfor
the tourney even when currently in game-viewer mode, so it'd better work.

2012-01-11 12:28:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Exempt variant seirawan from -disguisePromoted inheritance

This is not a variant where promoted Pawns have to be distingushed
from primordial pieces, as captured pieces do not go into the holdings.

2012-01-09 21:23:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add control for overrideLineGap in WB Board dialog

Make it a checkbox to choose between 0 and -1.

2012-01-09 20:56:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add Ctrl-D as alternative to Ctrl+Alt+F12 in WinBoard

The acellerator key Ctrl+Alt+F12 seems reserved on Windows 7.

2012-01-09 20:52:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix seek graph for VICS

The sought command on the open-source ICS code is ICC-like (no terminating
line), although the server is FICS like. So also accept prompt as seek-graph
trigger on FICS.

2012-01-09 20:27:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Open WB startup chat boxes only after logged on

The init code for opening the chat boxes ismoved to DisplayIcsTitle().

2012-01-07 20:31:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Install mime types directly


2012-01-07 20:29:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Install desktop files directly


2012-01-07 20:19:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Install icons directly

Rather than letting make-install copy the pixmaps to the XBoard data
directory they are installed directly from the source files. The name
of the TRN icon was also corrected and changed.

2012-01-05 18:41:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file and remove duplicate control

Some missing option descriptions were added. The highlight-dragging
control was removed from the General Options dialog, as it did the same
as Show Target Squares. -highlightDragging wa changed to a volatile option
with default value true, making it effectively disappear as an XBoard
option. (In WinBoard it is still persistent.)

2012-01-05 15:55:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove the direct commands to the engines


2012-01-05 21:15:11 -0800 Arun Persaud <arun@nubati.net>:
forgot to list new desktop files in EXTRA_DIST section in Makefile.am


2012-01-05 20:08:23 -0800 Arun Persaud <arun@nubati.net>:
added some autogenerated po files to .gitignore


2012-01-05 20:05:44 -0800 Arun Persaud <arun@nubati.net>:
added desktop and mime-type association to autoconf install process

This should install and uninstall the mime assocciation and also the icons.
Also renamed the desktop files to avoid possible name collisions.

2012-01-03 21:30:59 -0800 Arun Persaud <arun@nubati.net>:
code cleanup: make function definition confirm to GNU coding style

change everything in the main directory to

void
funcname (int a, int b)

format

2012-01-03 18:43:18 -0800 Arun Persaud <arun@nubati.net>:
Updated copyright notice to 2012


2012-01-03 21:32:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -viewerOptions

A mechanism is added to allow the user to configure persistently if the
game viewer that starts on clicking PGN files will use -ncp mode, or
load an egine for analysis (or, in fact, do anything). This by introducing
a persistent string option -viewerOptions, which will be parsed as a
command line after the real command line when the option -viewer was present.

2012-01-03 11:29:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash in auto-comment

Trailing linefeeds in AppendComment were not properly stripped off,
leading to a mismatch between the allocted and used memory, and thus
possible buffer overruns.

2012-01-02 23:46:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash at match end

The -afterTourney option had broken old-style matches, because the ranking
string that was tested for "busy" is not set there at all, and remains a
NULL pointer, which strcmp doesn't like.

2012-01-01 19:56:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add desktop files for PGN viewer and tournament player

The desktop files define startup commands for handling PGN, FEN and
tourney files, calling xboard with the proper command-line options.

2012-01-01 19:53:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add xml file for defining mime types

The file xboard.xml defines application/x-chess-pgn, aplication/x-chess-fen
and application/x-xboard-trn as mime types for *.pgn, *.fen and *.trn files,
so these files can be associated with XBoard in various modes.

2012-01-01 19:41:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add icons for PGN and tourney files

Icons are provided in two sizes: 32x32 and 48x48.

2011-12-29 19:55:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Clear square markers on new game

Now that the markers can stay on after a first click, they need to be
explicitly cleared when moving to another board, including a new game.

2011-12-29 15:51:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Abandon single-letter menus in tinyLayout

Now that the items on the main menu bar are clipped, it iso longer
necessary to abbreviate them.

2011-12-29 15:38:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement peeking previous position in WinBoard

The backspace key is used to temporarily display the previous position.

2011-12-29 15:32:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parsing of faulty PGN tags

A closing bracket could be missed in a malformed tag

2011-12-29 15:29:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parser for variant seirawan

The new parser didnot understand gating suffixes with /, and did not
allow any suffix at all on SAN castling moves.

2011-12-28 22:32:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Try to not confuse ICS rating adustments as shouts

An explicit pattern match for the rating adjustment is added before
matching the shouts.

2011-12-28 22:21:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Describe -overrideLineGap option in texi file


2011-12-28 22:03:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use <Enter> in stead of Ctrl+. for peeking last move

I commented out the explicit detection of the Ctrl key, as this
is not needed when there are no 'unnatural' Ctrl keystrokes used
for binding.

2011-12-28 19:37:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Next try for menu-bar sizing

This time request the width needed to just fit everything, and then start
shaving off pixels from the currently largest until the entire thing fits.

2011-12-28 15:17:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Clip texts on menu bar

The width of the items on the main menu bar is restricted so the bar
will never exceed board width.

2011-12-28 14:01:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix format in temporary timing printf


2011-12-28 13:38:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Don't test drops as mate evasions in variant seirawan


2011-12-28 13:36:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ICS castling rights

Copying the castling rights together with CopyBoard seems to have
broken handling of ICS rights, where ParseBoard12 prepares a board
in a local variable, an copies it before parsing the rights.

2011-12-28 13:35:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix initial holdings ICS seirawan games


2011-12-27 18:31:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sending of S-Chess gating moves to ICS

Normal moves did not get the gating suffix sent.

2011-12-27 17:56:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix menu grayout after illegal move

TheThinkingEnables were not reset to user state after the engine rejected
the entered move as illegal.

2011-12-27 13:26:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow setting of holdings with edit command

For the benefit of Fairy-Max' Seirawan Chess implementation, the edit command
no also sends holdings contents (if the engine sent feature xedit=1), encoded
as pieceType + '@' + holdingsCount (if the count is non-zero).

2011-12-24 17:54:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix out-of-bounds access in check test

Thepath to make the check test work with drops had broken the test
after null move (both have rf<0), which led to corruption of the high
word of the black clock.

2011-12-24 17:51:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix legality of Spartan promotion to king

In the check test promotion to King is only allowed if there are not
yet 2 kings.

2011-12-21 22:17:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix switching back from mono-mode XB

Suppressing unnecesary X-server calls in InitDrawingSizes had broken
switching back from monoMode, because the animVars have to be recreated
for that, and this was only done when the variant changed.

2011-12-21 22:09:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix showTargetSquares in mono-mode XB

Make the marker dots black (captures) and white, and draw a circle
in the opposite color around them in monoMode.

2011-12-21 22:00:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix arrow highlighting in mono-mode XB

Draw a line around it in darkSquare color in monoMode.

2011-12-21 17:48:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix alignment of generic browse button XBoard

The width ofthe browse button is now read back after creating it,
and subtracted from the preceding text edit.

2011-12-21 14:41:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add -afterTourney option

Only the instance pinting the tourney result will execute this.

2011-12-22 21:01:43 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix buffer possible overflow when writings tags

PGNTagsStatic() could overflow its buffer and is removed. PGNTags() do the work instead of calling it.
It starts by calculation the required buffer size and then allocate the buffer.
PrintPGNTags() now prints directly to the file without having a buffer.

2011-12-22 15:01:31 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
One more string marked for translation

And it is moved inside the if statement that uses it.

2011-12-22 14:30:08 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix checking of return value from snprintf()

snprintf() returns the needed space excluding the trailing 0 byte, so
it has truncated if the returned valued is greater than or EQUAL TO the buffersize

2011-12-19 16:49:31 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix unportable memory initialisation

Memory sat to zero by calloc() cannot safely be assumed to have the pointer value NULL

2011-12-19 13:16:58 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Add 2 strings for translation


2011-12-19 11:25:11 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Remove the last 2 compile warnings in gamelist.h


2011-12-19 11:17:48 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Add #include "moves.h" to gamelist.c for def. of CopyBoard()


2011-12-19 11:11:34 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Definition of TimeMark moved from 3 c files to backend.h


2011-12-19 01:21:46 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Transfer a pointer to the promoChar from PromotionPopUp() to PromotionCallback(). Fixes #34980


2011-12-18 17:24:07 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Duh! Initialise the argument to sscanf() inside the loop, so it always gets a known value when sscanf() fails.


2011-12-18 17:18:12 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Give numeric options the value 0 if a non-numeric text is entered (one more place). Before the value ended up undefined.


2011-12-18 17:08:46 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Give numeric options the value 0 if a non-numeric text is entered. Before the value ended up undefined.


2011-12-18 15:41:46 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix possible crash on 64-bit systems when copying game or position

The two convertproc's for X selections caused reads out of bounds on 64-bit systems.
I hope that this is the right solution. I am not experienced with X stuff, but it
follows that I have seen in other programs, testing shows that copying still works,
and the reading out of bounds have disappearinged with this patch.

2011-12-18 13:26:20 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix a possible crash in the file browser

If the OK button was selected in the file browser when no file was selected
there was a read out of bounds which could crash xboard

2011-12-17 22:54:34 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix a memory leak in Sound Options


2011-12-16 02:57:20 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Fix crash when selecting user soundfile due to free() of not malloc()'ed memory


2011-12-16 02:32:37 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Make GenericPopUp() more readable by using more named flags instead of numerals

Defines the flags SAME_ROW (value 1) and NO_OK (value 2) for use with buttons and endmarks.
There should no functional change.
Also add a code comment where a condition depends on an uninitialised value. There is no direct harm, as both
branches do the same (that is nothing) when the value is uninitialised.

2011-12-15 02:51:36 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
Add NO_GETTEXT flag for combobox. Fix bug #34991

Define NO_GETTEXT flag to avoid calling gettext() for comboboxes, and define COMBO_CALLBACK
flag to call comboCallback() when an item is selected in a combobox (no new code for this,
just a symbolic value instead of a number). The flags are used for the min field of struct Option.
NO_GETTEXT is used for the Select engine combobixes in the Match Options and Load engine windows.

2011-12-13 19:48:37 -0800 Arun Persaud <arun@nubati.net>:
only translate entries in CreateComboPopup if strlen>0; fixes #34991


2011-12-12 19:06:26 -0800 Byrial Jensen <byrial@vip.cybercity.dk>:
fix for repeating key issue, with this allissues this bug should be closed; fixes #35000


2011-12-12 18:45:05 -0800 Arun Persaud <arun@nubati.net>:
also don't translate selection in ComboSelect; fixes #34991


2011-12-12 18:40:23 -0800 Arun Persaud <arun@nubati.net>:
make entries in CreateComboPopup not translateable; fixes #34991


2011-12-10 16:06:47 -0800 Arun Persaud <arun@nubati.net>:
fix translation for engine list; fixes #34991

* click on browse button should be recognized in translated versions
* width of button should auto-scale

2011-12-10 11:04:17 -0800 Arun Persaud <arun@nubati.net>:
change keybindings that don't use ctrl, make MoveTypeInProc ctrl aware; fixes #35000

two keybindings were using keys without modifiers, adjusted these to use the ctrl key.
Furthermore when typing in moves we need to check if ctrl was pressed and ignore those inputs.

Also added documentation for these keybindings.

2011-12-10 10:51:18 -0800 Arun Persaud <arun@nubati.net>:
replaced unicode character for "'" in xboard.texi


2011-12-10 10:08:48 -0800 Arun Persaud <arun@nubati.net>:
removed Iconify function. Should be handled by the window manager.


2011-12-08 20:53:13 -0800 Arun Persaud <arun@nubati.net>:
marked an error messages for translation


2011-12-08 20:33:29 -0800 Arun Persaud <arun@nubati.net>:
translation: updated uk.po


2011-12-03 17:52:23 -0800 Arun Persaud <arun@nubati.net>:
fixed size of XBoard icon to 48x48

the icon gets installed in the 48x48 directory, but was >200 pixel wide. This gave a warning during rpm creation.

2011-12-03 08:07:32 -0800 Arun Persaud <arun@nubati.net>:
updated pot file

marked a lot of new strings for translation

2011-12-03 08:06:42 -0800 Arun Persaud <arun@nubati.net>:
added new files to po/POTFILES.in


2011-12-02 22:13:36 -0800 Arun Persaud <arun@nubati.net>:
marked more strings for translation


2011-12-02 20:08:01 -0800 Arun Persaud <arun@nubati.net>:
translation: added danish translation


2011-12-01 18:45:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change encoding of seirawan ICS gating-castlings

In stead of using upper/lower-case promoChar, the ICS now uses
RxK notation, like WinBoard writes in SAN, for better consistency.

2011-11-30 15:38:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put promo-suffix on ICS move in variant seirawan castlings

The distinction upper-case / lowercase determines gating at R / K

2011-11-28 11:56:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Refrain from making unnecessary resize X request

The window resizing code in InitDrawingSizes is suppressed when no
change is needed. Similarly, changing piece bitmaps is suppressed when
we stay in the same variant (and InitDrawingSizes is called e.g. because
of chaging lineGap through the Board dialog).

2011-11-27 22:27:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parsing of O-O castling in variant janus

The new parser did not realize it meant e1i1 rather than wild e1h1.

2011-11-26 22:28:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Show 50-move counter also when observing ICS games

To not cheat 50-move display was suppressed in ICS mode,
but for observing a game this made no sense.

2011-11-26 22:22:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Ignore ICS game starts when already in game

The advance switching of the variant on game-start messages was
disruptive for users with gin=1, which also sends such messages
for other games than your own. For now fixed by only reacting on
them when idle (detected by invalid game number).

2011-11-11 18:16:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WinBoard  clock-click bug

Clicking on the clock in WinBoard also called the LeftClick routine
for handling clicks on the board. This led to the from-square being set
to some inalid value, so that the next genuine board click was interpreted
as a to-click, with undesired effects, especially with legality testing off
or in EditPosition mode, where weird things are accepted.

2011-11-06 17:20:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add feature-override options

A few (dangerous) options are added to allow a user to override
engine features, or change their defaults, by supplying a string
with feature commands (e.g. "sigint=0") which tricks XBoard into
thinking the engine sent that. There is a -featureDefaults which is
processed before the engine features, and -first/secondFeatures
which is parsed just before engine initialization.
  This goes horribly wrong when the user wouldtry silly things like
including 'option' or 'done' features!

2011-11-05 12:32:39 -0700 Arun Persaud <arun@nubati.net>:
translation: updated uk.po


2011-11-04 21:58:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix handling of -secondOptions option

The -firstOptions and -secondOptions settigs were not swapped when
-singleEngieList was true, so the second engine's options would never
be set in that case, but used for the first engine.

2011-11-04 21:55:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Accept setup command in variant fairy even with legality testing on

Variant fairy does not really have a defined opening position, but lots
of pieces defined, so we might want to play with legality checking on,
but still rely on the engine for the opening position

2011-11-04 21:52:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Set pieceToCharTable by setup command even when ignoring FEN

When the user starts from a set-up position, the egines default
openingposition has to be ignored, but the pieceToCharTable would
still be relevant.

2011-11-04 21:48:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change default sweep-promotion choicein queenless variants

The initial scanning of the sweep piece until a defined piece is found
is now in the increasing direction (still starting at Queen), so that
the fairy pieces are suggested before R, B and N.

2011-11-03 16:38:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Clear board markers when moving to other position

Now the markers from -showTargetSquares would stay on after a first click
for the benefit of a click-click move, they would also stay on when not
finishing the move, but operating the < > buttons in stead to call up
other positions. ForwardInner and BackwardInner now clear the markers,
like they also cleared highlights.

2011-11-01 18:30:22 -0700 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.

2011-10-25 15:32:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix two warnings

2011-10-24 20:00:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Don't adjust clock on right-click in EditGame mode WB

This was a change that was already done for the left-clicks, but somehow
never made it togit for the right-clicks

2011-10-24 19:50:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Change chase message in .lng files

2011-10-24 19:31:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let perpetual-chase message mention square

In stead of a boolean, PerpetualChase now returns the square the chased
piece ends on (encoded as an int), and on adjudication it will be printed.

2011-10-24 19:26:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add mechanism to translate variable messages in WinBoard

A message prefixed with % in the lng file will be considered a match
if it matches the start of the text to be printed, and the remaining
part of the latter will remain untranslated. This was needed to allow
translation of the perpetual change message, now it indicates the square
of the chased piece.

2011-10-24 19:20:13 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use other interpretation of Asia rules for chase detection

The detection of perpetual chases now ignores pre-existing checks.

2011-10-12 17:28:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on loading garbage game file

The code to cache games was not resistant to moves before a valid
game start, or a game filewithout any games at all.

2011-10-08 20:43:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Incorporate variant type in book hash key

This prevents booksforone variant being used for another, and allows
multi-variant books.

2011-10-07 15:41:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update language.txt file


2011-10-07 15:34:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update Dutch lng file


2011-10-07 15:21:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Load Options dialog WB

Defined fastkeys; reordered elements so that fastkeys focus edit they
are intended for. Changed some of the more obscure texts. Corrected
list of transatble dialog items, adding a few missing ones.

2011-09-13 20:01:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some warnings

Prototypes were added, ormoved from backend.c to backend.h.

2011-08-26 12:44:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Put 'Load Next' button back in WB Game List

The '>' button for loading the next (filtered) game is re-instated in the
WinBoard GameList. The main window has now accelerator keys Ctrl+Up and
Ctrl+Down for loading the previous and next filtered game.

2011-08-26 12:31:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Speed up position search and consider side to move

The position search is made to pay attention to the side to move,
which produces a speedup, because we only have to compare half the
game positions when looking for an exact position match. An addition
we now keep track of the total number of pieces, and abandon a game when
it drops below the number of pieces in the position we seek.

2011-08-21 23:16:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Dynamically allocate move cache

A small statically declared cache good for 250k moves (~3200 games)
will be expanded in steps of a factor 8 when it overflows.

2011-08-18 18:40:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Translate search strings


2011-08-17 22:55:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement flipped search


2011-08-16 15:29:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Debug position search cache


2011-08-15 18:44:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
profile


2011-08-18 18:01:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Translate search-mode strings


2011-08-15 16:59:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Quickscan


2011-10-23 16:04:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix duplicate loading of second engine in tourneys

To decide if new engines should be loaded, it was tested if first.pr
equalled NoProc, assuming that ReserveGame would have left the engine
loaded if the next game would need the same engines. But a reuse=0 engine
could have caused termination of the first engine process anyway, while
the second would still be alive. So unconditionally starting of the second
engine would cause redundant engine processes to abound.
  Now we only start new engine processes if both engine processes are dead.

2011-10-23 15:53:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix PV walking with -fSAN

The SAN options had broken the PV walking, because the shelving of the
walked PV to create space for the conversion to SAN of an incoming PV
would not be properly undone, but would add the walked PV to the game.

2011-10-20 12:39:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Refine clock adjusting

Adjusting the clocks by shift-clicking them is now only allowed with
autoCallFlag off, and an error-popup results when you do it otherwise.
Also, swtching to Edit Game mode won't reset the clocks to the stored
value anymore when you have just adjusted it.

2011-10-12 17:43:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on adding items near book end

When Edit Book would add so many entries near the end of an opening
book that the end of the added info would surpass the old end of the
file, the copying of the tail got stuck in an infinite loop, extending
the file without limit with repeating info.

2011-10-12 17:41:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Print message on wrong use of Clone Tourney

The user is urged to first provide the name of an existing tourney file
when he presses the button without one. The button is also renamed.

2011-10-12 17:38:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix invalid combobox entry WB

A combobox label that was not in the list (because the user typed
it, rather than selecting one) would cause a crash.

2011-10-12 17:23:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on loading garbage game file

XBoard crashed when a game file contained a PGN game result before
any valid game start, because data would be written in a game-list
node that did not exist yet. This would occur frequently when garage
was read; basically any asterisk in the data would do it.

2011-10-11 23:31:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add control to set -discourageOwnBooks WB


2011-10-11 20:53:52 -0700 Arun Persaud <arun@nubati.net>:
only require 0.17 of gettext

This seems to solve many build issues with older distrubtions and doesn't seem to be a problem with newer ones.

2011-10-11 23:31:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add option -discourageOwnBooks

This boolean option determines the default setting of the hasOwnBook
option before a tourney game starts. By setting it, the hasOwnBook
option is cleared, which would enable use of the GUI book, like the
engine was installedwith the /firstXBook option. An explicit option
on the engine install line can still overrule this, though.
 A control to set this option has been added in the XBoard Match dialog,
and it is saved in the tourney file to force consistency.

2011-10-11 22:58:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reset initString and computerString on engine load

These options are typically engine specific, and must thus be
reset to their default value before loading a new engine.

2011-10-11 22:43:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add Romanian lng file


2011-10-07 16:55:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reactivate Falcon Chess

Now the patent for this has expired, Fairy-Max plays it again.
So the XBoard support for it is now switched on, and an item for it is
added to the XBoard New Variant menu dialog. (WinBoard still had that.)
In the array the Lance was changed for the Falcon as a wild-card piece.

2011-10-03 09:59:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file for new features


2011-10-03 10:30:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file for position search

The new items in the Load Game Options dialog are described, as well
as the command-line options used to store them in the settings file.

2011-10-03 09:28:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove paragraph about .Xresources from texi file

Command-line options can no longer be set through .Xresources already
since version 4.5.0.

2011-10-03 09:13:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add Dutch WinBoard translation


2011-09-28 20:46:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Prevent Edit Book window from stealing focus (WB)

In WinBoard updating the book window would give it focus. Now the
focus is given back to the main window, except when the Edit Book
window is first created.

2011-09-28 20:42:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make book-window update part of HistorySet


2011-09-26 16:01:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix position loading in tourneys

In a tourney a position must be loaded when the engine is not yet
started, and the old version of LoadPosition could not handle that:
It would start up the engine, and send it commands unconditionally.

2011-09-26 15:58:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix resetting -fSAN on engine change

There were two places for loading another engine, Load (from menu) and
SetPlayer (in tourneys), and the previous patch for this missed the
second one.

2011-09-26 15:51:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make too-long game non-fatal

GameEnds is now called when the maximum number of moves is exceeded,
rather than DisplayFatalError. Not sure if this properly terminates the
game in all situations, but DisplayFatalError (after calling GameEnds)
would also wait for the user to confirm the error popup before really
exiting, so that in an unattended automatically running tourney there
was not much fatal, and the entire tourney would in fact be finished.

2011-09-26 15:46:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Keep book file open

Rather than opening and closing the book file on every probe, it is
now only closed and opened when the name of it changed.

2011-09-26 15:44:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress playing of book moves with weight 0

Bookmoves with weight 0 could be played when the sum of the weights
of all moves from the position was 0. So it was not possible to suppress
the only move by giving it weight 0. This is now corrected.

2011-10-01 15:00:47 -0700 Arun Persaud <arun@nubati.net>:
added NEWS for release of 4.5.3


2011-09-29 20:31:23 -0700 Arun Persaud <arun@nubati.net>:
better contrast for XBoard icon on a dark background


2011-10-01 13:09:59 -0700 Arun Persaud <arun@nubati.net>:
translationproject.org: updated Ukrainian translation


2011-09-29 20:49:42 -0700 Arun Persaud <arun@nubati.net>:
updated pot file and send to translation project


2011-09-22 12:09:39 +0100 Thomas Adam <thomas@fvwm.org>:
(tiny change) Clarify "-name" option is Xt-only

There's a set of standard options with will get used by Xt, before Xboard
itself will use them.  "-name" is an Xt-only option which will set the name
and resource of the window to the value requested.  It has nothing to do
with setting opponent/player names.

Signed-off-by: Thomas Adam <thomas@fvwm.org>

modified slightly by Arun Persaud (renamed itemx to item and fixed option name for CMAIL)

2011-09-22 17:17:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix LoadGameOrPosition starting up engine

When LoadGameOrPosition() is called from NextMatchGame(), the Reset() that
is called in LoadPosition() when you are running from a position file
would prematurely start up the engine (without waiting for features).
The kludge to suppress this behavior for the explicit call to Reset()
is now extended to encompass LoadGameOrPosition.

2011-09-22 17:14:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Clear fSAN option before new engine load

This to prevent the new engine will inherit it from the previous one.
As the command-line options an only set it, this has to be done by
explicit assignment.

2011-09-13 23:02:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some warnings (prototypes)


2011-09-13 19:55:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix write failures in concurrency

In WinBoard a flood of writes by differentprocesses to the same PGN can
cause a "permission denied" error in fopen. This patch causes retries after
a random (5-15 msec) wait, in such cases.

2011-09-13 19:52:19 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Move HistorySet to back-end

This existed in exact duplicates in both front-ends.

2011-09-13 19:46:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make DoSleep front-end wrapper for msec sleep

DoSleep was #defined as a macro for Sleep/ sleep, with an argument
indicating msec in WinBoard, but seconds in XBoard. Nuw it universally
uses msec, by defining it as a wrapperin the respective front-ends.
(For XBoard itwraps FrameDelay.)

2011-09-10 22:35:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix playing sounds when -soundProgram is empty

It made no sense to just send the names of the sound files to the shell.
So the soundProgram isnow tested for being an empty string, and if so,
PlaySound() is aborted.

2011-09-10 14:01:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -afterGame option

This option specifies a command line to be executed after each game of
a tournament. To execute the line, the function RunCommand() was added
in the front-end. For XBoard this was a simple call to system(); for
WinBoard part of the StartChildProcess code was cloned (without the pipe
stuff).

2011-09-10 13:52:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Upgrade -serverMoves option

The (undocumented) -serverMoves option was upgraded to conform to the
ChessLive! protocol extension for sending SAN tags. A bug that allowed
upper-case promoChar to leak through was also fixed, and code was added
to write engine PVs to file. Flushing of the game result to the -serverMoves
file was also fixed.

2011-09-10 13:50:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix AppendComment

The joining of two comments was not performed correctly if the second
one had the braces yet to be added: the closing brace was not added in
that case.

2011-08-30 19:39:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Auto-popup ICS Input Box

Typing to the board made the move type-in pop up, but in ICS mode
this is of course undesirable. Like in WinBoard, the ICS Input Box
should pop up in stead, and accept the typed character. This is now
realized. If the box already exists and has text in it, the typed
character is appended to that text, and the box is given focus.
Spaces now also are considered as printable.

2011-08-30 18:27:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Slightly decrease sensitivity of sweep actions

The sweep-selection of promotion and drop pieces, or step through the PV
was so sensitive that it was difficult to reliably make the intended choice.
It has now been reduced by a factor 1.5-2, and the sweep selection and
PV walk now also use a different value.

2011-08-27 21:16:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Extra buttons in WB Tournament dialog

A button to copy contents of the tournament fileto the dialog is added.
Buttons to invoke the Common Engine and Time Control dialogs are also added.

2011-08-27 21:15:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on typing non-existent enginein Load Engine dialog


2011-08-24 10:30:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix display state after failed analysis attempt

When an engine responded to the "analyze" command with an "unknown command"
message, a Reset was done without altering the display, causing a
discrepancy between display and internal state, which caused confusion
when it finally corrected itself. I replaced the Reset call by an
EditGameEvent call, to preserve the loaded game. The Reset was presumably
used to allow for the case where the engine would be so upset by the
analyze command that it needed to be reset by a "new" command, but this
seems overly paranoic for an engine that just recognized the command
as an unknown one.

2011-08-24 09:58:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix treatment of PGN score/depth info with linefeeds in them

This is needed to make the PGN more Arena-proof.

2011-08-24 09:51:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix quoting in Load Engine dialog

A (space-contaning)  engine name only needs quoting when there are parameters,
because the over-all engine command will be quoted anyway. For UCI engines
duplicate quoting is fatal, because when passed as the -ec argument of
Polyglot, it will be quoted yet another time, also with double quotes.

2011-08-23 21:24:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Replace Analyze File by Analyz Game function


2011-08-22 22:16:58 -0700 Arun Persaud <arun@nubati.net>:
new developer release


2011-08-22 22:26:56 -0700 Arun Persaud <arun@nubati.net>:
update po files


2011-08-22 22:24:23 -0700 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.


2011-08-22 22:09:19 -0700 Arun Persaud <arun@nubati.net>:
malloc.h is not needed


2011-08-20 22:21:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ICS move-list header mistaken for null moves


2011-08-18 18:53:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow two-games-per-opening to work with book

A new option -seedBase is added, and written to the tourney file.
It allows all XBoard instances working on a tourney to generate the same
'random' openings in a deterministic way, based on this one-time seed
and the game number. When -loadGameIndex equals -2, it uses the same seed
for an odd and the following even game.

2011-08-18 18:51:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix use of random

In some places rand() was called explicitly, rather than through the
(configured) place-holder random().

2011-08-18 17:34:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Translate search texts


2011-08-18 10:29:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -useBoardTexture and -usePieceFont options

These options suppress the use of the given texture files or piece fonts
without relying on the kludge to disable them by prefixing an asterisk
to the file or font name. Checkboxes have been added to the Board dialog
to control them. The user can now set piece font in WB font dialog.
The sample text can be used to specify the -fontPieceToCharTable,
the font name itself the -renderPiecesWithFont value.

2011-08-16 23:10:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on start without settings file

A primordial -1 in currCurrent caused a crash when WinBoard was started
without ini filein game-viewer mode.

2011-08-12 12:08:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix generic-popup failure after empty engine-settings dialog

The error exit ofthe Engine #N Settings dialog in case of an engine without
options forgot to clear currentCps, with as a result that the generic popup
thought every subsequent popup was an empty one, and kept repeating the
'engine has no options' error message for every dialog.

2011-08-10 11:27:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow substitution of engines during tournament

Two buttons are added in the tournament options dialog, for upgrading
and for replacing a tourney participant. Lots of tests on the validity
of the request are done, and if all are passed, the tourney file is
written with the new participants (and in case of replace) with the
results of the replaced engines erased from the -results string.

2011-08-08 11:00:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix up/down arrows in game list


2011-08-08 10:31:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add key bindings for loading next/previous game of list

These bindings are set both for the game list and the board window.
To make them useful, focus has to be transferred to the board widget
after loading (it tends to transfer to the tags window), which now
seems to work, but not always. From the game list the shellWidget
seems to get focus rather than the board, which is bad as it is not
sensitive to the key bindings.

2011-08-08 09:58:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow deletion of last book move

The book-edit function refused to delete the entiremove list,
for no good reason. This limitation now has been lifted.
Also the error message that the key for the current book entries
is different from that of the currentposition has been suppressed
if there were no entries found for the current position (so that the
book is positioned at the next key), so that it is possible to add
moves from scratch.

2011-08-08 00:19:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Speed up parser

Line numbers > 1, which are common, can exit already during move parsing,
to save lots of matching on resultsand castlings.

2011-08-07 15:13:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix missing files in file browser

The file browser was throwing away the first two files, assuming
they were "." and "..". Alas, this is no longer true on every Linux.
Now we actuallyc compare for these names, before skipping them.

2011-08-06 11:57:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Delay file loading to allow expose event first


2011-08-06 09:29:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix paging


2011-08-05 22:39:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Better fix of crash on empty game list

An empty list is now replaced by a list containig a simple message.

2011-08-05 20:31:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add plain arrows as key binding for stepping forward/backward


2011-08-05 20:30:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Debug position selection


2011-08-04 13:22:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Print progress during load / selection of game

The title bar of themain window is used to display a running count
of the number of games loaded / searched.

2011-08-04 12:44:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Parse PGN tags without allocating memory

In WinBoard malloc/free did not seem to work when preparing the game list,
leading to a huge memory list when ParsePGNTag was used. The added code
parses the required tags in an alternative way as a work-around.

2011-08-02 22:58:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement searching games in Game List for a position

For this it was needed to reconstruct all positions of the games
without loading them, so they could be compared to the currently
displayed position. A new routine GameContainsPosition is made for that.
 In Disambiguate, when the global quickFlag is set, we now do the
disambiguation ignoring check,and only if this leads to an ambiguous
move, we repeat it taking check into account to see if that resolves
the ambiguity. This causes us to miss if unambiguous moves are illegal
because they put their King in check, but who cares?
 We now do not make game-list line when not needed. If we do not filter
by text, but by position, there is no need for preparing the game-list
line for games that are not selected. All for efficiency.

2011-07-28 20:47:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow entry of variations in PlayFromGameFile mode

Adding variations is more like editing a comment,and not really editing
the game. Therefore we allow it on loaded games. As soon as we are in a
variation, we temporarily switch to a (hidden) EditGame mode, restoring
the original mode when we revert to the main line.
  We now also stay in PlayFromGameFile mode after loading a game,
And opening variation (fromtheComment window) in PlayFromGameFile mode
is also allowed.

2011-07-27 18:47:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Force Move History refresh after loading/reverting variation

The Move History window was not refreshed after switching to or from
a variation if that variation happened to have the same length as
the main line. Now a change in storedGames since the previous refresh will
force a full refresh to avoid this. For this to work, storedGames
did have to be decremented after ToNrEvent in PopInner, because ToNrEvent
calls HistorySet before the history is restored, so we don't want
it to snatch away the full refresh. A call to HistorySet had to be
added after PopInner is done restoring the move history.

2011-07-27 17:45:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Popdown Comment window on new game

What is in this window cannot possibly remain valid, and can even be harmful.

2011-01-19 11:46:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow null move in analysis and edit-game mode

In some games it is allowed to pass your turn. The internal
representation picked for such a null move is the drop of an empty
square, (EmptySquare,DROP_RANK,0,0). Computer-algebraic form is "@@@@",
SAN form is "--", (for compatibility with ChessBase / SCID), and the
non-compliant forms "null", "pass"and "Z0" are recognized in
the parser as well. ApplyMove() has to test for this special case
(to not actually clear a1), and a way to enter the pass for the user had
to be found (clicking the opponent clock, like in EditPosition mode).
 The null move is made move irreversible to prevent repetition draws
spanning null moves being adjudicated.
  Such entry of null move is now allowed in AnalyzeMode and EditGame mode.
Because Chess engines will not accept null moves, SendMoveToProgram had
to be adapted to send not the move, but the position after it in
case of a null move. This erases the move history in the engine,
so it will not react to 'undo' for that null move, so BackwardInner
had to be adapted to test for intervening null moves, and if one is
found, approach the target from the other side after loading the
earliest position before it not crossing another null move, and
then loading the moves upto the target.
  XBoard clock clicks had to be fixed, to pay attention to the shift key.

2011-07-25 21:58:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Give WinBoard Game List its own font

The font fort he Game List used to be shared with the Engine Output and
Move History windows, but this made it impossible to use a figurine font
in the latter two (which displays piece symbols for capitals) without
messing up the Game List. An option -gameListFont has been added to specify
the font for the Game List(and save it in the settings file), while a
control for it is added in the fonts dialog.

2011-07-21 19:02:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on OK after Save Changes in Tags and Comment popup.

The global variables tagsText and commentText were used to pass
a string obtained from a widget (and thus not malloc'ed), which
caused a crash when the GenericReadout tried to use those variables
for the new value. Fixed by using GenericReadout (which does malloc)
to read out the text,in stead of GetWidgetText.

2011-07-16 09:31:12 -0700 Arun Persaud <arun@nubati.net>:
Revert "fixed segfault in xengineoutput", fixed in the backend now (from HGM)

This reverts commit 33a0e73843115ff6d4eacaf963a38f2e8b20b295.

2011-07-16 14:53:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress some XBoard warnings


2011-07-15 11:21:29 -0700 Arun Persaud <arun@nubati.net>:
fixed segfault in xengineoutput


2011-07-11 20:04:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Disable -showTargetSquares in ICS mode

Help like this is considered cheating on FICS, so it is disabled for
all 'classical' ICS variants. (For variants eyont Shogi we don't care.)

2011-07-10 21:20:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Put grab on sweep-selecting in Edit Position

A right down-click starting a sweep-selection event did not grab the
mouse events, so that an up-click outside the window would go
unnoticed, and the pointer motion stayed coupled to selecting the
piece until the next click. By returning 2 from the RightClick back-end
routine we request the grab.

2011-07-09 13:50:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Write more labels on score axis of eval graph

The labels for +/-1 and +/-3 are now also written, provided there is
enough space.

2011-07-09 13:28:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve Eval Graph  with -evalZoom and -evalThreshold

The score range between -1 and +1 can now be blown up by a factor
specified through -evalZoom. The threshold below which histogram bars
are no longer printed (wich used to e hard-coded 25 centi-Pawn) can now
be set through the -evalThreshold option.

2011-07-09 13:18:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Print reversible plies done in stead of plies to go

Printing the number of plies left to the draw-adjudication point was
confusing when the N-move rule was set to a non-standard value.
In stead we now print the number of plies since the last irreversible
move, so the user can compare it to both the engine claim point (100)
and the adjudication point he set (which might be beyond 100).

2011-07-09 13:13:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let WB eval graph react ot single left-click

Unlike in XBoard, the WinBoard eval graph awatys had required double-
clicking to go the the corresponding move, while there really is no
reason for this, as it is no text edit, and single-clicks have no function
(like select).

2011-07-07 19:37:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -scoreWhite option

This is similar to -absoluteAnalysisScores, except that it works in
all modes, and flips the score given by the engines in the engine-output
window when black is to move.

2011-07-07 19:28:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Print 50-move counter in Engine-Output title


2011-07-07 18:50:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Display score/depth in Eval Graph title

No longer print it in the comment window.

2011-07-04 11:06:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let -sweepPromotions also work for click-click moves

A click-click promotion no longer causes auto-queening, but the down-click
on the to-square causes a Queen to stick to the mouse pointer, and then
allows the user to change it through dragging backwards before releasing it
with an up-click.
  In WinBoard this required a slight change in DragPieceBegin, because
the dragged piece there only was made visible when the mouse pointer
actually started moving (and dragInfo.pos was set), presumably under the
assumption that before mouse move the piece was already on the clicked
square. Which in the case of a to-square was of course not true. (Because
a piece jumps to the mouse pointer when the click is not centered on a
square, this gives less jittery static clicks.) So DragPieceBegin has
been given an extra argument now, to indicate whether it should attach
the piece to the mouse pointer immediately.
  To make the click-click sweepPromotions work in Shogi (for which the
drag-drop sweepPromotions could never work, because it is not clear the
piece has a posibility to promote when you pick it up), translation of
the sweep-selected piece to a Shogi promoChar had to e added.

2011-07-04 10:45:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve -showTargetSquares on click-click moves

The markers on move targets are now kept when a first click merely
selects a piece, rather than dragging it elsewhere. The second click
(by definition on the to-square) then clears the markers.

2011-07-04 11:23:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let PGN parser accept lower-case piece in drop moves

The @ sign prevents amiguity with other notations anyway.

2011-07-04 12:42:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parser.c line endings


2011-06-29 20:29:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix writing searchTime in tourneyFile

This had to be derived from the variable searchTime, which gives it
in seconds, as appData.searchTime (a string in minutes) is not reliable,
as it contains the command-line value, which might have been altered
through the time-control dialog.

2011-06-29 20:25:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix resetting searchTime if other TC mode is chosen (XB)

This fixes a bug in the new time-control dialog.

2011-06-29 14:32:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix coords display on large boards

The file indicators can now run upto 'w'. Only the lowest digit
of the rank number is printed, from a table that is valid to 22.

2011-06-29 13:53:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on making too-long FEN

The buffer for in PositionToFEN was only 128 bytes, which was not enough
for large boards such as 19x19 Go. It is enlarged to MSG_SIZ(512) now.
There also is some approximate overflow checking added (but it is not
fool proof in case there are holdings...)

2011-06-29 13:36:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix drop moves on boards with more than 10 ranks

The internal encoding for rank 16 is '@', and thus ambiguous with drop
moves. They were always printed as 16, breaking drop games on large
boards. The ambiguity is now solved (for boards with more than 16 ranks)
by checking if the preceeding letter is upper case, in which case it
cannot be a fileindicator, but must be a piece, and thus a drop.

2011-06-29 13:29:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Don't one-click move when legality testing is off


2011-06-23 21:18:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reorder controls in Engine Setings dialog WB

To get tabbing through the controls in left-to-right order, they are
now added to the template structure in that order. Also add a tabstop
to Label options, so that JAWS will read those.

2011-06-23 14:02:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add tab stops in WB generic popup

The WinBoard generic popup did not put tab stops on push buttons,
including the OK and cancel button, with as a consequence that these were
skipped when tabbing through the dialog controls. In addition the tabbing
could not begin before the user selected one of the controls with the mouse.
  Now all buttons have tab stops, and the cancel button is given focus
when the dialog pops up.

2011-03-10 20:06:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Grand Chess

Grand Chess requires a lot of exceptional handling similar to Superchess
and Great Shatran, because it also allows only promotion to a captured
piece. In addition it shares the enlarged promotion zone with Makruk and
Shogi, as well as the fact that promotion can be deferred. The 10-rank
board furthermore required a better generalization of double-pushes and
e.p. captures. On such a board double puhes are now allowed from 2nd and
3rd rank, e.p. capture from 5th and 4th.

2011-01-28 19:20:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow promotion to Pawn with legality testing off

In stead of ImpossibleMove promotionto Pawn now merely is an
IllegalMove, so it can be played with legality testing off.

2011-01-24 15:06:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Create some space in WB New Variant dialog


2011-06-20 23:53:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow double-digit rank numbers

The parser already understood double-digit numbers on input, and
CoordsToAlgebraic produced them on otput. This patch also fixes sending
of the moves to the computer, for which the moveList was used. The latter
stored 10 as ':', etc,to always get a 4-char move, the characters of which
were frequently being converted to fromY or toY by adding/subtracting ONE.
To not break that the one-character encoding of rank number is kept in
moveList, but in SendMoveToProgram, characters > '9' are converted to
double digits.

2011-06-23 11:26:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add Absolute Analysis Scores in Genral Options dialog XB


2011-06-23 11:16:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix texi file, and update it further


2011-06-20 12:15:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Modified po


2011-06-22 17:51:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file


2011-06-22 11:02:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Restore echo after ^C in ICS password


2011-06-22 10:45:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some warnings


2011-06-19 20:30:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Increase efficiency of SAN generation / disambiguation

**************** Risky patch! **********************
The algorithm used for disambiguating and generating SAN was extremely
inefficient, because it generated all pseudo-legal moves from the relevant
position, and then for each of those did a check test (involving generation
of all moves of the opponent), before determining if the move matched the
(proposed or given) SAN move. While it is pointless to generate moves
with a piece that does not match (let alone checking them for legality).
And for a piece that matches, it is pointless to test legality of moves
that do not match the to-square.
  To speed up the process GenLegal and GenPseudoLegal have been equiped
with an argument that can indicate the piece type of the required move,
so they can skip generating moves with other pieces. TestLegality,
Disambiguate and CoordsToAlgebraic make use of this facility, and set also
(through global variables rFilter and fFilter) a to-square filter to be
applied in the GenLegalCallback before it tests the move for legality.
  This patch is especially tricky for Crazyhouse, where the piece indicated
in the move might not be the piece actually on the board, because the latter
is a promoted Pawn, and has to be demoted toits base type before the
comparison.

2011-06-19 16:18:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix compile errors WinBoard

The patch to make non-existing options non-fatal broke WinBoard. All calls
to ExitArgError from it now supply a third argument TRUE to fix it.

2011-06-19 14:28:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -fSAN / -sSAN options

These options force the PV of the applicable engine to be converted to SAN.
They make use of the existing ParsePV routine, after shelfing a possible
PV (from user PV walking) to free the space after the last move.
Could be costly in terms of CPU usage.

2011-06-19 10:56:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cure flicker in Move History window, fix highlighting

The highlighting of the current move in the Move List window by selecting
it did not always work, because some other windows were clearing their text
widgets by selecting the contents and killing it, thus snatching the
selection away. This has been changed to setting XtNstring to an empty
string as a method for clearing without side effects on the selection.
As a bonus the Engine Output window now also no longer has the black flicker
on clearing it.
  In addition, triggering a scroll by setting the insertion point to the
end of the text caused excessive flicker in the Move List window, apparently
clearing it and redrawing from scratch, (even if there was no scroll motion),
to the point where on my slow laptop the move history stayed entirely blank
during a rapid succession of moves. This has been combatted by using the
end-of-line action procedure (which does not seem to suffer from this) to put
the insertion point at the end, when we need to scroll to close to the end.

2011-06-18 23:48:13 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on clearing new Move List window

When a new game started and a previous game had filled the Move List
window, a crash occurred because an attempt was made to undo the
highlighting of a no-longer-existing move, and then scrolling to it.

2011-06-18 20:46:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Use sound for ICS tells also with engine telluser popups

The telluser and tellusererror commands now can be assigned a sound.

2011-06-18 20:45:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add Score in Move List option to general options dialog XB

Now that we have a WinBoard-style Move History window, this option is
no longer a no-op in XBoard.

2011-06-18 12:42:41 -0700 Arun Persaud <arun@nubati.net>:
new developer release


2011-06-18 12:38:32 -0700 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.


2011-06-18 12:51:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update window itle after last game of match

The result printed behind player names during a match would still be the one
without the game, differing from what the popup would show, which looked
sloppy enough for people to complain about it.
.

2011-06-18 10:26:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make WB generic popup translatable

When used for internal settings (as in the Load Engine and Tournament
Options dialogs), the option names are now subectto translation.

2011-06-17 21:05:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Move History with generic popup in WinBoard style

The use of color and boldness to make the move list more readable
unfortunately cannot work in Xaw; reverse video by selection is used as an alternative to highlight the current move.

2011-06-17 21:19:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove stray else

Due to an erroneous else, the window parameters of Move History were
not retreived (and thus incorrectly saved) when the Engine Output was up.

2011-06-14 18:47:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make non-existing opton in settings file non-fatal

It is rather difficult to recover from a situaton where the settings
file contains an unknown option (e.g. because you downgraded to a
previous version that had fewer options), especially in WinBoard, where
the user settings file is in a hidden folder, and people might not be
able to find it, let alone edit it. By just skipping the line with the
offending option, rather than generating a fatal error, when reading
from a settings file, such options will be automatically purged from the
file as soon as you save settings.
  Small problem is that the user cannot be warned, as the initialization
has not progressed far enough at this point to generate error popups. In
XBoard we can at least print to the console, but in WinBoard there is no
warning at all. But the worst thing that can happen is that new options
in a settings file of a more advanced version will revert to their
defaults.

2011-06-14 18:20:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Change long form of -tf option to -tourneyFile

This is a more logical name, and in the WinBoard docs it was already
described as such. Also remove the -processes option, which in the
current design of the tourney manager is no longer used.

2011-06-14 18:17:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix default of -remoteUser

This has to be an empty string, rather than NULL, to prevent XBoard from
segfaulting when the -gateway option is used.

2011-06-14 13:32:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -at and -opt options as alternative for @

Windows XP and Vista shortcuts do not display command lines with @ in
them correctly, and these optionsprovide a work-around for that.

2011-06-14 12:46:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix empty-string option values in XBoard


2011-06-14 12:40:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on switching sound in Vista

When choosing a new sound the wave form of the old one was free'ed, but
because built-in sounds are not really malloc'ed, this led to a crash.

2011-06-14 12:36:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update WB docs for tourney manager


2011-06-14 12:35:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add icon to WB for tournament files


2011-06-10 16:52:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Time Control dialog with generic popup

As poor-man's disabling of the unneeded input fields, we print the word
"Unused" in them.

2011-06-10 14:14:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Some refactoring in xoptions.c to separate out front-end


2011-06-10 12:38:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo New Shuffle Game dialog with generic popup

The buttons are slightly renamed, and in stead of having an 'off'
button to clear it, shuffleOpenings now has its own checkbox, which is
ticked when a fixed or dynamic random is chosen with the buttons.

2011-06-10 11:58:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix type of shuffleOpenings

This was a Boolean option, and thus accessed by the args.h code as such,
while it was declared as an int (and used in backend.c as such). This
could have led to problems with different endianness.

2011-06-09 23:57:43 -0700 Tim Mann <tim@tim-mann.org>:
Internationalize the file browser.

The file browser was missed in the previous round of
internationalization and had gotten broken by setting international =
True in its widgets.  I got nothing but segfaults trying to set
international to False in the file browser widget subtree when it was
True in the main window, so I gave up and did the
internationalization.  It turned out to be pretty easy.

As a tiny bonus fix, I removed some ../'s from includes, and you can
now configure and build xboard in a subdirectory again.  This was
useful for building both --enable-nls and --disable-nls from the same
sources to compare functionality and make sure both still work.

2011-06-08 20:26:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash at end of Swiss tourney


2011-06-08 17:33:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix display of logos

The logo files are now sought relative to the WinBoard install
directory. Non-existing logos cause clearing of the logo, rather than
letting the logo of the prevous engine hang. Logo change is requested
explicitly from the back-end (when an engine is initialized for a new
game), rather than using the kludge in StartChileProcess. This required
a dummy UpdateLogos routine in the XBoard front-end.

2011-06-08 18:02:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parameter handling in adapter command

A backslash was not considered the end of an option name, which was
fatal for UCCI2WB, which needs %fd\\%fcp in its command line.

2011-06-08 17:16:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Clear Engine-Output pane when initializing engine

This to prevent output from the previous game hanging there during the
next game, when the engine that is really playing is in book and
doesn't produce thinking output there.

2011-06-08 17:20:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix display of last move of last match game

When a game was adjudicated (e.g. because XBoard detected mate) GameEnds
would trigger an exit if it was the last game of the match, and thus
never returned, while the ShowMove was called only after return from
Adjudicate. An extra ToNrEvent is now used in GameEnd in this case to
cause ShowMove to be called before exiting. (Ugly kludge...)

2011-06-08 17:38:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix concurrency in Swiss tourneys

The pairing engine was consulted for the next round before all games of
the previous round were finished, if other XBoard instances were still
playing games. This caused the instances finishing early to stall
indefinitely. This is fixed by moving the Swiss pairing code to after
the syncInterval code. The normal pairing code (the call to Pairing)
must stay before it, because it determines the syncInterval. So ther is
a bit of tourneyType dependence cluttering up the code here. :-(

2011-06-08 17:27:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Give error popup when pairing engine fails

An invalid pairing now produces an error popup to inform the user, so he
knows why the tourney stagnates.

2011-06-08 17:24:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix clock mode in tourney starting from -ncp mode

When a tourney started from -ncp mode, which was allowed in MatchEvent,
because the tourney loads its own engines anyway, the menu enablings and
clockmode where not restored to their 'GNUMode' state.

2011-06-08 17:11:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix round-robin schedule

The first round was played twice, and the formulas used to derive the
pairing were not even-odd resistant anyway. Both even and odd number of
participants should work now.

2011-06-08 17:08:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix interrupting tournament

Stopping a tourney by using the Machine Match menu item did not wor
properly.

2011-06-08 16:57:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve quoting of engine name on install

Rather than always using double quotes for the engine command, the
engine filename is now double-quoted if it contains spaces (and no
double-quotes), and the comand is single-quoted if it contains
double-quotes (and double-quoted otherwise).

2011-06-08 16:49:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Print sensible window title during tourneys

Rather than the "(W-L-D)" in the title we now print game number and
total games, plus indication of the tourney type (rr, gt or sw).

2011-06-08 16:44:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let XBoard propose name of tourney file

Add an option -defaultTourneyName to configure the name that will be
proposed in the Tournament Options dialog's tournament-file field. The
option can contain %y, %M, %d, %h, %m, %s for year, month, day, hour,
mintes, seconds of the curret time in %02d format, or %Y for the year in
%04d format. Any tournament -file name is ignored when no participants
are given. Participants without a tourney file remains an error.

2011-06-08 16:30:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve Tournament dialog layout WB


2011-06-08 17:05:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix -matchGames option

The new MatchEvent code had broken the -mg option, and used always
-defaultMatchGames in stead.

2011-05-30 19:55:13 -0700 Tim Mann <tim@tim-mann.org>:
Fixed small bugs in several .po files, enabling these translations to be used.  They all probably need more work from the translation team. I don't speak any of these languages, but I did some spot checks either from my own knowledge or using Google Translate, and they generally look sane.

- Several files were in utf8 but needed to be marked as such (that is,
  "CHARSET" changed to "UTF-8").  Affected es.po, it.po, ru.po, vi.po,
  zh_CN.po, zh_TW.po.

- it.po was missing a \n at the end of one translation.

- ru.po had unescaped double-quote marks in one translation.

- vi.po needed to be normalized to Unicode normalization form C.  With
  this fix, more characters display correctly, though at least one is
  still missing in the X core fonts that xboard is able to use.
  See http://vietunicode.sourceforge.net/ for more about Vietnamese.

- zh_HK.po was written in big5 and then utf8-encoded on top of that,
  making it unusable.  I stripped off the spurious utf8 encoding and
  then used recode to convert the file to Unicode properly encoded as
  utf8.

Unfortunately, I wasn't able to test any of the Chinese translations,
as I haven't been able to get XCreateFontSet to work in Chinese
locales with any of the fonts I have installed, even after adding the
Ubuntu language support packages for both simplified and traditional
Chinese.  I did spot check a bunch of the translations using Google
Translate.

I've checked in a couple of tiny Perl scripts that I used to do part
of the fixups on vi.po and zh_HK.po in case we need them again.

2011-05-30 14:12:53 -0700 Tim Mann <tim@tim-mann.org>:
The empty string can't be translated and it causes the gettext utilities to complain, so change _("") to "".


2011-05-30 13:21:06 -0700 Tim Mann <tim@tim-mann.org>:
Add a final wildcard default for fonts.  This gives XCreateFontSet more freedom and lets it find fonts for some obscure charsets where fixed-bold or fixed-medium etc. may not have one.


2011-05-29 20:14:37 -0700 Tim Mann <tim@tim-mann.org>:
Added "misc-fixed" as a fallback font to handle locales where adobe-helvetica does not have all the required characters.  The fixed font is ugly but does have a rather complete set of characters, while the helvetica font is missing Cyrillic characters (at least on my distro).  I haven't found a way to get a nicer font that includes Cyrillic to work with XCreateFontSet, but I don't fully understand why.  I'll try to improve things further in the future if I figure out what's all going wrong.

In the process I had to rewrite the code to insert the pixel size into
a font name (replacing a "*" in that field).  The new code is much
more general.

2011-05-28 23:55:42 -0700 Arun Persaud <arun@nubati.net>:
translation: activated Ukrainian translation


2011-05-28 23:41:24 -0700 Arun Persaud <arun@nubati.net>:
translation: added new Ukrainian PO file from the TP


2011-05-28 21:07:08 -0700 Tim Mann <tim@tim-mann.org>:
Fix display of international characters outside the ASCII range.

1) Set Xaw resources required for internationalization --
   *international and *fontSet.

2) Untangle the new XFontSet-aware code from the old FindFont code.
   It doesn't make any sense to apply the old (and obsolete) size
   searching code from FindFont to a font set, which contains fonts
   that are all the requested size.

3) With these changes, the -font option doesn't work at all when given
   on the command line.  The -font option actually is parsed by the Xt
   library, used to set the *font resource, and removed from argv
   before xboard can see it, so the option didn't really work properly
   with the new WinBoard-style option framework anyway.  Now that
   -font is even more broken, I changed the documented name of the
   option to -messageFont and changed args.h so the option is saved in
   ~/.xboard as -messageFont.

2011-05-28 21:05:00 -0700 Tim Mann <tim@tim-mann.org>:
Move "hide thinking" option into alphabetical order.


2011-05-28 21:01:25 -0700 Tim Mann <tim@tim-mann.org>:
Fix a size mismatch in scanf.  Untested, but the code could not have worked properly without this fix -- scanf would have written 32-bit values to 16-bit fields, thus smashing adjacent memory.


2011-05-23 19:05:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix layout tournament Load Engine dialog WB


2011-05-23 19:03:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ArgTwo warnings


2011-05-23 19:00:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add Swiss tourneys through pairing engine

An external program can be designated pairing engine through the new
persistent option -pairingEngine. Defining the option will allow
tourneytype -1 to be chosen for Swiss. In this case the pairing engine
will be queried for a pairing before every new match game, by sending it
the -results string, plus the command 'pairing' + game number.

2011-05-23 17:37:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow generic dialog to ignore OK

The EndMark callback can now suppress popdown of the dialog on OK, when
it somehow does not like the values entered by the user. In XBoard this
required all the callbacks to return a value.
Caveat: A refused OK would still have set all new values given in the
dialog!

2011-05-23 17:22:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix CR in multi-line WinBoard text-edits

The generic popup did not add CR when strings containing '\n' were
printed in a multi-line text-edit, thus joining the lines. It was also
not possible to type a CR in a multi-line text-edit.

2011-05-23 14:16:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let mentioning completed tourney file add one cycle

Secifying a tourney file of a fully completed tourney will now resume
that tourney with another cycle added. When there are still uncomleted
games in the tourney, the usual error message will appear. There are
also error popups added for when the user fails to specify a tourney
file, or gives too few participants.

2011-05-16 11:02:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make engine startup failure non-fatal in WinBoard

Unlike XBoard, which forks first, the parent process WinBoard has direct
knowledge of a failure to execute the engine command, and used it to
trigger a fatal error. The code doing this has now been disabled. Only
in case of a first engine we switch back to -ncp mode in stead, but no
action is taken to 'bury' the deceased engine process. Like in XBoard,
errors in writing or reading the pipes will trigger this.

2011-05-14 17:03:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add secondry adapter command for UCCI or USI

The option -uxiAdapter can define a second adapterCommand, which will be
invoked on encountering the options -fUCCI, -sUCCI and -fUSI, sUCI.

2011-05-14 10:05:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Obey san feature when sending book moves

Book moves were always sent in long algebraic, even when the engine had
said it wanted to receive SAN.

2011-05-14 10:03:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix initialization of engine state

Some of the initialization relied on variables being zero at startup,
which meant value from the previouly loaded engine hng on after loading
a new one.

2011-05-11 23:06:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Take account of holdings in book key

The board is numbered by rank, for comptibility with Polyglot format,
starting at a1. We then continue counting in the holdings 'files', in
up-rank direction, each holding spanning the full board height (even if
it is not fully used). Firstthe left (black) holdings, then the right,
Even in Shogi this limits the square number to < 99, which is below the
absolute limit of 128 (where we would run out of hash keys).

2011-05-11 22:48:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Alow promotions and drops in book-editing


2011-05-11 20:15:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Include learn info in book edit


2011-05-09 21:55:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt default directory of lng2po

The path is prefixed with "../" to make it runable from the po directory.

2011-05-09 21:20:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Recode some po files

po files were generated with the aid of lng2po for Russian,
Vietnamese, Chinese(simp) and Chinese(trad), using encodings CP1251,
CP1258, GB2312 and BIG5, respectively.

2011-05-09 20:11:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Edit Book in XBoard


2011-05-09 09:52:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve WB Load Engine dialog texts


2011-05-09 09:48:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make 'add to list' default in Load Engine dialog


2011-05-09 09:33:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -userFileDirectory option

This volatile option is initialized from 'installDir'. It is
primarily intended for configuration of WinBoard through its master
settings file, and specifies an alternative place to create saveGameFile
or look for other user files, in stead of looking in the installDir.

2011-05-09 09:10:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add option -absoluteAnalysisScores

This persistent option flips scores in the when black is thinking in
analysis mode, just before they are printed in the engine-output window.

2011-05-08 17:47:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Automatically play moves of clicked PV in analyze mode

The Shift key now no longer needs to be pressed to play moves from the
PV in analyze mode (so it could be given back its original meaning of
starting a variation with the entered moves). In analyze mode the PV
walk begins after the first move, so a static right-click plays the
first PV move. To just peek the PV you have to walk to the start of it
before releasing the mouse button. In other modes the PV walk
stillstarts at the very end.

2011-05-08 17:07:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let ParsePV always generate SAN move


2011-05-08 13:53:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix vscrolling in XBoard Engine-Output window

After clicking the memos they scrolled to the bottom, because SetFocus
put the insertion point at the very end of the text. This behavior is
now reserved for text-edits containing less than 100 characters.

2011-05-08 13:22:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix button sizing in generic popup


2011-05-08 13:02:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow changing MultiPV setting from Engine-Output window

In analyze mode a header line is printed in the first engine-output
pane, which can be right-clicked to increase or decrease the number of
PVs. (Only with engines that support the MultiPV option.)

2011-05-08 11:28:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
No clearing of Engine-Output memos on stat01


2011-05-07 23:27:50 -0700 Arun Persaud <arun@nubati.net>:
updated xboard.pot with released version


2011-05-07 22:56:53 -0700 Arun Persaud <arun@nubati.net>:
new developer release


2011-05-07 22:54:29 -0700 Arun Persaud <arun@nubati.net>:
updated ChangeLog, NEWS, etc.


2011-05-07 23:07:46 -0700 Arun Persaud <arun@nubati.net>:
deactivated new languages for the moment...

po files need some cleanup, probably better to wait until the translation-project looked at them

2011-05-07 18:44:24 -0700 Arun Persaud <arun@nubati.net>:
added translations generated via lng2po from all winboard languages


2011-05-07 18:40:23 -0700 Arun Persaud <arun@nubati.net>:
lng2po.sh: added command line options, GPL header

also use a temporary file generated with mktemp instead of a hard coded one

2011-05-07 17:53:10 -0700 Arun Persaud <arun@nubati.net>:
fixed access rights to winboard language files (644 instead of 655)


2011-05-07 14:55:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Import WinBoard language files into git


2011-05-06 23:14:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let Shift+RightClick on PV actually play the PV moves


2011-05-06 18:06:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make book-edit function WB

The tags dialog is used to display the GUI book moves from the current
position, and will be updated when you step or move to another one.
The edited move list (with weights) can be written back to the book.

2011-05-07 16:21:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix resetting engine options

Not all options were reset, and -needsNonCompliantFEN was 'reset'
to a completely wrong value, so that bad FENs would be sent.

2011-05-06 18:51:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -first/secondPgnName option

This option replaces the tidy name of the engine in the PGN player tags
of engine-engine games. In WinBoard engines can be installed with this
option through a checkbox in the Load Engine dialog.

2011-05-06 23:31:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let XB generic popup define default file extensions


2011-05-06 18:25:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Save time-control settings in tourney file

Because parsing the options and storing them in appData is not enough,
the time-control code setting the internally used parameters from the
appData info in InitBackend was made into a subroutine, and also caled
after parsing the tourney file.

2011-05-06 20:40:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Put saveGameFile in tournament dialog


2011-05-06 19:17:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Plug memory leak, filenames relative to installDir

String options are consistently freed now, before assigning a new value
to them through strdup. The init code now even does use strdup when
setting defaults. This is important for optionslike -lgf, which are not
saved in the settings file, and thus are usually left with their
default. When a dialog to set them then uses free, this causes a crash.
When setting the defaults uses strdup, ParseArgs can already free them.
This plugs an important memory leak, as ParseArgs in now called to parse
the tourney file before every tourney game (twice!), and the lists of
participants and results in it can be quite long.  Macros are defined in
common.h to make the code look simpler.
  Filenames entered through the generic popup are now interpreted
relative to the WinBoard installation folder, just as the saveGameFile
already was. The code handling the atter was made into a subroutine for
this.

2011-05-06 22:02:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add WB new popup prototypes


2011-05-06 18:58:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add partcipants at bottom in tourney dialog (WB)


2011-05-06 18:56:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix range of tourneyType spin WB


2011-05-06 18:15:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix exit popup in tourney mode

Only the instance finishing the last tourney game will cause a popup
with final standings. As long as there are still busy games, it exits or
switches back to idle mode silently.

2011-05-06 18:11:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix stopping of match in tourney mode


2011-05-06 18:59:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add default extension in file browser


2011-05-06 22:37:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improve sizing of comment and tags dialogs

There seems to be a bug in Xaw for the sizing of buttons; they get
unpredicatble and weird sizes when the size is not explicitly set,
possibly stretching the initial width of a dialog to rediculous values.
Sizing back to a remembered value from the settings file then makes
buttons overlapand text edits shrink to almost nothing. To prevent that
we now define exlicit sizes for the buttons in tags and comment popups.

2011-05-06 21:00:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix generic combobox bug

The patch placing gettext markers was done wrong, setting the
translated menu text outside the loop, so all entries became the same.

2011-05-07 14:23:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix PV walking in analysis mode

ParsePV assumed that the PV would always have been produced by an engin
thinking about the final position of the game (or the one before it). In
analysismode, however, the engine can be analysing positions internal to
the game, and the PV would be considered invalid. This is fixed by
cutting of the tail off the game (shelving it in variation fashion)
before starting the PV walk, and reverting afterwards.
  For this the PushTail and PopTail routines had to be split into an
'inner' part, doing the pushing and popping, and an outer part, handling
menu graying and popdowns (which is undesirable in in this application).

2011-05-03 00:24:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Lift length-limit on text-edits in WB generic popup


2011-05-04 13:53:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Lift limitation of text length in generic dialog XB

All string options should now point to allocated memory, as strdup /
free is consistently used on them. This is OK for values received from
ParseArgs, but for non-arg intermediate variables that must receive strg
values, such as in the comment and tags popups, strdup has to be used to
initialize those.

2011-05-04 14:53:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Tournament Options dialog WinBoard

The file browser now can select on extension WB generic dialogs,
with a default based on the option.max value of the option for which it
browses. A textBox can be forced to be multiline by putting the number
of extra lines in option.min.

2011-05-04 15:30:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make option to draw second engine from first list


2011-05-03 00:17:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix error message on engine load


2011-05-04 15:09:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Load Engine dialog in WinBoard

The Load Engine dialog is implemented for WinBoard, and is invoked by
the menu item Engine->Load, which formerly was Install 2nd. Install 1st
is renamed 'Edit Engine List'. Unlike in XBoard, the dialog has separate
fields for the engine executale and its parameters.
  The dialog is implemented by converting the Engine Settings popup into
a generic dialog generator.

2011-05-04 13:43:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Load new logo on engine change WinBoard

Picking the logo for the first engine is made into a subroutine. The
code for picking the logo of the first engine was made into a subrroutne
for this. We use the kludge to recognize the engine by its command line
when starting a new engine process.

2011-05-04 13:36:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow switching off match mode through menu

The Machine Match menu item is now checkmarked, and no longer grayed
during a match, and clicking it while a match is running will terminate
the match after the current game. To not be left with hanging
checkmarks, the checkmark is already removed duringthe last match game
(which is logically equivalent to ordinary Two Machines mode anyway).

2011-05-03 00:14:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Calculate and display tourney result


2011-05-04 18:42:13 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Tournament Manager

New command-line options are added to specify the tourney: -tourneyType
(-tt), -tourneyCycles (-cy), -participants, -syncAfterRound,
-syncAfterCycle, -results, to be saved on a -tourneyFile (-tf), but
otherwise volatile. When a tourneyFile is specified during a match,
a new routine NextTourneyGame is called from NextMatchGame before every
game, to decide the pairing, and unload and redefine the engines, when
needed. The XBoard Match Options dialog can be used to set the options
and create the tournament file.
  Actual loading of new engines is done by TwoMachinesEvent, which is
now modified to also wait for the feature timeout of the first engine.
Waiting for the matchPause is now also implemented there, after waiting
for the engines (so they can be started during the pause).
  Pairings and color assignment is now all done in an absolute
(non-incremental) way, based on a new global game-number variable
nextGame, which takes over the function of matchGame in a tourney. The
latter is now used to count games between the same players, so it can be
still used to derive the load-file indexes (again in absolute fashion).
  The next game to play is already picked in GameEnd, so it can be
decided if there is a game to be scheduled, or if we can terminate.

2011-05-04 15:42:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Display note in stead of empty engine-settings dialog XB


2011-04-24 18:02:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on empty Engine Settings dialog

The generic popup was not foolproof against this.

2011-04-22 12:47:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Refactor code for loading games and positions in match

The code in NextMatchGame and MatchEvent was nearly the same,
(MatchEvent did a little more error checking, but that is never
harmful), and could be combined. In stead of determining the load index
incrementally, it is now calculated in an absolute way from the game
number, so it can be used more easily in tournament mode.

2011-04-21 22:37:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add callback possibility to combobox selection


2011-04-24 17:15:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Lock game an position file during writing

The use of flock() on the file desctiptor of the opened stream should
guarantee multiple XBoard instances, saving on the same file, will not
interleave their PGN games or FEN positions.

2011-04-27 17:05:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove building rule for parser.c from WB makefiles


2011-04-29 16:58:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Engine Settings buttons in WinBoard

This was broken by a leftover statement from debugging the -file/-path
patch.

2011-05-02 13:38:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement flock in WinBoard

This system function seems unknown in a MinGW compile, so it is
implemented with the aid of file byte-range locking, using a lock on the
first 1024 bytes of the file as a semaphore.

2011-04-29 23:06:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix grayout XB Match Options in ICS mode


2011-05-03 00:22:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Delay loading of second engine until it is used


2011-05-02 15:00:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix zippy bughouse partner bug

The patchs to subject Zippy messages to coloriation was faulty, because
there were messages recognized by zippy that were not colorized, and
such messages would then not be 'read away' after zippy recognition
(except for the first character). As a result the messages were
processed over and over again.

2011-05-04 10:59:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Silence more rpm warnings


2011-05-01 20:33:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix warnings XBoard file browser

All the prototypes have been moved to selfile.h, to force uniformity.
The order of the #include files xstat.h and selfile.h had to be
swapped, to make sure 'struct stat' is a nown type atthe time of
prototype declaration. The event handler SFmotionList is considered
wrong type because of its third argument (XMotionEvent in stead of
XEvent), and had to be casted to (XtEventHandler) when passed to
XtAddEventHandler.

2011-05-04 10:56:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some warnings and header-file improvement

Ther were lot of 'extern' declarations in the x-files, so called
'imports from xboard.c', (sometimes backend.c) which logically belonged
in xboard.h (backend.h) to ensure their uniform definition. These have
now been moved there. Some prototypes have been added in xboard.h as
well, for functions that needed calling from xoptions.c.

2011-05-04 10:50:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Create conversion tools for language files

A shell script "lng2po.sh" is provided, to apply the translation given
in a WinBoard .lng file to "xboard.pot", in order to generate a
"language.po" file containing translations for all strings for which
the .lng file had a translation. It makes use of a file "metascript",
which is the ed script used to turn the .lng file in an ed script to
turn the .pot into .po. For example, the command "./lng2po.sh
espa?ol.lng" will create a file "language.po", which can be renamed to
"es.po".
****************************** WARNING ********************************
  Note that the lng2po script does a "recode" that assumes the given
.lng file is encoded in latin-1. This means it canot be used without
modification for the Vietnamese and Chinese translation; you would have
to replace latin-1 by the applicable encoding first (CP1258 / BG2312 /
BIG5).

2011-04-27 22:04:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Put gettext markers in generic dialog creator

This is done by adding extra XtNstring argumentsto the widget gcreaton,
so the displayed name can be different fromthe widget name.

2011-05-01 19:56:38 -0700 Tim Mann <tim@tim-mann.org>:
Use getaddrinfo instead of gethostbyname.  Hopefully this makes us compatible with IPv6 and with hosts that have more than one IP address.  However, I don't know of any chess servers that have either of those properties, so I couldn't test that.  I did test that xboard still works with freechess.org and chessclub.com and that it gives an error message for invalid host names.


2011-04-24 11:18:28 -0700 Arun Persaud <arun@nubati.net>:
updated German translation


2011-04-24 11:17:43 -0700 Arun Persaud <arun@nubati.net>:
replaced hardcoded email address with generic PACKAGE_BUGREPORT


2011-04-23 10:51:57 -0700 Arun Persaud <arun@nubati.net>:
updated po-files; updated german translation


2011-04-23 10:51:02 -0700 Arun Persaud <arun@nubati.net>:
updated list of files that include translation strings; updated pot-file


2011-04-22 21:50:58 -0700 Arun Persaud <arun@nubati.net>:
marked more strings for gettext that were only marked with N_()

they need to be marked again with _() when they are used to get the translated string

2011-04-22 21:39:22 -0700 Arun Persaud <arun@nubati.net>:
updated translation files


2011-04-22 21:37:22 -0700 Arun Persaud <arun@nubati.net>:
added/fixed i18n support via gettext to xboard

this was already added a long time ago, but now it's added again to
autoconf. Also fixed some compile errors that showed up.

2011-04-20 10:27:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make engine startup error non-fatal

When engine startup fails, do not generate a fatal error, but swicth
back to -ncp mode. Write on broken pipe errors had to be suppressed for
this.

2011-04-20 14:35:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make engine loadable during session

A "Load Engine ..." menu item is added to the Engine menu, which pops
up a dialog where one can replace the first or second engine by a new
one, without destroying the game state. Switching from -ncp to engine
mode needed activation of some menu items in SetGNUMode, and
re-enabling clockMode. It was also important that noChessProgram is
cleared before re-initializing the ChessProgramState.
  The Load-Engine dialog can select from the list of installed
engines, and also add a newly specified engine to this list. In this
case it saves the directory, hasBook, and isUCI info with the engine,
and optionally the current variant. When loading an engine with a
specified variant, it resets the game and switches to the new variant.

2011-04-18 15:56:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Generalize WaitForSecond to WaitForEngine


2011-04-18 15:46:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add UnloadEngine routine


2011-04-20 13:45:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Put engine initialization code in per-engine function

Initializing of the ChessProgramStates first and second from the
option settings in appData is now done by separate calls to the same
routine. Clearing of options is added to the initialization. This is
needed when reloading an engine. This is done in a separate routine,
which could also be called on -reset options.

2011-04-18 13:21:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Bring structure in appData engine options

All options in appData that came in pairs for both engines are replaced
by arrays of ENGINES (=2, for now) elements. The use of the named
appData field that are replaced in the source is replaced by use of the
corresponding array element, by #define directives in common.h, awaiting
their replacement.

2011-04-19 15:15:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix gettext macros in option dialogs

The strings in the tables were using _() in stead of N_().

2011-04-18 20:58:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on using Engine #1 Settings in ICS non-zippy mode

If XBoard is compiled with zippy the Engine #1 Settings menu was not
grayed out even when you don't run in zippy mode, and using it would
then crash XBoard.

2011-04-19 15:07:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix shogipixmaps

Some pixmaps forptomoted pieces had wrong background color, others had a
wrong name (so the one with the correct name was missing).

2011-04-17 19:12:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Change texture-install directory to pixmaps/textures


2011-04-17 17:36:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Limit install of sound files to those in menu

The sounds directory is set to .../xboard/sounds, and only ten
sounds are kept (all non-spoken).

2011-04-17 17:27:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove some bitmaps from install

Some files in the bitmaps source directory need not be installed,
because they are there only to be linked to the binary in a build
without LIBXPM, are README files or conversion programs. I left only the
stuff that is in a Debian binary package in .../xboard/bitmaps.xchess.

2011-04-17 16:34:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Configure some default sounds

The move sound is set to Wood Thunk; the sounds for tell and challenge
events to Phone and Gong, respectively.

2011-04-17 16:17:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Change default sounds in Xboard menu

All spoken sounds are removed now. Thud, Click and Ching are replaced by
Wood Thunk, Slap and Cymbal; Car Horn and Pop are added.

2011-04-17 12:46:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make user wav file available for try-out in sound dialog

The GenericReadout was adapted to be able to read a single selected
value, so that the callback to the 'play' button in the sounds dialog
could get the name of the 'user WAV file' without accepting all settings
for the other sounds (which should only happen on 'OK', and might still
be cancelled in stead).

2011-04-16 10:36:31 -0700 Arun Persaud <apersaud@lbl.gov>:
configure: enable silent rules by default


2011-04-16 10:28:16 -0700 Arun Persaud <apersaud@lbl.gov>:
configure: added install directory for bitmaps files: .../games/xboard/bitmaps/default/


2011-04-16 10:25:33 -0700 Arun Persaud <apersaud@lbl.gov>:
configure: added install of sounds in .../games/xboard/sounds/default


2011-04-16 09:54:26 -0700 Arun Persaud <apersaud@lbl.gov>:
configure: renamed bitmapdir to pixmapsdir, since it installed only pixmaps. also changed name of default dir

pixmaps will now be installed under .../games/xboard/pixmaps/default/

2011-04-16 13:40:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix gamelist highlight

Reopening the gamelist should highlight the current game.

2011-04-16 10:25:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix size limit on 'save as diagram'

In stead of a fixed-size buffer the diagram-save code now uses an
allocated buffer with size calculated from the bitmap parameters to
retreive the bitmap data, so it should work for all sizes.

2011-04-15 22:04:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix chaining of bottom-row dialog buttons

The OK & cancel buttons are chained to the bottom. This patch makes sure
that other buttons appearing in the same row (as in the tags and
comment dialogs) will be chained that way too, so that they will behave
the same on vertical sizing. The bottom of a full-width text-edit above
it will be chained to bottom too. To make this work in the tags dialog,
the (optional) cmail-message field had to be put above the tags memo.

2011-04-15 19:18:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix switching between pixmap and bitmap pieces

There were still several flags that had to be reset when redoing the
graphics initialization. The Debian patch to use a default bitmap
directory when none is given but monoMode is selected or forced, is
moved to a more sensible place, so that it does not disturb matters when
compiled without LIBXPM (when we do have built-in bitmaps).

2011-04-15 15:47:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove outline-pieces option from board-options dialog

This option does not exist in XBoard (yet).

2011-04-15 15:41:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix running of clock during hash allocation engine

In TwoMachinesEvent we now wait for the second engine to acknowledge the
'ping' after 'new', to make sure it is done allocating hash in reaction
to the preceding 'memory' command, before the clock for the game is
started.

2011-04-14 21:42:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Describe move type-in in texi file


2011-04-14 20:34:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Describe Copy Game List menu item in texi file


2011-04-14 20:30:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Describe -sweepPromotions in texi file

The new method for selection promotion piece, and the -sweepPromotions
option are described in the texi file.

2011-04-14 20:14:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Describe -pieceMenu option in texi file

The sweep method for selecting a piece in Edit-Position mode is
explained, as well as the -pieceMenu option.

2011-04-14 15:59:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file

Descriptions of the new XBoard menu dialogs are included in the docs.

2011-04-14 21:06:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reorganize texi description


2011-04-14 12:31:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sweep-promotions patch

Setting of the from square was moved to before OKtoStartUserMove in the
LeftClick handler, to make sure we could test the promotion possiblity
when OnlyMove() would have altered (x,y) to be no longer the from
square. But this setting of fromX, fromY hung on also if the move was
not OK, so you could effectively select opponent pieces and empty
squares. The from-square is now set back to undefined when it is not OK
to move the piece you clicked.

2011-04-14 11:56:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Alter treatment of moves with empty squares

In Edit Position mode one can move empty squares, and use them to
'capture' pieces as a means to clear their square. But this often leads
to unintended disappearence of pieces one wants to grab for dragging, if
a previous click had inadvertantly left an empty square selected: the
click on the piece is then seen as the to-click of a click-click move.
  This patch treats to-clicks of moves with an empty-square differently
from other to-clicks: Rather than performing the move (in this case
clearing of the to-square) on the down-click, it defers that to the
up-click, and only does it if that up-click is in the same square. This
allows the user to grab the piece on the down-click, and drag it to
another square, if that is what he wanted to do, without being disturbed
by sudden implosion of the piece he tried to grab.
  If the to-square is in the holdings, grabbing the piece is the only
action, as moves of empty squares into the holdings are forbidden anyway.

2011-04-13 13:14:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Block selection of a directory when file is needed

When we are not browsing merely to obtain a name to put in a text edit,
but really must return an open file pointer, selection of a directory
(ending in '/') can no longer be OK'ed in the file browser. (XBoard
tends to segfault when offered garbage for game or position file...)

2011-04-13 12:23:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let double-click select file in file browser

A second click on the already selected entry now has the same effect as
pressing the OK button.

2011-04-12 17:06:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Couple mouse wheel to v-scrolls in file browser

A newly added mouse-wheel event handler was made to call the v-scroll
callback routines with parameters to step one entry. The button-press
handler for the lists themselves was also made to intercept the wheel
events (buttons 4 and 5), to prevent they would select an entry, and
make them scroll in stead as well.

2011-04-13 11:41:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash copying game list when there is none


2011-04-13 11:15:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix changing of float setting by generic popup

Changing a float setting (so far the only one is in the Load Options
dalog) did not always work, because the old value was clipped to (int),
so that changing it back to an integer value might erroneously conclude
there was no change.

2011-04-13 16:15:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on closing dialogs in wrong order

When a menu dialog was closed when it still had an open file-browse
daughter, which could be done through the system menu X on the title
bar, later closing of the file browser caused a crash. This is solved by
keeping track of the fact that there is such a daughter through a global
flag, and ignoring the pop-down command if there is one.

2011-04-13 16:33:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix startup focus of board window

When there were open auxiliary windows, these would have focus on
starting up XBoard. The XtSetKeyboardFocus call added in XBoard main()
was ineffective in curing that. It has now been replaced by a call to
XSetInputFocus, which does do the job. By giving input focus to the form
widget, rather than the board widget, XBoard will be immediately
sensitive to all key bindings.

2011-04-13 15:48:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix game-list highight error when filtered (WB)

When the gamelist was filtered, the game that was highlingted was the
n-th game in the list rather than the n-th game in the file, when the
latter was loaded (and n did not exceed the number of filtered games).
This is fixed now by searching for the line in the listbox that starts
with the game number n, rather than taking the n-th line.

2011-04-12 19:20:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Refactor move type-in code

Common code between XBoard and WinBoard was moved to the back-end
creating TypeInEvent() and TypeInDoneEvent() routines.

2011-04-12 10:13:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix saving of XBoard fonts with spaces in name

SaveFontArg now prints quotes around the saved font string, so that the
general option-argument parser doesnot stop at the first space it sees.

2011-04-11 20:48:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement move type-in for XBoard

By adding an event handler to the main window for key presses, users can
now type moves when the board has focus, like in WinBoard. The typed
character appears as first character in the type-in box that willpop up.
Enter and Escape close the box; finishing the typing of the move enters
it. Like in WinBoard it is also possible to type a move number (to go
there) or (in Edit Position mode) a FEN.

2011-04-11 20:59:44 -0700 Arun Persaud <apersaud@lbl.gov>:
new developer release

tried to keep the v4.5.x branch developed already separated in the NEWS file, as well as DIFFSTAT and SHORTLOG.
The Changelog is just the one from master.

2011-04-10 22:47:59 -0700 Arun Persaud <apersaud@lbl.gov>:
updated Changelog, NEWS, etc.


2011-04-10 20:32:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix use of game/position file in first match game

When a match was started from the menu, it was not paying attention to
game and position files. (Later games were.) The code that handled this
in the initialization when a match is started through the command line
was made into a routine MatchEvent, which can be called from the menu
proc too.

2011-04-09 20:55:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on opening ICS Text Menu

The patch for the color defaults had broken the ICS Text Menu.

2011-04-09 19:22:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Copy Game List menu item for XBoard

Some WinBoard code was cloned for this.

2011-04-09 11:42:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Third method of sweep selection

This method sweeps through the possible promotion choices for the piece
that is being dragged, as long as you drag a 7th-rank Pawn backwards. On
draggin such a Pawn forwards, it immediately shows it as the piece you
are going to promote to.

2011-04-08 23:39:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Alternative sweep promotions

The sweep takes place on the from-square here.

2011-04-07 23:21:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make sweep-select promotions work in WinBoard

The mouse-move handler had to be connected to the PromoScroll back-end
routine.

2011-04-07 23:19:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix path browsing in WinBoard

The routine BrowseForFolder was still declared as static in woptions.c,
while it was used from wsettings.c.

2011-04-07 11:14:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fixes to sweep selection


2011-04-06 23:47:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement sweep selection of promotion piece

When the option -sweepPromotions is true, a click-click promotion move
will first display the default choice (usually Queen) on the promotion
square. While you have the mouse button still down, you can change the
piece by moving the mouse vertically.

2011-04-06 21:20:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement sweep selection as alternative for the piece menu

When the option -pieceMenu is off, the piece menu will no longer appear
on right-clicks in Edit Position mode. In stead a Pawn of the chosen
color will appear immediately in the clicked square, and vertical
movement of the mouse with the right button down will cycle through
all other pieces defined in the pieceToCharTable of the current variant.
  Setting the side to move is acheived by clicking the correspondig
clock. Clear board can be effected by clicking the clock of the side
that already has the move.

2011-03-30 18:17:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remember Tags and Comment dialog coordinates

The save-settings code now uses the shell and shellUp arrays from the
GenericPopUp to read out the window coordinates for Tags and Comment
window. Pointers used by GenericPopUp are set topoint to the
corresponding WindowPlacement structs.

2011-03-10 19:21:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo Tags dialog

The generic popup is used for generating the Tags / EditTags popups.
The tags popup use a 'label' field to display the cmail message

2011-04-01 13:43:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Edit-Comment window through generic popup

The Edit Comment and Comment popups are combined into one, that can
always be edited (similar to WinBoard). It uses shell number 1.
(Number 0 is for all transient dialogs.) A save-changes button is added.
The positioning is not implemented yet.

2011-04-06 10:56:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Refinements to generic popup and color picker

*) The text part of a checkbox can now be clicked to toggle the option.
*) Typing <Enter> in single-line text edits is ignored
*) Using a spin button now sets focus to the affected text edit, with
the insert position at the end.
*) Using the sample field or an RGB button sets focus to the
corresponding text edit, with the insert position at the end.
*) The adjust buttons now work in reverse, with a D button for "darker".
*) Editing a color field causes the sample field to update to the new
color when you type <Enter>.
*) The color pickers now define a default color, which can be instated
by clicking on the sample field.
*) Fix some 64-bit pointer warnings

2011-04-05 17:05:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let file browser filter on extension

A new text field is added in the file-browse dialog, to hold (space-
separated) extensions, on which the filenames are then filtered. This
field is initialized by the caller, depending on what we need the file
for, but can be changed by the user. (Directories are always displayed!)
  Changes in the extension field  become effective after typing a return
in it. Escape typed in the extension field gives focus to the filename
field, and restores the contents. Escape in the filename field cancels
the dialog, return ther OKs it. The extension filter of the browser is
initialized to the extension (if any) of the file currently in the text
edit you are browsing for.
  When re-opening the file browser from the XBoard File menu, and there
is no suggested filename, it will now start with the last succesfully
opened name as suggestion. Calling the browser with a NULL argument
for the suggested filename requests that (unlike calling with an empty
string, which will start it in the current directory). To make this
work smoothly, the filebrowser saves the last used name on entry, so it
can be restored on cancel, so that a cancelled browse session really
erases all memory of it.

2011-04-04 19:26:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix animation masks on changing piece pixmaps

The animation masks were not remade when new pieces were loaded
interactively through the board-options dialog.

2011-04-04 19:09:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix linegap option in board dialog

The lineGC was not recalculated, so the grid lines stayed the same
thickness. In addition, setting the line-gap override to -1 now
retrieves the original line gap that belongs to the current board size.

2011-03-05 23:27:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make a kind of ICS text menu in XBoard as a dialog

The dialog with buttons can be opened from the View menu. It is
configured by the option -icsMenu; a default setting for this is
included in the master settings file.
  The commands specified by the -icsMenu can now contain $name and $input
keywords, which will be replaced by the current primary selection, or
text the user types, respectively. Commands that contain $name will not
be sent when the current selection is empty. Commands that do not
contain $input will be sent to the ICS immediately; otherwise they will
be placed in the ICS Input Box, with the cursor at the point of the
$input, and input focus given to the Input Box, so the user can start
typing. When a command is prefixed by "$add " it will be appended to the
existing ICS Input Box contents, rather than replace it.
  The items now have to be separated by ";\n", and button text from
command by ';' (with optional linefeed). This allows configuring of
multi-line commands, as a single linefeed no longer has special
sigificance.

2011-03-31 13:36:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo ICS input box with generic popup

This box is just a single text edit, but the complexity is in the added
callbacks. These callbacks remain in xboard.c, and were altered to
access the edit through the option.handle field.

2011-04-03 12:54:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Activate -path and -file options

In XBoard the generic popup was prepared for this. In WinBoard, for
-path options the BrowseFolder routine is used, and had to be made
global (prototype in winboard.h).

2011-04-02 18:40:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let generic popup generate Engine Settings dialog


2011-04-02 18:36:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Merge SettingsPopUp into GenericPopUp

Based on currentCps the values read from the dialog are sent to the
engine, or stored into the option.target in the callback, and fetched
from the option.target in the PopUp. The currentCps is cleared in the
generic popdown of a transient dialog.

2011-03-06 10:11:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make generic dialog popup reentrant

To allow persistent dialogs to be implemented through the generic popup,
it must be possible to have several dialogs open at the same time, and
thus make sure the popdowns under the cacel or close-window button know
which one to pop down. To this end an array shells[] is created that
takes over the function of settingsShell, and GenericPopUp gets an extra
parameter telling it which element to use for storing the dialog shell.
This number is then also passed to the callbacks that trigger popdown.
This was a bit nasty for the CatchDeleteWindow stuff, which passes user
data to the callback as text strings.
Keep a separate up/down indicator, so that shell widgets can be kept
for persistent dialogs. Also keep a currentOption per dialog type.
  The coordinates and size of the window is read out and stored in a
WindowPlacement structure, (if one is specified for that dialog), when
the dialog is popped down. When initialized the structure is also used
to set the window parameters when the dialog is created. (The idea being
that the structure was saved in the settings file.)
  The routine MarkMenu checkmarks a given menu item, and logs it for the
given dialog type, so that a later popdown automatically unchecks is.

2011-02-25 12:14:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement Machine Match menu item and options dialog

An item to start a match from the menu is added, similar to what
WinBoard has. (The code is duplicated, so I guess it should be moved to
the back-end now, as MachineMatchEvent(), but it was tiny.) A dialog in
the Options menu was added with the aid of the generic popup, and allows
the user to set the load Game / Position File and Index.

2011-04-01 14:54:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Create General-Options dialog

The generic popup is used to implement a General-Options dialog, which
contains all Boolaen options that used to be set directly from the main
Options menu, plus a spin option for the flash count and flash rate.
The corresponing options are removed from the main Options menu, but the
whole thing is made conditional on a compiler switch OPTIONSDIALOG.
The dialog needs an OK callback for sending an altered ponder-state to
the engine. (Why isn't this option disabled in -ncp mode, btw?)
A spin control is added to adjust -animateSpeed between 5 and 100.
Add dropMenu and showTargetSquares item as well.

2011-04-01 18:16:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo new-variant dialog with generic popup

Some special code was added in GenericPopUp() to force buttons of the
type needed in the New Variant dialog (wide, colored, greyed-out on
variant type). The dialog was implemented with these, and callbacks for
the buttons directly exit the dialog, without the need for OK. New spin
controls are added to the dialog for adjusting the board format.

2011-04-01 14:48:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Redo common-engine dialog with generic popup

The ponder option was removed, as it is already in the main Options
menu, and would require nastiness in the OK callback. Added book options
in common-engine dialog.

2011-02-24 13:32:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redo adjudications dialog through generic popup

We dropped the periodic-updates option, as it is already in the main
Option menu.

2011-04-01 21:56:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make sounds dialog for XBoard

This uses the combo boxes. A 'play' button isimplemented for a test
sound. A sound directory is introduced, and can be set through the
dialog. A default setting for -soundDirectory is added to xboard.conf.

2011-04-01 23:11:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add ICS options dialog


2011-04-01 21:52:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add board dialog XBoard

The GenericPopUp() is used to implement a dialog for board options. The
board dialog needs to trigger redraw and redefinition of the
colors, through an OK callback. Color-pickers are used for the 6 basic
color settings.
  To allow changing board settings during the session (i.e. from a menu
dialog), the routines to allocate resources have to free the resources
for the previous settings first. This patch take care of XtCreateGCs(),
preventing re-creation of resources that are unchangeable (such as the
grid color), and calling XtReleastGC() on GCs that can be changed.
To prevent resource leaks the old pixmaps are deleted before making new
ones on second or later calls of CreateXPMPieces().

2011-04-03 11:39:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add browse button to generic popup

Options of type FileName and PathName cause a browse button to be added
behind the text field. The SpinCallback is used to handle the
button presses, and invokes the file browser dialog to obtain a
filename, which is then copied to the text field.

2011-04-01 21:49:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make generic XBoard popup, and implement 2 dialogs

The Engine-Settings dialog of XBoard was cloned to work on predefined
lists of (XBoard) options, rather than engine options. An extra field
was added to the Option struct, to hold a pointer to the XBoard variable
that should hold the option setting, so on OK'ing the dialog the altered
values can be copied there. Not usable for options which should trigger
an action (like redraw, or sending something to the engine).
A Load Game, Save Game and ICS Options dialog were then defined by
tables fed to GenericPopUp(). Options set from these dialogs were removed
from the main Option menu, which removes a lot of code from xboard.c
(for checkmarking, disabling the menu items).
  A button defined in the GenericPopUp can attain the color indicated
by a previous text field, and add a callback to change the color in a
spin-like manner (but using R G B W in stead of + - butons).
The EndMark option can specify a callback, to be used on OK.
A non-zero max field in the Option descriptor will be used to set the
width of ComboBox, TextBox and Button optons.
The elements are chained such that extra space goes fully into the input
fields. A label type is added for clarifying texts that would not fit in
the option names. A break-type (pseudo-)option is added. Make OK and
cancel button suppressable in generic popup (by 2 bit of the option.min
field).

2011-04-03 11:34:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add file-browser option to just return name

By passing mode "f" the file browser dialog will not open the selected
file at all, so it can be used to retreive the name for the benefit of a
file-browser button to a -file option. A mode "p" will limit the
selection to directories only, to browse for a path.

2011-04-03 13:15:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Put insertion point at end of text on SetFocus


2011-04-05 23:47:34 -0700 Arun Persaud <apersaud@lbl.gov>:
fixed 64 bit warnings by casting integers to intptr_t before casting to int


2011-04-05 23:24:24 -0700 Arun Persaud <apersaud@lbl.gov>:
removed check and #includes for malloc.h, since it's not needed

hopefully this doesn't break things on non-linux systems. OS X seems to be ok, not sure about others ;)

2011-04-03 20:23:49 -0700 Arun Persaud <apersaud@lbl.gov>:
check if malloc.h is present before including it

OS X 10.6 doesn't have malloc.h, so it complained.

2011-04-03 20:01:36 -0700 Arun Persaud <apersaud@lbl.gov>:
Fix bug introduced in commit 89b4744: removed a "/" and forgot to add it in the config file

removed a "/" to make OS X happy, but forgot to add the "/" again in the xboard.conf.in file

2011-03-12 14:08:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix display of promotion piece in ICS superchess

In Great Shatranj and Superchess promoted Pawns were displayed as shadow
piece because these variants had holdings, while captured pieces should
go back into the holdings unchanged, rather than reverted to Pawns.

2011-03-13 14:09:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix o-o castling in new parser

The non-compliant notation of castling with lower-case 'o' should be
preferred over the non-compliant interpretation of moving a Pawn along
the o-file. Not doing so breaks ICS play, as ICS use o-o and o-o-o for
castling! So an exception is now made for the o-file in the 'fxg'
case.

2011-03-10 19:27:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement yynewstr entry point in new parser

This entry point, used for parsing an ICS move list, was forgotten, and
was still an empty routine. This made XBoard crash when observing an ICS
game.

2011-03-07 23:11:00 -0800 Arun Persaud <apersaud@lbl.gov>:
fixed wrong default for polyglotDir mentioned in docs.

Thanks to Hans Aberg for reporting it.

2011-03-05 12:39:01 -0800 Arun Persaud <apersaud@lbl.gov>:
Fix "make install" on Os X10.6.6 (removed a "/")

seems like an extra "/" made "make install" unhappy

2011-03-03 21:19:05 -0800 Arun Persaud <apersaud@lbl.gov>:
removed parser.l from build process, also removed flex dependency from configure


2011-03-02 22:14:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
New parser, written in C

A new parser was written to replace the flex-generated one. Immediate
improvements are that it understand double-digit rank numbers, and Shogi
coordinates. No changes were made in the Makefile yet to reflect the
new, flexless building procedure.

2011-03-02 22:23:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bugs in FRC castling rights

When parsing a castling move in FRC when no rights existed, the parser
returned 0 (= EndOfFile) rather than ImpossibleMove. The recognition of
the absence of rights was not adapted to the new encoding NoRights in
stead of -1.

2011-03-01 23:42:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parsing bug of FRC castling

The code that was supposed to intercept castling when no rights existed
in FRC was not adapted to the new encoding for this by NoRights, rather
than -1, and furthermore returned 0 (= EndOfFile) rather than
ImpossibleMove. Not sure if the former would manifest itself in any
way, but the latter seems bad.

2011-03-01 23:32:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix two bugs in reading position diagram

When reading a game without FEN tag, a position diagram is used to set
the initial position. This calls CharToPiece() with a '.' as argument,
because that is the position-diagram way to indicate empty squares.
altered CharToPiece() over time this would be recognized as the first
undefined piece or, more recently, the first piece without nickName,
which is a white Pawn. Now it returns EmptySquare again in that case.
A second problem was that for position diagrams in braces the brace was
not in the list of ignored characters, and would cause the reading to
get out of phase, so that the side to move was not recognized.

2011-02-26 21:12:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix flipBlack option XBoard with board texture

In XBoard -flipBlack is implemented by swapping white and black pieces,
because the Shogi bitmaps from XShogi are made that way. But the mask
used to cut out the whole in the board texture to fit the piece was not
swapped, both when drawing static pieces, as well as during animation.

2011-02-25 14:38:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Improve repairing damage of arrow highlight XBoard

With line gap the highlight arrow necessitated redrawing of the entire
board, to repair damage on the grid. This interfered with flashing of
pieces, which was only done on selective redraws. In stead of forcing a
total repaint we now just redraw the grid lines.

2011-02-23 16:41:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix unintended translation in debug file

The words "first" and "second" (cps->which) were sometimes used in
context that should definitely not be translated. (e.g. the indicator
for which engine printed/got the line in the debug file.) So translation
is now deferred to all uses in popups.

2011-02-23 16:29:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix nps bug

The nps settingwas tested for being > 0 in stead of >=0, so that the
case of CPU time was not properly handled.

2011-02-24 19:06:27 +0100 Kamil Blank <caceel@gmail.com>:
Added missing fclose()

(tiny change)
Signed-off-by: Arun Persaud <apersaud@lbl.gov>

2011-02-20 16:12:19 -0800 Arun Persaud <apersaud@lbl.gov>:
release of version 4.5.1

2011-02-20 16:10:16 -0800 Arun Persaud <apersaud@lbl.gov>:
updated Changelog, NEWS, etc.

2011-02-20 20:36:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix two typos in option names in texi file

Polyglot was capitalyzed

2011-02-20 00:03:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some resource leaks

Some files were opened not closed in XBoard, when loading XIM images
(which I doubt anyone ever does) but also when copying the clipboard
(which has the potential of being done very often). There was also some
code that would not work if conditional code which is permanently
disabled would be enabled.

2011-02-17 20:17:04 -0800 Arun Persaud <apersaud@lbl.gov>:
new developer release

2011-02-17 20:14:38 -0800 Arun Persaud <apersaud@lbl.gov>:
updated Changelog, NEWS, etc.

2011-02-17 15:40:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix MSVC snprintf problem

In MSVC snprintf has to be redefined as _snprintf, and this happens
conditionally in config.c. But the latter was not #included in help.c.

2011-02-16 19:41:27 -0800 Arun Persaud <apersaud@lbl.gov>:
updated configure.ac to check for Xaw header files

check for Xaw header files when --without-Xaw3d was given. Before the test was
only done when Xaw3d was specified, but could not be found.

If Xaw3d or Xaw can't be found, print a hopefully useful error message and exit the configure script.

2011-02-16 12:03:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ICS channel 0

Channel 0 messages were not displayed in the console, because the test
for channel number considered every non-numeric or non-existent handle
in a chatbox to be zero. So the messages were diverted to a non-exsting
chatbox. Now it test first for the handle to start with a digit.

2011-02-15 19:13:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make language choice from menu persistent

Set appData.language to the chosen language file, or empty if English is
chosen, so that the choice is saved with the settings. Increase the
number of possible language choices from 5 to 20. (After all, we already
have 7 now!)

2011-02-14 11:09:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix showing of user move after adjudication

The correction of the fishy patch (removing ShowMove() from Adjudicate())
had broken the adjudication of user moves (that actually did work before
the fishy patch, because there the gobal fromX/Y and toX/Y do contain
the correct values for the move to be shown). An entered move that led
to adjudication (like a checkmate) now was not displayed at all. Adding
an extra ShowMove() after (successful) return of Adudicate() solves it.

2011-02-13 23:49:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Xiangqi King facing

The Spartan patch had broken the CheckTest for Xiangqi, because cl.check
was cleared after the King-facing test, rather than before it.

2011-02-13 22:30:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix variant janus size prefix

The default board size of Janus Chess was not consistently taken to be
10x8, which resulted the name to be sent as 10x8+0_janus to the engine.

2011-02-13 12:18:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Alfil bug

The test for Alfil (suppressing single steps on the Elephant) contained
a wrong logical operator, so that it could never be active. It also
failed to include Xiangqi as variant with traditional Alfil. This led to
one-step moves of the Elephant in these variants, and false check or
unreliable mate detections.

Fix move of Xiangqi Elephant

2011-02-09 23:19:09 -0800 Arun Persaud <apersaud@lbl.gov>:
fixed configure script to correctly detect Xaw3d library


2011-02-06 22:07:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix unmarked translation

The file-browser wndowtitle in WB was not marked for translation.

2011-02-04 10:27:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put warning in HTML help

A warning is added that the help file is not yet updated for the new
menu organzation.

2011-02-04 10:22:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix 64-bit Windows compilability

The API interface for Set/GetWindowLong has been changed for 64-bit
Windows, both in the name of the call as in the arguments.

2011-02-04 10:21:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix MSVC compilability

Both the makefile and the project file had to be adapted for the new
source file history.c, and the new location of parser.c.

2011-02-05 10:11:58 -0800 Arun Persaud <apersaud@lbl.gov>:
added missing #includes and missing prototypes to filebrowser

thanks to Max Funk for reporting. Now using HAVE_DIRENT_H.

Also cleaned up missing prototypes and some casts.

2011-02-05 09:21:48 -0800 Arun Persaud <apersaud@lbl.gov>:
added missing header file for sprintf


2011-02-03 08:50:50 -0800 Arun Persaud <apersaud@lbl.gov>:
added history.c to the tar-ball. Needed for Winboard


2011-01-31 23:03:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix deselection of greyed-out variant button (WB)

In Windows a disabled radiobutton refuses to deselect when you select
another (enabled) button from the group. There are then 2 buttons
checked, and the code to readout the buttons took the first one. Now it
is changed to take the first enabled one.

2011-02-03 08:28:15 -0800 Arun Persaud <apersaud@lbl.gov>:
Revert "Implement -reset option feature in WinBoard"

This reverts commit efecf86cd9b54072c6a2f38d62f1d775e69c545b.

picked the wrong commit from HGM's git tree.

2011-02-01 22:01:12 -0800 Arun Persaud <apersaud@lbl.gov>:
add DIFFSTAT and SHORTLOG to tar-ball

was only in the v4.4.x branch and not in master

2011-01-30 09:52:15 -0800 Arun Persaud <arun@nubati.net>:
release of version 4.5.0

2011-02-01 07:41:04 -0800 Arun Persaud <apersaud@lbl.gov>:
changed size of borders around squares from 0 to 1 as a default

this way highlights show up again.

2011-01-29 20:11:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -reset option feature in WinBoard

2011-01-30 10:12:08 -0800 Arun Persaud <arun@nubati.net>:
updated Changelog, NEWS, etc.

2011-01-30 09:56:39 -0800 Arun Persaud <arun@nubati.net>:
updated parser.c form parser.l

2011-01-29 19:59:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Clean up fishy patch

None of the ShowMove() calls in Adjudicate() was working, because when
this code was taken out of HandleMachineMove() it was taken outside the
scope of the local fromX, fromY etc. there, so that it started using the
global variables from the mouse driver. As these usually contain -1,
this suppressed move animation and highlighting. All these calls have
now been removed, and ShowMove() is called after a positive return (from
HandleMachineMove(), so within the correct scope).
This improves the previous fix, which led to some flicker, because the
erroneous ShowMove() calls did draw the new board (instantly), wich in
the fishy patch was then immediately overwritten by the old position, to
start animation. This drawing of the old position is now no longer
needed either.

2011-01-29 13:36:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update RTF file

The RTF file is adapted to the new menu organization.

2011-01-29 13:31:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file

The highlight-with-arrow and one-click-move menu items are described.
The highlightMoveWithArrow and variations option are described.
Load Next /Previous Position descriptions are moved to File menu.
The description for entering variations is updated (using Shift key).
The remark that editing holdings is impossible is removed.
Spartan Chess is added to the list of supported variants.

2011-01-28 18:35:48 -0800 Arun Persaud <arun@nubati.net>:
Updated copyright notice to 2011


2011-01-24 15:01:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Greyout unavailable variants in New Variant dialog

The WB radio-button code is refactored to be driven from a list (which
must be kept in phase with the variant definitions in common.h!). It now
also checks if the first engine supports the variant, and greys out the
item if it isn't. XB now also makes this check. Slight re-ordering of
10x8 variants there, to have the more common on top.
If no radio button is selected, keep old variant even on OK.

2011-01-19 11:10:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Move clock-click code to back-end

Some duplicated (or should-be-duplicated) code for handling clicks on
the clocks from the XBoard and WinBoard front-ends was merged and
relocated to the back-end, so it can be shared. Noticeable was that
XBoard allowed turn change in ICS examine mode by clock clicking,
while WinBoard did not. WB, on the other hand, allowed clock adjustment.

2011-01-16 23:15:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix legality testing of drop moves

Drops of noexistent pieces (i.e. with a piece indicator letter that is
not corresponding to any defined piece) are now parsed as
ImpossibleMove, rather than IllegalMove, so they are also rejected with
legality testing off.

2011-01-17 00:28:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WB Sound Options greyout and remove some grossness

The sound and ICS Options menu items in WB were accessed 'by position',
with fixed defined positions (always messing up any reorganization of
the menus when you forgot to redefine the position constants in
winboard.h). And not only that, but for completely mysterious reasons,
the greying of the sound item greyed out the game-list options (above
it) in stead when it was defined as 9, and the ICS options (below it)
when it was 10 !!!. Now they are addressed 'by command' (and the
position definitions are removed), which fixes things.

2011-01-25 21:35:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Re-instate load next/prev position menu items

As positions do not use something similar to the game list, these are
still useful. For some reason I could not get Alt+Shift+PgUp/Dn to work,
so I settled for Shift+PgUp/Dn.

2011-01-16 21:56:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove superfluous copying of machine move

There was explicit code in HandleMachineMove() and FinishMove() to put
the move in the moveList, while MakeMove() already does this later in a
more reliable way by calling CoordsToComputerAlgebraic(). This
superfluous code is removed now.

2011-01-16 21:44:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix spurious mate test in Edit Game mode

When entering a game, it was terminated by the mate test even when
legality checking was switched off (so that mates might not be reliably
recognized). The mate test is now made dependent on legality testing.

2011-01-16 21:37:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix type-in of drop moves

Drop moves entered through the move type-in already come in the (piece,
DROP_RANK, x, y) format, rather than having a holdings from square. This
caused UserMoveEvent to consider them illegal when testing if the
piecewas of the side to move, and when this was fixed, to recognize
Knight drops as coming from between board and holdings (and thus
illegal).

2011-01-16 21:31:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix move type-in truncating game

Starting a new variation by keeping Shift pressed did not work when
OK'ing the move type-in, because there was some code ther that truncated
the game. While this could be safely left to UserMoveEvent, which it
calls, as the situation is not different from entering moves through the
mouse.

2011-01-11 16:12:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix legality testing for promotions

Turns out WB has never tested for the legality of the chosen promotion
piece, and would allow promotion to King innorml chess even with
legality testing on (when entered through the keyboard)! Now strict
testing is done, outlawing Pawns and Kings (or Unicorns in
Knightmate). Only in suicide / giveaway Kings are stillallowed, and in
spartan a black King if you do not have two yet.(And promotion
toLnce,representing Hoplite Pawn,is forbidden there.)

2011-01-11 11:34:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reset 50-move counter on all pawn-like Lance moves

Now the Lance represents a Pawn-like piece not only in variant fairy,
but anywhere outside Shogi / Superchess, its moves should also reset the
50-move counter in those cases. Especially important for Spartan Chess,
where the Lance actually participates.

2011-01-11 11:18:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix logo repainting

The logos were not repainted when the main window was moved out of the
display area, and then back into view. The reason for this is
unknown, as the PaintProc calls HDCDrawPosition, which was calling
DrawLogoOnDC. But the logos were not drawn, (or on an expose event
sometimes half drawn!) despite the fact that the rest of the board was.
The drawing of logos now has been decoupled from drawing the board,
and has been moved to a separate routine DisplayLogos() (in analogy to
DisplayBothClocks()). This is cleaner anyway, as the logos usually do
not change when the board does. So apart from in PaintProc, it has only
to be called when the mode changes (ModeHighlight()) or on swap clocks.
This seems to fix the problem.

2011-01-10 20:36:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix time in PGN info

Saving of the thinking time in the PGN was broken by the patch that
removed the race condition in the clock switching, because that moved
the incrementing of forwardMostMove to behind the code that used fmm to
index pvInfoList. As a result the time was stored in the slot for the
opponent's previous move. The value is corrected now.

2011-01-09 00:24:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fishy fix

The move that delivers checkmate in two-machines mode is not animated
when adjudication is on. There then also is no highlighting of this move
Redrawing the board and calling ShowMove fixes it. Which is rather
strange, because ShowMove was already called in Adjudicate (when it
adjudicates), before GameEnds. For reasons that are not understood this
call to ShowMove() (which calls AnimateMove()) is not effective.

2011-01-09 00:21:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reset machine colors after match

The colors each engine playse are set to the originals after the last
match game, so that a new match or two-machines game will not have
swapped colors.

2011-01-09 00:15:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reset win/loss counters before match

The win/loss counters were not reset, because the code counted on them
being initialized to zero. But with matches startable from the menu,
this is no longer true after the first match.

2011-01-09 00:08:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Show move that causes false illegal-move claim

Without claim testing XBoard takes back moves that an engine objects to.
But when the engine is forfeited for a false claim, the move should of
course stay. So the claim test is moved to before the take-back.

2011-01-09 00:05:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Spartan promotion to King

Promotions toKing were refused when in check, because XBoard thought
they would not resolve the check. Now the promotion is actually
performed before doing the check test.

2011-01-05 17:31:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WB font-based piece rendering on variant switch

The piece bitmaps were only created from the font characters when the
number of ranks or files changed, because it was done in
InitDrawingSizes(). This caused missing pieces when changing to a
variant on the same board that used other pieces. Now InitDrawingSizes()
is called for any variant switch.

2011-01-05 17:25:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix right-alignment pproblem in WB ICS window

Use of Ctrl-R to summon the context menu still trickled through to the
default text-edit window routine, and caused right-alignment. This was
because the text-edit reacts on keyDown rather than the character event.
KeyDown of R with Ctrl pressed is now also intercepted and ignored.

2011-01-03 13:04:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix chat window title

The title was using the engine name, rather than the ICS handle, which
did not work outside zippy mode. Now it only uses the engine name when
no ICS handle is known. The titleis now also subjected to translation.

2011-01-03 12:50:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix spurious reading of old game title by JAWS

Because focus was switched to the board window before loading the
selected game from the game list, the titlebar still contained the
name of the previously loaded game, which would spontaneously be read by
JAWS. Now the focus switch is done after loading the new game (which
updates the window title.)

2011-01-03 12:37:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add variant Spartan Chess

In the WB menu it takes the place of the defunct Twilight Chess item.
The setup routine needed patching for setting up Lances in stead of
Pawns for black, the check test had to be adapted to handle duple check,
Alfil and Dragon moves were fine tuned in this variant to make the exact
moves, and the promotion popup was adapted to show King and interpret
Rook and Bishop as Dragon and Alfil for black. The Alfil now always
moves as Modern Elephant except in Shatranj and Courier.

2011-01-03 12:23:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix mate test

Due to a bug in logical operators drops were tried for mate evasions
even in non-drop games, which broke it in Superchess and Great Shatranj,
and wasted CPU time in other variants.

2011-01-05 17:19:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix promotion suffixon disambiguated piece moves

The promotion suffixon piecemoves that needed disambiguation was not
passedon to the back-end in most variants. Now it is passed on in any
variant.

2011-01-03 12:08:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix promotion of Pawn-like Lance

In variants where the Lance is used to represent an unorthodox Pawn, it
must promote when it reaches last rank. With legality testing on,
however, the promoChar was ignored in ApplyMove in this case. The
promotion suffix also was not appended in SAN moves.

2011-01-03 11:57:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WB promotion popup

The promotion popup did not work properly in variants where black did
not use the pieces that white wanted to promote to. Now the character
for the selected piece is taken from the piece encodings of the side to
move. In addition, selection of undefined pieces is ignored.

2011-01-02 14:17:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in parsing variations

The moves parsed from a variation were stored in the moveList without
appended linefeed. This caused errors if the variation extended to
beyond the end of the main line,into a hitherto unused part of the move
list, as the linefeed was then not there from the overwritten move. As a
result moves sent to the engine were concatenated, triggering
illegal-move messages and bringing the engine out of phase.

2011-01-02 14:11:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Define Ctrl-R as right-click in WB Comment dialog

To allow JAWS users to load a variation through the keyboard, Ctrl-R is
equated to a right click at the position of the caret or selection.

2011-01-02 14:10:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow starting a variation from keyboard entry in WB-JAWS

The status of the shift key is remembered when space is pressed to
select a board square.

2011-01-02 14:06:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Disable some accelerators in JAWS version

Single-key accelerators that could result in irreversible data loss are
undesirable, because the risk of accidentally pushing them is too large.
So the non-Alt duplicates of next/previous game/position are disabled,
as are Home and End for Revert and Truncate Game. JAWS users will have
to rely on the menus for those functions.

2011-01-02 13:59:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Group engine-output memos with engine names

The engine names are now defined just before the text edits, so that
JAWS 11 will read the engine name when the memo for the output of that
engine is selected. (JAWS 10 will still read the NPS, as it reads in
geometrical order.)

2011-01-02 13:55:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put nr CPU earlier in tab cycle of WB Common Engine dialog

By defining the max CPU control after hash size, the tabbing steps
through the controls in geometrical (and logical) order, rather than
having the max CPU in between the book controls.

2010-12-29 23:47:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update WB language template file


2010-12-29 23:41:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Subject JAWS menu and spoken strings to translation


2010-12-29 23:37:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let JAWS SayString buffer full sentence

The meaning of the flag parameter of SayString was changed to indicate
buffering of flushing. On flushing a message of a single space is used
as a kludge to indicate interruptability. Calls to force flushing where
added everywhere.

2010-12-29 23:32:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt JAWS menu to new menu organization

The menus did not correspondto the texts after translation of the main
menu bar.

2010-12-29 23:18:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Translate menus after creation of JAWS menu


2010-12-29 23:07:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix ICS context menu for JAWS

The Ctrl+R key did select text at the mouse pointer in stead of at the
curser, now that up and down-click were combined.

2010-12-29 23:04:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reorganize order of WB New Variant dialog controls

The definitions are re-ordered so that at least JAWS 11 will speak the
board-size elements properly.

2010-12-29 22:57:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix order of elements in WB time-control dialog

Someleading texts were defined after the text edit they referred to,so
that JAWS 11 associated them to the wrong one. A tab stop was added to
the time-odds label, to make JAWS speak it.

2010-12-29 22:51:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change tabbing order in WB sounds dialog

The 'Play' button now gets focus immediately after the controls for
selecting the sound, rather than at the end of the dialog (after OK).

2010-12-29 22:47:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove tab stops on first radio button of WB dialogs

The New Variant and Board dialogs had a tab stop on the first radio
button,so that tabbing toit would automatically select variant
normal or size tiny. Now it tabs straight to the current size, without
changing anything. (Important for JAWS users.)

2010-12-29 22:45:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put OK/Cancel last in tab cycle of some WB dialogs


2010-12-29 22:29:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix duplicate menu character for Edit Comment

Edit Comment did have the same shortcut character as Copy Game. Changed
to m now.

2010-12-11 11:18:56 -0800 Arun Persaud <arun@nubati.net>:
fixed automake process: xboard.conf couldn't be generated if $srcdir was not the current directory


2010-12-11 09:50:48 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2010-12-05 18:01:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Subject WB context menus to translation

The innerloopof the menu translation has been made into a separate
routine. This now uses GetMenuItemInfo() in stead of ModifyMenu() to
better preserve menu breaks. Menu #10 is used for context menus (from
the routine that pops them up), and for this number the orignal texts
are not saved in menuText. (This is not needed, because the menu is
created everytime anew from the resource data.)

2010-12-05 15:00:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update translation template

Add the new menu items; add some notes.

2010-12-05 14:04:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Resize buttons in WB engine-settings dialog

The OK and cancel buttons were to narrow for most translations, and were
a non-standard order as well.

2010-12-05 13:56:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add one-click move control to WB general-options dialog

This is a duplicate of the one in the ICS options dialog, but the latter
is inaccessible in non-ICS modes, and one-click move is now
alsoavailable in engine mode.

2010-12-05 13:51:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Create space in dialogs for translation

The translated texts often did not fit, because controls were defined
needlessly small (when there was empty space between them). In these
cases they have been enlarged to consume all available space. Some
dialogs are made wider.

2010-12-05 13:47:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add handle for translator acknowledgement

An empty string is printed in the about box, which can be 'translated'
to a message acknowledging the translator.

2010-12-05 13:43:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use default logo for user

When no logo with the name of the current user is found, use dummy.bmp.

2010-12-05 15:46:34 -0800 Arun Persaud <arun@nubati.net>:
added rlwrap tip to FAQ


2010-12-03 23:24:06 -0800 Arun Persaud <arun@nubati.net>:
replace hard coded paths with path from configure script

use $datadir and subdirectories to store some data files. Also make files in xboard.conf use correct path.

2010-12-03 23:02:09 -0800 Arun Persaud <arun@nubati.net>:
fixed a typo in the configure script output


2010-12-03 21:46:00 -0800 Arun Persaud <arun@nubati.net>:
added a desktop file

taken from the openSUSE project

2010-12-03 22:44:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Edit Game/Position checkmarking in WinBoard

Because the entries in Edit and Mode menu were pure duplicats, the
entries in the wrong menu (Edit) were checkmarked while active. By
defining different IDs for those in the Edit menu, those in the Mode
menu are checkmarked again.

2010-12-03 10:07:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add XBoard menu items for arrow highlight and one-click move

These items are put in the options menu; the 'Old Save Style' item is
removed.

2010-12-03 09:27:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Provide menus for editing WinBoard engine and server lists

The Edit Tags dialog in the WB front-end is adapted to act as a general
edit for string variables, by giving it an extra parameter to indicate
where to store the edited result. Menu items are added to invoke this
dialog for editing the /first, /secondChessProgramNames and /icsNames
options. This solves the problem that people would have to edit an ini
file that they can no longer locate (because the %APPDATA% folder has
different names and locations in the various Windows versions, and is
often a hidden folder on top of that).
There is a slight memory leak here, as the memory for the previous
value of the altered string option is not freed.

2010-12-02 16:18:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure arrow highlighting as default in XBoard

Set -highlightMoveWithArrow true in the xboard.conf file, and specify a
lineGap of 0 to make that efficient (and the wood theme even nicer).

2010-12-02 15:56:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Port highlighting with arrow to XBoard

Unfortuntely this duplicates a fair amount of code in the front end.
Removing the arrow is done by a total repaint if there is a non-zero
lineGap, because the clever algorithm for selective redrawing (based
on damage) that XBoard uses does not repair damage to the grid lines.
For lineGap=0, however, (for which the arrow is mainly intended) the
damage mechanism is used, and the damaged squares are determined by
tracing out the arrow in 64 steps, and marking all squares in the
neighborhood as damaged.

2010-12-02 15:55:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Strip CR from xboard.c


2010-12-02 14:21:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let user decide if he wants highlights in blindfold mode

Remove the automaticsuppression ofhighlighting.

2010-12-02 00:24:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix fag-fell marker with logos on

The flag-fell marker "(!)" that is displayed in the clock in WinBoard in
two-machines mode was printed twice when the clock was split over two
lines (as with logos on).

2010-12-01 18:57:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also exempt variant seirawan from eval-scale doubling

It is not really a drop game, so a scale from -7 to 7 in the eval graph
is good enough (like variants great and super).

2010-12-01 10:33:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure EGTB cache size in adapterCommand

The hash size, nr of CPUs and EGTB path are transferred through the WB
protocol interface commands memory, cores and egtpath. But there is no
WB command for detailing the EGTB cache size. So the value of the
command-line option -defaultCacheSizeEGTB has to be sent to Polyglot
through its startup command to make it known to UCI engines.

2010-11-30 22:46:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Move Hint and Book items to Engine menu in XBoard


2010-11-30 22:17:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Correct the key bindings fo view menu in texi file

The mentioned bindings for Game List and Eval Graph were wrong.

2010-11-30 21:25:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix sub-variation display with negative score

The test if the displayed score was the pvInfo score failed for negative
scores, because floats are truncated towards zero. So the previous fix
of spurious score/depth info was not working when the score was
negative.

2010-11-30 18:27:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Peel PV out of comment

Arena stores engine PVs not in variation format, but within both braces
and parentheses, before the score/depth info. This caused XBoard to
overlook the score/depth info, (frustrating, e.g., the eval graph),
while the PV would not be accessible for walking it as a variation.
The routine that extracts the score/depth from a comment now has
been made more clever, to recognize a leadin PV in the comment, and then
place it in front of the comment as variation (by moving the opening
brace to behind it). For some reason it does not work if the PV and
score/depth were separated by a newline, but this happens quite rarely.

2010-11-30 18:23:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow line-straddling result comments

Some GUIs (in particular Arena) do not have the decency to keep the
result comment on a single line. In this case the parser rules would not
recognize it, and treat it as a normal comment, plus an undetailed PGN
result. The rules are now fixed to allow linefeeds in the comment, and
between comment and PGN result. To correctly process the comment further
(e.g. in game-list lines) the linefeeds are replaced by spaces in the
back-end routines that do use the result comment.

2010-11-30 12:22:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Write key bindings in XBoard menus

Unfortunately tabs are not understood in menu texts, so fine-tuning
through spaces is necessary to get some sort of ragged alignment.

2010-11-29 18:01:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure XBoard to use wood board texture by default

The texture pixmaps are sought in /usr/share/games/xboard, with names
wood_l.pm and wood_d.xpm. I guess the " make install" should be adapted
to put them there. XBoard is resitent to non-existence of the files,
btw. It simply ignores the arguments in that case.

2010-11-29 17:48:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Configure -inc as volatile option in XBoard

XBoard users are not used to options being persistent, and thus have
many scripts assuming the timeIncrement is -1 when they don't specify it
on the command line, and want to specify -mps. But a persistent -inc of
0 fom a preious session would then force their -mps to zero, causing
big-time confusion.

2010-11-29 17:36:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make WinBoard clocks translation-proof

With logos on, the splitting of the clock over two lines assumed the
lengths of the words "white" and "black" would always be 5. Used strlen.

2010-11-29 14:57:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Improve drawing of highlight arrow

A diagonal arrow sometimes had a notch in the shaft because of
independent rounding of the starting and ending point coordinates.
Furthermore the width of the shaft was unnecessary variable(as a
function of direction) because half the width was rounded and then used
twice. Now rounding of end-points is always done towards a fixed grid
of square centers, which keeps diagonals purely diagonal, and one side
of the shaft is drawn relative to the other side, after the
position of the latter has been rounded, so any rounding error affects
the shaft width only once.

2010-11-29 10:25:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Alter descriptionof Analyze File menu item

This menu item has been given a new function, so a new description was
needed.

2010-11-29 10:15:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add description of Game List Options in texi file


2010-11-29 09:58:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update texi file for new menu organization

The descriptions are shuffled around and organized into sections
corresponding to the new main menus. Where necessary the name of the
items was changed to their new names. The items removed from the File
menu (the next/previous/same stuff) are nowmoved to the section "other
shortcut keys", as the key bindings for some of them are still active.

2010-11-29 09:06:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update info on key bindings in texi file

The texi file was still listing the old XBoard key bindings. Where
necessary this is now changed to the new (WinBoard) bindings, and all
the new bindings were added.

2010-11-29 09:04:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add XBoard key bindings for Revert and Truncate

Use Home key as accelerator for Revert, End for Truncate, as in WinBoard.

2010-11-28 23:12:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Divorce the Edit and Show Tags/Comment menu items

In WinBoard the items in the Edit and View menu for Tags and Comment now
have different IDs, so they can be independently controlled. Only the
items in the View menu are check-marked. The items still do the same.

2010-11-28 23:08:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Alter WinBoard menu text

The texts are slightly adapted, mostly by choosing more convenient
tabbing characters for the new menu organization. The translation
template is updated accordingly.

2010-11-28 20:24:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let move-history window scroll to bottom after adding move

By activating the scrollbar of the viewport through XtCallActionProc
the move-history window is scrolled to the bottom.

2010-11-27 14:38:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Shogi promotion popup

The texts were adapted to shogi by printing new text items over the
Queen and Knight buttons, but these did not alwys cover it. Now the text
on the buttons is changed as it should be. Also the window title is
adapted.

2010-11-26 11:22:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Apply gettext macros to menu texts

Now texts and references are separated, the texts in the tables can be
decorated with the N_() macro, so that the _() macro no longer has to be
applied when they are used. (This makes the texts appear in the .po
files.)

2010-11-26 11:12:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt some XBoard menu texts

The "Show" prefix is removed from the "View" menu items, as this seems
implied. An ellipsis is added to the Engine #N Settings items, which
could not be there before, because periods in a menu name would break
any reference to it. For some other names the ellipsis was deleted.
(These were not refered to, but who knows what we will do in the future.)

2010-11-26 11:03:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Separate menu text from menu name in XBoard

The text string in the menu-definition tables was used both for the menu
text, as well as for referencing the items from the code (for enabing or
checkmarking). Now these can be defined separately, so that altering the
menu texts is possible without breaing any references to the item.
(Moving them to another menu would still break XBoard, though!)
Currently the texts and names are still the same.

2010-11-26 10:48:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Bugfix XBoard menu translation

The gettext macro N_() was applied to the menu definition tables, but
this would break any translation, as these items are both used as menu
texts as well as reference for enabling and checkmarking. The routines
that create the menus already apply _() dynamically to these items when
they are used as menu texts.

2010-11-26 10:10:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Restrict drops in variant seirawan to back rank

Drops aren't really llowed at all in Seirawan Ches, but there exists an
engine that supports a variant where drops on the back-rank are allowed.

2010-11-25 19:44:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let Analyze File annotate the loaded game

By not suppressing the auto-play loop in AnalyzeFle mode, we step
through the game while the engine is analyzing, and store the PV info
that the engine produces, as well as the full PV (as variation comment)
with each move.

2010-11-25 19:41:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Revive Analyze File menu item in WB

We will keep this menu after all, becase it can be given a new meaning.

2010-11-25 19:31:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix spurious scores in comments

The comment popup is also used to display engine PV info, but when the
contents of the window is written back when we select a variation,
it was treated as a real comment. This is fixed now by checing in
ReplaceComment() if the comment starts with the PV info, and if so,
ignore the latter. This solves the problem, but I guess the real bug is
that selecting a variation tries to write the comment even if it did not
change.

2010-11-25 19:26:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Display error for wrong use of Machine Match


2010-11-24 13:30:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reorganize XBoard menus


2010-11-24 11:02:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Reorganize WinBoard menus

New main menus Edit, View and Engine are added; the step menu
disappears. The menu items are redistributed over the new menus.
Sometimes duplicates are created. No adaptation of short-cut characters
as made yet (as this affects translation).

2010-11-20 20:20:27 -0800 Arun Persaud <arun@nubati.net>:
removed trailing whitespaces from NEWS


2010-11-20 20:19:30 -0800 Arun Persaud <arun@nubati.net>:
merged readme_HGM.txt into the NEWS file

seems like a better place for the release notes, although those releases where not officially part of GNU, but the NEWS file already covers similar releases, so it might as well cover all of them.

2010-11-20 18:24:19 -0800 Arun Persaud <arun@nubati.net>:
typo in date of developer release

but will leave the tagged version as it is, since it's still a unique version number

2010-11-20 18:11:01 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2010-11-20 18:12:41 -0800 Arun Persaud <arun@nubati.net>:
added latest version of parser.c


2010-11-20 18:05:56 -0800 Arun Persaud <arun@nubati.net>:
updated Changelog, etc for developer release


2010-11-20 16:22:00 -0800 Arun Persaud <arun@nubati.net>:
Revert "adding gnu-readline support"

This reverts commit c95ef32a700132a134f335f857ca6f1b6f3c169f.

Conflicts:
	backend.c

better to use the (relatively) new ICS input box then add readline support.

2010-11-20 16:19:32 -0800 Arun Persaud <arun@nubati.net>:
Revert "bugfix: fixed readline support with icslogon option"

This reverts commit b9cdd7422ad1037d7376bce4f8f2db2669396e83.

Conflicts:
	backend.c

better to use the (relatively) new ICS input box then add readline support.

2010-11-19 23:10:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make Hoplite moves irreversible in Spartan Chess

Consider Lance moves in variant Fairy (where the Lance represents the
Spartan Hoplite Pawn) as Pawn moves, so they reset the 50-move counter.

2010-11-19 21:09:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Give Lance moves of Amazon in variant super

Now that Lance is no longer a wild-card piece the moves of Amazon must
be programmed explicitly, to keep the possibbilty to play Superchess
with legality testing on.

2010-11-19 18:32:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change representation of Bede in variant fairy initial position

This used to be Lance, but the promoted Bishop (Dragon Horse)
is more applicable. Especially now that Lance is supposed to move like a
Berolina Pawn.

2010-11-19 18:28:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make yyskipmoves also suppress examining of drop moves

Not sure if this does any good, but it seemed illogical that this would
happen in all other moves, but not drops.

2010-11-19 18:23:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Define moves for Dragon Horse outside Shogi

Let it move like Bishop + Wazir + Dababba.

2010-11-17 13:40:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix safety crash when appending comments

The length limit imposed on safeStrCpy was one too short when copying
an existing comment to the space allocated for the longer (concatenated)
one. It allowed no space for the terminating '\0'.

2010-11-17 13:38:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix safeStrCpy

The test for when to terminate a non-fiting string was one off, and the
debug message was written stdoutin stead of debugFP.

2010-11-16 12:40:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix default holdings size for variant seirawan

The holdings for 7 pieces werealways considered an overrule, so that the
variant name was prefixed with "8x8+7_".

2010-11-15 11:36:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix home-dir crash

When confronted with a path name starting with ~ and not containing a /
XBoard would segfault.

2010-11-14 21:45:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix one-click moving on up-click

(First) up-clicks were not always ignored: in Edit-Game mode with
one-click moving enabled this could lead to a capture being made on
the down-click, and the recapture on the correspoding up-click.
This has now been corrected, and only the down-click of a first click
can lead to selecting a piece or a one-click move.

2010-11-15 18:15:40 -0800 Arun Persaud <arun@nubati.net>:
fixed buffer size for snprintf


2010-11-13 23:04:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Accept Seirawan-style gating suffixes

The parser rules were extended to accept / as an equivalent of = in
promotion-suffix notation (e.g. Nf3/H in stead of Nf3=H).

2010-11-13 22:55:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use Falcon and Alfil as built-ins for Seirawan chess

Where available (size 49 and 72) we use Falcon for Archbishop and Alfil
for Chancelor, to better conform to the Seirawan names Hawk and Elephant.

2010-11-13 20:02:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement entering gating moves with mouse

A move with a back-rank piece that starts when a piece in the holdings
is selected will be interpreted as a gating move in variant seirawan.
The front-end uses a 'gatingPiece' selected this way todisplay it on the
from square during animate dragging.

2010-11-13 18:56:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement variant seirawan

Set upthe position, including Hawk and Elephant in holdings, in
InitPostion(). Suppress putting captured pieces in holding. Let
promoChar indicate gating in ApplyMove(). Remove gated pieces from
the holdings there. Let GenLegal() generate RxK-type castlings to act as
base for gating on Rook square. Gatings are tested for legality
based on the holdings content and whether they occur on the back
rank. Disambiguate() also tests this. Make sure the gated pieces are
printed as move suffixes in CoordsToAlgebraic().

2010-11-13 18:42:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add -variant seirawan to menu


2010-11-13 22:52:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix acceptance of null-move with legality testing off

A second click on the same piece was interpreted as a to-square rather
than deselection of the piece.

2010-11-13 22:49:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix one-click bug

Disambiguate was imagining captures, so an only capture by double
clicking your own piece did not always work.

2010-11-13 20:08:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix mouse-driver buglet

The highlights were not cleared on moves that went vertically off board.

2010-11-12 17:17:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
List some undocumented commands as compliant

The engine->GUI commands setboard and setup are now always printed in
the debug file as well.

2010-11-12 17:05:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
List Hint with compliant commands

This command was omitted, so that in some -engineDebugOutput modes it
would not appear in the debug file.

2010-11-12 17:02:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Restrict use of escape expansion

Only expand escape sequences like \n and \t in telluser(error) comamnds
that ask for it by preficing the messages by double backslash. Otherwise
backward copatiblity is too severely broken for messages that display
DOS-style filenames.

2010-11-12 13:56:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make safeStrCpy safe

SafeStrCpy was causing a lot of out-of-bound write accesses, as it was
always writing the character at the length limit of the destination.
Now no memory is accessed that is is not needed to hold the copy.

2010-11-07 21:37:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow clicked name internal to the icsMenu command string

A command in the /icsMenu that was specified to contain the selected
text or clicked word always appended this word at the end. Now the user
can also configure it to appear in the middle, by putting a %s in the
command string where he wants it to appear.

2010-11-07 21:33:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let Engine #2 Settings start second engine

If the second engine is not yet running, it would be impossible to use
the settings dialog for it, as the features have not been received and
the dialog will be empty. So the user could not adjust the engine
parameters before starting a match. Using this menu now automatically
starts the engine, and delays the appearence of the popup untill the
features are received, using a similar mechanism as in
TwoMachinesEventIfReady().

2010-11-01 19:40:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Newly lexed parser.c


2010-11-06 19:55:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in parsing illegal Pawn captures

When a pawn move of type exf5 was illegal, the parser made an attempt to
interpret it as e.p. capture of f5. This, however, messed up the move,
so that it was now permanently mistaken for e5xf6. Even in cases with
legality testing off, where you would want the original move to be
accepted despite the fact that it was illegal.

2010-11-06 19:49:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Keep last PV while clearing engine-output display

When ponder is on, the display is cleared immediately when the last line
of thinking output appears by the appearing ponder output. So you would
never get the chance to see it. This line is now re-written after
clearing, so it appears at the bottom of the output for the next search.

2010-11-06 19:45:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Give Lance moves of Berolina Pawn

In stead of using it as a wildcard piece, the Lance gets the moves of
the Berolina Pawn (straight capture, diagonal move). The initial double
osh can be a ump, though. (So it is really a Hoplite Pawn from Spartan
Chess.)

2010-11-06 19:42:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use SAN even on illegal moves

If there is only one piece of type T, moves like Ta1 or Txa1 are never
ambiguous, so adding the from square is just cumbersome.

2010-11-06 19:34:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use normal SAN for wildcard pieces

SAN often can also be used with pieces we don't know the moves of, e.g.
if there is only one of that type. We just always get rank or file
disambiguators if there are more (even when they might be unnecessary).

2010-11-06 14:52:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some warnings

Unused variables were removed from parser.l

2010-11-06 14:43:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow arbitrary nesting of sub-variations in PGN input

The parsing of subvariations is moved out of the state-machine parsing,
to allow arbitrary nesting. In stead of the entire sub-variation being
parsed by lex as Comment, it now returns Open and Close for the
corresponding parentheses, which are then handled in a wrapper routine
for yylex(): Myylex(). Problem was that yy_text is supposed to return
the entire parsed text of the returned symbol, which thus has to be
collected. To make this possible, yylex has to return everything that it
parses, (even white space!), and a symbol "Nothing" was added to return
in parsing rules that before just ate away irrelevant text without
returning anything.

2010-11-06 21:48:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement setup (engine-GUI) command

This allows the frst engine (when legality testing is off) to overrule
the default opening position, in reply to the variant command. Syntax is
"setup (PIECE_TO_CHAR_TABLE) FEN_STRING"
where the FEN string is interpreted in the context of the given
pieceToCharTable (which is optional, and only delimeted by parethesis if
it is present).
Sendng the position to the second engine is delayed until the first
engine has responded to the ping after the new-game sequence, to make
sure it gets the chance to alter the position before it is sent to the
second engine. This feature is useful for playing variants that WinBoard
does not even know the opening positon for, and can be used even if they
are shuffle variants.

2010-11-06 14:19:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Restrict use of a2a3 kludge

The kudge to send "a2a3" in stead of "black" to get black to move is
fatally flawed in varants that have no Pawn on a2. So in that case we
revert to use of the deprecated "black" command.

2010-11-02 13:06:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remember values set by -firstOptions, -secondOptions

When an engine announces its option features, and the option name
matches that of a setting given in -first/secondOptions, the engine is
sent hte specified value, but this value was not remembered as current
value (but the latter  was left at the engine-announced default),
leading to inconsistent behavior in the Engine #N Settings dialog.

2010-11-01 19:26:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make test for valid promotion piece color-dependent

This is needed to make it work in variants where white and black have
different armies; quite likely white will promote to pieces that do not
exist in the black army, so we really have to make sure we test if the
white (upper-case) piece exists in this case.

2010-11-01 19:23:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove validity test on promochar from parser

The backend routines Disambiguate() and LegalityTest() will catch
invalid promotions, so no need to do it here.

2010-10-31 23:37:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add the actual size-33 Shogi bitmaps

These were forgotten in the original commit that fixed the .rc file.

2010-10-31 13:20:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Delete some stale promotion code

The correction of the promotion piece to Ferz in Shatran-like variants
in ApplyMove() was no longer needed, as the new promotion code already
does this in the move parser.

2010-10-31 13:08:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Augment moves of some fairy pieces

To get better disambiguation in variants that have to be played with
legality testing off, the Elephant is given also one-step moves (making
it a so-called Modern Elephant) in -variant fairy and great. The Dragon
King (Crowned Rook), which had no moves defined for it outside Shogi at
all, has been given Rook moves plus an orthogonal 2-jump, so that it
can get SAN moves when used as Dababba or Short Rook. (Illegal moves
currently aways force long algebraic notation...)

2010-11-08 22:57:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Bugfix safeStrCpy patch, WinBoard

The use of sizeof on pointers was detected through the same method as
the previous patches, this time while compiling WinBoard. A typo in
jaws.c was fixed as well.

2010-11-08 23:03:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Bugfix for safeStrCpy patch for XBoard

By a trick (temporarily redefining safeStrCpy in common.h as
((char*) (a=1/(4-3rdArgument))) ) a compile-time warning (division by 0)
could be generated for every occurrence where the size argument was equal
to 4, i.e. where the 1st argument was likely a pointer rather than an
array. These cases are now fixed. The file xoptions.c, which is the
only ne that does not #include common.h had to be fixed by making
the #define in the file itself.

2010-10-31 13:16:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix spurious promotions with legality testing off

The recent promotion patch had broken playing without legality testing
completely: without legality testing one always gets the piece that was
asked for, but a NULLCHAR should not be taken as a request for a piece!
But it was, and this resulted in any moved piece turning into a white
Pawn! For true promotions the piece was always black, which was also not
very useful.

Also revert to the use of '+' as internal Shogi promoChar, because
pre-processing turns out not to be possible when reading a game file.
In stead parse any trailing '+' on moves as promoChar. Downside: '++'
can no longer be recognized as checkmate symbol.

2010-10-29 22:54:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make deferral default in Shogi promotions

Because '+' is intercepted by the parser as check indicator, Shogi moves
are pre-processed to change a trailing '+' into an internally used
alternative '^'. The testing if a promotion character is OK is now done
in LegalityTest() and Disambiguate(), which return ImpossibleMove when
the character does not correspond to any piece, and IllegalMove when in
Shogi anything other than '^' or '=' is used. (Except for the ICS
notations.) On output, in CoordsToComputerAlgebraic() and
CoordsToAlgebraic(), the '^' is translated back to '+'.

2010-10-28 17:51:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Animate piece explosions in drag-drop moves and in XB

This required some code restructuring: the decision if an explosion is
needed is now taken in a new routine Explode() in the backend. This then
calls the front-end driver, and it returns the info if there was an
explosion or not, so the caller (AnimateMove() or the mouse driver) can
take action to repair the damage to the board caused by the blast wave.
A front-end driver for XBoard is provided as well, so that both
click-click (and replay, which is the same) and drag-drop atomic
captures are animated in XB as well as WB.
Explosions on rejected moves are suppressed.

2010-10-28 13:53:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress promotion popup if piece will explode

In atomic, a Pawn capture to last rank is not really a promotion.
Fix choice to Queen.

2010-10-28 18:42:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make Knight hop first straight, then diagonal

It used to be the other way around, which looked pretty illogical in
Xiangqi: to see Horses, which are blockable pieces there, move over an
occupied square.

2010-10-27 20:04:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let -oneClickMove also work in EditGame mode

There is really no reason why people that lke one-clcik moves enough to
switch them on would not want to use them too when editing a game.
This solves a nast inconsistency, as before it used to work in -ncp mode
on the _first_ move, as the mode is then BeginningOfGame, and not yet
EditGame, and we do want it to work for BeginningOfGame, as this is
also the game mode when you start playing as white.

2010-10-27 19:40:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make -flipBlack and -allWhite option volatile

As these options are very Shogi specific, and the variant is volatile,
it seems logical to make them also volatile. Not completely sure about
-allWhite, though. It cold be useful if you want, for example, to play
wth dark-brown pieces for black, as any color but black looks much
better with outline pieces than with solid pieces.

2010-10-27 19:33:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Provide some sample board-texture pixmaps

Wood and marble themes are provided as textures for light and dark
squares, plus two complete Xiangqi boards (wood and evenly colored).
These should probably not goint the distro tar ball.

2010-10-27 19:25:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
The -overrideLineGap option is made to work in XBoard

Although XBoard already allowed this in the -boardSize specification,
it is still seful to globally disable grid lines, e.g. for an
oriental Xiangqi board. And it converges XB and WB.

2010-10-27 19:18:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement board textures in XBoard

The -darkBackTextureFile and -liteBackTextureFile options now wrk in
XBoard too, for loading a pixmap that will be used to cut out the dark
and light square backgrounds. The cutting algorithm is such that the
pixmap image is completely restored if the size was that of the total
board (e.g. a drawing of a Xiangqi board).

2010-10-27 12:11:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Complete WB (western) bitmaps for Shogi at size 33

The Lance was not replacing Queen in some sizes where the bitmaps were
already available, and new bitmaps for the promotion Golds were added.

2010-10-22 20:30:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make starting new variation dependent on shift key

The shift key is read during mouse events, and posted in a global
variable, which can then be used by the back-end. The decision to start
a new variation (pushing the game tail rather than clipping it off) when
entring a move in Edit Game or Analyze mode is made dependent on this.
The move-typein also records the shift-key state.

2010-10-22 20:25:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix merging bug

A %g format was used to print an int in sending the level command,
because decimal points were dropped when merging patches. Also an unused
variable was removed to suppress a warning.

2010-10-18 19:50:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add set of shogi pixmaps for XBoard

The -size 64 pieces from gShogi (and originally XShogi) are made
suitable for loading by XBoard, through redefining the transparent
background color as either light or dark square color. These bitmaps are
not included in the XBoard build, and perhaps should not even be
included in the source distribution, but made available in a separate
distribution?

2010-10-18 19:46:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Implement -flipBlack in XBoard

When -flipBlack is true, the white and back piece pixmaps are swapped in
flipView. The idea is that the black pieces are upside-down versions of
the white (Shogi) pieces, so that swapping white and black in effect
turns all pieces upside down, which is what should happen in flipView.

2010-10-11 21:06:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Disable some very verbose debug printing

The internationalization seems debugged enough to do without them.

2010-10-11 20:52:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add option -variations to control variation-tree walking

Just so that users can switch it off if the find it annoying.

2010-10-11 21:01:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow full promotion suffixes on SAN piece moves

This facilitates the parsing of (non-standard) Shogi moves in ICS
protocol. It can also be useful for Seirawan Chess, where a future
implementation of it can use promotion suffixes to indicate gating.

2010-10-11 14:07:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow lower-case piece indicator in drop-move notation

As it seems that XBoard also sends such moves in zippy play, it seems
more fair to recognize them from the engine as well.

2010-10-10 21:26:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in ICS variant switch for Shogi

Because a test for 8x8 variants was done by <= VariantShogi,
rather than <, spurious move-list fetching occurred in Shogi.

2010-10-10 21:23:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WinBoard Lance bug

The choice between Lance and Queen was made on appData.variant, in stead
of gameInfo.variant. Because of this it was not always up-to-date in ICS
games.

2010-10-10 21:15:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Adapt WinBoard to Shogi implementation on Variant ICS

The Variant ICS does not use the '+P' notation for promoted pieces,
neither in the board, nor in SAN, but simply indicates any Gold by 'G',
and uses 'H' and 'D' for +B  and +R. The Shogi promotion code in
LegalityTest() and Disambiguate(), which are used in move Parsing, are
adapted to handle this. Deferred promotions sent to the ICS now use an
== suffix.

2010-10-10 21:07:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Inherit promoted-info that ICS does not give from previous board

The ICS does not tell us in Crazyhouse (or Shogi) if a piece is
primordial or a promoted pawn (or a promoted other piece). We now derive
this info from the previous board. The option -disguisePromotedPieces
controls this feature.

2010-10-10 21:03:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Limit multi-session clock handling to non-ICS games

In ICS games a time forfeit crashed XBoard, apparently because the
fullTimeControl string is not properly set when we try to use it to see
if a sudden-death session is indeed the last session.

2010-10-08 11:47:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Change evalgraph scale in drop games

Score swings tend to be much larger in Crazyhouse and Shogi, so the
vertical rangee in those games is doubled to (-14, 14).

2010-10-13 23:05:05 -0700 Arun Persaud <arun@nubati.net>:
bugfix: fixed readline support with icslogon option

The icslogon option sends the login and password, so we don't need to handle
special cases for the readline buffer.

2010-10-07 20:35:26 -0700 Arun Persaud <arun@nubati.net>:
fixed some typos that were introduced during the sprintf->snprintf changes


2010-10-07 11:59:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix uninitialized variable in book code

The variable ' power' was used uninitialized in case -bookVariation was
set to 0, which can be an error even if it was only multiplied by zero.

2010-10-06 14:20:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix menu translation bug

The menuText array was declared too small, so that the last entry of the
File menu got out of bounds and was overwritten by the first of the Mode
menu.

2010-10-05 21:14:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow -timeIncrement to be a float

The increment can now be fractional seconds. The printing in
ParseTimeControl() and SendTimeControl() is done with %g format, so that
for integer increment there is backward compatibility with the old level
command.

2010-03-30 20:24:49 -0700 Arun Persaud <arun@nubati.net>:
adding gnu-readline support

should make the user interface for xboard a bit nicer. In the end we want to have a separate input window, but this probably will have to wait until the GTK version.

2010-09-24 21:17:50 -0700 Arun Persaud <arun@nubati.net>:
added warning if icsLogon file couldn't be opened


2010-09-24 21:10:28 -0700 Arun Persaud <arun@nubati.net>:
security fix: replaced some strcat with strncat

there is still more to do

2010-09-19 20:55:01 -0700 Arun Persaud <arun@nubati.net>:
add option for silent builds

this can be enabled for automake versions >1.11 by calling ./configure --enable-silent-rules.
It should still work for older automake versions too

2010-09-19 13:16:40 -0700 Arun Persaud <arun@nubati.net>:
bugfix: missing array index


2010-09-19 12:19:44 -0700 Arun Persaud <arun@nubati.net>:
added new case for (Chessmove) 0 in common.h

this cleans up a few more -Wall messages

2010-09-17 21:47:22 -0700 Arun Persaud <arun@nubati.net>:
cleaned up -Wall warnings (apart from settings some parentheses)

removed unsused variables, etc mostly everything from -Wall -Wno-parenthesis

2010-09-17 20:36:54 -0700 Arun Persaud <arun@nubati.net>:
sizedefaults has 9 members, the last line of the array (NULL) only set 7.


2010-09-12 20:04:03 -0700 Arun Persaud <arun@nubati.net>:
security fix: replaced sprintf with snprintf

replaced most sprintf with snprintf. There are still some left where for example a pointer is used and is allocated in the line before, which should be fine... and some others.

2010-09-10 23:36:23 -0700 Arun Persaud <arun@nubati.net>:
security fix: replaced strcpy with safeStrCpy from backend.c

see comment in backend.c on how to use safeStrCpy. This was already added by AS, but only used in 3 places.

2010-10-04 11:50:38 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Enhance multi-session TC clock handling

Some new TC types are introduced: Bronstein and free sessions. The
former is implemented by letting an exclamation point '!' in front of an
increment (in the -tc string) indicate that the increment is limited to
the time actually used on the previous move. The latter is an interval
of given duraton in which you can do any number of moves (even zero),
before the next session starts. This is needed for implementing Shogi
byoyomi-type TC, as a first session, followed by a session of fixed-time
per move. The latter can now be specified with the -tc argument as a
degenerate case of Bronstein, where the time on the clock is <= the
increment (so that it is never possible to think longer than the
increment). A TC of 5 min + 10 sec byoyomi can then be indicated as
300:10+!10.

The sessions are now separated by ':' in stead of '+', and all times in
the TC string are converted to seconds first (in ParseTimeControl), so
the fullTCstring can now be directly used in a PGN tag.

Note that this patch only addresses clock handling; the engine will not
be informed yet if the TC type or parameters change at the start of new
session!

2010-10-04 09:32:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove promotion-piece encoding from ChessMove type

The shizophrenic way to indcate promotion pieces in the XBoard code
(sometimes using a promoChar, at other times relying on moveType) was
cured by combining all promotion move types (such as WhitePromotionRook)
into a single one (WhitePromotion), and relying on promoChar to specify
the piece. This solves the problem of promoting to new piece types in
variants, which formerly also required addition of new move types.

In Shogi the '+' character is now consistently used to indicate
promotions (and recognized in ApplyMove), rather than 'q' or
PieeToChar(BlackQueen), as the latter did not work in minivariants where
the Queen (representng the Lance) did not partcipate.

2010-10-03 20:50:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Pass promoChar to SendMoveToICS

SendMoveToICS was the only place where the promotion piece was derived
from moveType, rather than an explicity passed promoChar.

2010-10-04 09:41:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress spurious use of SAN castling in mini variants

King moves from a central file to the king-side-castled position (1
square away from the right corner) were intercepted and printed as O-O
in CoordsToAlgebraic. But on a 5x5 board (mini-Shogi!) this caught the
normal King move Kc1-d1 as well. The castling notation is now reserved
for King moves larger than one step.

2010-10-04 08:21:19 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make Shogi promotion zone board-size dependent

In stead of using a fixed size of 3 ranks, we use BOARD_HEIGHT/3, which
would translate to 1 rank for mini-Shogi (5x5) and 2 ranks for Judgkin's
Shogi (6x6), which are indeed what these variants need.

2010-10-03 19:58:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make board-size overrule options volatile

The options -boardWidth, -boardHeight and -holdingSize were legacies
from the day choosing a variant would not automatically set a board
size. As a result they are seldomly used anymore. The first real
application is mini-Shogi (on 5x5 board), and it turned out very
annoying if the 5x5 settings persisted to the next session, where you
almost certainly want to play another variant.

2010-10-04 09:16:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Strip DOS line endings from parser.l


2010-09-16 18:58:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Extend mate test to drop games

MateTest() in case of no legal moves now also looks if there are legal
drops that can resolve the check. This provides reliable mate testing in
Crazyhouse and Shogi, so these are now made subject to adjudications too.

2010-09-16 18:48:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Extend legality testing to drop moves

LegalityTest() can nowbe called with (internal-format) drop moves, and
delegates their testing to a new routine LegalDrop(). This routine
performs the 'no-pawn-on-back-rank' test that used to be in
UserMoveTest (which now calls LegalityTest also for drop moves).
The more complex Shogi case is also handled (except for Pawn mate
drops) in LegalDrop().

2010-09-16 18:25:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Revert splitting of UserMoveEvent

This splitting into UserMoveTest and FinishMove was no longer needed,
now that the new mouse driver no longer calls UserMoveTest to figure out
if a move is a promotion, and XBoard and WinBoard are unified in this
respect. It was counter-productive, because UserMoveTest was not able to
change the fromX, fromY (call-by-value) parameters for passing them to
FinishMove, so it had to defer the conversion of drop moves to internal
format to the latter, while it did not belong there. (Because
DropMenuEvent already delivers the moves in internal format.) This
whole kludgy construction was therefore abandoned, by going back
to the original 4.2.7 calling scheme, where UserMoveEvent completely
pre-processes the move, and when it is valid, calls FinishMove directly.

2010-09-16 18:02:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix silent bug in drop moves

In ApplyMove() the piece on the from square was accessed and used before
we tested for drop moves. As drop moves have off-board from-squares this
led to out-of-bound array access, which apparently was usually harmless.

2010-09-16 17:43:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow parsing of upper-case machine moves

Dubious patch, as it caters to non-compliancy. Some variant engines are
very non-compliant, though.

2010-09-16 17:38:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Prevent transmission of spurious promo char to other engine

The parser now strps off spurious promotion characters.
New move types "White/BlackNonPromotion" had to be introduced for this,
to indicate NormalMoves that could have been a promotion, to make sure
the '=' suffix of Shogi deferred promotions survives.

2010-09-16 20:44:37 -0700 Arun Persaud <arun@nubati.net>:
fixed internationalization for winboard

in the original commit some files were forgotten. This should fix it.

2010-08-29 21:07:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix JAWS bug saying side to move in ICS play

This was done the wrong way around.

2010-08-27 14:08:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make WB run-time language switch possible from menu

This is a rather involved patch that might not be worth it. It is
difficult, because translation of things that live forever is not easy
to invert (menus, the auxiliary windows). We hae to remember all
original, English texts there to be able to put them back,or
re-translate. Still does not fully work, although the menus and
temporary dialogs now are all OK.

2010-08-27 14:35:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update WB translation template

The language.txt file now also contains all translatable strings from
the C source files, rather than jsut the resource.

2010-08-27 14:14:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update docs

Add descriptions for machine-match menu support and enhanced book
control, nick-name options and language.

2010-08-27 13:59:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add some forgotten translation hooks

The general-options, file-browse dialogs and the about box did not call
Translate() yet. Also translate contents of combo boxes. Some small bug
fixes.

2010-08-27 13:28:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Do not translate game-end messages in PGN

The messages themselves are not subjected to _(), but in stead their
displaying in DisplayMove is subjected to T_().

2010-08-23 13:23:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Internationalization for WinBoard

A function Translate() was added, which uses a list of item dialogs,
reads their value, and replaces it by a translation (if available). It
also reads the window title and sets a translation. Calls to this
routine are added in the initialization code of every dialog callback.
In addition all translatable strings in the WnBoard front end are marked
by the gettext macro _(). Because WB is not gettexted yet, a hard
re-definition of this macro is added in each file using it, to the
string-translation routine T_() supplied in winboard.c.
Code to read the translation file, and translate the menu texts is added
in winboard.c. In backend.c the meaning of the gettet macros is
redefined for the WIN32 case.

2010-08-23 13:07:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Make the ID of all WB dialog items unique

Mnany static dialog texts did share the ID -1 (IDC_STATIC). But to
replace tet at run-time for translation purposes, they need to be
addressed individually. So they were given new IDs, with symbols defined
for those.

2010-08-23 12:48:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Mark XBoard result messages for internationalization

The GNU gettext macro _() is used with the game-end messages. This might
be controversial, as they will appear in the PGN as well. But only as a
comment. We can always decide not to supply a translation.

2010-08-23 12:43:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Do not exit after match when match started from menu

The codelooks weird, but matchMode == 2 in this case. We then use
DisplayNote() to report the match result.

2010-08-23 12:39:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Trivial-draws recognition improved in Xiangqi

Now based on a routine "SufficientDefence". If both have it, it is draw.

2010-08-20 17:46:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update .dev files

The relocation of parser.c and the addition of history.c was not yet
incorporated in the devcpp proect files.

2010-08-19 13:45:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix some MSVC compile errors

Some statements has moved up stream of declaratons, which is an error
that gcc is forgiving about, but where MSVC is strict.

2010-08-14 14:01:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Improved patch for expansion of WB settings-file name

The expansion of environment variables now allows multiple environment
variables in the path name. Tested on %HOMEDRIVE%%HOMEPATH%\winboard.ini
and %APPDATA%\winboard.ini.

2010-08-07 16:53:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add -colorNickNames option

This option allows non-standard designation of side to move in FENs.
(Useful for Xiangqi, where white is indicated often as r(ed), and Shogi,
where white is s(ente) or b(lack), and black is g(ote) or w(hite).)
Can also be used for FENs in a local language. A match of theinput
character with the nick name translates it to the standard; this means
the standard will continue to be recognized, unless it was defined as a
nick name.

2010-08-07 16:39:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Tricked by the grossnes

Some WB menu items were referenced by a hard number. As items had been
added over the years, the wrong menu items were grayed. In particular
the Options -> Adjudication menu was grayed out, in -ncp mode, where
this was intended for the Sounds dialog. This accidentally proved
useful, until we started to apply adjudictions also to the Human moves.
Then it was suddenly undesirable, and a small mystery why it happened at
all, when I tried to change it. The numbers are now corrected to the new
locatons of the items in the menus.

2010-08-07 16:35:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow match to be started from WB menu

A menu item Machine Match was added in the Mode menu to switch to
matchMode. A persistent option /defaultMatchGames determines the number
of games. A control was added to the Options -> Common Engine dialog to
set this option.

2010-08-07 16:26:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add some book-control options

Options /bookDepth and /bookVariation have been added to control the use
of the GUI book. In WinBoard the Optons -> Common Engine dialog now
contains fields to set them.

2010-08-07 00:15:57 -0700 Arun Persaud <arun@nubati.net>:
new developer release


2010-08-06 11:18:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Repair exit-popup deadlock patch

Relocating the exit popup call had made it lose access to the message it
should print, because it was declared only in an inner code block, by
the same name: buf[]. Deleting the inner declaration fixes it.

2010-08-04 11:00:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix erors when compiling with --disable-zippy

The file args.h contained a codeblock in #ifdef ZIPPY, in stead of
fields.

2010-08-01 13:27:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix zippy handling of draw offers from ICS

The patch by DM to fix the problem introduced by the coloration of
zippy-matched commands (namely that the coloration code beat the zippy
draw recognition to it, and ate the draw offer away) was only targeting
ICC. The new fix should work on any ICS (by using the same pattern in
zippy as in the colorization code).

2010-08-01 13:15:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix regression in colorization of zippy-matched commands

The patch by Daniel Mehrman from 4.2.pre8 was not properly merged, so
that in XBoard no coloration would take place of ICS commands that were
matched by zippy. (It was using &i as input pointer, rather than &backup.
The XBoard-specific code now has been deleted completely, to remove a
seemingly needless dependence on _WIN32_ of the back-end. Both WB and XB
now use the XBoard method, to only match zippy commands when logged in.

2010-07-31 22:48:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Suggest default file name in browser dialog

The argument 'def' to FileNamePopUp() was not passed through to the new
file-browser routine, which got NULL in stead, and thus started with an
empty input field.

2010-07-30 23:28:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Define /firstUCI and /secondUCI as synonyms for /fUCI, /sUCI

Because the %s expansion of WB options in the /fcp and /scp lines only
works for options that contain 'first' or 'second', and /fUCI thus did
not work, PSWBTM had to rely on the cumbersome /firstIsUCI=true to
install UCI engines. (The latter option should be deprecated really;
the UCI-ness of the engines is a volatile option, so it makes no sense
to supply a way to set them both to false or true. One only needs to be
able to set it to the non-default state.)

2010-07-30 23:21:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Add string option /pieceNickNames

This (volatile) option allows definition of alternate letters for the
pieces, which will be recognized next to the standard symbols as given
in the /pieceToCharTable on input. (Output always uses the standard.)
This can be useful for reading PGN from another language, or
non-compliant FENs (e.g. using B and N for E and H in Xiangqi).
  The format of the argument is the same as for /pieceToCharTable.
Because the nickNames are consulted before the standard table, it is
possible to redefine a standard name as a nick for another piece.

2010-07-30 23:10:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix deadlock in match-result display

At the end of a match, GameEnds() was recursively calling itself,
through DisplayFatalError() and ExitEvent(), and the latter was then
delaying until the calling GameEnds() terminated. (Which it would of
course never do before ExitEvent returned; fortunately there was a tim
limit to this delay, but in XBoard it was 10 sec in stead of 10 msec.)
 Now the calling of DisplayFatalError() (to show the result popup) is
delayed until after GameEnds completes (and resets the anti-recursion
flag 'endingGame'), so that it is simply executed a second time, unaware
of the earlier call. But this second time it does not do anything,
because the gameMode ws set to EndOfGame the first time, and the writing
of the PGN is blocked by the checksum being still the same.

2010-07-12 11:10:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix WinBoard game-list title

Number of displayed games and WDL stats were always appended to the
existing title, leading to an ever-growing title in the game-list
window. Now the old actual title is ignored, and the starts is appended
to the original title "Game List". (In the future we could use the
filename here?)

In addition, the title was not updated when re-opening the game-list
window, while the stats could change if filtering was active when the
window was closed. (In that case the filter is cleared on re-opening, so
the number of displayed games changes.) Now a title-update (after
recalculating the stats) is done every time the game-list window is
opened.

2010-07-11 11:06:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Refactoring of material-draws adjudication code

Insufficient mating material is now determined per side individually, by
testing for MatingPotential of each side. If both lack mating potential
the game is adjudicated as draw (if the -materialDraws option is set).

This way MatingPotential() can later also be used to correct losses by
forfeit to draws (which currently is only done when the opponent has a
bare King).

The accuracy of this type of adjudication in Xiangqi has been highly
improved.

2010-07-11 10:54:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in sending cores command to engine

The cores command was alwas sent to the engine(s) when the user changed
it through the menu, even when the engine had sent feature smp=0 (which
is default anyway). NewSettingEvent() was patched to send the new
setting conditionally, based on the engine properties as recorded in
ChessProgramStates first, second; In this particular case it now
consults cps->maxCores. (Note the code for testing the second engine
contains some dirty pointer arithmetic.)

2010-07-11 10:42:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix oneClickMove bug

When checking for unique captures, no attention was payed to the option
setting, so the capture was also made when the option was off.

2010-07-11 10:39:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove duplicate testing for cores feature

The testing for this BooleanFeature occurred twice.

2010-07-11 10:35:13 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove misspelled prototype

NewSettingEvent occurred, next to the correct one, in misspelled form.

2010-07-05 10:00:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parsing of SAN shogi promotions

A missing promotion character defaults to promotion in the move type,
but the promotion character was not set when this happened in variant
shogi. And it is especially important there, as the promotion character
'+' will always be missing, as the parser will take it to be a 'check'
symbol, and strip it from the move.

2010-07-05 09:55:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix variant switch on PGN loading

When the PGN specified an essentially different variant, the
piece bitmaps were not properly adapted, because the switch was done by
calling InitPosition(), rather than Reset(). (The latter would destroy
the PGN tags info.) We now added an explicit call to ResetFrontEnd(),
(which is normally done from Reset()).

2010-07-05 09:51:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Adjudicate Xiangqi material draws with Advisor-less Cannons

Used the Queen counter for counting Cannons. Note that material draws
with stale Pawns (i.e. on the back rank) are not yet adjudicated.

2010-07-05 09:34:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Remove font settings from master settings file

xboard.conf should not contain general font settings (not specific to
one board size) with specified point size. In fact it should not even
specify sizable fonts, as the new system would make specification of a
general font overrule the size-specific settings in the .xboardrc file,
so the persistence of fonts would be completely broken.

2010-06-30 10:52:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Cut board squares out of texture bitmap more cleverly

When the bitmap is larger than the entire board, the squares are now cut
out of the center of the virtual squares from subdividing the bitmap, so
that they stay centered on the grid of a Xiangqi board bitmap. If the
board size exceeds that of the bitmap, the old algorithm is still used,
as the centering would make the edge squares exceed the bitmap, and
cause a black rim around the board.

2010-06-30 10:49:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow -flipBlack to work with font-based piece rendering

In addition the font-based pieces will also be flipped vertically in
flipView for variant shogi when -flipBlack is off.

2010-06-30 10:46:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow font-based piece rendering in board sizes below petite

At least for variants that use unorthodox pieces, so that switching back
to using bitmaps is not really an option anyway.

2010-06-30 10:41:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Ignore checks in 50-move count for Xiangqi

Both checks and evasions are discounted; this is only done after the
naive counting exceeds the maximum, so during most of the game it causes
no CPU load.

2010-06-05 14:38:47 -0700 Arun Persaud <arun@nubati.net>:
removed some garbage from configure.ac that got added a while ago


2010-05-25 21:20:27 -0400 Clint Adams <schizo@debian.org>:
Remove unnecessary double equals from configure.ac.


2010-05-28 11:07:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix e.p. bug in xiangqi with -serverMoves option

Sideway Pawn moves were written as e.p. captures in the file with moves,
which led to disappearence of pieces in the viewer.

2010-05-28 11:05:00 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Repair score printing with -serverMoves option

A previous patch had moved MakeMove to before the update of pvInfoList,
so that the score/depth info would not appear in the file with moves.

2010-05-28 11:02:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Repair animate dragging

The previous patch had left a stray semicolon in the mouse handler.

2010-05-10 10:32:19 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix game end during dragging

The stale-first-click fix interfered with proper handling of a piece
being dragged when a game suddenly ended (because of opponent resign,
or caling the flag), because up-clicks when the from-square was reset
were completely ignored. Now such an 'unmatched' upclick calls
DragPieceEnd() and redraws the board.

2010-05-10 10:09:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Pop down old tags on loadng new game in WinBoard

ResetFrontEnd(), called from Reset(), did not do this in WinBoard
(unlike XBoard), so that the tags from the previous game were left on
display when -autoDisplayTags was off.

2010-05-09 22:15:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Reverse mousewheel action

Apparently WinBoard was stepping in the opposite direction through the
game in reaction to the mousewheel as every other GUI in existence.

2010-05-09 22:07:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in sending "usermove" when forcing book moves

The keyword "usermove" was copied to the buffer, but not sent before it
was overwritten by the actual book move.

2010-05-06 17:23:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix engine stall on perpetual-check evasion

The adjudication code had already put the engine in force mode after
postponing the actual adjudication to the next move. Now first determine
if we want to adjudicate now, and with which result, before stopping the
engine and ending the game.

2010-05-06 16:37:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Let move parser return ImpossibleMove for off-board moves

It used to return 0, which interfered with buiding a game list. This
broke reading of multi-game PGN files containing games in a variant with
a board size larger than that of the currenty active variant.

2010-04-06 15:05:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Alter XBoard key bindings to mimic WinBoard

A lot of new bindings were added, and four menuProcs had to be registered
to be able to add bindings to them. The use of the control key as
temporary take-back for the last move conflicted with the use of Ctrl
keystrokes, and this function was migrated to '.'. The iconify function
had no shortcut in WinBoard, but to get rid of letter bindings it was
migrated to '-'.

2010-04-05 20:45:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Update README file


2010-04-03 14:00:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix typos in html help file


2010-04-01 15:22:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix JAWS piece drop cursor, and streamline some sentences

The cursor square was reset to a1 after every use of the piece menu,
which was very inconvenient. Some of the spoken sentences have been
improved; the square is read before the piece now, when using the arrow
keys on the board.

2010-03-31 22:31:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow escape sequences in telluser(error) messages

The routine EscapeExpand was moved to backend.c, and applied to the
message received from the engine.

2010-03-31 21:29:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow lower-case promochar in moves of type h8=Q

Updated the parser rules. Other move formats already allowed this.

2010-03-31 21:36:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix Alt+M JAWS command in Two-Machines mode

The command refused to read the ast move because it contained thinking
output of the other engine. Let it pay attention to evenIfDuplicate.

2010-03-29 09:57:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix rep-draw recognition

The refactoring had broken the rep-draw recognition, by adding and extra
condition in a conditional with side effects. The testing of this extra
condition is now moved to after the side effect.

2010-03-28 12:32:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Allow any %ENVIRONMENTVAR% in WB settings file name rather than ~

Only a single variable at the beginning of the file name is recognized,
and the matching is not fool proof (it matches across backslashes).

2010-03-28 11:24:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
Fix info lines being used as normal thinking output

The new standard of using thinking output with time = nodes = score = 0
as info messages for printing in the Engine-Output window was not
understood everywhere, and led to such info lines being used for
autoKibitzing and PGN annotation. The programStats are now only updated
from thinking output received from an engine when it is not an info line.

2010-03-27 11:54:41 -0700 Arun Persaud <arun@nubati.net>:
new developer release


2010-03-26 21:16:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress background observe for boards with own game number

This is really a work-around for an ICS bug. The Variant-ICS sent the
initial board of a game in a move list with relation = 0, which means
'observed'. So XBoard was thinking it was observing its own game, and
switched to dual board. It seems harmless to suppress such a switch for
all boards of your own game, however, which is now done.

2010-03-26 21:12:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix crash on switching to ICS xiangqi game

The oldBoard was a local variable, and only squares of the old board
were initialized. This led to a crash if the copied board was enlarged,
and then displayed. The variable is now declared static, so the
uninitialized squares contain harmless zeros.

2010-03-26 18:32:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let Chat Boxes pop up above console, rather than on top of it

Use EnsureOnScreen() to have them overlap if there was no room.

2010-03-26 18:26:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix disabling of Chat Box navigation buttons

The buttons for non-open boxes were enabed, rather than disabled.

2010-03-26 18:17:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Prevent <Esc> closing chat box

Let it in stead switch focus back to the console window.

2010-03-26 15:28:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let WinBoard recognize ~ in settings file name as HOMEPATH

Fetch the appropriate environment variable to build the mathname in
MySearchPath() whenever the file name starts with "~\".

2010-03-26 13:59:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change name of Global Settings menu item to Common Engine Settings

The old name confused ICS users, as this is an engine-only dialog.

2010-03-26 13:58:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update WinBoard RTF docs


2010-03-26 13:57:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update WinBoard html help


2010-03-24 18:00:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow adjustment of clocks in any mode with shift+click

In practice changing to edit-game mode during a game was very
cumbersome. In WinBoard shift+click is now offered as an alternative.
Make sure a right-click in the clock area is not also counted for other
purposes.

2010-03-24 17:21:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow loading of PGN variations in XBoard

Right-clicking variation comments in the comment-window was implemented
through a translation. The right button is now bound to routines that
set both the end and start of the selection, as setting a new start does
not seem to work if the previous select-start was not completed by a
select-end or extend-end. Finally the main handler uses the selection
cursors to know what was clicked.

2010-03-24 17:16:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Update XBoard docs

Added a descripton of the new ICS options (seek graph, back-ground
observe) and menus (Upload) to the texi file. Also added a description
of the variation (Annotate menu item and PGN variation comments) and PV
walking (clicking engine-output). Describe the -shuffleOpenings option.

2010-03-24 13:30:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Paint highlights on dual board (WB)

The highlight info is hidden in the partner board to pass it to the
front-end.

2010-03-24 13:14:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix handling username change during game

The title bar and gameInfo (going into the PGN) were not adapted when
the username was changed through the menu, so that the change became
only effective on the next game. Requires SetGameInfo to be called from
the front-end, and thus a prototype for it in backend.c.

2010-03-24 11:04:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix window-position upset on failing engine start in WinBoard

The main window was only positoned according to the settings-file data
after the engine was started up from InitBackend2(), so that if the
latter gave a fatal error, and Save Settings on Exit was on, a wrong
position for the main window would be saved. The call to InitBackend2()
is now moved until after setting the main-window position.

2010-03-23 23:22:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Display PV from Engine-Output window (XBoard)

Translations are added to bind button 3 to the PV walk for the memo
widgets, and the corresponding handlers are ported from wengineoutput.c.

2010-03-10 18:54:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Set keyboard focus at startup to board window

This makes XBoard sensitive to the keybindings also when the cursor is
outside the board window. This focus seems to persist indefinitely: each
time the board window gets selected, the key bindings become activem
wherever the mouse pointer is. Downside: the mouse pointer is no longer
an arrow outside the board window, but becomes a text-insert tool there.

2010-02-27 20:49:21 -0800 Arun Persaud <arun@nubati.net>:
added logo files for xboard

logos are installed in the hicolor theme [1] using $datadir as the basedir.
Added both png and svg logo.

[1] http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

2010-02-27 17:36:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remake programVersion string after receiving engine features

The engine could have sent a more accurate version of its own name
than the one derived from the exe filename in a myname feature, and we
better use that in the programVersion string, which will be sent as
interface name to the ICS.

2010-02-25 19:22:00 -0800 Arun Persaud <arun@nubati.net>:
Revert "Repair settings-file name"

This reverts commit a02042ef83ce1f3632f0cf3e0a2a4ce9a3ac5d85.

2010-02-25 20:32:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add -autokibitz checkbox to UCI-options menu dialog


2010-02-25 20:29:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also capture (numeric) whispers of players for -autoKibitz


2010-02-25 20:25:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add kibitzes and c-shouts Chat Box

A box dedicated to c-shouts will snatch any c-shout before it is
diverted to a normal shouts box. The kibitzes box can capture the
left-overs of -autoKibitz, if the latter is active.

2010-02-25 15:45:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Mark non-compliant lines of engine in debug file

The option -engineDebugOutput is extended to accept value 3 for printing
a cear indication of non-compliancy in the debug file.

2010-02-25 12:02:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Redraw second board on expose events

The -dualBoard option now does refresh the second board after another
window uncovers it. To acheive this, some data structures remembering
what is displayed had to be duplicated. (lastBoard and damage for XB,
lastReq, lastDrawn, lastReqValid and lastDrawnValid for WB.)
WinBoard now uses clipping also for second board. This required the
clips for the destination to be translated horizontally!

2010-02-25 15:13:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Print seconds with 2 digits in backgroundObserve status line


2010-02-24 17:01:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Do not recognize non-ICS variants from PGN event tag

These variants were introduced after supporting the variant tag, so if
the variant tag is missing, their recognition from the event tag will be
a false match. (Mainly to prevent events with 'super' in the name being
recognized as Superchess.)

2010-02-23 13:52:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix display of uninitialized boards in background observe

A variable partnerBoardValid is cleared on starting our own game, and
set when a board from the background game comes in during it. At the end
of our own game, a valid partner board now is put in the display.

2010-02-23 13:46:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add option Display Logo in WB general-options menu

Changing the option requires InitDrawingSizes to be called for
re-formatting the board window. Switching it off requires clearing of
the cps->programLogo fields to take effect immediately. Switching it on
only takes effect the next session, as we will need some refactoring to
redo the figuring out what logos to display.

2010-02-22 12:02:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Group Chat Boxes with console in stead of board window

They now open and close with the console, which seems more natural, and
prevents the console from covering them.

2010-02-22 11:50:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put new options in WB ICS-options dialog

The Seek-Graph, background-observe and Chat-Box options are added to the
ICS options dialog. They only control the appData settings, there are no
special actions yet on switching the settings.

2010-02-22 11:46:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Create space in WinBoard ICS-options dialog


2010-02-20 12:42:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use side-by-side boards to display background game

A game observed in the background (i.e. if -backgroundObserve true) will
be displayed right of the normal board in the same window if the new
(persistent) Boolean option -dualBoard is also set.
Very flakey hack, especially in XBoard, where clocks and messsage
field all get the wrong width (and resist adjustment in the strangest
ways). The clocks of the partner game are not yet displayed, and
disaster happens when the background and foreground games do not have
the same board format.

2010-02-23 14:57:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Repair background-observe patch

Apparently a commit was lost that I collapsed with 3018a6 while the
latter was already pushed to savannah. Here I recreated this commit from
a diff between the respective commits in the savannah & nubati gits.

2010-01-31 11:07:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Repair settings-file name

The default name is put back to /etc/xboard/xboard.conf, so that XBoard
can again find its settings file. "make install" will still install it
in the wrong place.

2010-02-21 18:43:59 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2010-02-21 19:45:58 -0800 Arun Persaud <arun@nubati.net>:
fixed compiler warning for file-browser code

missing "void"s in the function declaration and missing returns showed up when trying to build on the opensuse build server. fixed now.

2010-02-21 23:09:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Put newly opened Chat Box on top

Dialogs always pop up in front, so set the onTop variable that prevents
highighting the button to navigate to it from other Chat Boxes
to reflect that a newly opened Chat Box is in view.

2010-02-21 18:55:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix copying of kibitzed info in Engine-Output window

Make sure all lines end with "\r\n" to not lose line breaks on
copy-paste from the memo. (XBoard would strip those again.)

2010-02-21 18:25:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow walking a kibitzed PV

If no tabs are found in te 'thinking output' we assume it is a captured
kibitz message, and look for "PV=" to locate the start of a PV in it.
Also try to include any continuation lines below the selected line.

2010-02-21 17:45:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Insert autoKibitz continuation lines at end of line

In the engine-output window lines that start with the ICS continuation
sequence "\   " are inserted behind the line they belong to, in stead of
at the top. This required keeping thrack of the length of the currently
active line in OutputKibitz().

2010-02-20 15:39:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Don't disturb background observe when receiving new piece

When new holdings are sent when the background game is displayed, we now
ignore this, as presumably we are peeking at our partners game, and thus
should be well aware of what is captured there.

2010-02-19 21:52:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Newly lexed parser in XBoard directory


2010-02-19 11:18:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let yy_text determine progress of PV parsing

The parsed unit yy_text was not available after ParseOneMove(), because
the buffer switch in yylexstr() apparently destroys it. To solve that,
yylexstr() now is equiped with an extra buffer argument, where it copies
yy_text before the switch, so the caller, ParsePV(), can see what was
parsed in yy_textstr. This is used to update the PV pointer, but also to
save any parsed comments (when ParsePV is used for parsing a PGN variation).

2010-02-18 17:42:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Support playing through PGN variation comments

Right-clicking a variation line in the comment dialog will shelve the
current variation, and parse the comment to replace it. This uses
ParsePV() in an alternative way, for which the latter had to be
enhanced: it was made resistent to move numbers and comments inside
the PV. It now has an argument to indicate if such comments should be
stored with the moves. The Comment Popup is closed on revert, to
make sure no comments to moves that are destroyed, containing
variations on a non-valid line, can keep hanging around.

2010-02-18 16:05:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add Annotate item in Step menu

This does the same as Revert, except that it adds the destroyed
variation as comment to the original movem in PGN variation format.
RevertEvent now has an argument to indicate if it should add the
comment, or not. Comments in the abandoned variation are included in the
varriation command to the main line. (The exact layout of the variation
comment that results leaves still to be desired.)

2010-02-15 19:07:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add option -shuffleOpenings

This volatile option is added just to make the existing variable
available from the command line, not only from the menus.

2010-02-19 11:48:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let the sounds sound on receiving a message in a Chat Box

Use Colorize() to the applicable color to trigger the sound, and then
restore the original color as 'continuation', to do it silently.

2010-02-10 10:55:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow WB Chat Box to be dedicated to shouts and 'it'

By putting 'shouts' in the handle field, a chat window will capture all
shouts and c-shouts, and send messages typed into it as shouts.
The bracketing of the shouter name now indicates the type of shout.
The handle for WHISPER Chat Boxes has been changed to 'whispers', to
make it easier to pop them up by clicking the console.

2010-02-16 22:34:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add -chatBoxes option to open Chat Boxes at startup

This string option contains a semicolon-separated list of handles for
which Chat Boxes should be opened at startup. The value saved in the ini
file is the value that was read, not the actual chat boxes that were
open at the time of saving.

2010-02-16 19:44:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make Chat Windows pseudo-tabbed

By adding buttons in every Chat Box to navigate directly to every other
Chat Box, a stacked set of Chat Windows behaves like a single tabbed
window, but can still be unstacked. The buttons turn grey to warn that
new text appeared in hidden boxes (i.e. not the one last brought to top).

2010-02-19 21:46:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow arrow keys in WB Chat Box to access command history

The history is shared between al boxes and the ICS console.

2010-02-12 22:35:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make WB Chat Boxes wrap and handle URLs

Cloned the code for the console text field to hande URL. (Initialization
to recogize the link, and notifiction to open it when clicked.)
Removed the ES_AUTOHSCROLL style from the RichEdit in the resource.

2010-02-10 10:58:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix copying of WB Chat Window contents

All line breks were lost on copy-pasting the contents of a chat window.
Adding CR to each outputted line in the front-end (wchat.c) solves this.
(Tell messages sent to a handle (which are not echoed by the ICS, and
thus have to copied to the chat box directly) also need CR!)

2010-02-19 22:34:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add upload of game to ICS for examining

New item "Upload to Examin" in Action menu, calls UploadGameEvent().
Use SAN moves to upload game to ICS, rather than long algebraic
(The ICS did not understand long-algebraic promotion moves)
Use bsetup within examine to set position onFICS, and also variant.
Castling rights do not work yet for FRC. Totally different set of
commands are needed on FICS and ICC.
 FICS does not understand w23 or wild/23, but needs 'crazyhouse' in the
besetup command that specifies the variant. XBoard variant names are
used, except for fischerandom, which is 'fr'. Things like nocastle will
probably still not work.

2010-02-18 17:41:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Handle display of PV that starts with other move than played

Insert the retraction of the played move, without premove highlighting.

2010-02-16 19:36:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Bugfix smart capture

Disambiguate was changed to make sure that for ambiguous moves, a
capture would always prevail in the closure, rather than the last move
that happened to be generated. Before, double-clicking a piece would
sometimes plsy a non-capture.

2010-02-13 15:34:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix XB crash on giving keyboard focus to non-text widget

In the Engine-Settings dialog SetFocus() could be called for non-text
widgets, and this made XawTextSetInsertionPoint() croak. Setting the
insertion point to the end in SetFocus() was a bad ide anyway, as it
interfered with copying from the engine-output window, which would
uncontrollably scroll on getting focus. It is solved now by setting the
insertion point already on creation of the text widgets.

2010-02-19 22:32:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Seek-Graph bugfix: disappearing output in ICS console

Suppression of output to the cosole was handled fundamentally wrong: it
was not enough to set next_out to after the unit that should be
suppressed, as there can be a backlog in printing of previous units that
came in the same packet. So this has to be flushed first, or it will be
lost. -autoKibitz probably got away with that, because it comes in a
separate packet. But seek ads are often suffixed to other output, and
then that output disappeared! Now we flush everywhere before suppressing.
We now totally rely on the prompt to restart the printing, so that
acknowledgements following the echo of the sent message are also
suppressed. Also suppress LF before diverted chat messages.
  Also fixed is the 'mamer bug' in Chat Boxes, due to false parsing of
a "* (*): " pattern in tell messages, because of a missing continue.

2010-02-12 18:08:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Pop up ICS text menu with default item under mouse pointer

The menu popup is migrated to the down-click (was up-click), so the
up-click can select the item. Some trickery is needed to fool the menu
into thinking that the mouse moved, so that a moveless up-down click in
the ICS text field selects the default item (the upper-right one).
Also allow dummy item in ICS text menu: The command "none" in the ICS
text menu will now be treated as a grayed-out (disabled) entry, so it
can be defined in the position underthe mouse pointer to prevent the
up-click from doing anything, while keeping the menu open. Recommended
for use with an entry of spaces.

2010-02-10 14:42:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow ICS context menu to pop up a Chat Box on clicking handle

A command "chat" defined in the WinBoard icsMenu string will cause
ChatPopUp() to be called when it is clicked, with the clicked handle
(name) in the ChatPartner field, and focus on the input field.
ChatPopUp() had to get a parameter (the handle) to make this possible.
If that parameter is NULL (as when it is called from the Mode menu),
focus will still start on the (empty) ChatPartner field of the box.

2010-02-10 10:50:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix right-edge spillover of Seek-Graph dots in WinBoard

Rescale the X-axis to allow margin for dot size and color offset.

2010-01-30 11:05:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Interface XBoard to GhostView file-browser dialog

Note: The Ghostview dialog was using some deprecated variables for error
printing, and conditionally used getwd() on some systems that presumably
do not have getcwd(), but it did not assess the latter properly.

2010-02-09 14:38:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow recalling history in ICS input box with arrow keys

By adding translations for the Up and Down keys, and stealing some code
from winboard.c. Still needs some refactoring to move the duplicate code
to the back-end.

2010-02-09 14:34:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Start insertion point at end of text edits in XB dialogs

The function SetFocus now uses XawTextSetInsertionPoint to position the
end of the string it aready contains, rather than at the beginning.

2010-02-08 17:55:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Capture holdings of background observed game


2010-02-08 11:57:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Match handles with multiple titles for channel Chat Boxes

Only handles with at most one suffixed 'title', such as (U), (C), (IM)
or (TD), followed by the parenthesized channel number, were recognized,
so tells by people with more titles always went to the ICS console window.
Patterns are added to recognize handles with upto three such qualifiers.

2010-02-08 11:54:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Do not pop down Seek Graph on on-dot click

Leave the graph up, and let the incoming board of a started game cause
the pop-down. This in case the clicked ad is no longer vailable, or
manuay refused, and fails to start a game.

2010-02-07 21:26:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Observe a game in the background while playing

A new (persistent) option -backgroundObserve true|false is added. When
set, observed boards received while playing a game will not trigger a
game switch, but will be ignored except for storing in a dedicated board
buffer. Pressing the right mouse button will cause the board to be
displayed, until we release it. Time, strength and stm are always
displayed in the message window.

2010-02-07 16:43:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove race condition in clock switching

The move number is now incremented inside SwitchClock, when no timer
interrupt is scheduled, so the interrupt cannot occur at the wrong side
of the increment, and decrement the wrong clock.

2010-02-07 11:53:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let second click on piece make only capture, with -oneClickMove

Normally this would clear the highlighting of that piece.
Required new field in DisambiguateClosure to count nr of captures.

2010-02-07 11:18:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Bugfix stale first-click

When the opponent resigned after the user had cicked a from-square,
clicking the from-square for the first move in the next game would
produce an "illegal move" message, because it was considered a to-click!
We now set fromX and fromY to invalid in GameEnds().
Should we also reset them on mode changes?

2010-02-07 11:08:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add promotions and e.p. to oneClickMove

For e.p. the to-Square of the Pawn has to be clicked. Promotions are
always to Queen when you click the to-square, but use the promotion
pop-up when you click the from-square.

2010-02-07 10:38:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix error that compiler does not notice

Boolean GLT_GetFromList did not return a value. But no error on Ubuntu!

2010-02-06 18:55:38 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2010-02-06 18:30:42 -0800 Arun Persaud <arun@nubati.net>:
updated year in copyright info


2010-02-05 22:27:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
One-click moves

Playing on ICS or against engine, clicking a square from or to which
only a single move can be made causes the move to be done, when the new
option -oneClickMove is set to true.

2010-02-04 16:09:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use squares for computer seek ads

Shape indication passed in sign bit of color (char) variable.

2010-02-04 22:46:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use right mouse button to view seek ads

Right down-click does the same as left down-click, right up-click
simulates a left up-click off board (so it misses all dots).

Use right-click miss to refresh Seek Graph

The 'moving' parameter had to be made into an int for this, to indicate
right clicks with code 2. Right press now already pushes the clicked ad
to the back, so that the up-click will display an underlying one.

Bugfix pushing back seek ads on right-click

On a right button press the previous in stead of currently hit ad was
receiving the penalty.

Indicate seek-ad multiplicity

If more than one seek ad is inside the capture range of the mouse
pointer, an exclamation point is printed before the seek-ad text.

Some fixes to make seek-ad suppression work in WinBoard

In WinBoard the z-depth was immediately erased by redrawing the graph;
the clearing of zlist had to be moved from PlotSeekAd() to AddAd()
(where it really belongs). Also aging of z-depth is now suppressed on
mere pointer motion.

2010-02-04 22:45:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Dynamic Seek Graph

The new option -autoRefresh sets FICS and ICC to report removal of seek
ads, and then removes those from the Seek Graph. New seek ads are added
to the graph, as soon as the ICS reports them.

2010-02-04 22:42:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement SeekGraph in XBoard

For now only controlled by left mouse clicks on board. New options
-seekGraph true|false and -sg to switch this feature on.

Facilitate selection of coinciding seek ads

Seek-ads that are viewed but not answered get a distance penalty on the
up-click that makes their selection more difficult next time, so that
the ad they covered gets a (better) change. The penalty ages away in the
course of 5 clicks.

Slightly offset Seek-Graph dots of different color

Dots of different color are now displaced horizontally be 3 pixels, to
prevent them from completely covering each other. (Required the axis
labels to be moved a little too, to not be covered by the 1-min ads.)

Auto-show seek-ad texts in WinBoard

Hovering the mouse above a Seek-Graph dot will make the text belonging
to it appear in the message field without the need to press a button.
Required SeekGraphClick() to be called from the WB mouse event handler,
with an extra argument 'moving' to make the distinction with a real
click.

Show seek-ad text on mouse hovering (XBoard)

The Eventproc is also set to trigger on PointerMotion, and this event
then calls SeekGraphClick with motion=true to handle it.

Put poetic name of wilds in seek-ad text

Use XBoard variant names, except for 'loadable' and 'fischerandom'
(becomes 'setup' and 'chess960'), but leave number (to distinguish wilds
that transate to same XBoard variant).

2010-02-05 20:36:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix highlighting bug in XBoard

The from-square was drawn before the to-square was erased, which led to
a missing highlight line if they shared an edge or corner.

2010-02-05 15:49:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Shorten autoKibitz confirmation on FICS

Strip off the "players)", but leave the separatng space.

2010-02-05 14:39:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Repair damage to -autoKibitz done by FICS atomic zippy claim

The sending of -autoKibitz info was also moved back in that patch, but
unfortunately to after clearing of the programStats info. Now the
clearing has been moved also, to remain after it.

2010-02-04 23:33:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Send continuation lines to chat box they belong to

The variable savingComment is used as a kludge to remember where the
comment should go (i.e. which chatbox, or elsewhere), so that when a
continuation line is matched, chatPartner (which was reset at EOL) can
be restored to its original value. Also put space after handle of talker
in channel Chat Windows

2010-02-02 19:08:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix u64 format for cygwin

With a -mno-cygwin compile %llu and %lld are definitely not understood
by scanf and printf, although they are by the compiler. In stead, %I64u
seems to work. Put it in under control of a switch USE_I64, which is
defined only in the gcc makefile when MINGW is used.

2010-02-02 19:02:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Remove stray dot from WinBoard makefiles

There was a period suffixed to config.h in the wgamelist.o dependency.

2010-02-01 14:50:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in display of logos

The logo continued to be drawn after a boardSize change to a tinyLayout
size, although there was no space reserved for it. Fixed by explicitly
resetting logoHeight when no logo space is reserved in InitDrawingSizes().

2010-01-19 20:15:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Right-click refactoring: step III

Let WinBoard call RightClick in back-end, and delete the duplicate code
it had for this, after rescuing the front-end bits, and let the letter
act depending on the result returned by RightClick.

2010-01-19 19:07:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Right-click refactoring: step II

Migrate the Right-click routine to the back-end. Let it communicate back
square coordinates through pointer arguments, to accomodate their
different naming in XBoard and WinBoard. Template added in frontend.h.

2010-01-19 17:55:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Right-click refactoring, step I

Divorce front-end part from back-end part of PieceMenuPopup in XBoard
front-end, and forge the back-end part into a new routine RightClick.
The right up-click in XBoard, which called unLoadPV() directly, now
calls RightClick through PieceMenuPopUp().

2010-02-04 23:09:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Merge gamelistopt sources into gamelist source files

The files xgamelistopt.c and gamelistopt.c are merged with xgamelist.c
and gamelist.c, respectively. The WB front-end for the dialog already
resided in winboard.c, so there was little need to move it to wgameist.c
file. Makefiles adapted accordingly. Unsuitable key bindings were
removed. The low-level front-end prototypes are now defined in in
frontend.h.

2010-01-29 21:47:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Game-List options dialog for XBoard

A dialog similar to that of WinBoard was cloned from the game-list
window. The XBoard front-end is in a separate file xgamelistopt.c,
which in fact implements most of the low-level front-end as back-end.

2010-01-29 12:48:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Refactoring of game-list-options dialog

The back-end part is separated off, and moved to a file gamelistopt.c.
Front-end for now stays in winboard.c. No prototypes in frontend.h yet.

2010-01-26 19:28:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix of ancient WB bug: test integer option values for validity

Only a string of digits preceded by an optional sign is accepted now.
Before, any string was accepted, and leaving out a value could lead to
the next option being ignored (if it did not need a value) because it
was considered the value for the previous one!

2010-01-26 19:00:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in edit-position of holdings

The holdings were effectivelly taken one too large, so that a promoted
shogi Pawn moved to, or created in the holdings was not demoted to Pawn,
but put in the dark (which you could see by the holding count if you did
it twice). The overflow tests in these two cases now have been corrected.

2010-01-25 13:54:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Save fonts in XBoard settings file per boardSize

Each -boardSize now can have its own font specified in the settings file
(and thus by a command-line option, although it would in general not be
very useful to specify a font for a size other than the selected). E.g.
a prefix "size33:" to the font name will apply it only to -size 33.
An unspecified-size font option (not normally in the settings file) will
always prevail over a font option specific for the current size.
A font of some size must have been used or specified in order to be
saved.

2010-01-25 08:56:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix width of filter field in XBoard GameList

An empirical dependence of the width of this text edit on the square
size now makes for an acceptable layout at any board size.

2010-01-24 19:09:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use FICS atomic draw claim for sending move in zippy mode

For this the relaying of the move had to be moved until after the
adjudication, which again has to be done after MakeMove(), which is a
bit dubious, as MakeMove might take significant time when animating.

2010-01-24 18:51:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Send FICS atomic claim to ICS if move creates draw after offer

The FICS format "draw MOVE" is used to send the move to the ICS  when
the user enters a move that adjudicates as a claimable draw, and he
offered a draw before the move. For the benefit of ICS that do not
understand this format, the plain move is sent afterwards.

2010-01-24 18:16:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also allow user to claim by offering draw before his move

Use the existing userOfferedDraw variable to test for such offers in
Adjudicate().

2010-01-24 17:29:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Also adjudicate after user move

Call Adjudicate() in FinishMove().

2010-01-24 15:56:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Refactoring of adjudication code

Put all the rule-based (as opposed to score-based) adjudications in a
separate routine, so they can also be called on user moves. This
requires sending the drawing move to the opponent engine to be made
conditional on existence of the latter. Execution of the code is no
longer dependent on the condition TwoMachinesPlay, but actual game
terminations are now all restricted by an alternative condition (no ICS
mode).

2010-01-24 11:46:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use -keepAlive option to determine connection health

When there has been no ICS response since the previous 'ping', assume we
are disconnected and do a fatal-error exit. Also auto-start the ping
process in InitBackend3().

2010-01-23 23:00:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Use arrow keys in XBoard GameList for entry selection

Add translations for arrows and home/end, to call LoadSelectedProc with
argument to indicate the step, and let the latter perform the action.

2010-01-23 22:24:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow <Enter> to apply filter in XB GameList filter edit

Apply a translation to intercept the <Enter> key. Set focus back to the
list display afterwards.

2010-01-23 21:44:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Accept <Enter> for changing chat partner

A kludge stolen from Alessandro's GameList filter allowed to let the
typing of <Enter> while updating the chat-partner field of the WinBoard
chat windows to act as pressing the Change button. Gives focus to the
input field of the window afterwards.

2010-01-23 21:42:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Move duplicat gamelist code to backend

The filtering routines are moved from xgamelist.c and wgamelist.c to
gamelist.c, and a prototype for them is placed in backend.h.

2010-01-23 19:29:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Port game-list filtering to XBoard

Added a text edit and apply button to the XBoard game-list dialog, and
only have it print those lines that match the filter. Translate index in
list to index of game in file when a game is selected, and index in file
to index in list when a line is highlighted. Duplicates some code
between xgamelist.c and wgamelist.c, which should be moved to back-end.

2010-01-21 19:24:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Convert to DOS line endings

For easier understanding of upcoming diffs of winboard.c

2010-01-21 14:32:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Refactoring of move-history code

The WinBoard code in whistory.c was split in a front-end part (remaining
in whistory.c) and a back-end part (now in history.c in the xboard
directory). This to allow easy porting to other platforms.

2010-01-20 12:48:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add fixed-time/move button in XBoard time-control dialog

Put the TC-type buttons in a radio-group, and highlight the selected mode.

2010-01-19 18:27:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug in XBoard PV display

The PV was unloaded on anything but a button release, in stead of the
other way around.

2010-01-23 11:04:11 -0800 Arun Persaud <arun@nubati.net>:
fixed hardcoded location of config file for xboard

the location should now follow sysconfdir during the configuration process.
Also added some more output to the configure script.

2010-01-18 12:18:32 -0800 Arun Persaud <arun@nubati.net>:
new developer release


2010-01-18 12:15:06 -0800 Arun Persaud <arun@nubati.net>:
fixed Makefile.am to handle config file correctly


2010-01-15 21:55:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change opening array -variant fairy

We now use the position of "Chess with Different Armies", FIDE army vs.
a fantasy army (inspired on the Color-bound Clobberers) as opening
position.

2010-01-13 19:08:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Add variant Makruk

Thai Chess, played by 2 million world-wide. Required pawn promotion to
happen in a zone, and the Alfil to move as Shogi Silver, a new opening
array, and unusual Pawn placement. Because of the latter, I consider it
a setup position, so a FEN will always be sent to the engine.

2010-01-17 14:17:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix parsing of O-O and O-O-O after FEN pasting in FRC

Because the initial rights were not set in the FEN reader, the
initial rights of the previous game remained in force, so that the
parser did not understand OO-castling (although it would allow KxR
castling).

2010-01-15 14:40:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix reading FEN castling rights for knightmate and twokings

Scanning the back-rank for a King did not work in these variants,
because either the Unicorn castles, or there might be two Kings.

2010-01-13 11:42:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix omission in castling refactoring for ICS received boards

A default of -1 was still used, in stead of NoRights, when no Rook was
found. In theory this could have had effect in a setup board 0 in FRC,
when there were no Rooks on the back rank.

2010-01-13 11:35:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix TwoKings ICS castling-rights bug

Scanning the rank (as is done because of FRC) assigned castling rights
to the rightmost King. Even scanning the opposite direction would not
work, as it is not always the eftmost King that can castle. So we now
explicitly test for a King on e1/e8 in TwoKings and assign it rights,
relying on the Rook rights received from the ICS to control castling.

2009-11-18 19:12:25 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix double start of zippy engine after switch to gothic

In ICS mode we now switch to the proper variant as soon as we receive
the generic game-start message, to prevent a mismatch when the first
board is received (which would trigger fetching of a move list).

2010-01-11 16:44:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Extensive bugfix of -autoKibitz

Suppression of printing of diverted kibitz messages failed when they
extended over more than one read. This could even lead to such
messages being erroneously saved as comments, which then lead to
crashes. The suppression mechanism now waits for a prompt, in stead of
the end of buffer. This required the printing of any leftover in the
buffer to be deferred until the next read completes it.
The number of people kibitzed to is now printed.

2010-01-11 16:30:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix piece-to-char table -variant fairy

The letters for Lance and Snake where swapped.

2010-01-09 11:54:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make WinBoard makefiles use parser.c in XBoard directory


2010-01-08 18:23:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Docs update for new features


2010-01-08 15:18:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix new args parsing of -lowTimeWarningColor

This did not occur in the XBoard color translation table yet.

2010-01-08 14:16:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow editing of holdings in EditPosition mode

Dragging pieces to and from the holdings now consistently keep track of
the home square of pieces and the piece counts, as does creation of
pieces in the holdings through the piece menu.

2010-01-08 13:59:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Indicate squares a lifted piece can legally move to

Under control of the new option -showTargetSquares when
-highlightDragging and -testLegality are on, the squares a piece can
move to are marked by fat dots in the highlightColor (non-captures) and
premoveHighlightColor (captures), as soon as you grab it for dragging.
In variants with mandatory capture, the capture target of other pieces
is marked with the highlightColor (as non-captures are then not allowed).

2010-01-08 12:35:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix bug for incommensurate time odds

After normalization (-timeOddsMode 1) the time odds factors can be
non-integer, and thus must be stored as float.

2010-01-08 11:41:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Display PV right-clicked from EngineOutput window

The clicked PV is selected and the memo gets focus, so that it is
highlighted. This selection is restored in the proper place after
insetrtion of a new line in the memo.

2010-01-08 10:19:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Display PV on right-clicking board


2010-01-08 09:21:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Bugfix legality null move in parsing with -testLegality off

The pointers were compared, in stead of the values.
Furthermore, instead of null moves, it rejected moves on the main diagonal when legality checking was off.

Also exclude moves with empty squares and enemy pieces.

2010-01-07 19:10:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Newly lexed winboard/parser.c


2010-01-07 19:05:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Harmonize declarations of XBoard and WinBoard

The engine-exit and settings patches make some stuff common to WinBoard
and XBoard, which needed to be harmonized, and is moved to frontend.h.

2010-01-07 13:07:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow Ctrl-C copying from EngineOutput window text to clipboard


2010-01-07 12:52:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Allow popup-less (fatal) exit of engine after tellusererror


2010-01-07 12:40:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Improve layout of Engine #N Settings dialog

An attempt is made to align the input fields of spins and text-edits

2010-01-07 00:31:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Let XBoard print version with argument --version or -v


2010-01-07 00:25:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix castling rule assignment in shuffle games

The conversion to in-board storage for rights copied directly to boards[0] in steadof
initialPosition, and was then overwritten when the latter was copied with uninitialized
rights to boards[0]. This affected FRC and CRC, where rights are non-standard.

2010-01-07 00:17:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Implement castling in -variant caparandom

CRC should be treated as FRC, but until now it never was. We now test for FRC_TYPE_CASTLING.

2010-01-07 00:09:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix default castling rights on reading incomplete FEN

This was overlooked in the conversion to the in-board storage of rights.

2010-01-07 00:03:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Fix NoncompliantFEN defaults.

This must be NULL to get compliant FENs, not "", which would suppress castling and e.p. fields.

2010-01-06 23:54:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Change format of -adapterCommand.

first or f at the start of an option name are now automatically changed into second or s,
rather than needing %% to be recognized. The values of -ec and -ed in the default
-adapterCommand are now quoted (now XBoard understands quoting in the engine command line).

2010-01-06 23:51:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Make WinBoard defaults for -fd and -sd equal to "." rather than empty strings.


2010-01-06 23:28:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Delete old indirection settings-file code


2010-01-06 21:45:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Correct XBoard default debug file name


2010-01-06 21:34:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
Suppress saving font settings.

The fonts are size dependent, and might thus not be reusable in the next
session. For now we therefore suppress the saving of them in the
settings file, until we diversify the fonts per boardSize.

2009-12-12 23:38:20 -0800 Arun Persaud <arun@nubati.net>:
added missing sounds files to be able to compile on windows


2009-12-09 17:29:37 -0700 Eric Mullins <emwine@earthlink.net>:
Changes needed to compile master branch.


2009-12-06 12:11:46 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
implements the eval-graph window for XBoard


2009-12-06 11:58:34 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
improves the XBoard handling of the engine command line

it now understands limited forms of quoting, so engine binaries with spaces in their file name can be handled.

2009-12-06 11:56:40 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
A better and more flexible way of invoking Polyglot

rewrote uci.c. No more use of temporary files, all data passed through the engine command line. Adds a new command-line option -adapterCommand for this.

2009-12-06 11:34:50 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
remove trailing \r in xboard output

there is an annoying carriage return (displayed as ^M) at the end of the PV in the engine-output window, not
only with Fairy-Max, but also with UCI engine running under Polyglot. This patch replaces the trailing CR that Linux programs send after the PV line y a space.

2009-11-29 11:56:32 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
double buffer size to prevent overflow

This patch doubles the size of the ICS input buffer to 16KB, to prevent
the suspected overflow with -keepLineBreaksICS false when using
"inchannel 1" on FICS and over 500 people are tuned in.

2009-11-28 13:33:52 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix problem with empty string in -firstNeedsNoncompliantFEN

This fixes a bug in the use of the -firstNeedsNoncompliantFEN option with
an empty string as argument. (Which led to truncation of the FEN.)

2009-11-28 13:32:12 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
updates makefiles to include dependency on config.h

adds the dependency of wbres.o on config.c introduced by having the VersionInfo in the resource

2009-11-28 13:28:00 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
correctly apply some check boxes from the option menu

Usng the check-boxes in the Option->Adjudications menu to indicate the
engine reports absolute scores is now copied directly to the ChessProgramState,
from where it is used, in stead of only to appData. This makes the change take
effect immediately, in stead of after restarting.

2009-11-28 13:27:43 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
score sign in analysis mode

this does not alter any of the current behavior with compliant engines,
but does extend the correction for non-compliant score reporting under
control of the -first(second)ScoreIsAbs option to cases where the engine
is analyzing or playing on an ICS.

2009-11-24 21:09:30 -0800 Arun Persaud <arun@nubati.net>:
fix for bug #28077: xboard needs to link against x11

hopefully fixed automake to take care of this

2009-11-23 20:37:20 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
Fix castling rights when copying FEN to clipboard (again)

missed a spot last time

2009-11-23 20:22:58 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
restoring windows (EngineOutput and MoveHistory) on startup

restoring the open / closed status of the
auxiliary windows (EngineOutput and MoveHistory) on startup
in XBoard like they do in WinBoard, which makes sense now that
we aso remember their coordinates between sessions.

2009-11-23 20:21:14 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fixed some outstanding pixmaps

fixed transparency issues

2009-11-23 20:17:25 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
use linux style options for config file and add a system config file for XBoard

This patch makes XBoard write the options to its conf file in
Linux style, "-option value" rather than Windows style "/option=value".

The WinBoard option parsing code has always understood both formats
(including any hybrids), but the format it preferred for writing might
look quite strange to Linux users. I also attached a file to be installed
as /etc/xboard/xboard.conf on "make install".

2009-11-23 19:58:55 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix window positioning

This patch adds stuff in the header files that allow the various front-end files
to share information on which windows exist, are up, and how they are positioned.
The EngineOutput, MoveHistory and GameList windows now all remember their
position and size, even when they are closed when XBoard exits.

2009-11-23 19:51:19 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
same argDescriptor parsing for Xboard and Winbaord

This patch makes XBoard and WinBoard use the same argDescriptor
list of options, and (largely) use the same code for parsing and saving them.
This is acheived by moving this code to a new file args.h, and #including this
in both winboard.c and xboard.c (so that tiny differences, e.g. in default
values in the table, are decided by the context). XBoard has new menu items
"Save Settings Now" and "Save Settings on Exit" in the "Option" menu.
XBoard uses /etc/xboard/xboard.conf as default settings file.
A new option, -saveSettingsFile, can specify where settings should be saved,
without parsing the file. (So that it also works if the file does not yet exist.)

2009-11-22 13:00:31 -0800 Arun Persaud <arun@nubati.net>:
new developer release

changed release name to <branch>-<date>

2009-11-22 12:34:13 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix the irritating wandering off of the MoveHistory window in XBoard on opening/closing.


2009-11-22 12:29:47 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
use xtell for talking to handles, but tell for talking into a channel.

by changing the chatboxes to use xtell in stead of tell, we broke
the possibility to use the chat-box for chatting into a channel (which is
apparently not possible with xtell).

2009-11-22 12:15:15 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix bug in bughouse drop menu

This patch fixes the bughouse drop menu, which was broken by the
new mouse driver, and could no longer drop white Pawns.

2009-11-18 19:29:57 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
2nd step for moving option parsing from winboard to the backend

This is the next step in option-setting refactoring: All options that are
defined in XBoard are now included in the WinBoard ArgDescriptor list.
The handling of sound option has been harmonized: the sound names
now all initially go to the appData array, (as in XB) in stead of directly to the
WB-specific variables, and LoadAllSounds now takes care of the copying.
A new routine ExportSounds copies them back before saving settings
(which, in XBoard, could be a no-op).

The definition of defaults for the XB-only options has been moved to common.h.

2009-11-18 19:24:35 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
1st step for moving option parsing from winboard to the backend

This is a preparatory step in moving option parsing of WinBoard to the back-end.
The table of command-line options now contains a fifth field, holding the compiled-in default.
This obviates most of the front-end routine InitAppData, which now is replaced by a table-driven
initialization routine SetDefaultsFromList(), which could be back-end.

2009-11-18 12:33:39 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
refactoring evalgraph code

This is the refactored EvalGraph code: the back-end part is separated off,
and put in a file evalgraph.c, which in the future can also be used with XBoard.
Only the WinBoard front-end code is left in the file wevalgraph.c. A new
header file defines the variables and routines they share.

2009-11-18 12:29:06 -0800 Arun Persaud <arun@nubati.net>:
clean-up

some file permissions where set up wrong
(e.g. execute permissions for text files)

2009-11-18 11:34:22 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
refactoring of engineoutput

This refactoring patch separates the back-end part out of
xengineoutput.c, and puts it in a separate file engineoutput.c.
A new header engineoutput.h included by both defines the routines
for cross calling. Similarly wengineo.c will be stripped from its
back-end code, (and renamed to wengineoutput.c), so WinBoard and
XBoard now both use engineoutput.c rather than maintaining duplicate
code in their front-end part.

I also let the back-end now call EngineOutputUpdate directly, rather then
through a relay in the front-end, by renaming it to SetProgramStats
(the former name of the relay in winboard.c / xboard.c).

Moved some templates of functions in engineoutput.c from winboard.h
to frontend.h

2009-11-14 22:13:10 -0800 Arun Persaud <arun@nubati.net>:
fixed build on openbsd

added missing header file

2009-11-14 22:06:58 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
improve thinking-output for mulit-variant

Improve multi-variant support by sorting the Thinking-Output lines of the most recent depth by score in the Engine-Output window.

2009-11-14 22:05:12 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix castling rights when copying FEN to clipboard

This patch forces leaving of Edit-Position mode before copying a FEN to the clipboard, to make sure castling rights are faked in a consistent way. Before you could get FENs that had castling rights for non-existent Rooks.

2009-11-14 22:03:47 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
This patch gives a better handling of comments in PGN files, and adds the variation as comment to the main line on using Revert in local mode.


2009-11-06 18:53:19 -0800 Arun Persaud <arun@nubati.net>:
fixed prototype for AppendComment


2009-11-06 09:06:44 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
cleaned up some debug messages and typos


2009-11-06 09:05:09 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
variation-support patch

It allows you to Revert to the main line (or previous variation) when
playing variations on an existing game in EditGame or Analyze mode.

2009-11-06 08:48:09 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
fix for new way of saving castling and e.p. information

I forgot to make some conversions to the new-style encoding of castling there
(using the enum constant NoRights instead of -1 to indicate
the absence of rights, which was the price of storing the
rights in the board, which is an unsigned enum type.)

I also was a bit worried about portability, because I casted the enum type ChessSquare
to (int) before comparing it with (possibly negative) constants EP_NONE etc.
Now on my system enum types are (unsigned int), and this works, but I could
imagine there are systems where this would be an unsigned char. (Not sure
if there are rules for this). So to be safe I cast ChessSquare to (signed char),
which should always work to make small negative ints assigned to it read
back as themselves.

2009-11-06 08:44:59 -0800 Arun Persaud <arun@nubati.net>:
removed files that should only be in the windboard directory


2009-11-05 19:32:35 -0800 Arun Persaud <arun@nubati.net>:
add Winboard source files into tar-ball

forgot to add them when rewriting the Makefile.am

2009-11-05 19:23:44 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
Integrate castling and e.p. rights into board array; bugfix for EditPosition

A large-scale operation that I have been postponing since the very first 4.4.0:
The castling and e.p. rights are now integrated into the board array, as
boards[moveNr][CASTLING][i] replacing castlingRights[moveNr][i] and
boards[moveNr][EP_STATUS] replacing epStatus[moveNr]
These quantities are now automatically copied with the position by CopyBoards
(allowing the removal of lots of dedicated copying code), and passed as
function arguments with the position (so that the moves.c functions like
TestLegality, MateTest, CoordsToAlgebraic, Disambiguate, GenLegal
no longer need explicit e.p. and castling parameters.

Also fixed a bug introduced by a recent previous fix: by adding fake castling
rights to a position set up through the EditPosition menu, I destroyed the
castling rights of a pasted FEN. Faking castling rights is now made conditional
in EditPositionDone(), depending on the caller. (I had not realized it was also
called after FEN pasting, to send the position to the engine.)

2009-11-05 19:03:17 -0800 Arun Persaud <arun@nubati.net>:
added missing library for build on OS X

Xmu seems to be missing

2009-11-04 22:57:30 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
Some code refactoring and cleanup; one small bug fix

Some code refactoring, mainly to bring definitions of routines and variables
shared between winboard.c and one of the auxiliary-windows files
whistory.c, wevalgraph.c, wgamelist.c, wengineo.c somewere in a header file
(winboard.h). Unfortunately this made winboard.h dependent on data types
defined in frontend.h, so that the #include order had to be changed in many
other .c files.

The operation revealed one potentially bad bug: engineOutputDialogUp was
written as int in engineo.c, but declared as char in winboard.c.

I also changed the storage mechanism of the the comment and tags window
positions to use WindowPlacement structs rather than simple variables,
so that in the future they can be docked, like the others.

I also removed some remnants of the Analysis window.

The wgamelist.h and wedittags.h header files contained only 3 lines, and
I absorbed them in winboard.h, rather than creating other such nearly empty
headers engineo.h, whistory.h and wevalgraph.h. This affects the make files.

2009-11-03 18:26:06 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
let the clocks run in -searchTime mode


2009-11-02 17:41:12 -0800 H.G. Muller <h.g.muller@hccnet.nl>:
add fixed time per move to the WinBoard time-control menu dialog


2009-10-31 10:42:50 -0700 Arun Persaud <arun@nubati.net>:
updated version number to unstable


2009-10-31 10:25:37 -0700 Arun Persaud <arun@nubati.net>:
release of version 4.4.1


2009-10-30 19:59:23 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
cleaned up ChangeLog and NEWS

2009-10-30 20:02:40 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
use xtell instead of tell in wchat

2009-10-28 20:35:06 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
prevent buffer overflow

This is a buffer-size adjustments to prevent the JAWS version from
crashing when it has to read out loud very long comments.

2009-10-28 02:17:16 -0700 Tim Mann <tim@tim-mann.org>:
Further copy/paste fixes

We needed to implement the XA_TARGETS target in order for more
sophisticated apps to really believe we put anything on the clipboard
they can use.

2009-10-27 23:57:25 -0700 Tim Mann <tim@tim-mann.org>:
Make copy/paste position and game use clipboard, bug #27810

Copy actually sets both the clipboard and the selection for
convenience and compatibility with the old way of doing things.
Paste pastes from the clipboard by default, but the new -pasteSelection
option lets you get back the old behavior of pasting from the
selection.

2009-10-27 15:44:28 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
switch focus to the board after loading a game

2009-10-27 15:32:07 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27826: fixed autoDisplayComment

apparently the -autoDisplayComment option was not working,
not even in WinBoard. This patch should fix it,both for WB and XB.
(Unfortunately xboard.c and winboard.c were using a different name
for the same front-end variable I needed, so I had to change one of them.)

2009-10-27 12:24:56 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27826: ported two options to xboard

also updated the documentation

2009-10-27 12:22:36 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed jaws version

turns out the new mouse handler broke the JAWS patch, as I discarded
the function IsPromotion. I adapted it to call HasPromotionChoice instead.
Also fixed two arnings by removing a no-longer needed debug print.

2009-10-27 12:03:02 -0700 Arun Persaud <arun@nubati.net>:
reformated html to be correctly validated

2009-10-27 10:33:42 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
quick fix for "White Mates" in parser.l

2009-10-27 10:32:24 -0700 Arun Persaud <arun@nubati.net>:
fixed a regression

2009-10-26 20:45:15 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changed stderr to debug output, since stderr is closed in winboard

2009-10-26 20:42:24 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
removing empty lines from ICS play

this patch causes removal of spurious prompts during ICS play
also if the prompt is preceeded by a number of empty lines
(as the board for the opponent move is on FICS).

2009-10-26 20:40:00 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
another bug in VariantSwitch: an unitialized board was printed.

Must have been there a long time, but this time it crashed WinBoard.

2009-10-26 20:38:37 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
more work on variant switch

the previous solution to the cosmetic problem of displaying a wrong shuffle
in an ICS game that was observed from the very start unfortunately turned
out to cause a real error in diplaying a stored game through the smoves
command, for variants not using the FIDE setup as standard.

This patch displays the position from before setting up the start position
of the new variant, but does setup boards[0] to the initial position of that
variant. (If this is a wrong shuffle, it is thus ot displayed, and a new board
will immediately be sent from the ICS to correct the shuffle.)

2009-10-26 20:34:04 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
force full redraw in winboard

Full redraw is now always forced when highlightMovesWithArrow is on,
rather than only when highlight info is available. (As in drop moves the
latter is invalid, but we must still erase the arrow from the previous move.)

2009-10-26 20:25:55 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27790 and #277772. Suppressing the display of a wrong shuffle
when observing shuffle games from the first move (#27790 bis),
and the sounding of the FICS bell on crazyhouse captures (#27772 bis).

2009-10-26 20:22:13 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed bug related to unsigned char in convert.c

I also fixed the unsigned-char bug in the convert.c for bitmaps that caused the
129x129 XBoard bitmaps to be defective, and a bug that required fixup with sed
afterwards (so I could use it to create a new m33s.bm)

2009-10-25 23:37:48 -0700 Arun Persaud <arun@nubati.net>:
unguarded debug printf. added the appropiate if statement

2009-10-25 23:31:13 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for two compiler warnings

2009-10-25 23:29:43 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27799: fix for nested-nested-nested variations

2009-10-25 23:21:07 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
The book-probe code forgot to close the book file after opening it.

fixed by adding an fclose at two points.

2009-10-25 23:18:18 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
removed unused v54?.bm bitmaps from resource file

it seems the v54?.bmp bitmaps were actually included in the WinBoard build
(in the resource file), although they were never actually used. So I have
removed their inclusion in the resource file now.

2009-10-25 23:05:30 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
replaced defective bitmaps with copies from 4.2.7

2009-10-25 23:02:08 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
removed bitmaps files that are not needed any more

2009-10-25 22:58:34 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed some bitmaps

2009-10-24 09:41:39 -0700 Tim Mann <tim@tim-mann.org>:
Drop an obsolete script that was only used to update my personal web site

2009-10-24 01:23:29 -0700 Tim Mann <tim@tim-mann.org>:
Silence warnings when compiling 64-bit xboard

Some harmless warnings were caused by 64-bit mode having 32-bit
int but 64-bit long and pointer.  Add casts (etc.) to silence them.
This might require adding a definition of intptr_t (a signed int
type that is the same width as a pointer) on old systems that don't
have it.

2009-10-24 00:56:37 -0700 Tim Mann <tim@tim-mann.org>:
Fix up man page some more

Sigh, the project history was still partly in reverse chronological
order and partly in forward order.  Swapped the order of some
sentences to help straighten it out.  I don't really care about this,
so other project members should feel free to do what they like here,
but the messed-up order was bugging me.

2009-10-24 00:46:20 -0700 Tim Mann <tim@tim-mann.org>:
Fix some issues in the XBoard man page

Correct places where the XBoard man page was calling XBoard
"WinBoard".  Change references to "WinBoard engines" and "WinBoard
protocol" to "XBoard/WinBoard ...".  Update bug reporting guidelines.
Reorganize project history to something more like chronological order
-- it had gotten pretty randomly ordered.

2009-10-22 21:45:32 -0700 Arun Persaud <arun@nubati.net>:
new pre-release version; updated version numbers

2009-10-22 21:33:07 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
This patch adds <Enter> to the characters that cause an automatic
switch to the ICS console when typed to the board window.

2009-10-22 21:31:16 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix to the minor graphics issue contained some typos,
as was remarked in the bugs reports

2009-10-22 21:30:08 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
improved mouse handler

The improved mouse handler still needed an extra call to DrawPosition to
work in XBoard.

2009-10-22 21:28:38 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
NPS plays and pondering

Clock updating did not work correctly in node-based time controls when the
engine was pondering. (It was not really meant for use with pondering. Oh well...)
This patch checks if the engine reporting the node count is indeed thinking
(as opposed to pondering).

2009-10-22 21:25:36 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
holdings update and regression fix

The holdings-update patch was not yet satisfactory, because FICS seems to send
holdings both before and after the board! And those received before did overwrite
the holdings received after the previous board. I know tried to fix that in a kludgey
way, by hiding a flag in the board that tells if the holdings have already been written
by the ICS or not, and ignore new holdings when they are. (Except in bughouse,
where holdings updates cannot be tied to a particular board and multiple updates
between boards are normal. (I hope?).)

I also undid a regression in my previous fix for the minor graphics problem,
and solved it in a slightly different way to prevent flicker.

2009-10-22 21:23:39 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
improved mouse handler

I improved the mouse handler in a way which will preclude disappearence of pieces
on off-board or ambiguous (in-between squares) drag & drop moves. (As was reported
in the "premove bug?" thread. Also the command-line premove problem reported there
is now fixed, by removing the prefixing.

2009-10-22 21:18:05 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #8847: moving backward while examining on FICS not reported to engine

I moved Daniel's code that backs up the engine when a bord with a
lower number is received to a place where it is always done in zippy mode,
rather than only when the engine is analyzing.

Apart from taking back moves, there was also the case where the
user moves forward by more than one move (usually immediately to
end-of-game). In this case a new movelist is fetched from the ICS
to recover the moves that were skipped. But this assumes that the
engine is at the start of the game and feeds all these moves to the
engine. So the engine had to be reset in this case to stay in sync.

2009-10-22 21:16:56 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
better init for random number generator

2009-10-21 23:01:09 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27772: holdings not updated

holdings lines from the ICS nor update the holdings
of boards[forwardMostMove] in stead of boards[currentMove].

2009-10-21 21:32:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
allowe parsing / disambiguation of SAN moves like Xe4 in certain situations

This patch allows parsing / disambiguation of SAN moves like Xe4, if there
is only one wild-card piece X on the board. Moves with wild-card pieces
are now considered illegal if they leave the King in check by a piece of
known gait.

2009-10-20 19:09:46 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed bug when switching to variantsuper

2009-10-20 19:06:43 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27715: 2 (minor) graphic issues

I forced a total redraw when Reset is called from the ICS code in case a
new game is encountered, in the hope it will make the reported
(irreproducible) problem go away. As game switches are not frequent, I
guess there is hardly any downside to this.

2009-10-20 18:57:17 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27667: PV line missing in analysis window, part 3

"3. Wish for Engine state string (right to the icon):
Can you add the actual search depth in analyzing mode? A change like "

I also added the requested display of depth of the analysis move in the
EngineOutput window. I guess a similar change could be made to wengineo.c
(as this is in the code they share in common), but no one ever requested
that in the 5 years since Alessandro wrote it. So for now I leave it alone.

2009-10-20 18:52:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27760: debug printf in backend.c and additional check for variant

2009-10-19 23:17:46 -0700 Arun Persaud <arun@nubati.net>:
fix for bug #10990: cmail does not seem to support .cmailgames or .cmailaliases

this is correct, deleted the text out of the documentation that claims we support it

2009-10-19 18:40:40 -0700 Arun Persaud <arun@nubati.net>:
new alpha version; first one with new naming scheme

2009-10-19 18:07:21 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
smarter analysis of the boards that XBoard receives from an ICS

I added smarter analysis of the boards that XBoard receves from an ICS,
based on board size and piece types in the position, to recognize cases
where the board does not match the current variant, and switch to an
appropriate variant.

2009-10-19 18:04:08 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27667: window should be reference to toplevel

The remaining objections of #27667 should be fixed by bringing the
EngineOutput window under control of the TOPLEVEL compile-time switch.

2009-10-19 18:02:42 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
partly fix for bug #27715: scaling of menu bar

the menu bar to the left edge of the window.

2009-10-19 17:59:43 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed bug reported in WB forum: second game of a match would
not start when using the GUI book

2009-10-19 17:57:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27751: negative holding counts displayed

I put code in the back-end to prevent holdings counts from
becoming negative when a drop move is made from empty holdings.
(This can happen when re-loading ICS bughouse games,
as the smoves command fails to fill the holdings.)

2009-10-18 20:54:53 -0600 Eric Mullins <emwine@earthlink.net>:
Updated compiling instructions.

2009-10-18 11:32:55 -0600 Eric Mullins <emwine@earthlink.net>:
Changes to allow fonts with any charset (such as terminal)

Affects winboard only.

2009-10-16 23:02:41 -0600 Eric Mullins <emwine@earthlink.net>:
Moved SIGWINCH signal so it can be used...

I goofed putting this in StartChildProcess() originally.

2009-10-16 22:54:12 -0600 Eric Mullins <emwine@earthlink.net>:
Added internal wrapping ability.

New options:
  -wrapContinuationSequence "foo"  (default: "\\   "
  -useInternalWrap (Winboard default: false, XBoard default: true)

Note: -keepLineBreaksICS if set, prevents wrapping, usurping the
   useInternalWrap setting.  The idea is if you want to keep ICS line
   breaks, then you don't want internal wrapping.  Because of this,
   the new default for keepLineBreaksICS is now false for XBoard.

2009-10-16 19:14:34 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed segfaul in convert.c used to convert pixmaps

2009-10-15 19:46:07 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
new mousehandler to correct for premove and promotion popup

this is the new mouse handler for XBoard, which should fully implement
premove, including promotion popup, and yet suppress the promotion popup
on illegal moves that are not premoves. It is almost completely moved to
the back-end now, so that WinBoard will be able to use it as well. I just
must hook it up to winboard.c, in particular harmonize the call-backs of
the mouse driver into the front-end for grabbing and releasing pieces for
dragging, to make sure they have the same names and arguments.

2009-10-15 19:32:55 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated black fairy pieces

here is a set of black fairy pieces with opaque white details,
so they have the same style as the orthodox XBoard pieces.

2009-10-15 16:54:51 -0600 Eric Mullins <emwine@earthlink.net>:
Adjustment to joining to work around server not always including space.

This patch implements commit 98aa02bda540f17f1f50be00e494efafe439b004
into the updated joining routine.  This issue seems not to be server
variance, but instead the server electing to omit the space between
words when it occurs at exactly your width setting (-1 actually).

This patch makes the joiner add back the space just like the referenced
commit.  Note: this is just a workaround to a server issue-- the joiner
actually joins correctly before this patch.

2009-10-15 07:18:42 -0600 Eric Mullins <emwine@earthlink.net>:
Fixed joiner detection, allowing it to work with timeseal

When timeseal's buffer fills in the middle of the continuation
sequence, detection fails, and the lines aren't joined.

As a result of this fix, measures intended to bypass joining are
no longer needed, so I removed them.  These utilize server vars
when available to prevent splitting.

2009-10-14 14:42:37 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed engingeoutput routine

removed outdated code regarding analysis window

2009-10-14 14:39:06 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
moved bitmap to correct location

was misplaced in a previous commit

2009-10-14 14:26:09 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed wrong number of arguments for EngineOutputPopUp

2009-10-13 21:00:27 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
new bitmap converter (including fill option) and new pixmaps

2009-10-13 20:52:40 -0700 Arun Persaud <arun@nubati.net>:
forgot to add these two lines to the last commit

2009-10-13 20:51:17 -0700 Arun Persaud <arun@nubati.net>:
removed AnalysisPopUp. Use EngineOutputPopUp instead

this was already in Winboard, copied it to xboard and removed unused code.

2009-10-13 20:32:32 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Proper board and holdings size when switching to variants
gothic, capablanca, great and super within an ICS game.

2009-10-13 20:25:13 -0700 Arun Persaud <arun@nubati.net>:
cleaned up an old #ifdef in zippy

2009-10-12 19:25:17 -0600 Eric Mullins <emwine@earthlink.net>:
neglected this for the auto-width updating in xboard

2009-10-12 19:19:59 -0600 Eric Mullins <emwine@earthlink.net>:
Added server width adjustment based on client width changes

2009-10-12 19:14:53 -0600 Eric Mullins <emwine@earthlink.net>:
silence some compiler warnings

2009-10-11 18:39:24 -0600 Eric Mullins <emwine@earthlink.net>:
Maintainence to support all compilers.

2009-10-11 17:07:27 -0600 Eric Mullins <emwine@earthlink.net>:
Adjusted alternative joining method to obey keepLineBreaksICS

2009-10-11 14:48:55 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27668: e.p. field still not passed to engine

PositionToFEN now takes the e.p. rights from epStatus[moveNr],
rather than calculating it on the spot from moveList[moveNr-1]
(which failed on the first move).

2009-10-11 14:46:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27666: naming of variants

Variant names "misc/xxx" are recognized as "normal", rather than "xxx"
to not get confused by the board "misc shogi" run by FICS.

2009-10-11 10:14:09 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changed enable menus

Put the "Open Chat Window", "Machine Both", and "Engine #N Settings" menu items
in the appropriate enable lists for graying them out wen not applicable.

2009-10-11 10:13:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Added a command-line option -keepLineBreaksICS true/false to control line joining.

2009-10-10 19:30:23 -0600 Eric Mullins <emwine@earthlink.net>:
Added code to prevent unnecessary width updates.

2009-10-10 18:34:37 -0600 Eric Mullins <emwine@earthlink.net>:
Turned off wrap when possible on ICS servers.

Turning off line wrap prevents splitting lines up using the
continuation sequence "\\   ".  This is desirable when using
timeseal because timeseal's buffer is sometimes too small,
causing it to break lines itself.  These lines can't be joined.

2009-10-10 16:30:56 -0600 Eric Mullins <emwine@earthlink.net>:
vsnprintf() must be _vsnprintf() for MSVC

2009-10-10 16:16:45 -0600 Eric Mullins <emwine@earthlink.net>:
added code to handle initial width update

2009-10-10 14:21:12 -0600 Eric Mullins <emwine@earthlink.net>:
Added width updates to ICS client on font and window size changes

What still needs to be done is placing an update call after login
to initialize with the correct width.  I didn't see where to put
that.

2009-10-10 14:19:30 -0600 Eric Mullins <emwine@earthlink.net>:
added ics_printf() and ics_update_width() and utility functions

2009-10-10 11:15:50 -0600 Eric Mullins <emwine@earthlink.net>:
Cleaned up ConsoleWndProc  (not complete, see below)

Using static variables this way is not appropriate.  I only addressed
hInput and hText in this commit though.  But imagine the WndProc being
used by multiple windows instead of just one, and you can see why
using static variables in this way is wrong.

2009-10-10 11:12:10 -0600 Eric Mullins <emwine@earthlink.net>:
Restructured URL code so it fits better with how winboard is set up.

2009-10-10 08:57:39 -0700 Arun Persaud <arun@nubati.net>:
cleanup: removed "#if 1" statements

2009-10-10 08:55:21 -0700 Arun Persaud <arun@nubati.net>:
cleanup: removed "#if 0" from source

a bit of cleanup of the source code

2009-10-10 08:34:10 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix joining of lines split by ICS

This patch fixes the joining of lines that were split by an ICS, so that adding
a space at the break point is done only when there was not a space already.
(Some ICS leave a space at the end of the broken line, others do not.)
An extra space would interefere with board12 in Gothic Chess, which is so
long that the ICS breaks it, and the WB parser could not handle a double
space within the board.

2009-10-10 08:27:55 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for bug #27642: Clock jumps strangely in engine mode

This moves SwitchClocks() back to after incrementing forwardMostMove,
so that it knows again who has the move (which was broken by the "bare" patch),
and will take the appropriate tick length.

2009-10-10 08:26:13 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
removed test for premove

this was added while looking for the premove bug, but is not needed

2009-10-10 02:03:45 -0600 Eric Mullins <emwine@earthlink.net>:
added URL detection and provided hotlinks in the ICS client

2009-10-10 02:00:52 -0600 Eric Mullins <emwine@earthlink.net>:
reverted winboard.c beofre URL commit to correct whitespace conversion

2009-10-09 02:14:22 -0600 Eric Mullins <emwine@earthlink.net>:
Added URL detection into the console text window for ICS.

2009-10-08 23:51:06 -0700 Arun Persaud <arun@nubati.net>:
added some comments and formated code

2009-10-08 23:46:52 -0700 Chris Rorvick <>:
fix printing out help message (list of command line options) (tiny change)

The postfix increment always resulted in an attempt to print out an
option on the right side regardless of one actually existing. Use
prefix increment to prevent a crash when printing an odd number of
options.

2009-10-09 00:04:51 -0600 Eric Mullins <emwine@earthlink.net>:
Updated navigation accelerators, fixing ICS problems.

Recent changes to the navigation accelerators were in the wrong
accelerator table.  Since the goal was to correct non-JAWS versions
back to 4.2.7 behavior, I updated it to how 4.2.7 did it, but still
retained the #ifdef JAWS conditional compilation.

On an ICS, the navigation keys took control away from the ics
client to navigate the game.  The update requires the ALT key to
be pressed, but it works identical to 4.2.7, not causing an
unexpected focus back to the board window when you're just editing
text.

2009-10-08 20:33:39 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed premove recapture problem;promotion popup appearing on
obviously illegal moves; promotions in Superchess and Great Shatranj

1) the premove recapture problem
2) the promotion popup appearing on obviously illegal moves (the 1. e2a8
problem)
3) promotions in Superchess and Great Shatranj, where the piece can now be
selected from the holdings

2009-10-08 20:28:50 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added forceIllegalMove to xboard

2009-10-05 21:01:32 -0700 Arun Persaud <arun@nubati.net>:
bugfix: segfault when invalid option argument was given (bug #27427)

when given a wrong argument to an option (e.g. -tc 0) xboard aborts
before setting up the window, but tried to write a message to the
messageWidget which doesn't exist at that point.

2009-10-05 20:05:00 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
small improvement for JAWS version

This is a patch to make JAWS read out any comments when /autoDiplaycomment=true.
As focus does not stay on the Comment window, the comment was not spoken otherwise.

2009-10-05 20:02:50 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated to winboard internationalization scripts

Also a slight improvement of the internationalization scripting,
to prevent it from crashing on messages containing a slash.

2009-10-05 20:01:53 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
new forceIllegalMoves option

The -forceIllegalMoves option uses setboard or edit to force a position
when an engine refuses the move leading to it by an "Illegal Move" message.
Especially for engines using the edit command this was a bit tricky,
because of the a2a3 kludge to avoid using the white and black commands.

2009-10-05 01:01:54 -0600 Eric Mullins <emwine@earthlink.net>:
removed _winmajor if not defined so that VC 2008 can compile the project

The oldDialog variable should just be set to 0 in all cases now, and
as such, legacy code supporting the old dialog ought to be removed.
The test for _winmajor is against < 4, which is always false at present,
causing oldDialog to be 0 in every conceviable circumstance.

2009-10-04 09:58:29 -0700 Arun Persaud <arun@nubati.net>:
getting ready for 4.4.1 release

2009-10-02 20:47:01 -0600 Eric Mullins <emwine@earthlink.net>:
Simplified future version changes.

Added a numeric version to config.h that is now used in winboard.rc
instead of being hard-coded there.  Just be sure to preserve the
proper format (4 comma-separated 16 bit integers) or else it won't
compile.

2009-10-02 16:56:01 -0700 Arun Persaud <arun@nubati.net>:
updated version number to 4.4.1.pre

should have done this straight after the last release, but forgot...

2009-10-02 16:48:03 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
worked on premove bug

I made an attempt to make premove unsensitive to a race condition,
just in case the premove problem was caused by that (which seems unlikely,
but in any case  I added some debug printout to test this).

2009-10-02 16:41:12 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed loading of saved games via command line

the variables forwardMostMove and backwardMostMove where set to zero
at the wrong place.

2009-10-02 16:39:20 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
small fixes for the JAWS version

* I moved saying 'check' by the JAWS version to where castling also benefits from it.
* I made sure the check symbols are also recognized on promotion moves
* In the non-JAWS version, define the plain arrows as shortcut keys for the button bar

2009-10-01 16:50:28 -0600 Eric Mullins <emwine@earthlink.net>:
Fixed bug dereferencing garbage, causing crash.

Commit fa8be4a3fc5d81e9ec1f6c218fcf55c95d34fd10 included code to free the
resultDetails of the gameInfo structure.  That exact code exists a few lines
above where it was added.  None of these free() calls finish by setting the
member to NULL afterword, therefore repeated attempts to test/free() the
members result in an attempt to free() memory winboard no longer owns, and
an eventual crash.

link to problematic commit: http://git.savannah.gnu.org/cgit/xboard.git/commit/?id=fa8be4a3fc5d81e9ec1f6c218fcf55c95d34fd10

2009-10-01 16:49:57 -0600 Eric Mullins <emwine@earthlink.net>:
Added wchat.c to the project files we maintain.

2009-10-01 15:52:50 -0600 Eric Mullins <emwine@earthlink.net>:
Previous fix for VC++/strcasecmp() was wrong-- use StrCaseCmp().

2009-10-01 14:49:58 -0600 Eric Mullins <emwine@earthlink.net>:
Add resource ID for new Mute menu item.

I know this was probably done by HG, and simply left out of
his commit.  Anyway, the project can be built now after this change.

2009-10-01 14:49:09 -0600 Eric Mullins <emwine@earthlink.net>:
Use of strcasecmp() broke Visual C++.

2009-09-30 20:47:00 -0700 Arun Persaud <arun@nubati.net>:
wrong default value for engineDebugOutput

the new default is now 1

2009-09-29 22:55:41 -0700 Arun Persaud <arun@nubati.net>:
updated cmail.in to adapt the CVS->git change

don't reference $Revision:$ anymore.
Instead use reference xboard-version via autoconf.

2009-09-29 22:04:25 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
bugfix for protocol extensions: egtbpath -> egtpath

A new and very bad bug was discovered in the implementation of
the protocol extensions: XBoard sends a command "egtbpath" to the
engine in stead of "egtpath" from the protocol specs.
After discussion on WB forum it was decided that egtpath was better
than the egtbpath I originally had proposed, and I changed it accordingly,
but I had not realized that this string occurred TWICE in backend.c,
depending on if matched the -defaultPathEGTB of -egtFormats option.
I only changed the first occurence.

2009-09-27 12:27:44 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for edit-position "moves" being sent by XBoard to the engine

2009-09-27 12:25:25 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Engine did not start playing when out of GUI book on second move with white

2009-09-27 12:24:30 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Opening Engine #1 Settings crashed XBoard when there were no
text-edit options in the dialog (to which to set keyboard focus)


2009-09-27 12:18:35 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added a "Mute All Sounds" item in the WinBoard Options menu, on Eric's request

2009-09-27 12:15:20 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Updated the RTF docs for the chat windows, engine-settings dialog,
/keepAlive option and new game-list tag

2009-09-27 12:14:25 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Made the beep sounds for JAWS board navigation configurable through
command-line options

2009-09-27 12:11:49 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Prepared a system to internationalize the WinBoard menus

2009-09-27 12:10:38 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added the result comment to the game-list tags when the game list is
exported to the clipboard

2009-09-27 12:05:32 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
rewrote wevalgraph for better frontend/backend separation

I have finished re-writing the eval-graph code to have some
front-end / backe-end separation, something I had already started on my
holiday in Norway (when I had no internet :-)  ).
The new code now appears to work exactly like the old code,
and I guess it could be ported to gtk comparatively easily.

2009-09-27 12:00:51 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for keepalive and chat window

I made a fix to the keepAlive option so it does not send the date command
to the ICS after every move. This required changing ScheduleDelayedEvent()
so that it does not execute the event if a new identical one gets scheduled.
I also added the option to XBoard. Affects xboard.c (DOS!) and winboard.c

(This also cures the regression of the winboard.c copyright patch)

I extended the chatbox patch to also listen to channel tells, and divert
them to a chatbox for that channel number. Affects
backend.c and wchat.c

That should make those patches fully operational. No docs for either of them
yet, though.

2009-09-27 10:36:23 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed parse bug for pgn files

fixed the existing bug that the time-control tag was displayed as "?"
in the game list; turns out it was never parsed on reading PGN files

2009-09-27 10:35:58 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
allow the result comment as a display item in the game list

2009-09-27 10:35:13 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed the HAVE_LIBXPM-dependent compile errors

2009-09-27 10:24:47 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added a chat window to keep track of multiple conversations

The chat-window patch affects:
winboard.c, backend.c, winboard.rc, resource.h, backend.h, and adds
the file winboard/wchat.c, which also affects makefile.gcc and makefile.ms.

In addition I added a new option -keepAlive, which affects
common.h (in addition to winboard.c and backend.c).

As I had to modify backend.h, I also defined the -reset option type there,
which we are going to add later. This required some changes
to suppress warnings in wsettings.c.

2009-09-27 10:22:16 -0700 Arun Persaud <arun@nubati.net>:
more files for git to ignore

most of these are generated by make distcheck

2009-09-08 09:33:53 -0700 Arun Persaud <arun@nubati.net>:
another bug fix found by Stanislav Brabec

returned -1  in some case although the variable was a char...
changed to signed char

2009-09-20 23:13:13 -0600 Eric Mullins <emwine@earthlink.net>:
Swapped 'tell' and 'message' parsing order for colorization.
Sometimes messages are relayed as tells and should be colorized as tells.

2009-09-08 09:10:34 -0700 Arun Persaud <arun@nubati.net>:
added some more files to be distributed via make dist

as suggested by Stanislav Brabec

2009-09-08 09:01:07 -0700 Arun Persaud <arun@nubati.net>:
fixed some implicit declarations reported by Stanislav Brabec

2009-09-07 22:04:39 -0700 Arun Persaud <arun@nubati.net>:
fixed a few more small bugs reported by Stanislav Brabec

- A function uses a 'return;' statement, but has actually a value to
return, like an integer ('return 42;') or similar: xboard voidreturn
xengineoutput.c:766, 782

- Program returns random data in a function at xengineoutput.c:602

- With a new toolchain, AM_LDFLAGS cannot contain libraries. Linker
ignores them. Fix is attached.

- ToDo: Convenient name in most projects is TODO (autotools package it
automatically).

2009-09-06 19:11:22 -0700 Arun Persaud <arun@nubati.net>:
reverted .texi file and fixed Makefile.am

the problem was actually not in the texi-file, but the Makefile.am.
Reverted changes in the .texi and fixed it (hopefully) correctly now.

2009-09-06 18:23:01 -0700 Arun Persaud <arun@nubati.net>:
get "make distcheck" to work

needed to add all *.h files to Makefile.am and also the bitmaps that
are needed and some other files. Also had modified copyright.texi.

2009-09-05 09:54:37 -0700 Arun Persaud <arun@nubati.net>:
changed to version 4.4.0

2009-09-05 09:44:21 -0700 Arun Persaud <arun@nubati.net>:
updated AUTHORS, README and ChangeLog files for release

2009-09-05 08:52:09 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed some typos

2009-09-04 22:39:45 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
set castling rights after setting up a position

I was going through old WB forum posts, and I encountered a
bug report for a bug that I never fixed: The castling rights should
be properly set (actually: cleared) after setting up a position
in Edit Position mode (as opposed to pasting a FEN).

2009-09-03 23:11:18 -0700 Arun Persaud <arun@nubati.net>:
removed install files from master

they now live in their own branch

2009-09-03 22:30:18 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated polyglot protocol

I added a new option type "-reset" to the protocol for the new option feature.
4.4.0 does not implement it yet, but Michel wants it for future Polyglots,
and I think it is best to update the protocol in one big swoop.
So I want to already include it in the specs now. (engine-intf.html)
I made xboard's response to an unknown option type compliant
with the new protocol specs.

2009-09-03 22:28:50 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed some typos

2009-09-03 20:47:13 -0600 Eric Mullins <emwine@earthlink.net>:
Updated project files for DevCpp and Visual Studio to add wsettings.c

2009-09-03 20:46:33 -0600 Eric Mullins <emwine@earthlink.net>:
Added newline at end of file to silence warning.

2009-08-31 20:29:49 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
workaround for error message for missing pieces used in variants
and initstring bugfix: error messages showed for non-existing pieces
showed up for old user supplied pixmaps.
Loading a pixmap of the king for the missing pieces now.

Another bad bug surfaced: the -initString argument does not work in any
XBoard version! (Including 4.2.7b) The escape sequences for linefeed in
the string are not understood: -initString "new\nrandom\n" actually sends
the \ and n to the engine (which then does not recognize the line as a
valid command)!

So I also added a patch to expand escape sequences in the InitString and
ComputerString command-line options.

2009-08-31 20:27:24 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated installe script

I re-organized the doc files in the install, so they now all go in the
WinBoard\doc folder (and none in the root). I so included the COPYING
and COPYRIGHT files there. This required some updates of the links in
some html files, and of the menu link to README.html in the install script.
I also fixed an error with the current directory
in the menu short-cuts of some engines (which started in the fonts folder,
and could not find the opening book there...).

2009-08-31 20:25:17 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated documentation

2009-08-31 20:20:55 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated installer script

2009-08-31 19:51:48 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
new help files for windows

2009-08-25 20:41:29 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated installer

2009-08-25 20:36:53 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
undid some previous changes

some files got mixed up

2009-08-25 20:32:22 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed small bug in wsetting

2009-08-25 20:29:06 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
trigger a focus switch to ICS input field when typing

old behavior was that "." or "," triggered this,
now every printable character  except 1-9 will trigger the focus switch

2009-08-25 20:26:20 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
bug in backend.c when receiving lines from ICS

A space was appended to every character received from an ICS
in stead of just at line breaks.

2009-08-24 23:47:48 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed warning messages from compiler

2009-08-23 14:24:38 -0700 Arun Persaud <arun@nubati.net>:
fixed build on OS X

this seems to fix it. Bug reported by Louis Zulli who also did the testing.

2009-08-23 11:54:28 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
OK, this is the beefed up version of the Polyglot info-string kludge,
for WB and XB.

2009-08-23 10:22:48 -0700 Arun Persaud <arun@nubati.net>:
added missing X_LIBS references to Makefile.am

2009-08-22 23:33:44 -0700 Arun Persaud <arun@nubati.net>:
made the install script and executable

2009-08-22 23:19:07 -0700 Arun Persaud <arun@nubati.net>:
changed beta1 to beta2

2009-08-22 23:14:11 -0700 Arun Persaud <arun@nubati.net>:
fixed enable zippy in configure script and added some checks for OS X

make tried to compile zippy even when --disable-zippy was given.
Also fixed a bug in xboard.c where #ifdef instead of #if was used
to test for ZIPPY (it's either 0 or 1, so we need #if). Also added
some special checks for OS X, not sure if these will do it, but it's a start;)

2009-08-22 19:09:54 -0700 Arun Persaud <arun@nubati.net>:
added configure summary to configure output, also cleaned up configure.ac a bit

used AS_HELP_STRING where possible

2009-08-22 18:10:57 -0700 Arun Persaud <arun@nubati.net>:
added check for malloc.h

this should fix a build error on OS X

2009-08-22 17:47:44 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
A small cosmetic change in the size of buttons
inside a groupbox of the Engine-Setup dialog.

2009-08-22 17:32:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
make xboard usable with UCI engines

I made a small patch in xoptions.c (where the corresponding Engine Settings
dialog was for XBoard), to make it at least usable for UCI engines: I now
divide the options over upto 4 columns, if there are too many to fit into
a single column. This seems to work. Still looks very ugly, but it is
functional.

2009-08-22 17:30:05 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix premove for winboard

This might fix the illusive premove problem. In 4.2.7 the code was not properly
indented, and this led to an unbalanced braces error that I then fixed the
wrong way. Click-click premoves did only work after clicking the toSquare twice.
It might be that they actually did work after clicking it once,
but that the highlights were not displayed (although set)
for lack of a display refresh.

2009-08-22 17:28:11 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed bug for double saved games

This patch should solve the problem with doubly saved games when XBoard is
closed. I calculate a cecksum of each saved game now (including move comments),
and suppress saving if the checksum is not changed.

2009-08-22 17:25:58 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed xengineoutput.c, to keep the duplicated code identical to that of wengineo.c.

2009-08-22 17:24:08 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated xboard.texi: added warning that pixmaps are not build for all variants

2009-08-22 17:19:11 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added a dialog for engine-specific option settings

2009-08-22 17:09:58 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated some documentation

2009-08-22 17:07:10 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed several bugs in the backend and added some more polyglot support

* I added recognition for the new UCI3 option types that are recognized in the WB
option features, to make sure this version is compatible with future Polyglots.
Also fixed a bug that failed to strip an asterisk prefix from the first
combo-box item.

* I fixed the ICS-time-in-PGN bug.

* I fixed a bug which caused a space to be missing when long lines broken up by
an ICS were joined.

2009-08-22 17:02:58 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
better polyglot support for engine ouput

I fixed the algorithm for clearing the Engine Output window to work better with
the latest Polyglot, whight outputs UCI "info strings" amongst the thinking
output.

2009-08-22 16:23:32 -0600 Eric Mullins <emwine@earthlink.net>:
Beginnings of installer for 4.4.0.  HGM asked me to forward the nsi file,
but it seemed best to just add the installer tree to git even though
it's not finished.  You must install NSIS then FontName-0.7.exe
(included in installer folder) then run build.bat in the same directory.

2009-08-05 22:18:29 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
patch backend.c to make the -noGUI option also work in ICS mode.

2009-08-01 13:09:49 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
temporary fix for pre-select

As a temporary kludge I replaced looking into the holdings for the piece type
by figuring out which piece would belong on the clicked holdings square.
This is a non-trivial process, as it depends on which pieces participate
in a certain variant.

2009-07-30 00:19:37 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changed click-click moves

I got complaints about the way XBoard 4.4.0 handles click-click moves,
in particular changing the selected piece after selecting King
(for which I suppressed interference with FRC castling in a rather brutal way).
People tell me it is very annoying that clicks sometimes don't work to select a piece.
WinBoard uses refined logic in the back-end to handle this, but the XBoard
front-end is not interfaced with that yet.
(This would require a major rewrite of the mouse handler.)
This temporary patch suppresses this behavior in all variants that do not support
Fischer castling, and even there only exhibit it for Rook-after-King selection
(which will be interpreted as an attempt to enter a castling move as K x own R).

2009-07-26 08:43:35 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
option -adjudicateDrawMoves is not included in the XBoard list.

added it to the option list

2009-07-21 20:23:23 -0700 Arun Persaud <arun@nubati.net>:
converted files from dos to unix format

run dos2unix over a bunch of files

2009-07-16 07:43:38 -0600 Eric Mullins <emwine@earthlink.net>:
Stripped out unused VersionInfo

2009-07-15 23:16:19 -0700 Arun Persaud <arun@nubati.net>:
changed version to 4.4.0.beta1

2009-07-15 23:12:37 -0700 Arun Persaud <arun@nubati.net>:
updated INSTALL file to add ./autogen.sh

2009-07-15 22:44:05 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
higher number of engine options possible now

I upped the number of options per engine from
50 to 100, and the average number of characters per option from 10 to 20.

2009-07-15 12:30:37 -0600 H.G. Muller <h.g.muller@hccnet.nl>:
Fix of bad bug

2009-07-14 23:41:36 -0600 Eric Mullins <emwine@earthlink.net>:
Added version information to resources.

2009-07-14 23:40:50 -0600 Eric Mullins <emwine@earthlink.net>:
Added Jaws targets to IDE projects.

2009-07-14 23:39:12 -0600 Eric Mullins <emwine@earthlink.net>:
Final makefile adjustments and compiling instructions.

2009-07-13 22:35:17 -0600 Eric Mullins <emwine@earthlink.net>:
Cleaned up garbage left behind from my makefile update.

2009-07-13 22:26:56 -0600 Eric Mullins <emwine@earthlink.net>:
Updated cmdline makefiles to be able to produce JAWS binaries.

This breaks support for MSVC 4.x.  It may still be possible to
use that compiler if you obtain the latest SDK from Microsoft.
MSVC 6.0 still works, but I had to change the target windows
version to 0x500 which causes warnings about building beta
applications.  This is all due to the use of MENUBARINFO data
type in the jaws binary.  You can reduce the WINVER to 0x0400
safely if you are not building a JAWS binary, and MSVC 4.x
will work fine.

2009-07-13 22:26:10 -0600 Eric Mullins <emwine@earthlink.net>:
Removed dependency on jfwapi.h

Allows anyone to compile a jaws compatible binary.

2009-07-13 22:23:31 -0600 Eric Mullins <emwine@earthlink.net>:
Fixed duplicate resource in winboard.rc

PLEASE remember to pull before commiting.  This is the 2nd
time I've fixed this.  It's a waste of time to keep fixing
the same problems.

2009-07-13 19:36:58 -0700 Arun Persaud <arun@nubati.net>:
resolved conflict between Xt and Xaw libraries

seems like we don't need to link against Xt.

2009-07-13 19:33:57 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
help-menu was not un-grayed in the JAWS version, when it played with engines

2009-07-13 19:29:53 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
integrated jaws into winboard

I integrated the JAWS patch now into WinBoard in such a way that the
JAWS and standard version can use the same resource file. This new
winboard.c contains the improved dialog layot of the JAWS version,
but none of the menus and JAWS-specific acclerator keys. The latter
are now generated at run time by code in jaw.s. As a result jaws.h
could be cancelled, as there the JAWS-specific defines are no
longer needed outside jaws.c (now the .rc does not use them), and
is incorporated in it.

2009-07-12 15:37:26 -0700 Arun Persaud <arun@nubati.net>:
fixed problem in autoconf using Xaw3d

rewrote the section for Xaw3d in the autoconf file

2009-07-12 15:29:28 -0600 Eric Mullins <emwine@earthlink.net>:
Added Jaws support to GCC makefile

2009-07-12 15:28:20 -0600 Eric Mullins <emwine@earthlink.net>:
added help support: MSVC IDE and DevCpp IDE project files

2009-07-12 15:26:49 -0600 Eric Mullins <emwine@earthlink.net>:
Removed obsolete makefiles and support files.

2009-07-12 12:33:26 -0700 Arun Persaud <arun@nubati.net>:
updated AUTHORS with the help of git. use

git log --pretty=oneline --name-only --author=AUTHORNAME v4.2.7..HEAD  |sort |uniq

a bit of hand editing and a quick emacs macro later and you have a nice
comma seperated list of all files changes by one author between two commits.

2009-07-12 12:31:47 -0700 Arun Persaud <arun@nubati.net>:
updated Changelog using git log --no-merges --pretty="* %ai: %s%n %b" HEAD v4.2.7

2009-07-12 11:34:28 -0700 Arun Persaud <arun@nubati.net>:
cleaned up some more copyright notices

2009-07-12 11:22:30 -0700 Arun Persaud <arun@nubati.net>:
updated copyright to reflect A. Scotte as copyright holder

need to mention him, since the paperwork won't be finished before the next release

2009-07-12 10:56:29 -0700 Arun Persaud <arun@nubati.net>:
updated patchlevel to "k"

2009-07-12 10:53:50 -0700 Arun Persaud <arun@nubati.net>:
fixed autoconf problem with VERSION/PATCHLEVEL variables

xboard used it's own version of PRODUCT, VERSION and PATCHLEVEL variables.
Switched to PACKAGE_STRING provided by autoconf

2009-07-12 10:29:46 -0700 Arun Persaud <arun@nubati.net>:
cleaned up old CVS left overs

removed $Id tags from all files

2009-07-12 10:10:17 -0700 Arun Persaud <arun@nubati.net>:
converted xhistory via dos2unix

2009-07-12 10:09:24 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed crash in history window

someone discovered that opening the move-history window in XBoard leads to
an immediate crash. Turns out that renaming the menu item broke it! (The
name of the item was apprently used elsewhere in the code to access it,
for putting a check mark there.)

2009-07-12 10:04:30 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fix for Animation of castling moves in Chess960

Animation of castling moves in Chess960 turned out to sometimes make the
king disappear from the display. For the time being I patched this in
xboard.c to suppress animation of FRC castling moves altogether. As FRC
castlings internally are represented as KxR, the to-square does not make
sense anyway, which made the animation look very weird even when it led
not to a king disappearance act. And the Rook move of a castling is never
animated.

2009-07-11 22:44:53 -0600 Eric Mullins <eric@hiarcs.(none)>:
Update GCC makefile to remove .obj targets.

Dunno how they got in there, but they should be .o

2009-07-11 22:42:41 -0600 Eric Mullins <eric@hiarcs.(none)>:
Update makefile dependencies on help.c and help.h.

2009-07-11 22:36:59 -0600 Eric Mullins <eric@hiarcs.(none)>:
Allow compiling with MSVC6.0 and 4.1

Move prototypes into help.h, after making sure that DWORD_PTR is
defined.  Include help.h from winboard.c and help.c so both files
benefit from the definition.

2009-07-11 18:26:16 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
 lists these accelerator keys in the menus for JAWS

2009-07-11 18:24:19 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added shortcuts

This patch allows the use of Ctrl+C and Ctrl+V for Copy Game
and Paste even in I C S mode when the board has focus.

2009-07-11 18:22:17 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
better handling of pasting a game without PGN tags

patch in wclipbrd.h to make it smarter to decide between pasting
a game or a position so it can handle games without PGN tags.
If it doesn't parse as a FEN it is assumed to be a game.

2009-07-11 18:20:56 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed parser error for knight move

The parser had a strange quirk: it recognized bd2 as a valid Knight move
(Nb1-d2) while this SAN format should be reserved for Pawn moves only.

2009-07-11 18:19:30 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
 fixed a few warnings in connection with the help patch (now warning free)

2009-07-11 18:13:50 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
some major re-assignment of accelerator keys in the JAWS

2009-07-11 16:54:53 -0600 Eric Mullins <eric@hiarcs.(none)>:
several small fixes

uptracked winboard.ini

* Cleanup: moved "Some definitions required..." from winboard.c to config.h,
and combined some definitions from borland w/ MS.

* Changed internal HtmlHelp return type and 4th argument to facilitate various
compilers.  These changes, while not strictly adhering to HtmlHelp() conventions,
won't impact anything since the function modified is internal only.

* Modified HtmlHelp return values to integer to silence warnings.
* Added help.c to the project in makefile.gcc & makefile.ms.
* Fixed duplicate resource in winboard.rc.

2009-07-09 22:08:15 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added JAWS support; help files for Vista; bugfixes for winboard.c

* JAWS support
* help files should now work under Vista (the user has to have either
  a program to view old windows help files or to view html-files installed)
* I fixed the tabbing between all windows that were added according to Tim's sugestions.
* I added typing in of a move number in the move type-in dialog as a shortcut
  to going to that position by use of the < and > buttons. Mainly intended to
  ease life for the blind, but I think it can be generally useful.
  (Although the move-history dialog provides that functionality too,
  this is quicker if you don't happen to have it open.)
* I added typing of a FEN in the move type-in dialog in Edit Position mode.
  (Which could not be used without mouse at all, and is defective
  in crazyhouse even with mouse, as there was no way to populate holdings.)

2009-07-09 22:03:00 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
some bugfixes: ICS error handling

* play a different sound for takebacks in ICS mode
* pop up error messages for illegal moves for typed-in moves

2009-07-09 21:50:41 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
removed no longer needed debug message

2009-07-09 21:48:23 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed compile error from a previous change

2009-07-09 21:44:54 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
user selectable font in game list

This makes the game list use the same (user selectable) font
as the the move-history window.

2009-06-30 21:27:34 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed typos in xboard.texi documentation.

2009-06-30 21:16:59 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated the FAQ

2009-06-27 17:06:26 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changed font in engine output window

The engine-output window now uses the same font as the move-history window
(which was selectable in the "Options  -> Fonts..." menu, while the other
wasn't).

2009-06-27 17:03:19 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed some characters in xboard.texi

It seems that copying manual sections from the RTF to th texi file did
somehow mess up the double-quote characters, and changed them into some
strange (unicode?) symbols.

2009-06-27 16:56:36 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
two shogi related bugfixes

I discovered a bug in the move generator for the Shogi Dragon King. I
guess it went unnoticed so far because this is a promoted version of the
Rook, which hardly occurs in games. (moves.c)

There was also a problem with the piecesfix I sent you before; Shogi
chosen as initial variant did use wrong piece symbols. (I had tested this
on gothic, but there it happened to work for a different reason, unique to
gothic.) This affects xboard.c.

2009-06-27 16:54:04 -0700 Arun Persaud <arun@nubati.net>:
small cleanup

2009-06-27 16:51:02 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
adds bitmaps for shogi promotions, and selects the bitmaps or
pixmaps for the more rarely used piece types on a per-variant basis.

2009-06-27 16:44:36 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
adds new piece types in the promotion dialog and edit-position piece menu

2009-06-27 16:13:15 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated bitmaps files: files for fairy pieces where missing,
others had names that didn't work with autoloading.

2009-06-27 16:06:35 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed a bug concerning bitmaps

2009-06-27 15:53:45 -0700 Arun Persaud <arun@nubati.net>:
give a default directory for bitmaps files (tiny change)

this is also one of the debian patches, should be rewritten to use
the correct install directory. No Author was given.

2009-06-27 15:47:52 -0700 Brian May <>:
verbose_error_message_about_recognized_options (tiny change from Debian patches)

2009-06-27 15:45:14 -0700 Matt Zimmerman <>:
add a visual low time warning (tiny change from Debian patches)

2009-06-24 23:31:52 -0700 Arun Persaud <arun@nubati.net>:
dos 2 unix conversion of backend.c

2009-06-24 23:30:07 -0700 Arun Persaud <arun@nubati.net>:
exchanged some sprintf with snprintf found in a patch for the debian system,
extended it a bit to other sprintf's original patch included only 11 lines
by Florian Ernst <florian@debian.org>

2009-06-24 23:07:23 -0700 Mark Ioli <chessknight>:
enabled a patch for default settings in winboard

2009-06-24 22:53:11 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated copyright notice


2009-06-24 22:52:20 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
patches a bug in chosing the initial board size on a virgin startup
I introduced recently

2009-06-24 22:49:33 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
I put in testing for the winning condition in 3checks

on a check it just goes through the entire game to subject
every position on a check test, to see if there were two more.

2009-06-24 22:47:01 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated copyright notice in docs

2009-06-24 22:41:40 -0700 Florian Ernst <florian@debian.org>:
added small patch from debian (tiny change)

according to the debian patch tracker, this patch is by
Florian Ernst <florian@debian.org>.
It fixes whitespace issues in filename called from cmail.

2009-06-24 22:33:13 -0700 Arun Persaud <arun@nubati.net>:
converted dos2unix format for xboard.texi

2009-06-24 22:31:57 -0700 Arun Persaud <arun@nubati.net>:
deleted two more files that don't need to be in git

these files can be generated by autogen.sh

2009-06-21 12:10:31 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
major overhaul of the -stickyWindows feature

I did a major overhaul of the -stickyWindows feature.
The game-list and ICS-interaction windows are now also sticky.
I also added a form of stickiness when the main window is resized;
edges of auxiliary windows sticking to the right or bottom side of
the main window stay attached when the window resizes
(due to nr of board squares or their size). The way the window
coordinates are saved in the .ini file is now relative to the
main window, and some dummy options are added to be able to
recognize right- and bottom-edge sticking, and reconstruct that
when WB starts up with another board size. Also added are
volatile options to ensure there will be space for auxiliary windows
above and left of the main window.

2009-06-21 12:07:01 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed long-algebraic form of drops

The WB parser turned out not to understand the long-algebraic form
of drops send by an ICS. (like B/@@-e4), so even with
legality testing off I now use the SAN move for drops.

2009-06-18 18:35:31 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Refined stalemate adjudication in Suicide, some cleanup

Refined stalemate adjudication in Suicide, which seems to be not always won
for the stalemated side, but for the side with the smallest number of pieces.
Cleaned up the adjudication code in the process. (backend.c moves.c, moves.h)
Also includes a tiny change in the -autoKibitz format, as requested on
Talkchess.

2009-06-18 18:32:57 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Enhancement of the way -autoLogo decides which logos to display

2009-06-16 00:06:59 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
bugfix and enhancement in autoKibitz mode

changed the format of the autoKibitz: score/depth in stead of depth/score,
as in PGN. I also supress the ICS time for the move now in the PGN
if extended info is available. When enhancing the functionality of
the autoKibitz command (using the opponent engine kibitz for the saved PGN)
I discovered that the xengineoutput.c in our tree was obsolete,
and contained a routine of which the arguments were no longer compatble
with the call from backend.c, and caused segfaulting. I copied in
the  corresponding routine in wengineo.c, which was compatible. That the
compiler did not flag this is a sign of badly organized code, I suppose...

The enhancement itself affected backend.c.

2009-06-16 00:04:13 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
modified clock layout

I altered the display of the clocks in the presence of engine logos; I used to
stack them, but some inquiry on Talkchess sowed that people disliked the
stacking. So now I display them next to each other again, but as 2-line-high
fields to make room for te logos.

2009-06-15 23:59:32 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
new zippy option zippyShortGame

On request of Mike Adams I added a new zippy option, -zippyShortGame,
to make life more difficult for abusers of abort and disconnect for cheating.

2009-06-15 23:56:40 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed some bugs in the animation of atomic captures

2009-06-13 15:27:26 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
some small bugfixes

I had overlooked one place from which the FEN writer
(of whicf I changed the argument types), which made WB crash
if you copied a FEN (or PGN that cotained FEN) to the clipboard.
I must have overlooked a warning during compile, or some depedency
is not correct in the makefile. Anyway, wclipboard.c had to be changed.
I also moved adjudication of some losing conditions to before tetsing
for stalemate, (e.g. in atomic, if your king get destroyd you lose,
even if you have no moves after that because it was your only piece.).
this affects backend.c.
I had used the same bits in the rule-modifier flags for indicating
mandatory capture as was already used for indicating FRC-style castling.
This led to frequent illegal move calls in FRC... (moves.h)

2009-06-13 10:45:17 -0700 Arun Persaud <arun@nubati.net>:
cleaned up HTML in FAQ.html -- still need to work on content

2009-06-13 09:36:26 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added option for work-around for some FRC engines in regards to FRCFENs

It suddenly occurred to me that I had promised on CCC to include an option
to provide a work-around for the problem that some FRC engines do not
understand FRC FENs (and thus do not play at all under WinBoard,
as FRC always has to begin with sending the initial position).
So I added the options -firstNeedsNoncompliantFEN, -secondNeedsNoncompliantFEN.
This affects winboard.c and xboard.c, (for defining the option),
common.h, backend.h, backend.c, (for implementing it),
xboard.texi and winboard.rtf (decribing it).
This option provides users with a means to always force the FEN castling field
to KQkq (but can be used for many other work-arounds as well).

2009-06-13 09:30:31 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed bug with random calls

There also seemed to be a bug with the shuffling of opening positions;
I had changed the declaration of the position number from
long long int to u64 to comply with MSVC, but this suppressed shuffling
completely. I now changed it to int. I recently noted a problem with true
randomizing anyway: this was based on srand(time()), but time() apparently
did not change fast enough, so that starting several games in rapid succession
(because the book line contained a 3-fold repetition) produced identical games.
So I now seed the random once and for all during startup, based on the msec of
the time mark, and removed the other calls to srand().

2009-06-13 09:26:14 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changed name for fairymax program in xboard.h

2009-06-13 09:25:07 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
removed my name from copyright message in help->about menu

2009-06-13 09:22:02 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed -stickyWindows option

I figured out why -stickyWindows was not working in XP and Vista
(while it always worked under Win2K), and I think I found a fix for
it that works under all Windows versions. (I tried XP and Win2K.)

2009-06-13 09:20:38 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Updated docs for Engine-Settings menu

2009-06-13 09:19:05 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Awareness of winning conditions for atomic and giveaway variants; two bugfixes

fixed bug in claim verification
Bugfix on initial position of Great Shatranj

2009-06-13 09:16:47 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Legality testing (mandatory capture) in giveaway variants

2009-06-13 09:16:17 -0700 Arun Persaud <arun@nubati.net>:
don't ignore winboard/parser.c

2009-06-13 09:12:15 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Added new variant Twilight Chess

2009-06-13 09:08:57 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
some renaming and restructuring of WB menu items, to conform more to XBoard

2009-06-13 09:07:07 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Fixed bug in atomic patch that interfered with non-atomic variants

2009-06-10 21:46:11 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed different use of engine option compared to Polyglot

it turns out the new Polyglot uses a sightly different version
of the GUI->engine option command than the one I proposed
(and implemented in XBoard; Michel sneaked in an '=' sign
between the NAME and VALUE of the option, to allow for
more unambiguous parsing. I guess in principle this is a good idea,
so I adapted XBoard to Polyglot rather than the other way around.
The result is that there are canges in xboard.c, and the documentation.
I noticed that I unjustly had internationalized the option strings
to be send to the engine in xoptions.c; this was of course nonsense,
as this was WB protocol. So I undid that too.

2009-06-10 21:37:47 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
add the already supported variants 3check and great (=Great Shatranj)
to the New Variant... menu.

2009-06-10 21:32:22 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
animate explosions in variant atomic (if animate moves is on).

2009-06-10 21:30:19 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed castling bug in variant twokings.

2009-06-10 21:22:36 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed forteitary wins for special game variations

feature that corrects forfeitary wins (e.g. on time)
of a bare King to draws of course breaks proper operation
in losers, suicide and giveaway

2009-06-09 21:02:51 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
automatically test ini file extension for files from commandline option @filename

The winboard.c is a patch that automatically tries indirection files on the
command line (@filename type arguments) also with an extension .ini if the name itself
did not match any existing file and contained no period. This saves the user typing the
.ini all the time (which I started to find pretty annoying while working on the installer
package).

2009-06-08 15:23:58 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added gamelisttag option to xboard

also updated documentation.

2009-06-08 15:20:00 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated RTF file for winboard

2009-06-06 09:12:48 -0700 Arun Persaud <arun@nubati.net>:
fixed syntax error in texi file

2009-06-06 08:57:52 -0700 Arun Persaud <arun@nubati.net>:
updated to patchlevel "j"

2009-06-06 09:00:25 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
fixed adjudicating probelm in Shantranj

Refrain from adjudicating a draw based on insufficient mating material
(except bare King vs bare King) in Shatranj (where in this case you can
still win by baring the opponent's King).

2009-06-06 08:55:17 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated documentation and FAQ

2009-06-04 22:52:31 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
source clean up. Fix compiler warning, removed unused variables, etc.

2009-06-04 20:43:29 -0700 Eric Mullins <emwine at earthlink.net>:
adding support for different windows compiler

Eric kindly provided us with some makefiles for different windows
compiler and also fixed some issues that came up while using those compilers.

2009-06-04 18:27:26 -0700 Arun Persaud <arun@nubati.net>:
cleanup: got rid of a lot of files that are not needed for a new release

lots of documentation was available in several places,
old unused source files and not used graphics file were floating around
in the tree. This should clean up most of it. No need to keep these files
around, especially since we are using version control.

2009-05-29 18:56:06 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Added the Action-menu items that allow the user to adjudicate
ongoing games in Two-Machines mode. This was an already existing
backend function from Winboard_x; I only had to create a menu item for it
to be called. Due to an oversight I had forgotten to do that so far.
(Logically, I should have done it in the 4.3.5 release,
where I updated the XBoard menus to conform to the WinBoard menus.)

I tested them, and they seem to work. (As expected.)

2009-05-28 22:23:00 -0700 Arun Persaud <arun@nubati.net>:
updated patchlevel to "i"

2009-05-28 22:19:08 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
small change to mousewheel support; two changes in window behaviour

* Visible effects during resizing suppressed, bug in chosing new size fixed.
* No longer reserves left and top margins next to main window on first popup.
* built in some hysteresis into mousewheel support, ignorng the first event in any new
direction to suppress effects from accidential mouse movement.

2009-05-28 22:11:11 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
corrected 'animate dragging'

I finally figured out how the 'animate dragging' works in XBoard,
so that I could add code to do the unstacking of multiple pieces
in the holdings, rather than always leaving an empty square while
you drag them. (And then suddenly re-growing the remaining pieces
as you make the drop.)  It does not look as fancy as in WinBoard
yet, because the counts still only decrease when you release the
piece, rather than when you lift it. But this is not nearly as
disturbing as leaving empty holdings (if only temporarily) when
you still have pieces there.

2009-05-28 22:06:15 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
Added comand-line options -debugFile (as synonym for -nameOfDebugFile,
as WinBoard also has these synonyms), and -engineDebugOutput
(wich already existed in the backend).

2009-05-28 21:57:53 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated documentation for new release

2009-05-28 21:55:51 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added Xiangqi perpetual-chase detection

2009-05-28 00:06:53 -0700 Arun Persaud <arun@nubati.net>:
Updated all files to GPL version 3.

2009-05-28 00:03:32 -0700 Arun Persaud <arun@nubati.net>:
converted two files from dos to unix format

2009-05-27 23:12:24 -0700 Arun Persaud <arun@nubati.net>:
updated INSTALL, NEWS and other files for new release

cleaned up a bit and updated some information in the text files.

2009-05-07 21:48:23 -0700 Arun Persaud <arun@nubati.net>:
winboard/config.h shouldn't be in .gitignore, only ./config.h

2009-05-07 21:47:37 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
bumped patchlevel to 0g

2009-05-07 21:46:02 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
corrected path in makefile

2009-05-07 21:45:48 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
updated rtf

2009-05-07 21:45:25 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
added firstOptions, secondOptions, noGUI, firstXBook, secondXBook

2009-05-07 21:44:03 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
handle promotion case for Shogi

2009-05-07 21:43:34 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
add note about RESULT command for GUI programmers

2009-05-07 21:42:37 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
small changes to book.c

 added code for different board sizes
 added some debuginfo
 handle promotion of pieces

2009-05-05 23:07:18 -0700 Arun Persaud <arun@nubati.net>:
added a .gitignore file

2009-05-03 12:41:06 -0700 Arun Persaud <arun@nubati.net>:
wrong line ending for Unix... ran dos2unix on both files

2009-05-02 13:51:50 -0700 Arun Persaud <arun@nubati.net>:
fixed texinfo files, added windows help file, removed config.h from git

texinfo.in is not needed anymore, since it only provided a
version string, but this can be created automatically using autotools

deleted config.h from version control, since it is automatically created.
added winboard.hlp file (not sure if needed)

2009-04-26 23:34:34 -0700 Arun Persaud <arun@nubati.net>:
updated autoconf init file

* renamed autoconf init file from configure.in to configure.ac
* added bug-report email address to ac_init
* replaced ac_output(...) with ac_config_files, ac_config_commands and ac_output

2009-04-26 14:49:03 -0700 Arun Persaud <arun@nubati.net>:
parser.c is generated by lex, so it shouldn't be tracked
and also parcer.c shouldn't be in Makefile.am

2009-04-26 14:44:51 -0700 Arun Persaud <arun@nubati.net>:
added book.c to Makefile.am

2009-04-26 13:49:15 -0700 Arun Persaud <arun@nubati.net>:
use autoheader to create config.h.in

no need to track this in git anymore

2009-04-26 11:13:26 -0700 Arun Persaud <arun@nubati.net>:
fixed autoheader warings, remove depreciated acconfig.h

2009-04-26 10:30:23 -0700 Arun Persaud <arun@nubati.net>:
added a autogen.sh

2009-05-02 10:55:39 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.16

2009-05-02 10:50:10 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.15

2009-05-02 10:38:39 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.14

2009-05-02 10:13:41 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
HGM fixed cygwin compile for winboard

2009-04-24 16:11:57 -0700 Arun Persaud <arun@nubati.net>:
cross compilier working

2009-04-19 10:00:52 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.13

2009-04-19 09:52:47 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.12

2009-04-19 09:48:59 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.8

2009-04-19 09:44:15 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.7

2009-04-19 09:39:19 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes by H.G. Muller; version 4.3.4

2009-04-19 09:34:31 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller; version 4.3.2

2009-04-19 10:26:24 -0700 H.G. Muller <h.g.muller@hccnet.nl>:
changes from H.G. Muller

2009-04-16 23:06:13 -0700 Arun Persaud <arun@nubati.net>:
cleaned up the directory a bit. Removed winboard-dm-beta,
merged the two Changelogs together

2009-04-16 14:12:48 -0700 A. Scotti <dev@ascotti.org>:
changes from Alessandro Scotti from 20060129

2009-04-16 14:09:33 -0700 A. Scotti <dev@ascotti.org>:
changes from Alessandro Scotti from 20060112

2009-04-16 14:04:02 -0700 A. Scotti <dev@ascotti.org>:
changes from Alessandro Scotti from 20051231

2009-04-16 13:59:12 -0700 A. Scotti <dev@ascotti.org>:
changes from Alessandro Scotti from 20051129

2009-04-16 13:53:41 -0700 A. Scotti <dev@ascotti.org>:
changes from Alessandro Scotti from 20050322

2009-04-10 04:18:59 +0000 Arun Persaud <arun@nubati.net>:
translated a handfull of strings and set the codeset to UTF-8
for the translations.

2009-03-18 03:20:50 +0000 Arun Persaud <arun@nubati.net>:
Translation: added German po file (roughly 50% translated)

2009-03-01 04:23:54 +0000 Arun Persaud <arun@nubati.net>:
fixed bug #22853: changed all .Xdefaults to .Xresources in xboard.texi

2009-03-01 02:43:43 +0000 Arun Persaud <arun@nubati.net>:
fixed bug #25672, patch #6182 by adding DESTDIR support to Makefile.in

2009-03-01 02:33:26 +0000 Arun Persaud <arun@nubati.net>:
fixed a warning message in the configure script

2009-02-28 22:58:57 +0000 Arun Persaud <arun@nubati.net>:
fixed parser.l. Should fix bug #22812

2009-02-28 22:58:14 +0000 Arun Persaud <arun@nubati.net>:
fixed parser.l. Should fix bug #22812

2009-02-28 22:55:30 +0000 Arun Persaud <arun@nubati.net>:
added myself to the AUTHOR file

2007-06-15 04:26:57 +0000 Mark Loli <chessknight>:
Initial check-in of NSIS Winboard installer files.

* 06/12/2005: bugfix some more possible buffer overflows.

* 06/27/2004: added simple icsEngineAnalyze for xboard

* 06/26/2004: added icsEngineAnalyze for winboard: Analyze observe games
with a chessprogram on a Internet Chess Server (ICS)

* 02/12/2004: Bugfix ICS interaction console crashed while chess
engine starting and user type in some stuff. We wait now to finish
the engine boot.

* 02/11/2004: Winboard: Added color lines for the ics interaction
console if zippy used

* 02/09/2004: Added mousewheel support for winboard. Play moves
backward and forward with the mousewheel.

xboard/WinBoard 4.2.7 -- Fri Nov 28 13:36:00 PST 2003 -- Tim Mann

* 11/26/2003: In WinBoard, setting the -debug flag now logs ICS output
to WinBoard.debug too.  (This isn't needed in xboard because ICS
output already goes to stdout, so it's easy to capture along with the
debug output on stderr.)  This was issue #280 in the ToDo file.

* 11/23/2003: Cleaned up some minor problems in cygwin.mak.  Thanks to
Hans Werner Strube for the problem report.

* 11/23/2003: Updated the default list of chess servers in
winboard/defaults.h.  Deleted two that appear to be dead and added a
new one that is active.

* 11/19/2003: Swapped icon_white.bm and icon_black.bm in XBoard.
Hopefully this will get them the right way around by default on more X
window managers.  I wish I understood this better.

* 11/18/2003: Implemented a simple 32-bit random number generator for
WinBoard, replacing the Windows rand(), which ranges only up to
0x7fff.  Formerly on Windows, only zippy.lines sayings that started in
the first 32767 bytes of the file could ever be used.  This was issue
#505 from the ToDo file.

* 11/16/2003: The xboard man page and info files are now built from a
common set of texinfo source files, and the xboard man page now covers
cmail as well.  Formerly, ever since the texinfo file was first
contributed to the project, it was separate from the man page and the
two files had to be updated in parallel, making for a maintenance
nightmare.  To make combining the files possible, I took the Perl
script "texi2man" from the GNU Units project and added support for a
larger subset of the texinfo markup language.  I then carefully
compared the old man page and old texinfo file to make sure the latest
and clearest words survived into the new combined texinfo file.  It
would be great to merge in WinBoard's help file too, but that's a
larger project.  It would have to be heavily conditionalized to
deal with differences in features between XBoard and WinBoard.

* 11/15/2003: Cleaned up and applied a small patch from Daniel
Mehrmann, to stop overly long PVs in thinking output from causing a
buffer overflow crash in backend.c.

* 11/5/2003: When a chess engine sends a "telluser" command (including
the cases where "tellall" or "tellopponent" acts like telluser), the
information now goes into a nonmodel popup that is automatically
dismissed when the user clicks anywhere on the board.  This fix is
more significant on WinBoard, where formerly you got a fully modal
dialog that had to be dismissed by clicking on OK before anything else
could happen.  The bug was issue #406 in the ToDo file.

* 11/1/2003: Removed email addresses from this file to reduce spam
load, as it gets linked to from the Web.

* 11/1/2003: Updated READ_ME and winboard/READ_ME.txt.

* Modified xboard and winboard makefiles to be able to build the
project in the new combined directory structure.

* Applied a small security fix to pxboard, from Martin Maeok.

* Fixed a bug in the game list dialog.  The change in 4.2.6 to opening
games in text mode (meant to avoid getting extra \r's into comments)
caused a new bug in determining seek offsets when parsing a game file
to form the game list.  Also, the change was incomplete; on some code
paths games were still being opened in binary mode.  Thanks to Lenik
Terenin for reporting the offset bug.  I've now gone back to always
using binary mode when reading game files, and I've fixed the comment
bug by adding code to remove \r's from parsed comments explicitly.  I
still use text mode for writing game files so that games written by
WinBoard will have Windows-style line endings.

* Fix for minor bug in WinBoard installer.  If you chose a non-default
destination directory, the default directory was still used for a
couple of unimportant things, namely setting the App Paths registry
keys (unused by WinBoard) and trying to copy the existing WinBoard.ini
file to WinBoard.old.  I inherited this bug from the InstallShield 5
sample template.  Thanks to "l.d." for noticing the incorrect keys.

* Patch from Chris Priest: when two engines are being run through rsh,
avoid reusing the same stderr port for both.  I'm not sure why this
should be needed, but it's harmless, at least.

* Bugfix: The kludge to deal with old engines that give an error
message because they don't know the "st" command was too sloppy; it
could hit on an "st" substring anywhere in an error message.  GNU
Chess 4 is the only engine I know of where the kludge was needed, so I
changed the kludge to match a longer, more GNU-specific string.

* Changed the WinBoard self-extracting installer to choose a unique
temporary subdirectory name within the Windows temp directory instead
of always putting wb-setup directly in temp.  Besides being better
practice, this avoids the need to deltree wb-setup first, which
occasionally alarms someone who thinks that deltree is only used by
trojans to delete all your files.  (Yes, I'm serious.)

* Fixed a bug where FICS-style "wild/0" strings were not parsed as the
proper wild type.  The "/" was not being skipped.

* Fixed a WinBoard bug where temporary files created by game
copy/paste were being created in the root directory of the current
drive instead of the TMP directory and were not always deleted on exit.

* Fixed a small bug in winboard.c's ErrorDialog() function.  Thanks to
"Ron" (no last name given).  The bug might have caused a problem when
pressing OK or Cancel in an error dialog when more than one error
dialog was being displayed, but I'm not really sure.

* Removed a hack that worked around a bug in very old versions of
Crafty, where it would sometimes reply "illegal move" to a "."
command.  The hack kept us from recognizing real illegal move messages
in analyze mode from engines that don't respond to the "." command.
Thanks to Fabien Letouzey for the report.

* Fixed a bug in the xboard version of GetDelayedEvent.  It would
return the most recently scheduled event even if it had already fired.
This caused at least one visible error: in -ics -xreuse mode, starting
the engine again and seeing another "feature done=1" would re-run the
initialization code in InitBackEnd3, including the code that opens the
connection to ICS.  The WinBoard version didn't have this bug.  Thanks
to Bob Hyatt for the bug report.

* The promotion popup for ICC wild 26 (giveaway) now includes King.
Thanks to Fredrik Josefsson for the bug report.

* The first game in a file (or being pasted from the clipboard) can
now start with a bare move -- no PGN tags, no move number "1", etc.
Suggested by Shane Harrelson.  One could imagine taking this farther
and accepting something like "e4 e5 1/2-1/2 d4 d5" as two games, but
I haven't done that.

* Bug fix: xboard didn't really accept a paste of multiple games,
contrary to what I wrote when adding the feature to WinBoard in
4.2.4.  Now it works in both.

* Fixed generic start/end of game messages to work on chess.net, where
they put ratings in parens after the player names.

* Updated config.sub and config.guess to newer versions from
automake-1.4p5-2.  This makes configure work with MacOS X + X11.

* Bugfix: when examining a game fragment on FICS where black plays
first, don't show two "(0:00.000)" times on the initial "none" move.

* If TestLegality is on and one of the engines makes an illegal move
in TwoMachines mode, it forfeits immediately.  Formerly the game would
get stuck at that point and the engine that made the illegal move
would eventually lose on time.

xboard/WinBoard 4.2.6 -- Fri Feb  1 22:26:31 PST 2002
Tim Mann

Another small bugfix release.

* Put in a small change from Alexander Mai to allow xboard to build in
an OS/2 EMX environment.

* Fix WinBoard-only bug where editing a PGN file with comments would
insert more \r characters before the \n after every Load/Save cycle.
For some unknown reason we were reading the files in "rb" mode but
writing them in "a" mode, so we kept the \r characters on reading and
added an extra one on writing.  Fix: change the "rb" to "r".  Thanks
to Joel (last name not given) for the bug report.

* Put the arguments to rsh/remsh in the right order for better
portability.  Thanks to Michael Kalisz.

* FreezeUI is now implemented in WinBoard; it was previously only
implemented in xboard.  This function prevents the user from entering
moves or other commands while we are waiting for an engine to
initialize itself.  Implementing it fixes a bug where the user could
start a game (etc.) during feature negotiation.  One of the symptoms
of this bug was that we could send "new" one or move moves *after* the
first game started!

* Fixed some handle leaks (WinBoard only), including a nasty one that
leaked one handle per command sent to ICS.  Thanks to several folks
who helped characterize the bug and tried to look for leaks.

* We now install and look for the info file in ${prefix}/share/info
instead of ${prefix}/info.  The latter is still the default in
autoconf, but the former is currently used in Red Hat Linux and
probably elsewhere.

xboard/WinBoard 4.2.5 -- Sat Dec 15 11:42:51 PST 2001
Tim Mann

* Changed the bundled GNU Chess 5.02 in the WinBoard package to
include a much smaller book and to use much less hash table space by
default (8 MB transposition table, 0.5 MB pawn evaluation table).  The
large book included with 4.2.4 made the WinBoard download too big for
some people, and the default hash tables were larger than the
available physical memory on some people's computers. I built the
small book by running Crafty's "small.zip" book line collection
through a Perl script that makes it look enough like real PGN games
that the GNU Chess book builder will accept it.  The script and some
minor patches to GNU Chess 5 are available in the WinBoard source
distribution and at http://www.tim-mann.org/gnuchess.html.

* Fixed a bug in the code that deals with engines that complain that
"time" and "otim" are illegal moves.  This was a new bug in 4.2.4.

* Revamped the implementation of ToStart in analysis mode.  Formerly
there was some ill-conceived code that would try to get back to the
start of the game by doing a "new" command (and all the followup
commands that requires) while remaining in analysis mode.  This is
problematic for engine authors to support, though it works with
Crafty.  This code was trying to solve the problem of ToStart being
slow because the engine would try to start an analysis after every
"undo" command all the way back to the start.  But ToEnd already had a
much better solution to this problem, and now ToStart does the same
thing: we exit from analysis mode and enter force mode instead,
make/unmake moves to get to the end/start of the game, and then
reenter analysis mode.

* Formerly, Zippy could try to start playing a game before the engine
was initialized; that is, during the initial timeout for protover 1
engines, or before "feature done=1" for protover 2 engines.  We now
wait until the engine is initialized before connecting to ICS, which
fixes this in the common case.  If you turn off engine reuse for
multiple games (that is, if you give the -xreuse option), there could
still be problems; see item 503 in the ToDo file.  Thanks to Dieter
Buerssner for the bug report.

* Bugfix: All WinBoard versions since the merge with WinBoard Plus
(but not xboard) have had a bug in changing the PeriodicUpdates,
PonderNextMove, and ShowThinking options from the menu.  The bug
mostly just caused changing these options during a game to not take
effect until after the next reset.  For TwoMachines games, though,
changing PonderNextMove just before the game would take effect
immediately for the second engine but not until the next game for the
first engine.  Thanks to Koundinya Veluri for the bug report.

* Bugfix: In 4.2.4, we sometimes got confused when trying to leave and
reenter analyze mode.  One symptom was that Analyze File did not work.
Thanks to Igor Syry for the bug report.

xboard/WinBoard 4.2.4 -- Sun Dec  9 14:56:30 PST 2001
Tim Mann

* WinBoard now includes GNU Chess 5.02 in place of GNU Chess 5.00.

* WinBoard's PasteGameFromClipboard will now handle a paste with
multiple games in it, popping up the game list dialog.  xboard
already did this.  Suggested by Robert Gerstman.

* We now use the "clearboard" command on ICC where appropriate.

* Bugfix: don't generate a bogus "variant normal" command to an engine
for the loadable ICC wild types that we internally flag as
VariantLoadable.  Also clarified the message that Zippy sends when
declining such wild games -- it can't deal with the possibility of
loading an arbitrary position into the game.  Thanks to Dieter
Buerssner for reporting the problem.  It would be nice to be able to
actually play these wild types some day; presumably there would have
to be an option to either send "loadgame" with a specified position,
or to deal with an opponent sending it.

* If we get a holdings message from ICS when we thought we were
playing normal chess, we now try asking for a move list so that we can
find out from the header what's really happening.  Formerly we guessed
bughouse in this case.  Response to a comment from Gian-Carlo
Pascutto.

* Fixed two longstanding bugs in the clock code.  These affected only
play between a user and a local engine, or between two local engines,
not ICS play.  (1) The last fractional second used by a player before
moving and virtually pushing his clock was being charged to his
opponent instead of to him.  (2) The time and otim commands were being
sent to an engine before the (buggy) fractional second update was
done.  The second bug was pretty harmless in itself, but the first one
was serious.  Many thanks to Peter Rosendahl for carefully diagnosing
and reporting these bugs!

* Changed WinBoard timestamp key.  Nothing is changed other than the
key and a recompilation.  ICC may phase out the old key soon; if they
do, you'll need to use the timestamp.exe from WinBoard 4.2.4 or later
to connect to chessclub.com.

* Fixed an xboard-only bug where most dialogs would not take keyboard
input unless the mouse was actually over the dialog, even if the
dialog window had focus.  Thanks to Jason Varsoke for the bug report.

* Bugfix; Remember to send time and otim commands to engine before
sending playother.  Thanks to Bob Hyatt for the bug report.  Also
fixed a bug where time and otim were sometimes sent even with feature
time=0.

* Added small patches from Wilkin Ng that are meant to fix a crash in
CopyGameToClipboard and a "can't unlock clipboard memory" error in
PasteTextFromClipboard, under Windows 2000.

* Changed cygwin.mak to not use -mno-cygwin.  In other words, it now
uses cygwin1.dll instead of the mingw libraries.  This works around
bugs in fileno() and stat() that I encountered in mingw.  (fileno
seems to always return 0.  stat fails because the library routine uses
a different definition of struct stat than the header files provide.)
Thanks to Robert Gerstman for reporting the symptoms these bugs caused
when WinBoard was compiled with Cygwin.

* Added -showButtonBar option.  This lets you delete the << < P > >>
buttons and thus widen the message widget a bit.

* Added code to address a very obscure bug.  If an engine dies and
needs to be restarted while in one of the analyze modes, it was not
getting put back into analyze mode.  This bug should not really ever
have gotten tickled unless reuse was turned off and the engine sends
game end commands (such as 1-0) when a game ends by rule while in
analyze mode.  The next version of the protocol spec will say that
engines should not do that, but version 2 and earlier didn't address
the issue.

* We now use the FICS "iset ms 1" feature to get times in ms instead
of seconds.  Thanks to DAV for email telling me about this feature.

* Changed clock display to show tenths of seconds for 9.9 seconds and
less, instead of 0.9 seconds and less as before.

* It has been discovered that Zippy can play simuls on ICC (but not on
FICS).  If you arrange for Zippy to send the ICC command "simulize" in
the -zippyGameStart string, it will accept additional games while
playing.  Zippy will use the same engine for every game, so whenever
it switches opponents, the engine's state will be reset with the "new"
command.  This will of course weaken its play, so don't enable simuls
if you want your engine to have the highest possible rating.  Zippy
was never designed to work with simuls; it just works by accident, and
it hasn't been tested much.  So please report any bugs you notice, but
don't expect them to be fixed rapidly.  Thanks to Paul McGuire for
noticing that this works.

* Bugfix: Suppress the direct command to engine popup if there is no
engine.  In WinBoard this case used to cause a crash.  Thanks to
"Dargon" for the bug report.

* Bugfix: formerly we did part of the engine initialization for the
very first game too soon, before feature negotiation.  One result of
this is that engines would never get the "ics" command for the first
game.

* Lengthened timeout to detect protocol version 1 chess engines to 10
seconds.  This should reduce problems with protocol version 2 engines
that are slow to initialize missing the timeout and not getting a
chance to send their feature commands before the first game starts.

* Klaus Friedel says that adding a short sleep to WinBoard after
starting a new chess engine solves a problem that occurs under Windows
2000, in which engines sometimes don't see the initial command(s) from
WinBoard and hang.  I don't understand how that can happen, but the
sleep is harmless, so I've put it in.  Others have also reported what
may be the same problem, so hopefully this will fix it for them too.

* Bugfix: editing the Result field in EditTags will no longer cause a
later crash.  Thanks to DAV for a clear bug report that let me
reproduce the problem.

* ICC wild 28 is now recognized as shatranj, but it is not supported.
You might be able to play it by turning off Test Legality.

* Formerly we would always turn off "feature time" if the engine
printed an error message with the string "time" or "otim" in it; now
we do that only if the message comes before the engine makes its first
move.  This change is useful because some engines spew a lot of bogus
error messages about commands they don't fully parse, so something
like "result 0-1 {White lost on time}" could generate such a message.
Engines shouldn't do that, but if they do, mysteriously turning off
"feature time" is not a good way to react.

* Fixed an infrequently occurring Zippy bug: formerly, resuming from
adjournment by position (that is, with GetMoveList turned off) or
starting/resuming a wild game (nonstandard starting position) would
try to set up the position without putting the engine into force mode
first.  That was probably tolerated by most engines, but if the
position was black-to-play and the engine hadn't set feature
setboard=1, then the fake "a2a3" move (which we use as a kludge to get
black to be on move before sending the edit command) would appear to
be a real move, and the engine might reply to it!  This bug could also
be seen when trying to use Zippy to play a simul -- something that
Zippy was never designed to support, but which seems to mostly work
anyway.  Thanks to Paul McGuire for sending a WinBoard.debug file that
showed the bug occurring.  Some other cases of resuming adjournments
or starting games from nonstandard positions may have been broken too;
I think I've straightened out the problems.

* Agreeing to a draw in the human vs. local engine case formerly did
not work if the human offered first; now it does.  A human's
unsolicited offer is considered valid until he makes another move.
Thanks to Bruce Moreland for the bug report.

* Bugfix: We used to look for just "fr" in Event tags or strings from
ICSes to recognize Fischer Random games.  This caused a lot of false
matches.  Now we look for "wild/fr" instead, which is what FICS uses.

* Bugfix: Clicking on a move in the MoveList window only updated the
displayed position; if a chess engine was active, its state was not
updated.  Thanks to Alejandro Dubrovsky for the bug report.

* Bugfix: The "resign" command from engine to xboard formerly did not
work in ICS (Zippy) mode.

* Bugfix: Formerly we would register a garbage premove if the user
clicked on a piece, then clicked on an edge or outside the board.  Now
such an errant click is ignored.

* Bugfix: GameEnds would send "exit" to an engine in analyze mode even
if we did not actually want to leave analyze mode.

* Bugfix: "feature pause" was being rejected.  We don't currently use
it, but that is no reason to reject it.  Thanks to Gian-Carlo Pascutto
for the bug report.

* Bugfix: when "partner" needed to be sent both to ICS and the engine,
Zippy was erroneously sending the ICS prefix character to the engine
too.  Thanks to Gian-Carlo Pascutto for the bug report.

* Zippy now declines challenges when the engine is not yet ready to
play again, instead of ignoring them.  This is needed so that the
server will let the opponent repeat the challenge.  It might be better
to remember such challenges and accept them when the engine is ready,
but that would be a bit more complicated to implement.

* Bugfix: Zippy's emotes didn't work on FICS because there, "i" is a
built-in alias for "it", not a real command.  So sending "$i foo" gave
an error message instead of doing "it foo".  We now leave out the
alias-suppressing prefix for emotes.

xboard/WinBoard 4.2.3 -- Mon Feb 19 19:55:05 PST 2001
Tim Mann

* Bugfix: The error message "Variant X not supported by gnuchessx"
formerly could pop up even in -ncp mode.

* Fixed an xboard bug in premove highlighting.  If you had
HighlightLastMove turned on, premoves got highlighted in
highlightSquareColor (yellow) instead of premoveHighlightColor (red).

* Modified premove again.  Now we are back to displaying the move
locally immediately after sending it to the server, as in versions
prior to 4.2.1.  This is good because it lets you register your next
premove sooner.  As a better fix to the problem that the change in
4.2.1 had been trying to address, we now suppress animating the
opponent's move if you have a premove reply pending.  However, it's
probably still a good idea for you to turn off AnimateMoves entirely
if you are trying to play extremely fast games.

* Removed an erroneous patch that left zombie chess engines around
when both sigterm and reuse were turned off.  (Bug was in xboard only,
not winboard.)

* Bugfix: loading a game with autostepping did not work for games with
PGN result "*" (unfinished).  This bug was introduced in 4.1.0, caused
by some outdated code that was supposed to leave you in EditGame mode
after loading an unfinished game.  I fixed this, and also changed it
to leave you in EditGame mode after loading *any* game, but without
changing the tags to say it's an edited game.  It's not really clear
whether that is the best thing is to do here -- ideally, perhaps, the
tags should change to say "edited game" if you actually make any
changes, but that is harder to make work.

xboard/WinBoard 4.2.2 -- Tue Feb  6 20:00:00 PST 2001
Tim Mann

* Fixed a problem introduced in 4.2.1.  In -zippyPlay mode, 4.2.1
started sending the initString immediately after the old game ended,
but then when the next game started, it would still send "force" and
another initString.  Another problem was that the first initString put
the engine out of sync with the displayed board position, though that
might not usually have been noticeable.  This is now changed to do a
full Reset at the end of the previous game, and avoid doing a Reset at
the start of a new game if we are still in BeginningOfGame mode.

* Fixed some limitations in -zippyPlay mode.  The engine was not being
fed the moves or history of games that were displayed but not being
played, so it would get confused if you tried to do something like
examine a game, then enter EditGame mode from somewhere in the middle
of the game.

* Made a small change so that cygwin can compile xboard for Windows
(an X server is required to run it).  Thanks to Volker Zell.  Most
people would probably prefer to run WinBoard on Windows, however; note
that cygwin could already compile WinBoard.

* Added some missing documentation to engine-intf.html: It is okay to
send "feature done=0" even before you receive the xboard and protover
commands, if this is needed to give your engine enough time to
initialize.  See engine-intf.html for more discussion.

* Bugfix: "feature done=0" did not work for the second engine; now it does.

xboard/WinBoard 4.2.1 -- Sat Feb  3 19:52:26 PST 2001
Tim Mann

* Bugfix: in Zippy mode with feature san=1, the elapsed time was being
sent to the engine after the SAN move; for example, "e4 (0:01)" was
sent instead of just "e4".

* It seems that scroll wheel mice with incompletely installed software
(under Windows 95, at least) can send repeated middle button up events
when the wheel is turned.  Moved QuickPaste from middle button up to
middle button down to avoid problems with this.

* A premove is now sent *before* the opponent's move that it replies
to is animated.  The premove itself is no longer displayed (or
animated) when sent; instead, it is displayed when the chess server
echoes it back as a board update.

* Bug fix: in -xreuse mode, xboard was only sending command line
arguments to the engine the first time it was started.  (WinBoard
didn't have this bug.)

* In -zippyPlay mode, we now initialize the chess engine for a new
game immediately after the old game ends.  (In -xreuse mode, this
means starting a new engine process; in the default -reuse mode, it
just means sending "new".)  If the engine supports ping, we don't
accept challenges until the "new" has finished.  This should help
avoid losing time (re)initializing the engine after the game starts.

* We now handle the new FICS field in style 12 that says whether the
clocks are ticking.

* whiteFlag and blackFlag are now reset whenever an ICS board image
arrives, giving autoflag a fresh chance to work.

* Suppressed "geometry error" debug messages unless -debug flag is given.

* Bugfix: avoid core dump on Solaris with -debug flag, caused by
passing NULL to a %s format in GameEnds.

* Added -firstProtocolVersion and -secondProtocolVersion.  This will
allow use of extremely broken engines that hang or die when given the
"protover 2" command.  It should be rarely if ever needed.

* Zippy now strips highlights from player names in the Creating
message; previously the ratings would not be extracted from this
message properly if you had set the highlight variable.

* Bug fix: Zippy with -zp but not -zt used to be fooled by false
partner tells inside channel tells; e.g.:
Garf(24): Garf (your partner) tells you: sit

* Bug fix: when an engine reported its name with the new "feature
myname=" command, we had been putting just that name into the window
title even when in TwoMachines mode.

* By default, WinBoard no longer uses the new feature introduced in
4.2.0beta of keeping the ICS menu, ICS server list, and lists of chess
engine command lines in separate files; instead, the lists are back in
the winboard.ini file.  This gets rid of some problems where the
separate files could not be opened because the working directory was
not set to WinBoard's installation directory.

* WinBoard command lines and ini files now have another optional
syntax for quoting an option value.  All characters within { } curly
braces are interpreted literally except for '}' itself.  SaveSettings
now uses this syntax for string values that contain a backslash or
newline and do not contain a '}'.  This should address the problem
that the separate .ini files had been meant to fix; engine command
line lists can now be written without \-escapes.

* Fixed three bugs in relaying moves between engines in TwoMachines
mode: an engine would be sent SAN if the *other* engine had set
feature san=1, a relayed SAN move did not end with a newline, and
feature usermove was not implemented for relayed moves.

* Fixed several bugs in exiting: File/Exit would sometimes hang;
timestamp/timeseal would not get killed off; an engine crash would
cause error messages to be printed recursively until stack overflow.

* Fixed a bug in the code to detect which ICS is in use and adapt to
it; the chess.net case was broken.

* Removed the leading alias-suppression character when sending a move
to ICS, because it seemed to break accuclock on chess.net.

* Fixed a bug where a FICS prompt like "10:01_fics%" would be matched
as finger note number 10, causing a problem detecting when the user is
logged in.

* Added tellicsnoalias command to protocol.

* Changed st command in protocol back to old behavior.

* Added done=0 feature to protocol, to lengthen initial timeout.

* Added missing -colorSeek command line option to xboard.  (Was
present in WinBoard.)

* Bug fix: setting feature reuse=0 was not working.

xboard/WinBoard 4.2.0beta -- Sat Dec 16 16:34:56 PST 2000
Tim Mann

* Setting -searchTime no longer turns off -clockMode.  Note that when
-searchTime is set, some engines may search for the lesser of
searchTime and the amount of time their normal clock management would
dictate, while others will disable their normal clock management and
always search for exactly searchTime.

* Fixed WinBoard bug where on Windows 2000 (and maybe Windows 98) the
ICS Interaction window would scroll back to the top whenever it filled
to capacity and WinBoard trimmed some text off the top.

* Changed xboard dragging so that the center of the dragged piece is
forced to be over the mouse cursor.  (WinBoard dragging already worked
that way.)  This should avoid confusing cases when you start a drag
with the mouse near the edge of a square -- formerly most or all of
the piece could be over one square but the mouse cursor over another.
Suggested by DAV.

* Added move list window for xboard.  Code contributed by Manuel
Hoelss and re-hacked a bit by me.  Performance of this window is poor,
because the implementation regenerates the entire window contents
whenever anything changes.  It's hard to avoid this when using the
Athena List widget, though we could be a little smarter and notice
when the current move number has changed but the move list has not.
There are also several drawing problems caused by bugs in the Athena
Form and List widgets.  The window should not really allow a
horizontal scroll bar, but the bugs are much worse if I turn it off.
In both Xaw and Xaw3d, the List widget tries to resize itself when
XawListChange is called, even if you tell it not to; and what's worse,
if the widget cannot resize itself to be large enough to avoid
clipping any of the list item, it does not change the list!  Arrgh.
On top of that, the Xaw Form widget is very buggy in XFree86 4.0.1
(X11R6.4.3).

* The OK button in the WinBoard startup dialog is now simply disabled
if none of the radio buttons is selected, instead of bringing up an
error dialog.  Suggested by Ted Milbaugh.

* Used ping to address the worst of the race conditions in the
protocol.  Now if an engine supports ping, we ping it after sending
the "new" command and after trying to place it in force mode at the
end of a game.  When a ping has been sent and the corresponding pong
has not yet come back, we (1) ignore or undo any moves the engine
sends, (2) ignore game end messages (such as "offer draw", etc.) from
the engine, (3) ignore thinking output from the engine, (4) delay
starting the next game if in -matchGames mode, (5) in -zippyPlay mode,
respond to challenges with a polite message to try again soon instead
of accepting them.  There are a few more things that should be done
(and item 5 might not be quite what we want), but it's hard to fit
them all into the existing code.

* Patched the version of GNU Chess 5.00 included with WinBoard to
support protover, feature, setboard, and ping, and to fix some minor
bugs.  See gnu500+.patch.

* Changed the GNU Chess 4 kludges for missing "st" and "sd" commands
to be invoked only if the engine gives an error message for "st" or
"sd", and to always use protocol commands instead of engine
command-line options.  See "Idioms" in engine-intf.html.

* Added new protocol command "protover 2" to tell the engine what
version of the protocol is in use.  Version 2 is still compatible with
old engines; see engine-intf.html.

* Add new protocol command "feature ..."  The engine can send this in
response to the protover command command, to say what extended
protocol features it would like to enable, etc.  xboard responds
"accepted F" or "rejected F" for each feature F that is set.  See
engine-intf.html.

* Added new protocol command "setboard <fen>".  This is an alternative
to "edit", used only if the engine says "feature setboard=1".

* Added new protocol command "ping <msg>".  The engine is supposed to
respond "pong <msg>".  This gives us a tool to fix some race
conditions in the protocol, but it is not used to the fullest yet.

* Added new protocol command "tellopponent".  This will do a "say" if
you're on a chess server in Zippy mode, or pop up an information
dialog otherwise.

* Added new protocol command "tellall".  This will do a "kibitz" if
you're on a chess server in Zippy mode, or pop up an information
dialog otherwise.

* Added new protocol command "tellothers".  This will do a "whisper" if
you're on a chess server in Zippy mode, or do nothing otherwise.

* Changed the WinBoard /icsNames, /icsMenu, /firstChessProgramNames,
and /secondChessProgramNames options to accept a filename preceded by
"@", meaning to find the value in the file.  Changed the defaults to
use this feature, with filenames icsnames.ini, icsmenu.ini, fcp.ini,
and scp.ini.  This should make it easier for users to edit the values,
since one less level of quoting is needed, and each value is in its
own file, not mixed into winboard.ini.  Those who upgrade from an
older winboard version and already have a winboard.ini file will not
automatically have these values moved to a file; that has to be done
by hand if desired.

* We now strip .exe from engine names for "name" command, tags, etc.

* Allowed WinBoard input widget to hold more than one line.  You can get
a newline into the widget with copy/paste or with Ctrl+Enter.

* Fixed an xboard bug where the [P] button would appear in the
opposite highlight state from what it should be after being pressed.

* We now use the "/" or "$" alias suppression feature on the chess
servers, to avoid problems if the user inadvertently aliases a
needed command to something else.

* Changed the method used to deiconize xboard in AutoRaise and cmail.
This may fix bugs under some window managers where after
deiconization, the board window was mapped but nothing was drawn
inside.

* Preliminary, partial support for playing several chess variants
against a local engine or editing variant games.  The -variant option
must be given on the command line or WinBoard startup dialog; there is
no menu.  The current variant is not displayed (except in the
Tags/EditTags window).  Many variants will not work quite right even
if the engine supports them; see item 326 in the ToDo file for
details.

* Added a workaround to detect the variant type when examining a
scratch wild game on an ICS.

* Fixed two cases where "variant" command should be sent to the engine
when necessary but was not: loading a game from a file and restarting
a dead engine.  Thanks to Gian-Carlo Pascutto.

* Added missing support for FICS games that start from a bsetup position
with Black moving first.

* Fixed a bug in loading a file from the game list window while in
Analysis or AnalyzeFile mode.  This now leaves us in AnalyzeFile
mode, analyzing the new file.

* Fixed a bug in loading games with a comment before the first move.

* Fixed a bug in handling LoadGame (or -lgf) with -td 0.

* Added a command line option to select an initial minor mode from the
Mode menu.  This should satisfy requests from a couple of users with
special applications.

* Fixed a problem where some things in WinBoard's General Options
dialog box were grayed out at the wrong time.

* We look for a few messages from the chess engine pipe that are
intended to catch problems starting an engine via rsh, such as "No
such file".  Moved code so that these strings won't match until other
protocol messages have been looked for, and documented the messages in
engine-intf.html.

* Fixed the WinBoard bug that sometimes made the console input box
white-on-white even when not in password-entry mode.

* Small changes to WinBoard to be compilable with the latest Cygwin
net release (as of 10-16-2000).  Thanks to Mark Schoenberg.

* Recompiled GNU Chess 5.0 for WinBoard with the latest Cygwin net
release (as of 10-16-2000).  Also rebuilt the book just to be sure,
since I had one bug report about it.  It came out identical and seems
to work fine.

* Added messages for some common InstallShield errors instead of just
printing InstallShield's stupid error code numbers.

* Added -firstComputerString and -secondComputerString, allowing you
to suppress or change the command that is sent to a chess engine when
its opponent is another computer.

* Added "configure --with-Xaw3d" to allow use of Xaw3d widgets instead
of Xaw widgets in xboard.  Thanks to Johnny C. Lam of the NetBSD
project.  I've left Xaw as the default because Xaw3d is too ugly.

* The version of the Xaw Form widget released in XFree86 4.0.1
(X11R6.4.3) has a bug that causes xboard to display the button bar
on top of the message widget.  I've reported the bug and have
installed a kludge workaround into xboard.

xboard/WinBoard 4.1.0 -- Sun Sep 17 17:30:14 PDT 2000
Tim Mann

* Merged Winboard Plus 4.0.8 from Mark Williams into xboard
  source pool.  Status of Winboard Plus features in xboard:

  - White pieces now have borders, but the implementation is
    completely different from WinBoard's; see below.

  - Options menu not changed, probably won't be.

  - Copy&paste support working, using Mark's changes to backend.c, Ben
    Nye's changes to xboard.c for FEN positions, and some code of my
    own in xboard.c for PGN games.

  - Premove hooked up and working.  No pre-first-move, though.

  - ICS Alarm hooked up and working.

  - Auto-flip working.

  - PGN Training mode hooked up and working.

  - Improved menu item enable/disable working.

  - Improved >> button working.

  - Auto activate board working.  I changed this to be optional; you
    might not always want it, especially in Zippy mode.

  - Blindfold working.

  - Documentation updated.

* Fixed more colorization bugs.  Commands like "message foo tells you:
xxx" and "tell 33 tells you: xxx" will no longer generate bogus
colorization.

* Added low-tech sound support to xboard, by invoking an external
program on a filename for each sound to be played.

* ICC wild 27 is now recognized as VariantAtomic, and it sets the
"ignore check" flag, but is not otherwise supported.

* Converted the piece bitmaps from .bm to .xpm for use with xboard's
xpm support.  (An .xim version was not created.)  Wrote a shell script
using ImageMagick to do the conversion and to bucket fill from
coordinate 0,0 with the background color.  Used xpaint by hand to
clean up a few pieces where background color "leaked" into the inside
or didn't flow all the way around the outside, then a sed script to
fix up color names and bitmap names in the xpaint output.  If any more
sizes are added later, they should be straightforward to convert with
reference to the existing scripts.  With this conversion, not only do
the white pieces now have dark borders, but (unlike with WinBoard) the
light details on the black pieces are opaque.

* If the XPM library is found when building xboard, the new xpm pieces
are compiled in as the default.  External bitmap (or xpm) pieces can
still be used by giving the -bitmapDirectory (or -xpmDirectory)
option.  If the XPM library is not found, the old bitmap pieces are
the default.  In this case external bitmap (or xim) pieces can be used
by giving the -bitmapDirectory (or -xpmDirectory) option.  There is no
way to compile in xim pieces.

Winboard Plus 4.0.8 -- Sat Aug 5 15:51 PDT 2000
Mark Williams

* Bugfix release.

* Main menu now visible in Win NT.  Thanks to Microsoft for creating a
compiler which auto-mutilates the WinBoard.rc file so that the menu is
displayed under Win 98 but not Win NT.  I fixed the problem by hand editing the
.rc file.  Sigh.

* "Reset game" now works properly when invoked from Analysis mode when two
engines are present. Correction of bug introduced in Winboard Plus. Thanks to
Mogens Larsen for reporting the bug.

* Pasting a FEN position with Black to move now works in all modes.
Thanks to Mogens Larsen for reporting the bug.

* Added gnuchess.dat to the distribution and a couple of text files that were
missing in 4.0.7.

*** Merged in the following changes from Tim Mann:

* Bugfix: Highlights would sometimes not be taken down, at least in
xboard.  The problem is that SetHighlight works in chess coordinates,
not view coordinates, so if flipView has been toggled since the
highlight was put up, it gets taken down from the wrong square.  Fixed
by being careful to call ClearHighlights before toggling flipView, not
after.  Ugh.

* Bugfix: HighlightLastMove would sometimes highlight square a1 after
a FICS "tomove black" command.

* Bugfix: a move list with initial position that has black to play was
not being handled correctly.

* Removed "decline abort" and "decline adjourn" commands from Zippy.
The syntax is changing on FICS, and Zippy really doesn't have to
explicitly decline the requests anyway; it's sufficient to not accept
them.

* ICC wild 26 is now recognized as VariantSuicide (the FICS name; ICC
calls it "giveaway").

* Bugfix: PGN games with black to move in the initial position weren't
being legality checked correctly.  I think this was introduced in
4.0.6 when I fixed a different PGN bug.  Thanks to Mark Williams for
spotting the bug and suggesting a fix.

* Bugfix: the initial "name(" of a kibitz wasn't being colorized.

Winboard Plus 4.0.7 -- Thu May 12 17:57 PDT 2000
Mark Williams

* New white pieces with black borders.

* Major overhaul to Options menu. New dialogs for setting General Options,
  Board Options, ICS Options, Sounds, Fonts, Colors.

* Clipboard support for PGN game scores and FEN positions.

* Optional ICS Premove with user-specified first moves for White and Black.

* New sound events: ICS Win, ICS Loss, ICS Draw, ICS Unfinished, ICS Alarm.

* New auto-flip option when playing against a chess program.

* Added PGN Training mode.

* Certain menu options now disabled while program is thinking.

* ">>" button now always goes to the end of the game.

* In ICS mode, the board is automatically activated at the start of a
new game.

4.0.7 -- Sun Mar  5 17:17:49 PST 2000  Tim Mann

* Fixed a nasty bug in parsing ICS game histories that was introduced
in 4.0.6.

4.0.6 -- Fri Mar  3 16:20:11 PST 2000  Tim Mann

* Fixed bugs in Zippy's code for responding to messages sent with the
ICS "message" command.

* Fixed bugs where xboard could still create dialogs partially off the
top of the screen.  Fixed unwanted interactions between initial sizes
and positions of various unrelated xboard dialogs.  Deleted
borderXoffset and borderYoffset resources.

* Fixed restoring the xterm name on exit to work in more cases.

* Small fix to the WinBoard self-extracting installer: when it starts
up, it now always deletes any old wb-setup directory left over from a
previous installation.  Formerly this worked only on Windows 95/98, so
on NT the self-extractor would sometimes stop and ask the user whether
it was OK to overwrite the old wb-setup files.

* Modified WinBoard to be compilable with the free Cygwin tools
available from http://sourceware.cygnus.com/cygwin/.  Based on work by
Mark Schoenberg.  (His mods were enough to get WinBoard through the
compiler, but a few things were broken along the way, so I reworked them.)

* Merged changes from Don Fong to make WinBoard compilable with
Borland C++ 4.5.  I do not have Borland C++ and am unable to test with
it, but I did make sure the changes don't stop it working with MSVC++
5.0 and Cygwin.

* Forbade entering TwoMachines mode from MachineWhite or MachineBlack
mode when machine is on move.  This used to confuse the engine and
cause problems, because when we try to get the engine to stop, it
might make a move first, and it might not do that immediately.

* Variant classification now deals with new ICC wild 25, classifying
it as "3check".  Also, we are now conservative about new wild numbers
we don't know about, classifying them as "unknown" instead of
"normal".

* Replaced bad GNU Chess 5.00 book in WinBoard distribution with a
correct one.  1.e4 now no longer takes GNU Chess 5.00 out of book!
Thanks to Pete Galati.

* Made move parser accept and ignore nonstandard ep suffix on PGN moves,
e.g., "exf6ep" or "exf6e.p."

* Fixed bugs in parsing PGN files starting with no move number, or
with a move number other than "1." (including "1...").  Thanks to
Michael Soulier and Stefan Zipproth for example PGN files
demonstrating the bugs.

* Changed InitComboStringsFromString to not modify the input string;
this caused an exception when WinBoard was compiled with MSVC++ 6.
Thanks to Bert Tuyt for the report.

* In WinBoard, dragging a piece off the edge of the board without
releasing the mouse button no longer instantly aborts the move.  You
still must release the mouse button inside a square to complete a
move, but you can now drag off the edge and come back inside.

* WinBoard bugfix: If you went into EditGame or EditPosition mode
while observing or playing an ICS game, and a new move came in
(snapping you back to ICSClient mode) while you were dragging a piece
around, the drag state would not be reset, causing the piece you were
dragging to remain on the board wherever you dropped it.  Thanks to
David Brinegar for the bug report.

* WinBoard bugfix: If you moved or resized the board while your
opponent was moving, and you had AnimateMoving on, his move would not
be displayed until after your next move.  Thanks to DAV for reporting
the bug repeatedly until I finally understood it.

* Added a Zippy "farewell" feature; see zippy.README.

* Fixed a bug (xboard only) in processing -zippyReplayTimeout on the
command line.  Thanks to Steve Beer for the report and patch.

* Send "computer" command to both sides in TwoMachines matches.

* Fixed a Y2K bug in Evan's cmail code!  Thanks to Brian Mays for the
report and patch.

* Bugfix: Initialize variant field of GameInfo struct in gameinfo.c.
This could cause crashes in LoadGame.  Thanks to Andrzej Nagorko.

* Fixed several pattern matching problems: Finger notes and formula
vars no longer get replied to by zippyTalk or colorized.  Channel
tells by players with many titles are now colorized fully, and
zippyTalk handles channel tells by such players correctly.  The shout
"--> foo(99): bar" no longer gets colorized as a channel tell.  Code
is cleaned up a bit, and autocomment capture now uses the same
criteria as colorization.

* xboard fix: Enter key now closes error popups as in WinBoard.
Especially nice for the "Exiting: Connection closed by ICS" popup.

4.0.5 -- Tue Dec  7 10:30:40 PST 1999  Tim Mann

* Added missing documentation of SIGTERM usage into engine-intf.html.

* Bugfix: New -zippyReplayTimeout option was misspelled in WinBoard as
-zippyReplyTimeout.  Thanks to Francesco Di Tolla.

* xboard -ics now restores the xterm's original title upon exit, at
least if $WINDOWID is set.

* Bugfix: -matchGames mode wasn't terminating properly.  Final score
popup would come up twice and engines would not be killed off.  Thanks
to Frank Quisinsky for the bug report.  Bug was introduced in 4.0.4.

* Bugfix: "tell 50 foo shouts: bar" no longer gets colored as a shout;
similarly for "...s-shouts:" and "...c-shouts:".  Thanks to David Lee
for the bug report.

4.0.4 -- Fri Dec  3 17:51:27 PST 1999  Tim Mann

* Bug fix: formerly if you invoked SaveGame from EditPosition mode
with black to play, the position was not saved properly.  As a quick
fix, SaveGame now takes you out of EditPosition mode before saving.

* Changed -matchGames to keep track of the score (won-lost-drawn) and
display it in the banner.  The final score is displayed in a modal
popup before the program exits.

* Changed "Connection closed by ICS" to display in a model popup
before the program exits.

* Added -popupExitMessage option, default on.  Setting this to false
suppresses the modal popups that you sometimes get just before
xboard/winboard exits -- both the two new ones listed above and the
existing Fatal Error popup.  This is useful when running Zippy
unattended from a shell script (or .bat file) that loops and starts a
new copy after a time delay when there is an error.

* In xboard, added missing support for WM_DELETE_WINDOW to all
windows.  This makes xboard a better citizen, and is much needed with
the newer X window managers that put an [X] button on every window and
bind it to "kill application" if the applicationd does not support
"delete window".  We can't allow xboard to be thoughtlessly killed,
since that leaves the chess engine running in the background.

* We now avoid positioning tops of xboard dialog boxes offscreen.

* zippy.lines can now use the caret ('^') character as an inter-saying
separator. You no longer need to dig up a text editor that can put NUL
('\000') characters in text files.

* Bugfix: In traditional chess clock mode, White now gets time added
to its clock as soon as it makes time control.  Previously both White
and Black got their time added only when Black made time control,
which would cause some engines to make their 41st move as White too
quickly, thinking they were low on time.

* The zippyAcceptOnly feature no longer sends a decline command or
a tell.  Thus you can use it to put Zippy into a manual accept mode.

* Bugfix: "tell 50 foo tells you: bar" no longer gets colored as a
personal tell; similarly for "...whispers:" and "...kibitzes:".

* WinBoard no longer blanks the message line when you start a new
move, unless there was an error message there from the previous move.

* WinBoard now never puts the white piece drop menu on the middle
mouse button.  Both colors are always on the right button.  Windows
users often don't think to look for a middle button menu, or don't
really have a working middle button despite what Windows says.

* Guest login handles on ICC are now parsed again; an ICC wording
change had broken this feature.

* Autodetect when the engine does not support the "draw" command and
don't relay the command to it in that case.  Needed because sending an
unsupported command to GNU Chess makes it move immediately, so people
could make Zippy move without thinking by continually offering a draw.
Thanks to Frank Walker for the problem report.

* Small changes based on code from Robert Jurjevic: The WinBoard
analysis window can be minimized (though not to the taskbar).  The
WinBoard ICS Interaction window will autoscroll if you drag the mouse
above or below the window while selecting, and password entry mode
leaves the entry line as the background color instead of using 75%
gray.  Seeks are now colorized with a new color of their own.

* Added -zippyMaxGames feature.

* -zippyNoplayCrafty command line option was missing in xboard; fixed.
Thanks to John Perry.

* Fixed bug in detecting when Zippy loses his bughouse partner.
Thanks to Ben Dean-Kawamura.

* allobs fix in 4.0.3 didn't work; corrected it.

* WinBoard will now update the board immediately if a move is made
while the window is being moved or resized.

4.0.3 -- Sun Aug 15 18:44:39 PDT 1999  Tim Mann

* Bugfix: moved winboard wizard functions that send a command directly
to the chess engine from Ctrl+Alt+1 and Ctrl+Alt+2 to Alt+1 and Alt+2.
Ctrl+Alt is equivalent to the European AltGr key, so the old assignments
conflicted with typing an @-sign on some keyboards.

* Bugfix: prevent "If this message stays up, your chess program does
not support analysis" from appearing if AnalysisMode is selected when
already in Analysis or AnalyzeFile mode.  Also, deleting analysis window
in WinBoard now switches you to EditGame mode, to avoid the anomaly of
being in an analysis mode with no analysis window present.

* Change all Zippy environment variables to work as command line
options.  For now they still work as environment variables too, but
the environment variables are deprecated.

* Use unsigned long to hold node counts from engines.

* Print error instead of crashing on attempts to use xpm or xim pieces
in monochrome mode.  Thanks to Jim Torrance for the bug report.

* Tightened pattern recognition for ICS messages sent to Zippy; should
no longer match ICC allobs output.  Fixed recognition of when Zippy is
sent a message; small change to FICS output had broken it.

* Zippy now exits if the engine dies unexpectedly.

* Added Zippy "spoofedby" feature; see zippy.README.

* Narrowed the margins on some older WinBoard dialogs to make their
style uniform with the newer ones.

* Bugfix: Changing Ponder Next Move from the Options menu did not take
effect until the next game.  This bug was in WinBoard only.  Thanks to
Stefan Zipproth for the bug report.

* Got rid of "Internal error: bad move type" message when the engine
makes a move that we can parse but think is illegal.  Now the move is
just passed on (which also may be the wrong thing to do).

4.0.2 -- Thu Feb 25 19:55:32 PST 1999  Tim Mann

* Added one more built-in sound choice to WinBoard: move.wav from Pete
Galati.

* Added new larger piece sizes: big, huge, giant, colossal, titanic.

* Modified the xboard font searcher to be able to use scalable fonts.
The new -fontSizeTolerance flag controls how closely a nonscalable
font must match to be used in preference to a scalable font.

* Zippy environment variables ZIPPYABORT and ZIPPYADJOURN now control
whether Zippy will accept abort and adjourn requests.

* We now determine the variant type being played on ICS, send it as a
command "variant VARTYPE" to the chess engine (if in Zippy mode), and
put it in the PGN tags.  See engine-intf.txt for variant names.  See
ZIPPYVARIANTS in zippy.README to control what variants Zippy will
accept.  Note that this now applies to bughouse, too.

* Zippy now won't do -zippyTalk in a channel unless his handle is
mentioned there.

* Zippy now ignores bughouse holdings if not actually playing, instead
of stupidly trying to abort the game.  Let me know if other strange
things happen when Zippy is observing a game.

* Set ICS Interaction title bar to "user@server".  User name is
determined by parsing message during the login sequence.  Zippy now
uses this method to get its name too, so ZIPPYNAME is eliminated.
Problem: with xboard, the title bar gets set to "xterm" upon exit,
since we didn't know what it was to start with.

* Fixed xboard-only bug in -colorChannel1 command line option.  Thanks
to Fredrik Sandstrom for the bug report and fix.

* Check for overflow of MAX_MOVES.  Still not sure this is checked for
everywhere it needs to be.

* Added .epd to suffixes recognized by WinBoard as position files.
This is a bit of a kludge, as the .fen reading code was not written
with .epd files in mind, but reading them with it is said to work.

* Added ZIPPYGAMESTART feature, suggested by Jason Hoblit.  See
zippy.README.

* Restored the feature of soaking up the moves from a user-typed "moves",
"oldmoves", or "smoves" ICS command when xboard/WinBoard is idle, but
changed it so that the move list is also echoed to the screen.  Some folks
still liked the old feature since it is faster than examine mode, and
printing the moves to the screen should eliminate the confusion it caused
for other people.

* Bugfix: in WinBoard, starting a click-click move and then clicking on
a black line would cause the source square to be forgotten without taking
the highlight down.  Now the errant click is ignored.

* Corrected shortcut key labels for LoadNext/PrevPosition in WinBoard's
File menu.  Thanks to Andreas Stabel for the bug report.

* Bugfix: if you had a completely full ICS context menu in WinBoard
(90 items), the last one would do nothing if selected.

* The "computer" engine command added in 4.0.1 was not working; I had
left out part of the code patch.  Oops.

4.0.1 -- Fri Feb 12 21:24:15 PST 1999  Tim Mann

This is a minor bugfix release.  The first item listed below is the
only interesting new feature.

* You can now type in moves from the keyboard in WinBoard.  Either
select TypeInMove from Step menu, or (if you are not in ICS mode),
just start typing.  In ICS mode you can type moves into the ICS
interaction window anyway, so I've retained the feature that typing
switches you there.  Not implemented in xboard.

* Removed the "noise 1000" command that used to be sent to the chess
engine when entering analysis modes.

* Deleted the feature where we soak up the output of a user-typed ICS
"moves" or "oldmoves" command.  This ancient feature is not really
useful anymore, now that "examine" exists, and it caused a lot of
complaints.

* Increased maximum size of ICS text menu to 90 entries and added
overflow checking.

* The command sent to ICS by Zippy at the end of each game can now be
customized with the ZIPPYGAMEEND environment variable.

* We treat xboard.info as a pseudo-source since most people don't have
the tools to rebuild it.  But "make install" erroneously had a
dependency on it, even though "make all" did not.  Fixed.

* Miscellaneous minor updates and clarifications to engine-intf.txt.
In particular, documented the st and sd commands (support for command
line options -searchTime and -searchDepth), warts and all.

* Added a small code patch from Bob Hyatt to detect when Zippy's ICS
opponent is a computer and send the command "computer" to the engine.
Added this command to engine-intf.txt.  Thanks, Bob.

* Bugfix: configure was looking for usleep(), but config.h.in didn't
have an entry for it, so HAVE_USLEEP was never defined.  Also, in the
non-HAVE_USLEEP case, there was a possible race condition between the
signal handler and the pause() call.  Thanks to Ben Dean-Kawamura for
the bug reports.

* Bugfix: a "1..." preceding Black's first move (usually present if
there is a comment on White's first move) would cause the parser
to think a new game started there and report "End of game" on the
current game.  Thanks to Dell Garner for the bug report.

* Changed the abbreviation for -searchDepth from -sd to -depth to fix
a clash with -secondDirectory.

* Changed -searchDepth to be orthogonal to the various timing options.
Previously it would search for an unlimited time to the given depth;
now the engine is allowed to choose its search time in the normal way,
but is told to cut off the search early if it reaches the given depth.

* Bugfix: SaveSettings in WinBoard was saving both the long form
option highlightSquareColor and its abbreviation (hsc).

* Fixed a redisplay bug in DisplayBothClocks that could cause White's
clock to be highlighted in EditPosition mode when Black's should have been.

* Fixed Zippy's feature of passing on draw offers from the ICS opponent.
The colorization code was eating the offer before Zippy saw it, so I disabled
colorization of offers while in -zp or -zt mode.  (Other types of
colorization are already disabled in Zippy mode for similar reasons.)

* Added some more commands to the default ICS context menu in WinBoard,
and put "(name)" on the ones that insert a playername (or game number).

* Added missing documentation to WinBoard help file: PonderNextMove, the
-ponder/-xponder argument, and the up/down arrow history feature in the
ICS Interaction window.

* Fixed	ZIPPYNOPLAYCRAFTY feature to fire only if the opponent is Crafty,
not if some other Crafty is observing the game and kibitzes.

* Fixed bugs in generating "partner" commands when Zippy is playing
bughouse.

4.0.0 -- Sat Jun 20 16:59:47 PDT 1998  Tim Mann

* Fixed WinBoard resizing so that the edges you do not drag remain in
place, even when the final size is different from what you dragged to.
(This doesn't work on NT 3.51 or earlier, if anyone cares.)

* Fixed problems with resizing WinBoard on Windows NT: you no longer get
whitespace around the board, a clipped board, or a lot of flashing during
the drag.

* Added customization for highlight-square color.

* Bugfix: backend.c wrote to stderr in a few obscure places, which doesn't
work in WinBoard.

* Added Index Number field back to LoadGame/LoadPosition dialog boxes in
WinBoard.  This required some extra code to work with both the
Explorer-style dialog boxes and the old-style NT 3.51 dialog boxes.  Ugh.

* WinBoard startup dialog now understands -zp mode.  The first chess
engine selector is enabled and the value is used.

* Bugfix: ResetGame would send "exit" to engine twice if it was in an
analysis mode.

* Bugfix: The response "Illegal move: bk" to the "bk" command, indicating
that it is not implemented, would confuse xboard.

* Bugfix: Ignore empty hints ("Hint:\n") instead of printing a message
saying that some bogus string (often "Hint:") is illegal.

* Bugfix: LoadNextGame/LoadPreviousGame/ReloadSameGame were broken.

3.6.12 -- Sat Jun 13 14:57:10 PDT 1998  Tim Mann

Beta test release of xboard and WinBoard.

* Spruced up xboard man page a bit.

* Added Highlight Last Move to xboard too.

* The revamped xboard mouse click code had several more bugs than the
previous version, so I revamped it again.  All fixed now, I hope.

* xboard bugfix: crash in CreatePieceMenu.

* Oops.  winboard-3_6_11beta.exe installed 3.6.10beta, not the new version.

3.6.11 -- Fri Jun 12 20:00:48 PDT 1998  Tim Mann

Beta test release of xboard and WinBoard.

* Major reorganization to engine-intf.txt.  Some new features added,
many existing features clarified and hints for engine programmers added.
Support for new features added to program.

* Changed defaults for -scp (etc.) back to being independent of -fcp, as
in 3.6.2. That is, the default is no longer to copy the value from -fcp if
-scp is not specified.  This will sometimes make command lines longer but
will remove some confusing situations.

* Split -reuseChessPrograms into two options: -reuseFirst and
-reuseSecond.  Fixed obscure bugs when reuse is off.

* Detect ICC and change some command usage slightly there: only ICC has
set-quietly; only FICS has iset and bsetup clear.  With this feature, we
can now safely use bsetup clear when appropriate instead of deleting each
piece one by one.

* Added indent to lines that are wrapped by WinBoard ICS Interaction
window.  This seems to tickle a Microsoft bug in the RichEdit control:
occasionally the start of the next line after the wrapped line is indented
too.  I think the wrapped indent feature is useful enough that it's worth
having in spite of the bug.

* WinBoard bugfix: bounding box for the board was computed incorrectly by
mouse code.  It would think you moved off the bottom of the board before
you really did, so it was hard to drag pieces along the bottom rank on
smaller board sizes.

* Fixed obscure parser.l bug: ambiguity between capture using : instead of
x and email header line.  Also removed or simplified a lot of complex
patterns for English (as opposed to PGN) end-of-game indications while I
was in there.

* Added PonderNextMove option.

* xboard EditPosition piece menus now let you set the side to play by
selecting the "White" or "Black" label at the top of the menu, like
WinBoard.  (Both xboard and WinBoard still let you set the side to play by
clicking on the clock.)

* Merged documentation of Crafty and GNU Chess thinking output in
engine-intf.txt.  Corrected code in backend.c to match documentation; it
used to require the PV to start in column 27 (!).

* Fixed bug that caused crashes in "-reuseChessProgram false" mode.

* Draw by agreement in Two Machines mode now works as it is supposed to.
Other minor bugs in handling game end messages from machines are also
fixed, and engine-intf.txt is revised in this area.

* Revamped xboard code for handling mouse clicks on the board.  In
particular, it had a bug if a click-click promotion move was made.

* Fixed and reinstated optimization for << in analysis modes: send
initString and re-send the board if needed.  Sending repeated undos
is bad because Crafty prints some analysis after every one.

* Don't go into a spin loop while pausing between xboard animation frames.
This caused problems, especially when compiling with -O2 on HP-UX.

* WinBoard Options/Colors/RevertToDefaults now also turns off Monochrome
if it was on, and similarly for Options/ICSInteractionColors/RevertToDefaults.
This seemed to confuse people before.

* Bugfix: ICS Interaction context menu items with neither of the two
optional flags set did not work.

* Bugfix: PGN move numbers are optional, but we were insisting on "1"
right after the tags.

* Bugfix: only the first game of an -mg match was loading -lpf or -lgf.

* Other minor fixes and code cleanup.

3.6.10 -- Mon Jun  1 01:32:31 PDT 1998  Tim Mann

* Added ZIPPYNOPLAYCRAFTY feature; see zippy.README.

* Added timestamps for chess engine interaction to -debug output.

* Now allow 10 seconds (was 5) between games in match mode for engines to
respond to "force" command that ended previous game.

* When a game is picked from the game list and the names of White and
Black are known, display them in the window banner instead of the filename
and game number.

* Changed default for -scp and -sd to be the values of -fcp and -fd.

* Added boxes for both engines to WinBoard startup dialog.  Changed to
dropdown boxes whose content can be set from winboard.ini, similar to
the box for ICS name.

* Accept "offer draw" (or "*offer*draw*") from engine to offer a draw.

* Accept "move mmmm" from engine as well as silly "1. ... mmmm" syntax.

* Added support for bughouse engines (Zippy mode only).

* Move bombproofing for engines sending illegal or out of turn moves.

* Always send "xboard\n" to engine as first command.  Eliminates need
to run crafty as "crafty xboard".

* Rewrote xboard code for input from engines to fix longstanding bugs.
Previously an engine that sent one line in two separate writes with
some time lapse in between (or perhaps that sent several lines in one
write) could make xboard hang.  WinBoard did not have this bug.

* Fixed minor bugs in dealing with illegal moves.

* Added "iset startpos 1" for FICS.

* Removed special support to put "GNU Chess" or "Crafty" in the window
banner instead of the engine's base filename.  This gives a more level
playing field for other engines.  Also fixed bugs in the code that finds the
engine's base filename.

* Bugfix: Abort or Resign at the very start of a game in chess engine mode
would fail to send "force" to the engine.

* Fixed some minor bugs in new "result" messages, and changed format to
include a trailing PGN comment giving the reason the game ended.

* Changed syntax of /font options in WinBoard; old syntax was assuming
that a font name can't contain a digit, which is wrong.  Old font names in
WinBoard.ini files are still accepted.

* Serious further work on getting WinBoard to read/write files in the
"right" directories and documenting exactly what it does.

* Added LoadPreviousPosition, LoadNextPosition, ReloadSamePosition.

* Misc. tiny fixes and cleanup.

3.6.9 -- Sun May 24 20:53:08 PDT 1998  Tim Mann

xboard and WinBoard beta release.

* Tightened up illegal move handling.  Illegal or meaningless moves from a
file or chess engine should no longer get translated into a1a1 and blindly
applied.  Explicit moves to the same square (like a1a1) no longer make the
piece on that square capture itself and vanish.

* Added AlwaysOnTop feature to winboard.

* Fixed bug in winboard "@" command line indirection operator.

* Removed buggy "optimization" code for ToStart in analysis modes.

* Fixed typo bug in zippy.c that would often cause winboard to crash
right after starting a game in -zp mode.

3.6.8 -- Sat May 23 22:23:19 PDT 1998  Tim Mann

xboard and WinBoard beta release.

* Added -firstDirectory and -secondDirectory so that chess engines can
be started in a different directory from xboard/WinBoard itself.

* Added -matchGames to allow more than one game in -matchMode.  The games
are played with colors alternating between the two chess engines.  Had to
add a time delay at the end of each game to catch up with game ending
messages from both chess engines -- yuck.

* Changed TwoMachines mode to have firstChessProgram play White by
default.  Added -firstPlaysBlack to restore old behavior.

* Major rework of code in backend.c for dealing with first and second
chess engines.  Generalized the code and created a struct type with one
instance for each engine.  Several small bugs fixed along the way.

* Fixed bugs in Abort in local chess engine mode.

* Tightened pattern matching to recognize moves from machine.  Should cure
bogus "Illegal move" errors while Crafty is pondering with Show Thinking
on, among other things.

* WinBoard keeps focus in board window after popping up a comment due to
Forward/Backward/ToStart/ToEnd commands.

* Finally got rid of warnings on compiling moves.c under Windows.

* Fixed so WinBoard will compile on machines where WM_MOUSELEAVE is not
defined.

* Removed various bits of unused code.

* Parse (and ignore) NAGs in PGN files.

* Updated engine-intf.txt.

* Send "result R" to the chess program at the end of each game, where
R is the PGN result 1-0, 0-1, 1/2-1/2, or *.

* Bugfix: suppress animation when loading a game with timeDelay=0.

* Bug fix: pondering output from Crafty that contained "..." could be
mistaken for a move, causing bogus error messages and general chaos.

* xboard "make clean" bug fix: moved things created by configure to be
removed only by "make distclean".

* Fixed a remaining case where move was being animated before being
relayed to opponent.

* Backend was reversing time/otim commands to the chess program (new bug),
and was often not sending them on the first move of a game or the first
move after a mode change (old bug).  Fixing the latter required a kludge
to work with both GNU Chess and Crafty, because Crafty swaps white and
black clock times when it swaps sides, while GNU Chess does not.  The
kludge is that we always make sure the chess engine thinks its opponent is
on move before we set the clock.  This will sometimes result in sequences
like "white\ntime xxx\notim yyy\nblack\ngo", or the same with white and
black interchanged.

* Removed last trace of old -whiteString and -blackString arguments.

* Fixed so that you can type "bd" into the Direct Command dialog when
debugging gnuchess, without having xboard parse the clock display
(starting with "White") as "White wins" and end the game.

* Changed moves.c to make a distinction between IllegalMove (where we
could tell what move was intended, but it violates the chess rules) and
MeaninglessMove (where we could not tell).  This is a step towards getting
rid of cases where we translate meaningless moves into "a1a1", but some
work is probably needed to track them all down.

* Fixed bug in WinBoard monoMode dragging.

* Changed WinBoard to new style file dialogs.  In the process, disabled
the feature that let you enter the index number of a game or position within
the file in the dialog.  This is no loss in LoadGame, as you can pick your
game from the game list dialog that follows, but it does remove some
functionality from LoadPosition.

3.6.7 -- Mon May 18 21:25:00 PDT 1998  Tim Mann

xboard and WinBoard beta test release.  I've been unable to reproduce some
reported drawing bugs, so they may still not be fixed.

* Changed PopUpErrors option to PopupMoveErrors, which is more useful, and
changed default to off.  Errors other than move errors should always be in
popups; they are often too big for the message area and too important to
put where they can be easily missed.  But it seems good to get rid of the
popups for move errors by default.

* xboard analysis window no longer forces itself to top whenever there is
new output.  Also, now uses built-in Xaw word wrapping instead of trying
to do its own; works better.

* Bugfix: Reset did not take Crafty out of analyze mode.

* A chess engine no longer has to claim to be Crafty to be able to use
AnalysisMode and AnalyzeFile; it just has to implement the analyze
command as Crafty does.  Put in heuristics to generate more informative
error messages if the engine does not support analyze, and checked that
they work at least with GNU Chess.

* Added click-click moving, HighlightLastMove, and HighlightDragging to
WinBoard.  The highlight features are unlikely to go into xboard unless
the xboard drawing code is cleaned up to do *all* drawing on the board
from DrawPosition, as WinBoard does.  This is low priority for me.

* Eliminated bogus "Error gathering move list: no header" popup.  You
could get this by observing two fast games at once without turning off
GetMoveList.

* Disable WinBoard Sounds menu entirely in -ncp mode, since not even
MoveSound is used in that mode.

* WinBoard bugfix: Several problems were caused if the user changed
WinBoard's current directory in a Load, Save, or Browse dialog.  In
particular, WinBoard.ini would get saved in the wrong directory, and
sound .wav file names would not get saved with a full pathname.  I think
all such problems are now fixed.

* WinBoard bugfix: iconizing the board after an aborted mouse resize would
(partially) resize it to Tiny.

* WinBoard bugfix: board was not being drawn in color on 256-color
displays.  This bug was introduced in 3.6.6.

3.6.6 -- Tue May 12 17:43:43 PDT 1998  Tim Mann

xboard and WinBoard beta release.  Note: not all reported bugs are fixed.

* Move animation in WinBoard, programmed by Henrik Gram.  Great stuff!

* Animate backward moves too.

* xboard bugfix: -font (and friends) can now specify a font alias (such
as "fixed"), not just a full X Consortium name pattern.  Previously this
would give a resource conversion error message.

* Some coding style cleanup in xboard.c.

* Earlier error check for moving wrong color piece in EditGame mode.

* Completed fix to pattern matching; see 3.6.5.

* Fixed some software rot bugs in Zippy.

* Split AnimateDragging as separate option from AnimateMoves.

* Added FlashMoves to options menu and -flash/-xflash to command line
options (xboard only).

* Some preliminary work on visible bughouse holding support.  Most of the
code is not present in this release because I have not gotten it working
properly yet; my first approach went down a blind alley and I had to
remove most of the partially working code in preparation for a rewrite.

3.6.5 -- Fri May  8 14:22:09 PDT 1998  Tim Mann

Not generally released.

* Pack bughouse holdings display in banner more tightly when board is one
of the smaller sizes (when smallLayout or tinyLayout is true, that is).
An interim measure, but should help.

* Completed fix to make move list parsing recognize the end condition and
final comment.

* Fixed pattern matching for chatter (tells, etc.) to be more reliable.
This should reduce the incidence of colors starting in the wrong place and
of incorrectly matching things that look like other patterns inside
chatter, such as "shout <12>".  (These errors were already rare.)

* WinBoard now lets you customize the list of ICS's in the startup dialog.
For now, at least, requires editing WinBoard.ini with a text editor.

* Bug fix: WinBoard window sizing and position setting save/restore did
not work right when the taskbar was at the top (or left side) of the
screen and not in autohide mode.

* Merged xboard click/click mode and drag mode, and deleted
ClickClickMoving option on menu.  Now if you click on a piece, it
highlights and a further click on another square will move it.  (A second
click on the same square takes down the highlight.)  Or if you press down
on a piece and start to drag, you can drag it to a new square.

* When making click/click style moves, if your second click is on a piece
of the same color, instead of saying "Illegal move", we now cancel the first
starting square, replace it with the second, and wait for another click to
finish the move.

* Separate -secondInitString.  Default: same as -initString.  Suggested by
Remi Coulom.

* Patch from Frank McIngvale to make animation work with XIMs.  Yay!

* Changed move animation to happen after move is passed on to ICS or the
chess engine, where applicable.  Fixed problems with updating moveList
that this uncovered.

* Changed game list to show PGN result token for each game.

* The usual minor bug fixes.

3.6.4 -- Thu Apr 30 23:14:43 PDT 1998  Tim Mann

xboard and WinBoard beta test release.

* xboard documentation updated, both man page and info file.  An attempt
to generate both from the same source with LinuxDocSGML was abandoned, at
least for now.  WinBoard doc updated too.

* Merged updates to animation code from Hugh.  Fixed a couple of remaining
bugs, mostly to do with handling Pause mode correctly.

* Added SaveSettingsOnExit to WinBoard.

* WinBoard now saves the last screen position of the Comment, Edit Tags,
Game List, and Analysis windows (in addition to the board and ICS
Interaction windows) in WinBoard.ini.

* WinBoard now provides a way to customize the right-button context menu
in the output area of the ICS Interaction window.  For now, requires
editing WinBoard.ini with a text editor.

* Various minor fixes to ICS message recognition, most affecting only Zippy.

* Colorize the notification when someone sends you a message while you are
logged in, not the output of the "messages" command.

* Fixed colorization to turn off at the right place more reliably.

* Added a new color and WinBoard sound for "requests": abort, adjourn,
draw, pause, and takeback.  The same color and sound are used for all of
these.

* Added GUI to change sounds in WinBoard.

* Suppressed WinBoard error popup when a sound can't be played.  They were
popping up when two separate WinBoards tried to play a sound at the same
time (such as during a bughouse match).

* Fixed WinBoard crash when a sound file didn't exist.

* WinBoard ports of timestamp and timeseal now produce decent error
messages if they fail to connect, and WinBoard captures the messages and
puts them into a popup.  Previously WinBoard would exit with no message on
such errors.

* WinBoard resizing with mouse improved; now accurately picks the largest
size that fits in the new area.

* Added option to turn off error message popups.

* Added sizes slim, dinky, and teeny.

* Fixed some minor problems with error message wording.

3.6.3 -- Mon Feb 23 19:08:57 PST 1998  Tim Mann

xboard beta test release only.  Man page is updated for the changes, but info
file is not.

* Bug fix: LoadGame could not load a PGN game whose first move was
castling (which is possible from setup positions).

* Bug fix: we were ignoring illegal move messages from chess engines in
modes where the engine is refereeing but not participating (EditGame,
LoadGame, AnalyzeFile).  The problem was in a workaround for a Crafty bug,
where Crafty generates a bogus illegal move message if a "." (used by
the PeriodicUpdates feature) is sent in analysis mode when the current
analysis reveals a forced mate.  Installed a different workaround (that
works in most but not all cases) and reported the Crafty bug.  Bob Hyatt
replied with a fix, so the Crafty bug should be gone in Crafty 14.12 or so.

* WinBoard only: enabled resizing board with the mouse.  It snaps to the
nearest (but not too much larger) predefined size.

* The xboard default font is now sized according to piece size, just as
clockFont and coordFont have always been.

* Added more sizes: bulky, moderate, average, middling, mediocre, petite.

* xboard only: Added Animate Moves and Click-Click Moving to Options menu.

* xboard only: Added code to animate piece movement, from Hugh Fisher.

* New feature: autoflag is implemented in MachineWhite, MachineBlack, and
TwoMachines modes.  If it is on and either a chess program or the user
oversteps his time, xboard will automatically call the flag and end the
game.  This feature was requested by someone who runs matches between
programs and wants to penalize GNU Chess for its habit of running slightly
over at the end of a time control.  I personally think it's pointless.

* Fixed a bug in Zippy's pattern matching; he can now reply to ICC
messages again.

* Generate prettier notation for illegal moves.  If a move is illegal only
because it leaves the player in check, generate notation as if that were
not illegal.  For instance, if two knights are a knight's move away from
f3, one on g1 and one on e5 that is pinned, the notation would be Nf3 to
move the g1 knight, Nef3 to move the e5 knight.  (Suggested by Philippe
Schnoebelen.)  In addition, if a move is illegal because the type of piece
moved cannot go that way, would be jumping over another piece, etc., we
give fully disambiguated coordinate notation; for example, Ng1g3, Ke1xe8,
d2xd8=Q, etc.  An alternative would be to still write Ng3 if there is only
one knight on the board, or Ngg3 if the other knight is not on the g file,
but life is too short to code up all this stuff, and perhaps the way I did
it is better as it emphasizes that this move was really made despite being
illegal.  I wonder if the new PGN standard revision will speak to notation
of illegal moves?

* Fixed gross bug from 3.6.2: if a chess program said "checkmate" and
White was left on move, the PGN outcome was "1-0 {Black mates}" instead
of "0-1 {Black mates}"!  The bug occurred only for that specific string.

3.6.2 -- Wed Jul 23 16:47:29 PDT 1997  Tim Mann

* There was a bug in backing up from the end of a game against a chess
engine, introduced when -reuse mode was added.  Fixed.

* Recognize "{" as terminating an ICS move list.  Previously we needed to
see a prompt (containing %), but occasionally ICC can send more stuff
right after a move list with no prompt in between.

* In WinBoard, -mm now implies -cp, so you don't get the startup dialog.

* WinBoard startup dialog no longer sets -scp.  People used to get
confused because they would give the -fcp and -scp arguments, but omit
-cp.  This would bring up the startup dialog, which would set both -fcp
and -scp to the value in the engine name box.  Now you can change -scp
only with the command-line argument.  That will confuse some people too,
but hopefully fewer.  I think overall it's better than putting spaces for
both -fcp and -scp in the dialog, which would puzzle newbies.

* Bug fix: Analyze File mode now works in WinBoard.

* Bug fix: WinBoard window no longer cuts off part of the bottom row if
the menu bar wraps to a second line.

* Accept game end messages of the form "PGN-result {comment}" from the
chess engine, where PGN-result is 0-1, 1-0, or 1/2-1/2.  Accept "resign"
or "computer resigns" from the chess engine as a synonym for "0-1 {White
resigns}" or "1-0 {Black resigns}". Accept any message from the chess
engine containing "game is a draw" as a synonym for "1/2-1/2 {Draw}".
Accept "White resigns" or "Black resigns".

* Enable "Action / Draw" menu item in chess engine mode.  It sends the
command "draw" to the engine.  Accept any message from the chess engine
containing "offers a draw" as a draw offer.  WARNING: Draw offers from the
user and the engine (or from two engines) are not yet matched up by xboard
in chess engine mode.  Two engines could get into a loop offering each
other draws.

* Bug fix: Game end messages from the chess engine are always ignored in
Zippy mode.  Previously they could sometimes be processed, which was
sometimes making Zippy hang at the start of a new game that followed
quickly after an old one.

* Zippy can now respond to titled players in channels.  Zippy will avoid
talking to himself in a channel if he knows his own name.

* Bug fix: in colorization arguments, the bold setting was being ignored
if the background color was defaulted.  (xboard only.)

* Extended ParseFEN to accept Crafty 12.2's interpretation of FEN.
If fewer than 8 squares are given in a row, or fewer than 8 rows are
given, the uncovered squares are empty.  Also, there can be a / after the
8th row.

3.6.1 -- Sat May 17 01:02:33 PDT 1997  Tim Mann

* Bug fix: Hitting escape while entering a password on WinBoard no longer
sets the font color back to black (which made further typing visible).

* Bug fix: On Windows NT 4.0, WinBoard /ics /icshelper=timestamp would
often hang if you tried to exit with the Exit menu item, the [X] button,
etc.  The same fix may also have corrected the problem where running a
chess program with /xreuse would sometimes crash Windows 95 (but not NT)
when the chess program was killed and quickly restarted.

* Bug fix: Periodic Updates would not work if turned on after having been
off.  Also, the default was needlessly "off" in WinBoard.

* Zippy bug fix: Continuing an adjourned game was totally broken.  The
wrong moves, or no moves at all, were being fed to the chess program.

* WinBoard change: Giving -ics without -icshost now pops up the startup
dialog with "Use an Internet Chess Server" pre-selected, so that you get a
menu of chess servers instead of going directly to ICC.

* Bug fix: WinBoard's SaveSettings was saving -icshost, -icsport, and
-icshelper in winboard.ini.  This causes a problem if you use a different
icshost later that needs the default values for icsport (5000) and
icshelper ("", meaning none).

* Disabled complaints about unexpected "[Ii]llegal move" messages from
the chess program; we still get them at times.

* Greatly simplified the code for Move Now and SIGINT (ATTENTION).  Fixes
the bug where Move Now did not work with GNU Chess in WinBoard, and
several more obscure bugs as well.  Reintroduces a minor bug: GNU Chess might
not think on your time after a Move Now command.  Trying to fix this
causes too many other problems.  Documented change in engine-intf.txt.

* Cleaned up code for obtaining ratings from ICS.  It was kludgey and may
have had bugs on systems with no "Creating:" message.  It should fail
gracefully there, just not finding the ratings.

3.6.0 -- Thu May  8 19:55:58 PDT 1997  Tim Mann

* WinBoard now has right-button context menus in the ICS Interaction
window.  Some of the items do immediate commands on the player name you
have selected or pointed to.  (Suggested by Paolo Casaschi.)  Also, the
middle button or shift+right does a immediate Copy and Paste.

* Fixed a bug in Zippy's wild rejection.  The bug was causing Zippy to
reject all forms of wild.  Now it rejects only 1, 9, 16, 17, and 24, as
was intended.  These variants have different rules, while the other
variants defined so far only have different starting positions.
(Actually, wild 2, 3, and 4 never allow castling, but may sometimes by
chance have king and rook start on squares where castling appears legal.
This could cause a problem later.)

* Zippy now resumes adjourned games by feeding the chess program
the move list instead of the position.  Setting -getMoveList to False
restores the old behavior.  Feeding in the move list is better because
it enables the chess program to correctly handle en passant legality,
castling legality, draw by repetition, and draw by the 50 move rule.

* Added a WinBoard startup dialog for people who run WinBoard.exe without
using the Start menu or reading the help file.  Instead of being dumped
directly into GNU Chess mode, you now get a menu of choices.  You now have
to give the new WinBoard -cp option to go directly into chess engine mode.
I did not add this feature to xboard.

* Handling of "illegal move" from Crafty is now back on.  (It was turned
off in 3.4.6; see below.)  Crafty 12.0 doesn't seem to send bogus ones
anymore.  I did have to suppress sending time and otim in analyze mode to
make this work, but there is no harm in that.

* Zippy now sends "gameend" to ICS at the end of each game.  You can alias
this to "seek" or whatever you like.

* Added Crafty support for Move Now, using the "?" command.  We test
whether this command exists by trying it once at the start of the first
game, before it really makes sense.  If we don't get a message like
"Illegal move ... ?", we assume it's OK.  (We're careful about this
because sending a "?" to GNU Chess on Move Now keeps it from pondering the
next move as it should.)

* Added support for a tellusererror command from the chess engine.  See
engine-intf.txt.

* Attempted to make engine-intf.txt complete.

* Minor fixes/cleanup to GameEnds code, to be sure we always interrupt
when needed, and always undo an extra move generated by stopping the chess
program while it is thinking.

3.5.7 -- Sat May 03 22:37:44 PDT 1997  Tim Mann

Beta release of both xboard and WinBoard.

* Updated xboard documentation.  I really wish the man page was built from
the info file instead of being separate!  It's a pain to update them both.

* Updated documentation of the interface between XBoard/WinBoard and chess
programs, and renamed it to engine-intf.txt.

* Added support for tellics, telluser, and askuser commands from the chess
engine.  See engine-intf.txt.

* Various bug fixes.  On WinBoard, 256 color displays are finally handled
right; no more color flashing when you switch windows unless the colors
really need to be updated.  Also, I think the problem of the console font
failing to change or changing back by itself is finally fixed.

3.5.6 -- Tue Apr 29 03:08:00 PDT 1997

Beta release, WinBoard only.  ChangeLog was out of date in release,
updated here.

* Added ICC timestamp and FICS timeseal to WinBoard distribution.  These
are my own ports to Win32, based on and used by permission of the owners
of the proprietary source code (Daniel Sleator for timestamp, Henrik Gram
for timeseal).  The owners permit these programs to be distributed only in
binary form (to help prevent cheating), so to avoid running afoul of the
GPL, I have kept them as separate programs, not linked into the WinBoard
address space.  Updated Start menu icons to use them.

* Miscellaneous smaller changes.

3.5.5 -- Fri Apr 25 03:06:00 PDT 1997

Beta release, WinBoard only.  ChangeLog was out of date in release;
updated here.

* Added simple sound support to WinBoard.

* Updated WinBoard documentation.

* Internal implementation of the telnet protocol is now more complete.
You can now hop through a VMS host on the way to ICS.  For example, do
"xboard -ics -icshost vms.host.edu -icsport 23", then log in.  Do not use
the -telnet flag; that says to use an *external* telnet program.  To avoid
double echoes, you need to force character mode in VMS telnet after
connecting from VMS to ICS.  Do "^]^Mset mode char^M^M".

* Display opponent names in the title bar for MachineWhite, MachineBlack,
and TwoMachines modes.

* WinBoard now has an installer, built with InstallShield.  The installer
works with a binary-only distribution.  Sources are still freely
available, but now separately.

* Added SaveSettings to WinBoard, which saves current option settings to
winboard.ini.  Made sure all options can be saved and loaded, including
fonts and com port settings.

* If the game ends while you are dragging a piece, we now don't let you
finish the move.  Formerly the move was accepted and your opponent's clock
would start running again.

3.5.4 -- Fri Apr 18 01:15:24 PDT 1997  Tim Mann

Beta test release of WinBoard and xboard.  The documentation remains
out of date.

* Many fixes and improvements to new WinBoard user interface code.

* In Zippy mode, avoid sending another copy of the same move to the chess
program if ICS sends us another copy of the board image.  Hard to believe
it took me until now to diagnose and fix this problem!

3.5.3 -- Sat Apr 12 19:49:33 PDT 1997  Tim Mann

Beta test release of WinBoard and xboard.

* Fixed fatal bug in WinBoard input handling.

* Made code to stop chess program for reuse a bit smarter.  Removed kludge
of "white" in initString; it didn't work well, and is unneeded
with Crafty 11.21 and later.

3.5.2 -- Sat Apr 12 15:40:01 PDT 1997  Tim Mann

Beta test release of WinBoard.

* Ignore check and permit promotion to King during suicide games; no need
to turn off TestLegality.

* Renamed CheckLegality to TestLegality to avoid confusion with the chess
term "check".

* Added Rematch to Action menu.

* WinBoard now has a custom ICS interaction window with scrollback, a
separate line for input, and colorization.  Accelerators that conflict
with normal editing keys were changed (by requiring Alt+) so they can work
in both the console and the main window.

* WinBoard error popups are now non-modal and disappear when you make a
new move, as in xboard.

* Configure now defaults to --disable-ptys on all systems.  If anyone has
an ancient SysV system where pipes don't work with select, they can still
do "configure --enable-ptys" explicitly.  I would appreciate getting a bug
report if this happens to anyone, with complete output from configure and
"uname -a".

* "make install" now makes the installation directories too.

* Fixed a bug that would cause an "Illegal move" message for Black from
GNU Chess to be incorrectly considered bogus.

* Handle name changes during an ICS game (FICS bname and wname commands).

* You can force both chess programs to be killed at the end of each game
by turning off the reuseChessPrograms option.  There are still some
problems with reusing Crafty even in version 11.20.

* Now the second chess program stays around by default too, if it ever
gets started.

3.5.1 -- Sat Apr  5 16:47:48 PST 1997  Tim Mann

Beta test release.

* Don't kill off and restart the chess program for each game; keep the
same one running, using the "new" command to start a new game.  This
change works around the problem in Windows 95 that makes WinBoard crash it
at times, and is generally desirable to make new games start faster.  The
second chess program (for TwoMachines) is still killed at the end of the
game, and unfortunately this can still crash Windows 95.  Temporarily
added "white" to the initString to make this work with Crafty 11.20, which
has a minor bug in "new".  Older versions of Crafty have worse bugs in
"new"; they should not be used with this version of xboard.

* Support for FICS suicide chess: Parse illegal moves (that leave King in
check) in game history.  If CheckLegality is off, allow promotion to King
and illegal moves in game files.  We still generate e2e4 style notation
for illegal moves.

* Handle FICS "has timeseal; checking" message.

* Changed the coords from white back to black; this was a bug.

* Fixed problems compiling with K&R compilers.

* Fixed an old bug in RegisterMove that was crashing cmail on some systems
(notably linux).

3.5.0 -- Thu Jan  2 16:59:49 PST 1997  Tim Mann

Thanks to Frank McIngvale for much of the work on versions 3.4.4 and above!

* Fix Crafty resumed game time bug (frankm)

* Word wrap text in Analysis window (frankm)

* More debug info for XPM loading (frankm)

* Replaced config.sub, config.guess, etc., with up-to-date versions from
autoconf 2.12.  Hopefully this will fix problems on Pentium Pro machines.

* Removed some Makefile gunk that was causing looping for one person.

3.4.7 -- Thu Dec 19 14:22:41 PST 1996  Tim Mann

All changes from Frank:

* Retrieve ratings from ICC (and FICS, etc., when they add the Creating:
message), save them in the PGN tags, and pass them to Crafty in Zippy mode.

* Add settable time delay between characters in ICS login script.

* Colorize messages like personal tells.  Fix false recognition of channel
tells.

* Pass "tells" from Crafty through to ICS (in Zippy mode).

* Implement ~/ filename convention from C shell for game and position file
names.

* ZIPPYACCEPTONLY feature for testing.

3.4, patchlevel 6 -- Sat Nov 23 16:58:50 PST 1996  Tim Mann

* Put recognition of "illegal move" messages from Crafty for
illegal castling, etc., inside an #if that is currently turned off,
because of a bug in Crafty that generates bogus "illegal move" messages
after some moves that are actually legal and accepted by Crafty.

* Added -checkLegality option; previously this could not be turned off.

* Fixed an old bug in finding default board size parameters.

* Differentiated among channel tell, kibitz/whisper, and personal tell/say.

* Fixed a bug in detecting Xpm in the configure script.

3.4, patchlevel 5 -- Mon Nov 18 16:22:53 PST 1996  Tim Mann

* Added zic2xpm to the kit; it had been omitted by mistake.

* Added some default colors for -colorize

3.4, patchlevel 4 -- Sat Nov 16 18:10:17 PST 1996  Tim Mann

This is meant to be a beta release in preparation for version 3.5.

* Added InfoXBoard and ManXBoard to the Help menu.

* Made Frank's ICS input box optional, defaulting to off.

* Merged in Frank McIngvale's XbKit.  Many new features, including
-clickClick mode, the Analysis modes, piece flashing, ZIICS import,
ICS text colorization, and the ICS input box.  Many thanks to Frank for
supplying and documenting this code.

3.4, patchlevel 3 -- Mon Nov 11 18:23:14 PST 1996  Tim Mann

Small set of changes made while Frank McIngvale was working on XbKit in
parallel.  Unreleased in this form.

* Updated zippy.README.

* Removed useless X event handler and removed strange code for copying
form translation table to board that worked around the bug it caused.
This makes changing bindings in .Xdefaults more straightforward.

* Now pressing the Control key steps back one move, and releasing it steps
forward again.

* Moved quit from "q" to "Q" for greater safety.

* Use "unobserve" instead of "observe" to stop observing; needed on FICS.

* Support for interface variable.

* Strip titles from people who are talking to us, so (for example) Zippy
won't try things like "tell Darooha(*) hello".  Needed on FICS.

3.4, patchlevel 2 -- Tue Jul  9 19:06:42 PDT 1996  Tim Mann

This patchlevel is not planned to be an announced release.  It's in
preparation for integrating Frank McIngvale's XbKit.  It mostly contains
minor fixes I've accumulated since 3.4.pl1.

* WinBoard /telnet option now fires up an external program, as
with xboard, instead of trying to use a feature of NT 3.1 that does not
exist in later versions of NT or in Windows 95.  ChangeLog for 3.4.pl1
said this had been implemented there, but it really wasn't.

* Indicating player to move by the icon color now works under Windows 95.

* WinBoard now kills the chess program when you exit using the system menu
or the [X] button.  Thanks to Michael Lowe.

* Minor changes to Zippy, including: Now understands wild challenges on
FICS; these used to crash it.  Removed limit on how fast a game will be
accepted.  Use "set formula ..." on the chess server to limit this if you
are using GNU Chess.  Now sends correct opponent name to Crafty.

* Added some missing default values to documentation.  Thanks to Stuart
Cracraft.

* Bugfix: Trying to print "No fonts match pattern" error message would
crash.  This can happen to Linux users who don't install Helvetica, for
example.

* Bugfix: Defaulting feature in -size n,n,n,n,n,n would put us in an
infinite loop.

* Added more directories to search for Athena widgets on HPUX.

* New cmail (3.12) from Evan Welsh; includes small fix from Kayvan Sylvan.

* Recognize "illegal move" messages from Crafty for illegal castling, etc.

* Bugfix: "name" command added to zippy.c for Crafty was producing error
message if GNU Chess was in use.

* In bughouse mode, suppress holding messages from console window; show
holdings only in banner.

* Minor fixes/cleanup to Makefile.in and configure.in.

3.4, patchlevel 1 -- Mon Dec 11 13:43:12 PST 1995  Tim Mann

* This patchlevel updates WinBoard to match xboard, and includes a few
fixes and minor improvements.  "-size tiny" and "-size n,n,n,n,n,n"
are still not implemented for WinBoard.

* Installed support for Crafty based on code from Bob Hyatt.
Currently the only documentation for this is in the FAQ, and a few
things don't work with Crafty 8.23.  Please do not report these
problems as bugs in either xboard or Crafty.  Bob and I know about
them.  The worst ones (if not all of them) should be fixed in Crafty
8.24.

* Changed the kludge command we send when gnuchess wants to print
something that doesn't end with a newline, from "help" to "bogus".
This works because the error message gnuchess prints ends with a
newline.  It also improves compatibility with Crafty, which doesn't
need the kludge, but for which sending "help" causes a problem.

* Don't draw grid at all if lineGap is 0; previously we drew the grid
with X "0-width" lines (usually 1 pixel wide) and then overwrote it.

* Makefile: Removed xboard.info from "all" target so we won't try to
rebuild it, because this fails on hosts that don't have makeinfo
installed.  Other minor fixes to "clean" targets, etc.

* Fixes and cleanup to Auto Comment code that handles continuation
lines and highlighting.

* Auto Observe now tries to observe the game from the point of view of
the player who was on your gnotify list.  Requested by rng.
Limitations: We can't tell which player it was unless you have ICS
highlighting turned on.  Also, currently "observe foo" works as
required (observing from foo's point of view) only on ICC, but FICS
will probably implement this soon.

* "-size tiny" now makes the default font smaller automatically.  This
was implemented by introducing an extra Form widget in the hierarchy
for all xboard windows, named either normalLayout, smallLayout, or
tinyLayout.  So you can have resource specifications that apply only
to certain layouts; in particular, XBoard*tinyLayout*font.

* Bug fix: EditGame or EditPosition while playing or examining still was
not really being permitted.

* WinBoard bug fix: On the EditPosition menu, King did not work.

* Added text catalog of WinSock error messages to WinBoard, because
Microsoft still has not put them in the system message catalog.

* Removed support for older ICS game-ending messages that do not have
a PGN result token (*, 0-1, 1-0, or 1/2-1/2) after the closing '}'.
The code for older messages was sometimes firing on the newer
messages, due to parsing ambiguity.  If the current code sees an old
message, it will understand that the game is over, but will always
display * as a result token instead of trying to guess the result by
interpreting the text message.

3.4, patchlevel 0 -- Tue Nov 21 01:02:50 PST 1995  Tim Mann

* This patchlevel was released for xboard only.

* Updated the info file.  It should now be as up-to-date as the man page,
with good English except in the parts that pertain only to AmyBoard.

* Added "-size tiny", requested by Bob Hyatt.  Also cleaned up bitmap
support and added "-size n,n,n,n,n,n" to allow arbitrary-sized bitmaps,
if the actual bitmaps are supplied by the user.

* Updated bughouse support.

3.3, patchlevel 4 -- Sat Nov 18 02:27:21 PST 1995  Tim Mann

* Unreleased beta that works with preliminary FICS bughouse code.  Will
need changes before release to track FICS message changes.

* Removed use of .EX macro from man page.  It is not supported by some
nroff -man macro packages, notably the one on Slackware Linux.  Switched
to boldface for references to xboard and other commands within the man
page, as this seems to be the modern way.

* Bug fix: If ICS rejected a move, it was correctly undone on the board,
but the message widget still displayed the bad move.  Reported by DAV.

* Normally, xboard in ICS mode fetches the move list whenever the board
display switches to a new game.  Doing this is now an option
(getMoveList) that can be turned off, which is useful if you are watching
multiple blitz games.  Requested by rng.

* Move list fetching code is now smarter: it ignores a move list if it is
not for the right game.

* Added support for bughouse as implemented on FICS.  Holdings are shown
in the window title in place of the strength numbers.  A menu on mouse
buttons 2 and 3 (same on both) lets you drop pieces.  There is no checking
as to whether you actually hold the piece you are trying to drop; we rely
on ICS to check that.  Notation of the form P@f7 is generated and parsed.
The mate detector does not understand that non-contact mate is not really
mate in bughouse, but this does no real harm.  It results in a "#"
suffix being displayed on the move notation, but xboard does not assume the
game is over.

* Bug fix: Promotion to a knight was not working with ICC!  Thanks to
Wendigo for the report.

* Bug fix: Special pty code for host types *-*-aix3* and *-*-irix3*
(supplied from configure.in) had a bug that would cause childio.c to
fail to compile, due to a "continue" that was not within a loop.

* Bug fix: In pgntags.c, memory was being freed while still in use.  One
symptom this caused was that on some machines, cmail would fail with a
message that it could not find the BlackNA tag.  The error was in some
submitted code that I included in version 3.2.pl3 without reading
carefully enough.  Anders Forberg noticed the symptoms, and Evan Welsh
(who had nothing to do with causing the bug) found the bug and submitted a
fix; thanks to them both.

* Removed restriction against using EditGame while playing, observing,
or examining on ICS.  You still get a warning popup.

3.3, patchlevel 3 -- Sat Sep 16 11:44:05 PDT 1995  Tim Mann

* Bug fix: Going directly from MachineWhite to TwoMachines mode would kill
off the second chess program after Black's first move.

* Added -timeIncrement feature.  Thanks to Joel Rivat.

* Deleted code that tries to keep you from observing more than one game,
or observing while playing or examining.  There is actually no problem in
doing this, except that every time an update comes in from a different
game than is currently being displayed, xboard fetches the history of the
new game, which may be time-consuming if you are on a slow link.

* Fixed configure so as not to crash when neither lex nor flex is found.
lex or flex is needed only if the user wants to rebuild parser.c.  Thanks
to Phil Humpherys for reporting the crash.

* Bug fix: config.h.in used #define instead of #undef for some macros used
in the pty code in childio.c.  This causes the code to fail to compile on
some architectures, because the symbols are supposed to be undefined, not
defined to empty, when they are not set in configure.  Bug originated in
3.3.pl0 when config.h was introduced.  Thanks to Phil Humpherys for report.

* Bug fix: ShowThinking would not show anything when current position had
no move to display in the move window.  E.g., if position was created by
LoadPosition or EditPosition.

3.3, patchlevel 2 -- Mon Aug 28 11:11:11 PDT 1995  Tim Mann

* Zippy code was omitted from xboard-3.3.pl1 by mistake; now included.

* For WinBoard, added hint to help file that you may need to turn off
LocalLineEditing while typing dialing commands to your modem.

3.3, patchlevel 1 -- Sat Aug 19 15:13:30 PDT 1995  Tim Mann

* Zippy distribution is no longer separate from regular xboard distribution.

* Deal properly with Show Thinking output from GNU Chess when it is
thinking on its opponent's time.  In TwoMachines mode this output is
suppressed to avoid interfering with the output from the machine that is
on move; in other modes it is displayed (including the move that GNU Chess
is predicting the user will make next).  GNU Chess produces this output
only if it is built without -DQUIETBACKGROUND defined; this symbol is
defined by default in patchlevels before pl75, but undefined by default in
pl75.

* Bug fix: Handling of initial board position in move list for wild games
was broken, so wild games could not be observed and adjourned wild games
could not be continued.  Thanks to "Maximum Entropy" for the bug report.

* Added feature: algebraic notation now shows "+" indicator for check
and "#" for checkmate, as called for in PGN standard.  Thanks to Kevin
Maher for the suggestion.

3.3, patchlevel 0 -- Thu Jul 27 22:21:07 PDT 1995  Tim Mann

* Changed configuration to use a config.h file instead of passing zillions
of -D options on the cc command line.

* Merged a small fix and some updates to the texinfo file from Jochen
Wiedmann.  The texinfo file still needs work.

3.2, patchlevel 5 -- Tue Jul 18 20:29:39 PDT 1995  Tim Mann

* Beta test release of xboard only.

* Updated WinBoard code to include new xboard features.

* Added texinfo file from Jochen Wiedmann to the release, but not as the
primary documentation.  It needs updating, and the English needs work.
I did make a few improvements, mostly to change incorrect uses of @var to
either @samp or @code as appropriate.

* Merged in code changes to 3.2.pl4beta from Jochen Wiedmann.

* Fixed EditComment; did not pop up window in previous beta.

* Added AutoComment feature.

* Added GameListDestroy to disable the outdated game list popup in cases
where we load a new game file without building a new popup.

* Added yyskipmoves feature to parser.l to speed up building of gamelist.

* gamelist.c wouldn't compile with a non-ANSI compiler.  Fixed.

* Change to yy_text handling in patchlevel 3 still had problems.  Can't
use AC_DECL_YYTEXT in configure.in, because that defines YYTEXT_POINTER
according to whether the lexer on the current host makes yytext a pointer.
But most people will be using a parser.c that was generated on another
host and shipped with the package.

3.2, patchlevel 4 -- Sun Jun 25 19:13:43 PDT 1995  Tim Mann

* Beta test release of xboard only.

* Added FIREWALLS section to man page.

* Changed -icsport to be a string.  Now with the -telnet option,
specifying -icsport "" suppresses the second argument to telnet.

* Added EditTags feature.  Removed AboutGame from menu, because EditTags
subsumes it.  EditTags suggested by Jochen Wiedmann and first implemented by
him in AmyBoard.  xboard implementation is my own.

* Fixed some missing or incorrect prototypes.

3.2, patchlevel 3 -- Sat Jun  3 18:57:38 1995  Tim Mann

* Beta test release of xboard only.

* New version of cmail from Evan Welsh, to fix compatibility problems with
perl 5.0.

* Added game list feature on Load Game, based on code from Jochen
Wiedmann.  Integrated it with cmail.

* Several bug fixes from Jochen Wiedmann, including one to my yy_text
workaround for the difference in the type of yytext between lex and flex.

* Handle clock pause on FICS.

* Suppress clocks in untimed FICS games (time control 0 0).

* Rebuilt configure script with autoconf 2.3.  This fixes a bug in
configuring for X11R6, where -lSM -lICE would not be added when needed.

* Fixed inconsistent type declarations on IntSigHandler and
CmailSigHandler.  Bug report from Josh Daynard.

* backend.c wouldn't compile with a non-ANSI compiler.  Fixed.

3.2, patchlevel 2 -- Tue Feb  7 14:50:30 1995  Tim Mann

* Minor release of both xboard and WinBoard.

* Added recognition of some FICS messages.  On the other hand FICS is also
changing some of its messages to match what xboard already recognizes.

* Temporarily went back to using "promote" command on ICS instead of
"a7a8=Q", because FICS doesn't implement the latter yet.

* We now avoid using overlapped I/O on pipes in WinBoard, to make Windows
95 beta 2 happy.  This lets WinBoard work with GNU Chess on Windows 95!

* Installed patches from Jochen Wiedmann to coordinate with Amiga XBoard.

* Installed patch to cmail bug in LoadGame from Evan Welsh.

* Bugfix: checkmate and stalemate moves entered with EditGame in ICS mode
were not being handled correctly.  Bug was in GameEnds().

* Implemented EchoOn and EchoOff for xboard, using system("stty echo\n").
Now passwords won't be echoed when you connect directly to ICS.  Also,
telnet negotiation characters aren't displayed (when possible).

* Implemented more of the telnet protocol.  Now connecting to a telnet
server with "-icsport 23" should work even without giving the -telnet
option.  The telnet is in "old line-by-line mode".

3.2, patchlevel 1 -- Sat Dec 10 13:50:46 1994  Tim Mann

* This patchlevel released for WinBoard only.

* winboard.c: Fixed ConsoleInputThread().  Needed to change CRLF to LF,
not to CR.  This was stopping normal /ics mode from working.  Thanks to
Asher Kobin for the bug report.

* winboard.c: Fixed Raw(), EchoOn(), EchoOff().  Now they take effect
immediately, not on the next console read after the one in progress.

* winboard.c: Attempted to make WinBoard work with gnuchessx running
directly on Windows (not remotely via rsh).  It now works on NT, but only
if gnuchess is told not to think on its opponent's time ("easy\n" removed
from initString).  The problem seems to be that GenerateConsoleCtrlEvent
is not doing anything.  On Windows 95 beta 2, we get error messages on
both reading and writing to gnuchessx; I didn't investigate why.

3.2, patchlevel 0 -- Wed Dec  7 13:23:36 1994  Tim Mann

* Thanks to all the beta testers who gave me feedback: Josef Nelissen,
Steve Booth, Evan Welsh, Dima Dakhnovsky, Chris Petroff, Peter Jansen,
Derek Terveer, Michel van der List, Richard Lloyd, Shelly Mistry, and Mike
Lee.  Sorry if I forgot anyone.  Thanks to Virendra Kumar Mehta for
information about DYNIX/ptx.

* Don't exit on keyboard EOF unless we get two in a row.

* WinBoard only: added -localLineEdit switch to allow turning off local
line editing if you really want to.  It is still a bad idea to let the
echoing be done remotely, however; see below.

* Fixed some configure problems on HP-UX.  [Steve Booth]

* Fixed (I hope) configure problem on SunOS 5.3/Solaris 2.3.  [Josef Nelissen]

* cmail bugfix from Evan Welsh (cmail 3.4).

3.1, patchlevel 9 -- Fri Dec  2 23:54:56 1994  Tim Mann

* Beta distribution only

* Always do local echo/edit of user typing in ICS mode.  Doing the echo
downstream may seem nicer in some modes, and it can be hard to turn that
echo off, but the echoed characters can be interleaved with ICS output
and make it impossible to parse correctly.  For xboard this involved only
a change to recommendations in the man page, as Raw() isn't implemented.
For WinBoard, removing Raw() made a real difference.  Added code in
WinBoard to change /r/n back into /r on keyboard input, as we get the
former when Raw() is not called.

* Do not issue ICS "refresh" command after we start to observe a game
unless we get to the next prompt without seeing a board image.  Newest
version of ICS doesn't require this refresh, but old versions around still
do.

* cmail bugfix and small code cleanup in LoadGame, from Evan Welsh.

* Added keyboard accelerators N/P for LoadNextGame/LoadPreviousGame.  Evan
Welsh request.

* Using "-" on the command line as a filename for loading (saving) games
or positions specifies the standard input (standard output).  Alain Picard
suggestion.

* On WinBoard only, a command line option without a leading '-' or '/' is
now taken as the value of -lgf.

* Changed to not use stdin, stdout, stderr as initializers in backend.c;
needed for GNU libc compatibility.  You also must build parser.c with flex
(not lex) if you are using GNU libc, to avoid having the same problem
there.

* Changed WinBoard to avoid using "overlapped" input on the console.  It
now seems to fully work on Windows 95 beta 2.

* Improved comment popups on WinBoard.  Now newlines are handled properly,
and the plain Comment popup window doesn't disappear and reappear when we
step to a new move with a new comment.

* Fixed bugs in detecting the absence of the time and otim commands.

* Added built-in implementation of rcmd protocol to WinBoard.  Windows NT
does not implement passing signals through rsh, and Windows 95 does not
have rsh at all.

* Added -remoteUser option.

3.1, patchlevel 8 -- Mon Nov 28 15:26:07 1994  Tim Mann

* Beta distribution only

* Rearranged ChangeLog file into reverse chronological order to be closer
to GNU standards.

* Integrated new cmail code from Evan Welsh (including cmail RCS rev 3.2).
Includes a bug fix to TruncateGame.

* Updated ICS address to be chess.lm.com.

* Bug fixes to handling the aftermath of FatalError.  Thanks to Chris
Petroff for the bug report.

* Test for remsh before rsh, other fixes for HP-UX.  Thanks to Richard
Lloyd.  I wasn't able to do all the things he suggested, so there may
still be some rough edges in building on HP-UX.  See the FAQ file for hints.

* Bug fix; added missing check for HAVE_SYS_SYSTEMINFO.  Thanks to Josef
Nelissen for testing on Solaris 2.x.

* Updated WinBoard to match xboard.  (WinBoard still has a few option
dialogs that don't exist in xboard.)

* Changed Hint output to a popup.

* ShowThinking output and move output no longer overwrite each other.
ShowThinking output won't appear if the displayed position is not current.
ShowThinking output in TwoMachines mode made clearer and documented.

* Implemented --enable-ptys and --disable-ptys arguments to configure.

* Fixed Book and Hint code to work over a pty with echo enabled and tabs
expanded to spaces.  Thanks to Dima Dahknovsky for the bug report.

* Moved Attention calls from all over xboard to one place, inside
SendToProgram.

* Added bulletproofing to ShowThinkingEvent.

* Added code to handle "refresh N" boards that come in from ICS properly,
assuming ICS is changed to mark them with a new relation code (-3).

3.1, patchlevel 7 -- Sun Nov 13 22:16:01 PST 1994 -- Tim Mann

* Beta distribution only

* Changed ShowThinking to just show the current best line in the
DisplayMessage area, instead of dumping everything to stdout.

* Installed new cmail (RCS rev 3.1) and cmail.man (RCS rev 1.10), and
changes to cmail code in backend.c, from Evan Welsh.

* Miscellaneous minor fixes.

3.1, patchlevel 6 -- Fri Nov  4 12:53:53 PST 1994 -- Tim Mann

* This patchlevel was not actually released to anyone.

* Updated the pty code to be based on GNU Emacs 19.24, and moved it to a
separate file.  It was hard to split out just the pty configuration from
all the stuff emacs does with its custom configure script and .h files,
but I did my best.

* Converted from imake to GNU autoconf.  This was a serious upheaval.

* Put in code to help trap "error gathering move list" problem reported by
Michel van der List if it recurs.  I couldn't reproduce it.

3.1, patchlevel 5 -- Mon Oct 31 21:12:00 PST 1994 -- Tim Mann

* Beta distribution only.

* We now test for checkmate or stalemate in EditGame mode after every user
move, and in LoadGame mode whenever we hit the end of a game without
seeing a PGN end marker.  cmail needs an update to deal with this
correctly; Evan promises one.

* Bugfixes in new move generator.  Thanks to Mike Lee for reporting one of
the bugs.

* Imakefile was omitted from patchlevel 4.

3.1, patchlevel 4 -- Mon Sep 19 18:19:46 PDT 1994 -- Tim Mann

* Beta distribution only.

* The move generator includes a mate tester.  Initially this is used only
by cmail, and even that usage needs further work.

* Wrote a true move generator and used it to replace all the move
disambiguation and legality checking code in parser.l.  The move generator
is capable of dealing correctly with en passant and castling availability,
but the rest of the program still does not keep track of this information.

* Bug fix: xboard did not handle "foo has made you an examiner of game 23"
message.  Thus you could not use examine features until the next board
came in, showing your new relation to the game.  Thanks to POOKIEWOOKIE on ICS
for the bug report.

* Added AutoObserve feature.  Thanks to Chris Petroff for the idea.

* Added Book feature to use new gnuchess "bk" command.  Mike McGann request.

* Redid code to handle missing "time" command in gnuchess, because latest
gnuchess no longer sends a response to this command.

* Eliminated need for -DFLEX.  Thanks to Michael Shields (Vladimir?) for
the idea.

* Added missing code to implement MoveNow in TwoMachines mode.

* Added ShowThinking feature.  Thanks to Richard Lloyd for the idea.

* Applied patches from Evan Welsh; some fixes and improvements to the
cmail code.

* Fixed bug in moving from EndOfGame mode to MachineWhite or MachineBlack,
introduced in previous patchlevel.  Also fixed related bug in ending a
game in ICS mode; was entering EndOfGame mode instead of IcsIdle.

* Added patch to implement internetChessServerLogonScript flag, from Kevin
O'Connor.  Thanks!

3.1, patchlevel 3 -- Wed Sep  7 13:22:07 PDT 1994 -- Tim Mann

* Beta distribution only.

* Merged in new cmail code from Evan Welsh.  He added the ability to have
more than one game per message, needed for official IECG matches.  I added
the ability to resign or offer/accept/decline a draw in a cmail game.

* Bugfix: invalid -tc option caused segmentation fault; DisplayFatalError
was called too early in initialization.  Georges Honore reported this bug.

* Decided to keep EndOfGame mode as an element of the user interface---it
means that a gnuchess game or loaded game has ended, and the user must
explicitly select EditGame to edit it, rather than just being able to
enter more moves freely.  But internally there is no longer an invariant
tying this mode to whether the chess program is running.

* Zippy bugfix: Was saving only the final position in the -sgf file when
the game ended by something other than resignation or flag.  Also fixed
the longstanding bug that Zippy would think the final board of such a game
was a new game and restart the chess program.

* Now does a better job of faking castling availability in FEN.  We still
don't really keep track of it, but now at least we don't say that castling
is still available when the king or rook is not on its home square.

* Bugfix: Initial board of game history for wild games was going through
too much processing, causing us to forget the game length, which is now
needed by ParseGameHistory.  This was causing problems with resuming
adjourned wild games.

* Updated ICS host to ics.onenet.net.

* Zippy now accepts challenges where the opponent specified his color.

* Added ZIPPYPASSWORD2 to let operator give commands directly to gnuchess.

* Bitmap directory can include alternative icons now, too.

* Handle "Game * (*) has no examiners" message from ICS.

* Revamped window title and icon name selection.

3.1, patchlevel 2 -- Sun Jun 12 17:16:28 PDT 1994 -- Tim Mann

* "Beta" distribution for Zippy users only.

* Bugfix: common.h was assuming that X11 type Boolean is char, which is
not always true.  This might have caused all sorts of obscure bugs!

* Installed new bitmaps from Elmar Bartel as the default.  Many thanks!
The old bitmaps can be used by changing the "bitmaps" symbolic link before
compiling xboard, or by using the -bitmapDirectory option at runtime.

* Loading a game that ends with the PGN unfinished symbol ("*") now always
leaves you in EditGame mode.

* Added documentation of -icscomm to man page.  Thanks to Maarten Remkes
for the linux script.

* ^C now kills gnuchess as well as xboard.  Thanks to Dima Dakhnovsky for
reminding me how to do this.

* Bitmap icon color now indicates player to move.  Stuart Cracraft
suggestion.

* Changed piece bitmap flags to have just one flag, which points to a
directory full of bitmaps, instead of a flag for each bitmap.  Also
changed bitmap naming convention.

* "Connection closed by ICS" is no longer a FatalError popup.  This was
too annoying in the normal case where the user typed "quit".

* Changed default font to 14 pixels instead of 10 points.  This seems to
make it close to the size I want it to be on more displays.

* Major mode (GNU Chess, etc.) appears in title bar.  Stuart Cracraft
request.

* Bug fix: EditGameEvent, MachineBlackEvent, MachineWhiteEvent, and
TwoMachinesEvent were calling PauseEvent to get out of pause mode, which
now has undesired side effects, such as advancing the display to the
forwardMostMove.  It works fine to just set pausing = FALSE instead.

* IcsExamining mode now lets you access ICS edit position commands using
the same popup menus as xboard's EditPosition mode.  Thanks to DAV on ICS
for inspiring the idea.

* Corrected test for gcc on HP in Imakefile; thanks to Richard Lloyd.

3.1, patchlevel 1 -- Wed Jun  1 16:25:11 PDT 1994 -- Tim Mann

* Added parser.c.lex and parser.c.flex to the distribution.

* Added HP gcc options to Imakefile, from Mats Nylen.

* EndOfGame mode no longer highlights EditGame mode indicator, because the
modes really do differ.  I would like to get rid of EndOfGame mode in the
future, at least as far as users can see.

* Larger %a in parser.l, needed for RS/6000 users.

* Minor improvements to Mail Move error messages.

* When -debug flag is given to xboard, -v is passed to cmail.

* Old Save Style uses "1. ..." instead of "1..." when black moves after a
comment; more like xboard 3.0's actual style.

* New version of cmail from Evan Welsh.  Looks for UCB Mail in a more
portable way and has some minor bug fixes.

* Bug fix: Saving a FEN position while in EditPosition mode with black to
play was showing white to play in the saved position.

3.1, patchlevel 0 -- Fri May 20 16:36:15 PDT 1994 -- Tim Mann

* This is the first general release since 3.0, patchlevel 9.  Releases
since then have been limited-distribution or beta releases.

* Thanks to my version 3.1 beta testers: Dmitry Dakhnovsky, Ed Hanway,
Richard Lloyd, Mike McGann, Shelly Mistry, Josef Nelissen, Chris Petroff,
Jack Robertson, Michel van der List, Ky Macpherson, Derek Terveer, and
Evan Welsh.  Sorry if I've forgotten anyone who gave me feedback.

* Updated man page.

* Minor cleanup on menu sensitivity code.

* Integrated another even better version of cmail from Evan Welsh,
including some code he supplied in xboard itself.

* A few more fixes to cmail support.

* Automatically update clocks after an ICS "moretime" command.

* Handle ICS automatic examine mode (set examine 1) after a game.

3.0, patchlevel 14 -- Tue May 17 13:41:44 PDT 1994 -- Tim Mann

* Beta test release only.

* Don't suppress prompt on first board of game being examined; otherwise
it looks like nothing happened at all (i.e., like you're lagged).

* Added StopExamining and StopObserving (Chris Petroff suggestion).

* Made Reset do a refresh on ICS.  John Chanak's original ICS code for
xboard tried to do this; I finally decided it was a good idea after all.

* Fixed bugs in handling updates that come in while you are pausing in
examine mode.  This is pretty tricky to do right.

* Made un-Pausing immediately pop you to the current position.  This is
always necessary in examine mode, since the game may have changed under
you; your remembered moves might no longer be right.  So I made it do the
same in all modes.

* Took Detach Examine mode back out...used Pause mode for this instead!

* Put in a trap for the GNU Chess bug of printing an Illegal Move message
when its own hint move is illegal.

* Attempted to fix a Zippy bug; bogus "exited unexpectedly" messages after
it checkmates its opponent.  This involved adding an argument to GameEnds
to say who says it ended (ICS, GNU, etc.)  and taking different actions in
different cases.  Unfortunately, this just restored an older Zippy bug, where
Zippy restarts gnuchess when it gets the board with the final position,
because GameEnds still puts xboard in EndOfGame mode.  Sigh.

* We now capture elapsed time on last move when getting game history.
(Josef Nelissen bug report)

* Rewrote code to redisplay last file title so it really works.

* Fixed bug in oldSaveStyle.

* Larger %a and %o were needed for lex.

3.0, patchlevel 13 -- Mon May 16 16:26:22 PDT 1994 -- Tim Mann

* Beta test release only.

* FatalError popups stay on the screen now.  If the error is really fatal,
all functions are disabled, and the program exits when you press OK.

* Redisplay last file title when using Load (Next/Previous/Same) Game.

* Zippy understands new match challenge message format on ICS.

* Added Revert command.

* When examining a game on ICS, < > buttons do ICS backward/forward
commands, unless you set the Detach Examine option.  Thanks to Dima
Dakhnovsky for the idea.

* Fixed various minor problems in cmail mode.

* cmail generates the tags now.  New version of cmail from Evan Welsh.

* cmail mode won't let you do MailMove unless the currently displayed
position is exactly one move past the end of the game you loaded.

* Fixed building of man pages in Imakefile

* Updates to INSTALL file

3.0, patchlevel 12 -- Sat May  7 21:10:03 PDT 1994 -- Tim Mann

* Beta test release only.

* Brought man page up to date.

* Added Shift+R to resign from keyboard.

* Some items on Action menu available in GNU Chess mode now.

* Revamped Action menu.

* Reordered functions in backend.c as a small step toward reorganizing
this whole mess.

* Generate TimeControl PGN tag.

* Get type of ICS game (e.g., rated blitz) and save in PGN tags.

* Bug fix: Clocks were not redisplayed when entering EditGame mode.

* Bug fix: Clocks were not being redisplayed after loading a game file
with -td 0, so they could show the wrong color active.

* Bug fix: Chess programs would be killed and match mode would exit
prematurely when loading a PGN game fragment ending with "*".

* ICS command "sposition" no longer confuses xboard.

* Integrated new version of cmail (with support code in xboard) from Evan
Welsh.

* Added TruncateGame, MoveNow, RetractMove, and QuietPlay.

* Bug fix: switching between MachineWhite and MachineBlack was not calling
Attention().  Reported by Dino Dini.

* More improvements to INSTALL and Imakefile.

* Pack moves into 79 character lines in PGN output.  We don't generate
check indications, and we always break the line before the result,
so this is not quite PGN export format.

* Use FEN tag in PGN.

* Improved finding and counting of game starts in save files.

* Negative position or game numbers in -lpi/-lgi mean to seek to that byte
offset.  Hook for possible future features, not in man page.

* Detect and handle absence of either "time" or "otim" commands in
gnuchess.

* Don't use "promote" command to ICS anymore.

* Handle switching sides and taking back moves on FICS.

* Handle flip state flag in style 12 board.

* Handle examine mode on ICS.

* Improved error popups for various kinds of illegal moves.

* Suppress unasked-for hints from gnuchess (which it generates in post
mode).

* Load/save position functions use FEN.  Old style also supported.

* Added detailed error messages if loading a bitmap file fails.

* Small board has 2-pixel lines between squares instead of 3-pixel.

* Added OldSaveStyle and AboutGame.

* Renamed ForceMoves to EditGame.

3.0, patchlevel 11 -- Tue Sep 21 15:25:36 PDT 1993 -- Tim Mann

* The following changes were present in xboard 3.0, patchlevel 11, but the
first group did not make it into WinBoard 3.0 until later.  xboard
3.0.pl11 was a limited-distribution release only, mostly to Zippy users.

* Man page minor fixes.

* Added a missing file close.

* Removed automatic error popdown on Reset, which was destroying some
error messages before they could be read.

* Fixed char vs. unsigned char warnings on bitmaps.

* Use ICS board style 12.  Some improvements to ICS parsing.

* Comment window is now labelled with the move the comment is on, and
comments don't pop down when you step to the next move.

* Save files now in PGN format.

* Support for loading PGN files.  PGN tags pop up when a PGN game file
is loaded.

* More info in INSTALL and Imakefile about building for Suns (and
other systems).

* WinBoard 3.0 patchlevel 11 split off from an early version of xboard
3.0 patchlevel 11, so it does not have all the features of that
patchlevel.  The following changes made it into both xboard and
WinBoard:

* Made Comment dialog non-modal in WinBoard.

* EndOfGame mode is now more transparent.  It looks like ForceMoves
mode except that there is no chess program running.

* Small bug fixes in clock management.  Most noticeably, pausing when
it is gnuchess's move now works as documented (again).

* Add minimal support for -icscomm option.  Not documented yet because
I haven't sorted out the issues with setting the tty modes on the comm
port device, or with locking it properly.  But it's usable by wizards.

* Don't restart the chess program upon Backward event from EndOfGame mode.

* Suppress extra prompt after ICS sends us a board.

3.0, patchlevel 10 -- Sat Sep 11 18:44:03 PDT 1993 -- Tim Mann

* Beta test release only.

* Zippy now plays chess.  zippy.c and zippy.h are still not included
in the standard distribution, but are available on request.

* Switched to using style 12 on ICS.

* Updated man page, and documented use of XBoard*form.translations to
add more shortcut keys.

* Added shortcut keys "d" to claim/offer/accept a draw, and "t" to
call flag.  Suggested by venu on ICS.

* More explicit instructions in INSTALL file.

3.0, patchlevel 9 -- Tue Sep  7 14:02:00 PDT 1993 -- Tim Mann

* General release, minor update to 3.0.pl8.

* Loosened checking on whether it's okay to start a move, to satisfy
ICS ultra-blitz players.  Now we don't check whether it's your turn
until you let go of the piece.

* Parser now recognizes "+-+" as meaning the game ended in a draw.

* Got rid of S_NONE symbol, which seems to conflict with some symbol
Sun defines.

* Tweaked the man page.  Clarified that there is currently no way for
two people running copies of xboard to play each other without going
through the Internet Chess Server.

* Fixed a bug in color name conversion.  Asking for two different
colors whose names were the same in the first four characters would
get you two copies of the first one.  Thanks to Volker Zink for the
bug report.

* Improved confusing Usage() message.

* Added a bunch of Sun information to the Imakefile and INSTALL file.
Thanks to Ed Hanway, Arik Klingensmith, and others who responded.

* Test for defined(WIN32) instead of !defined(unix).

* Avoid using (void *) type with non-ANSI C compilers.  Thanks to
James Altucher for the bug report.

3.0, patchlevel 8 -- Thu Sep  2 12:23:01 PDT 1993 -- Tim Mann

* Note: Patchlevel 8 was the first non-beta release of xboard 3.0

* Added cmail to distribution.  Contributed (and still maintained) by
Evan Welsh.

* Bug fix: -queen option wasn't initializing menu check.  Reported by
Pat Surry.

3.0, patchlevel 7 -- Thu Aug 26 13:23:24 PDT 1993 -- Tim Mann

* Sent WinBoard 3.0.pl7 to Torre on ICS

* Added parser.h to hold the interface to parser.l

* Upgraded COPYING file and copyright notices to GNU GPL version 2.

3.0, patchlevel 6 -- Tue Aug 24 15:16:13 PDT 1993 -- Tim Mann

* We no longer display intermediate positions or intermediate comments
while loading a game file with -timeDelay 0 or loading an opening to
start up a -matchMode game.

* Loading an empty game from an xboard save file now gives a status
message "No moves in game" instead of an error popup saying "Game not
found in file."

* Added comment.awk to distribution.

3.0, patchlevel 5 -- Tue Aug 17 16:45:54 PDT 1993 -- Tim Mann

* Bug fix:  xboard would crash if it couldn't get all its colors; now
it switches to monoMode instead.  Also, xboard was trying to convert
color resources even when using a b/w display.  Reported by Larry
Rogers.

* Bug fix: Declared fields of TimeMark as signed so that we get signed
instead of unsigned arithmetic.  SubtractTimeMarks was breaking on
Alpha AXP (which has 64-bit longs) with old declarations.  Reported by
Michel van der List.

* Bug fixes:  Keyboard accelerators now work after EditComment window is
popped down.  Iconize keyboard accelerator now works even if xboard
was started with -iconic flag and later deiconized.

* Bug fix:  The routine that tests whether a move is illegal because it
would leave you in check was not handling e.p. captures properly.
Reported by Patrick Surry.

* Bug (?) fix:  Was adding time to clocks at time control even when
loading a game file.  Actually it's not entirely clear how time
controls should be dealt with when some moves are loaded from a file
or clicked in with ForceMoves.  For now ForceMoves mode does add the
time (because it can be used to change moves during a live game), but
LoadGame mode does not.

* Updated usage message.

* Previous attempted fix to matchMode had broken TwoMachines mode and
generally needed more work.  Also simplified command line interface to
matchMode.

3.0, patchlevel 4 -- Thu Aug  5 14:17:18 PDT 1993 -- Tim Mann

* Thanks again to the beta testers listed for 3.0 patchlevel 3, and also
Desnogues, Steve Cariglia, Niklas Engsner, Mark Silver, and Roger Rowe.

* Reorganized man page, splitting OPTIONS into subsections.

* matchMode was very broken; fixed.

* Changed convention for turning off command line options from --opt
to -xopt, to be less inconsistent with GNU standards.  Also changed
the long command line options to take True/False arguments like
resources; seems to make more sense this way.

* Added AlwaysQueen option -- suppresses promotion dialog and always
promotes to a queen if you move a pawn to the last rank.  Has no
effect on gnuchess (or your ICS opponents!) -- they can still
underpromote.

* Subtracted an extra fudge term when determining how wide message and
title widgets should be.  This fixes a problem some beta testers had.
Wish I knew why it's needed.

* Bugfix in parser; symptom was that you couldn't do LoadGame after
observing a game on ICS.

* Bugfix in Forward; didn't work after game ended while Pause was turned on.

* Removed bogus execute bits on .h files.

* Use REMOTE_SHELL and TELNET_PROGRAM definitions.

* MachineWhite and MachineBlack now work from TwoMachines mode.

* Popping down an error message with the [ok] button was not turning off
the errorUp flag, so the next move would cause xboard to try to pop it
down again, resulting in a wild memory reference and sometimes a crash.

3.0, patchlevel 3 -- Tue Aug  3 17:40:27 1993  -- Tim Mann

* Thanks to my beta testers: Patrick Surry, Takuya Kojima, Robert J. Luoma,
Chris L.  Petroff, Richard K. Lloyd, Michel van der List, Craig Metz,
Antoon Frehe, Simon Clift, Shelly, Eric Peterson, Christopher Mitchell,
Martin Koch, Ed Hanway, Steve Booth, Udo, Ken Hobday, and Joseph Duhamel.

* Improved error messages for trying to move the wrong color pieces or
to move when it's not your turn.

* Special code for monoMode on 1-bit displays now understands displays
where 1=white and 0=black.

* Declare getenv() if <stdlib.h> not included; avoids a compiler warning.

* Documented borderXoffset and borderYoffset.

* Added -titleInWindow option for use with X window managers that
don't let us set the title in the window banner.

* Fixed error message printing in WinBoard; system error messages no
longer appear as numeric codes.

* The error message popup is now non-modal; you don't have to press the
[ok] button before you can do something else.  In addition, the popup is
positioned so that it doesn't cover up the board (too much), and making a
move or otherwise clicking on the board pops it down.  (Not implemented in
WinBoard.)

* You can now call your opponent's flag in ICS mode by clicking on his
clock.

* Fixed minor bugs in -flipView option and documented exactly how xboard
decides which way to flip the view.

3.0, patchlevel 2 -- Fri Jul 30 22:20:23 PDT 1993 -- Tim Mann

* Added Autosave to Options menu.  Would be better to have Save
Options dialog as in WinBoard, but this was quick to do and gives the
most-needed functionality.

* Changed "Reload Game" on menu to "Reload Same Game".

3.0, patchlevel 1 -- Thu Jul  8 21:22:59 PDT 1993 -- Tim Mann

* Sent a copy of patchlevel 1 to Patrick Surry to beta-test.

* Added -cmail option that sets appData.cmailMode.  Currently a no-op.
In the future this may set special modes for use by the cmail script
for playing chess by email.

* Added LoadNextGame, LoadPreviousGame, and ReloadGame to File menu.
ReloadGame suggested by Patrick Surry.

* Added -flipView command-line option.  Suggested by Patrick Surry.

* Fixed bugs in parser.l:  (1) Pattern for "# xboard game file ..."
needed to match to end of line.  (2) Start of a new file was not matching
the ^ start-of-line character.  The fix for this is a kludge.

* Made game counting code in LoadGame more robust, and made LoadGame
able to detect the end of a saved partial game (by noticing the start
of the next game) in game files created by XBoard itself.  We don't
try to find the start of the next game that way in other kinds of game
files, because the only way I can think of to do that is to look for
another move #1, and that technique gets too many false hits.

* Fixed recently introduced bug in LoadGame when game starts with a
position diagram.

3.0, patchlevel 0 -- Fri Jun 25 14:17:17 PDT 1993 -- Tim Mann

* Changes in this patchlevel were too numerous to list.  Larger ones are
listed below.

* Added a popup dialog to enter and edit comments.  Inspired by some
code from Patrick Surry.  Changed the normal read-only comment popup
to the same style.

* Added ICS init script feature from Karl Schwamb.

* Added some ESIX fixes and OMIT_SOCKETS ifdef option, from Kayvan Sylvan.

* Revamped code to allow use of flex instead of lex on parser.l.
Using flex requires adding -DFLEX to defines in Imakefile.

* Source code is split into front end (xboard.c), which knows about X
and Unix, and back end (backend.c), which knows about chess, gnuchess,
and the ICS.  There is also a front end for Windows NT.

* Boolean command line options now use "-foo" to turn on and "--foo"
to turn off instead of "-foo true" and "-foo false".  [Later -xfoo;
see above.]

* Added menu commands to control autoflag, bell, and coords options.

* User interface has a new look: (1) Menu bar instead of array of
buttons.  A few very commonly used features have small buttons in
addition to being on the menus. (2) Large font for clock.  (3) Pop-up
dialogs for errors.

2.1, patchlevel 11 -- Sat Jun  5 00:01:01 PDT 1993 -- mann@src.dec.com

* Added code to deal with "wild" games on ICS.  This includes allowing
castling with the king on d1 or d8, which is allowed in wild(1) games
if the king started there.  Notation is o-o to castle "short"---to
whichever side the king is closer to---and o-o-o to castle "long."
Right now wild castling is always allowed by xboard; we rely on ICS or
gnuchess to reject it when we aren't really in wild mode.

* memcpy call had arguments in wrong order.

* Removed April Fool code

2.1, patchlevel 10 -- Mon Feb 15 10:19:31 PST 1993 -- mann@src.dec.com

* Avoid trying to select on a pipe when using System V.  Needed to
copy some code from InitChessProgram() up into establish().

* Bug fix in disambiguating pawn moves like "ed".

* Fix to error handling in ReceiveFromProgram.

* Bug fix: entering EditPosition mode with black to play highlighted
White's clock instead of Black's.

* Added telnetProgram resource in case "telnet" is not the name of the
telnet program.

2.1, patchlevel 9 -- Fri Jan 22 19:08:27 PST 1993 -- mann@src.dec.com

* Entering Force Moves mode clears "flag has fallen" messages from display.

* ICS host name can now be in numeric format; for example 128.2.232.4.

* Bug fix: LegalityTest was failing to test whether a pawn move was
illegal because the move would discover a check.

* Handle ICS message "mann asserts a win over manntest, who disconnected."

* Bug fix: A recent change to PromotionCallBack had broken
underpromotion to a knight.

* Bug fix: In EditPosition mode, dragging a piece onto a square border
would make it vanish.  xboard wasn't distinguishing this case from
dragging the piece off the board.  Thanks to Matthew Kidd.

* Removed "static" declaration from yywrap for compatibility with IRIX
version of lex.  Thanks to stiller@blaze.cs.jhu.edu.

* Added substitutes for bzero, bcopy, and gethostname for Solaris
SVR4.  Thanks to Michael Grant.

* Bug fixes to queen move disambiguation.  Bugs showed up only when
promotion resulted in more than one queen on the board.

2.1, patchlevel 8 -- Fri Dec 11 17:54:18 PST 1992 -- mann@src.dec.com

* parser bug fix: It now really works to leave off the piece a pawn is
promoting to and let it default to queen.

* When starting to observe or play an ICS game, don't draw board in
initial position and then immediately redraw it in the current
position.

* Handle ICS messages when an "abuser" forfeits a game by
disconnecting and when a game is aborted ("removed") by an
administrator.

* Bug fix: A user move when in LoadGame+Pause mode was resuming the
game load instead of putting us in force mode.

* It seems that crashes inside sscanf when xboard is compiled with gcc
(as on IBM PS/2 AIX, mentioned below, and also on VAX Ultrix 3.1) are
caused by an incompatibility between gcc and the sscanf implementation
on these platforms.  A workaround is to specify -fwritable-strings to
gcc (see the gcc documentation).  Added info on how to do this to the
Imakefile.  Thanks to Tom McConnell for this information.

* Clocks are allowed to go negative.  This is mostly for ICS
compatibility, but it affects gnuchess mode too.  Also, we give the
time bonus when a player hits the time control boundary even if his
flag is already down.  This choice is a bit debatable, but it makes
things look better when you are in TwoMachines mode and gnuchess's
time management screws up causing it to exceed its time limit.

* Implemented move legality checking code.  Moves made with the mouse
or parsed from a file are checked for legality before being made.
This is mostly in preparation for future extensions, such as
human-human play.  For now it makes -noChessProgram mode more useful.

* If the user takes back moves, we restore the clocks to the earlier
settings.

* We now handle the output of the ICS oldmoves command, including
parsing the game end condition.

* Added autoCallFlag mode.

* Fixed glitches in the medium size outline king and rook bitmaps, and
touched up the medium size solid king and outline queen.

* bug fix: DisplayMove would not display backwardMostMove - 1.

* Added CallFlag button and removed AcceptMatch.  CallFlag is more
important with new ICS, and accepting the current match offer is easy
with the new ICS command "accept" (can be abbreviated "ac").

* LoadGame and LoadPosition display tail of file name (plus index
number, if any) as title.

* MachineWhite, MachineBlack, and TwoMachines now work properly from
LoadGame and LoadGame+Pause mode.

* Use o-o and o-o-o to castle on ICS, not 00 and 000.

* Stripped out code for old ICS messages; new ICS is now installed.

* Bug fix: don't offer autosave when paused during LoadGame.

2.1, patchlevel 7 - Fri Dec 11 17:40:56 PST 1992 - mann@src.dec.com

* Track change to "Illegal move" message in new ICS.

2.1, patchlevel 6 -- Tue Dec  8 10:48:44 PST 1992 -- mann@src.dec.com

* Kludged around bug in keeping comment popup where you put it by
adding borderXoffset and borderYoffset resources that give the width
of the borders added by the window manager.  Yucch.

* Changed searchDepth kludge back to using "help" instead of "bd"; the
latter didn't work because the output contains a line starting with
"White", so we think gnuchess is telling us that White won.  Oops.

* Removed some code that uses an X11R5 feature, XrmGetDatabase.
Without this, the auto font sizing code is harder to make work, so to
keep my sanity I had to change it to affect only the fonts that appear
in the main window and the comment popup, not the other popups.  Maybe
this is better anyway.

* AcceptMatch button now works after a counterchallenge, too.

* Added code for more variants of messages about games being adjourned
or aborted.  These messages need to be unified in new version of ICS.

* Added workaround for minor bug in ICS; game number on first board
can be wrong.

* Removed code to say "refresh n" instead of "refresh"; was broken and
wasn't needed anyway.

* Added missing casts for compilers that distinguish enums from ints
and missing cast in connect call.

* Added code to recognize "both sides are out of time" draw message
proposed for next version of ICS.

* Thanks to Danny Sleator and Joe Peterson for bug reports.

2.1, patchlevel 5 -- Sun Dec  6 19:52:40 PST 1992 -- mann@src.dec.com

* Removed gcc and CDEBUGFLAGS from Imakefile.

* Corrected setting of mode to ForceMoves when game file ends or
contains an AmbiguousMove or BadMove.  Previous bug was harmless.

* Added AcceptMatch button and mention of 50-move rule for Draw button
to man page.

2.1, patchlevel 4 -- Sun Dec  6 02:55:42 PST 1992 -- mann@src.dec.com

* Now handles revised messages from new version of ICS.  New ICS is
not released yet, so this code might change further.  Next patchlevel
will remove support for old ICS; both are there now.

* Initial processing for a new game being watched or played now
happens when we see the first board image.  Removes the need to parse
some messages and unifies some code.

2.1, patchlevel 3 -- Tue Dec  1 19:40:40 PST 1992 -- mann@src.dec.com

* Handles ICS messages "Draw : neither player has mating
material" and "Draw : White has no material, Black has no time."

* Added AcceptMatch button for ICS mode.

* Fixed bug in previous fix to yylexstr().

* Fixed bugs in code for loading old position files that don't start
with "#" and for handling case where user asked for nth position in
file but there aren't that many.

* Handles ICS message "* has restored your old game"

* ResetProc always clears title line now.

* Don't issue just "refresh" when watching a game; use game number.
Upcoming new version of ICS may need this.

* Added code to try to prevent user from watching and/or playing more
than one game at a time.  There is a race condition inherent here; if
we get more than one board from the game before our command to stop
watching it takes effect, we'll think the user started it again.  Not
clear how to fix this.

* Redid ParseBoard8 to use sscanf.  Code is a good deal cleaner now.
Also, we now parse out the game number too, though we don't make much
use of it yet.

* (Tried to put in a feature that recognizes the current game in a
game file must have ended when we see the start of a new one, but had
to disable it because we have too many false hits with the current
parser, especially in gnuchess listing files.)

* Moves read from game files or received from ICS are now translated
into canonical algebraic form just like all other moves.  Minor nit:
If you use Reset while playing or observing a game in ICS mode, the
game history (including the current board position) is lost, so the
next move of the current game can't be translated.

* Default fonts now vary with board size, and are chosen by pixel size
instead of point size (since piece bitmaps have a fixed pixel size).

* Bug fix: An extra Forward was required to skip over time indications
in game files.

2.1 patchlevel 2 -- Fri Nov 27 23:30:00 PST 1992 -- mann@src.dec.com

* If you move the comment popup, the next time it pops up it will come
back where you put it.

* Fixed yylexstr() so calls to it can be interspersed with calls to
yylex().

* Fixed bugs in Forward/Backward while in LoadGame mode.

* Changed Save{Game,Position} functions to append instead of
overwriting if file exists.  Changed Load{Game,Position} functions to
deal with multiple games/positions per file.

* Changed load{Game,Position}File resources to trigger automatic load
on program startup.  Changed save{Game,Position}File resources to
trigger automatic save after every completed game and on program exit.

* Added autoSaveGames mode.

* Fixed bug with PromoPiece in call to MakeAlg from MakeMove.

* Many changes to get rid of picky compiler warnings and generally
clean up the code.

2.1 patchlevel 1 -- Fri Nov 27 02:45:00 PST 1992 -- mann@src.dec.com

* A last minute change before patchlevel 0 went out broke
ParseGameHistory().  Immediately fixed in patchlevel 1.

Version 2.1, patchlevel 0 -- Fri Nov 27 02:00:00 PST 1992 -- mann@src.dec.com

* Uses "time" command of gnuchess 4.0 and following to keep clocks in
sync.  Still works with older versions without this command; we test
whether the command is present the first time each chess program is
started.

* File name dialog pops up under the mouse cursor, so that it's got the
keyboard focus if the window manager is using pointer focus.

* Attempts to move the wrong color piece or an empty square are filtered
out in xboard instead of being passed on to GNU Chess or the ICS.

* The reason a game ended is now remembered even if you move backward
and forward after it ends.  It is forgotten only if you make a move
(which is as it should be---this is now a different game, which hasn't
ended yet).  The message saying why the game ended no longer wipes out
the last move.

* Pause, Backward, Forward, ForceMoves, and EditPosition now work from
TwoMachines mode.

* Forward and Backward now change only the board display unless you
are in ForceMoves mode.  Pause mode keeps new moves that are received
from being displayed on your screen until you unpause (or use
Forward).

* Added option to ring the bell after opponents' moves.

* Saved games that start from other than the standard initial position
now begin with a postion diagram as in saved position files.  The
loader is modified to understand such save files.

* Improved error checking when trying to read from gnuchess.

* Parser understands things that look like time indications, e.g., (0:12),
instead of popping them up as comments.

* Send "quit" to gnuchess before trying to kill it.  I needed this
locally because sending a SIGTERM to rsh was not killing the remote
program on some internal field test systems we have.

* Merged in code from John Chanak to make xboard a front end to the
Internet Chess Server, and added several improvements of my own.
(These include parsing end of game messages, loading the current state
and previous history of a game that's joined in progress via "watch"
or "load", automatic switch from board style 1 to 8 when needed,
removing irrelevant buttons and adding some new ones, adding the
useTelnet and gateway resources, and miscellaneous code cleanup, bug
fixes, and documentation.)  Many thanks to John for writing and
contributing the initial version of this code.

Fri Oct 30 20:16:40 PST 1992 (patchlevel 25) mann@src.dec.com

* gnuchess now castles by sending us "o-o" or "o-o-o" (starting with a
preliminary version of 4.0.pl60 that I have).  Added code to handle
this.  The old format ("e1g1", etc.) still works too.

* Added code to format moves in normal abbreviated algebraic notation
(for example, e4, exd4, f8Q, Nf6, 0-0) instead of coordinate algebraic
(for example, e2e4, e3d4, f7f8q, g1f6, e1g1).  Moves entered with the
mouse or received from gnuchess are translated into this canonical
format for display on the message line or in saved game files.  Moves
read from game files are not translated, however; they are shown and
saved just as they appear in the file.

Mon Sep 14 13:19:01 PDT 1992 (patchlevel 24) mann@src.dec.com

* It's not really correct to write an ep capture of a pawn on e5 as
fxe5; this should be written as fxe6 because e6 is where the capturing
pawn ends up.  Nevertheless, the parser now interprets fxe5 as the ep
capture f5xe6 unless there is a pawn on f4, in which case it
interprets fxe5 as f4xe5.  By design, the parser does not flag fxe5 as
ambiguous if there are pawns on both f4 and f5; instead it prefers the
more legitimate f4xe5 interpretation.

* A move like fxe6 or fe6 is now interpreted as an e.p. capture of the
pawn on e5 if there is one there and e6 is empty.

* A move like fxe5 can no longer be interpreted as an e.p. capture if
there isn't a pawn on e5 to be captured.  Previously this could happen
erroneously if there were pawns on both f4 and f5, and the f4 pawn was
capturing a piece on e5.

* The parser no longer munges the move it is parsing; in the past, for
instance, it would remove the "x" from a move like dxc5 before echoing
it to the screen.

* The parser now detects when a move is ambiguous and returns an
error, instead of arbitrarily choosing one possibility as it used to.

Mon Aug 10 18:40:47 PDT 1992 (patchlevel 23) mann@src.dec.com

* Added code so parser can handle fully qualified algebraic, e.g.,
Ng1-f3, N/g1-f3, Ng1f3, or even Pe2-e4.  The "P" and "/" work only for
fully qualified moves, not generally.

* Fixed parser bugs in handling moves with rank or file disambiguator,
e.g. N1f3 or Ngf3.

Mon Jul  6 17:55:32 PDT 1992 (patchlevel 22) mann@src.dec.com

* AIXV3 patch from Tom McConnell; thanks!

* After hitting the Backward button we see the last move made instead of
the word "Pausing" displayed.

* Fixed a couple of problems compiling on IRIX; thanks to Michel Arsenault
and Alan Walsh for bug reports and help with fixes.

* Added optional display of algebraic notation coordinates along left and
bottom edges of board.  This was inspired by some code from Jean-Christophe
Engel; thanks!

* Swapped EditPosition and Pause buttons to reduce danger of losing the
game in progress by hitting EditPosition when you wanted Backward.  Thanks
to Ove Lundberg for complaining (though it bugged me too).

* Despite one complaint, I kept the feature of changing both clocks when black
makes time control, rather than changing each individually when the player
involved makes it.  This is to avoid having it look like White is way ahead on
time while Black is thinking about the last move of the time control period
(i.e., when White has made time control but Black hasn't yet).

* Corrected clocks to work as in real tournaments.  Time is *added* when you
reach time control; previously the clocks were simply set to the length of the
new time period.  Also, when a player's flag falls, he still does not receive a
new time allotment at the next time control, but his opponent does still
receive more time if *his* flag has not fallen; previously, time controls were
ignored for both players if either flag fell.  I forget who reported this bug.

* Added a small ESIX patch from Kayvan Sylvan.

Mon Jun 22 13:24:38 PDT 1992 (patchlevel 21)

* Added some SVR4 support code from Ronald Cole.  It's Greek to me.

* Note:  Stephen Meatheringham reports a bug causing xboard to crash with an
error from the X server when run on a Sun Sparcstation IPX with Solaris 1.0.1
and OpenWindows 3.0.  This bug has not been tracked down yet.

* Fixed a problem with ATTENTION code.  On some operating systems, you have to
be even more cautious about when you send a SIGINT to gnuchess, because the
signal handler gets deinstalled each time it is used, and gnuchess does not
reinstall it immediately.  In particular, if you send a SIGINT and make an
illegal move or ask for a hint, gnuchess does not reinstall the handler until
*after* you make your next move, so you had better not send a SIGINT before
it.  I put a workaround for this case into xboard; I hope there are no more.

* The ATTENTION code is needed when compiling for the ESIX operating system,
because ESIX has a bug in the FIONREAD ioctl, so the code in gnuchess that
lets you interrupt its thinking on your time just by typing in your move does
not work.  Perhaps gnuchess will have a workaround for this eventually.

* Fixed yet another bug in using XtGetValues; code to inhibit shell resizing
was leaving a null pointer as the place to store the current sizes.

* Man page fixes: corrected -sl to -sd, updated LIMITATIONS.

* Added include of <sys/time.h> conditional on HAS_GETTIMEOFDAY.  I hope this
works for all systems; on mine, <time.h> and <sys/time.h> are the same file,
but with an #ifndef that makes it harmless to include both.

* Thanks for reports from Mike Pearlman, Stephen Meatheringham, Kayvan Sylvan,
d87-mal@nada.kth.se, Urban Koistinen, and Ronald Cole.

Mon Jun  8 11:39:18 PDT 1992 (patchlevel 20)

* Documented default value of initString and explained what it means.  This
paragraph also serves to inform the user that xboard by default will tell
gnuchess to think on his time, something one user apparently didn't understand.

* Redid -searchDepth (formerly -searchLevel) and -searchTime code.  They both
work correctly with gnuchess 3.1 now.  The -searchDepth option also works
correctly with gnuchess 4.0.  The -searchTime option does not work with
gnuchess 4.0.pl50 or earlier because those gnuchess versions do not have a
working searchTime feature.  Instead of having xboard do a half-baked emulation
of this feature by using a 1-move time control, I will be submitting a patch to
the gnuchess folks to restore the feature as in 3.1.

* Improved clock code.  It now keeps accurate track of fractional seconds of
clock running time, if your system has gettimeofday(); if not, it is generous
about them---if a clock has been going for n.m seconds when it is stopped, only
n seconds are charged.  Previously, xboard would charge one second immediately
when a clock was started, so if n.m had elapsed when it was stopped, n+1 would
be charged.  This should stop xboard from thinking gnuchess has let its flag
fall on the last move of a time control, as it often did before.  I also
improved the comments and condensed the code a little.  I hope there are no
systems that have X11 and don't have gettimeofday(), but if there are, I'd like
to know what to replace it with.

* "Flag dropped" messages now show up on the top line, beside the clocks, so
that they don't obscure more interesting messages on the second line.

* Fixed confusion of NULL and '\000'.

* Include time.h to get ctime() declaration.

* Fix to "parser bug" messages in parser.l.

* Changed code to work with old-fashioned tolower() macro that requires its
argument to be an uppercase letter.

* Minor fix to some usage error messages; was reversing program name and
erroneous argument value.

* Thanks to Mitch Wright, Ranier Orth, and Henrik Schmiediche for bug reports.

Fri Jun  5 13:06:08 PDT 1992 (patchlevel 19)

* Note: xboard does not seem to work when compiled with gcc 1.40 on a
PS/2 running AIX.  It crashes at the sscanf in line 768 of xboard.c.
You can work around the problem by specifying the -timeControl option
on the command line instead of defaulting it.  This does not seem to
be a bug in xboard itself; it runs okay on PS/2 AIX when compiled with
MetaWare High C.  [But see 2.1.pl8 above.]

* Removed bogus files from distribution.

* Changed variable name that conflicted with SVR4 ttyname function.

* Thanks to Christoph Strozyk for another bug report, and to several
of the folks mentioned under patchlevel 18 for testing it.

Wed Jun  3 17:50:37 PDT 1992 (patchlevel 18) mann@src.dec.com

* Added an include of sys/fcntl.h to pick up the definition of O_RDWR for
System V users.

* Fixed a bug in CatchPipeSignal; was testing the wrong variable to determine
which chess program got the signal.

* Removed the declaration of strrchr, which was causing problems for some
people, and added an include of <string.h> or <strings.h> instead.

* Fixed a bunch of type errors uncovered by compilers that check more carefully
than the one I was using.  I just patched many of them with casts---typically
cases where a function didn't take the same number and type of arguments as the
X header file prototype said it should---because I didn't see any other way to
fix them.  The versions of the X header files that I have don't actually have
full prototypes for these function types; they declare only the return type and
just give the argument types as comments.

* InitChessProgram returns immediately if chess program died while we were
waiting for it to say "Chess".  I think this fixes a bug that could make xboard
crash or go into an infinite loop printing "Warning: Select failed; error code
9" if gnuchess crashed there.

* Removed code that tries to put the file descriptor used to read messages from
gnuchess into nonblocking mode.  I don't see how this kludge could ever have
fixed the problem it was intended to (see below), and it seemed to be causing
a race condition when we were waiting for the initial message from gnuchess
after it started up.

* Thanks to Richard K. Lloyd, Konstantinos Konstantinides, Mark
Seiden, Erik Schoenfelder, Andreas Stolcke, Rainer Orth, Henry Thomas,
and Kris Van Hees for bug reports and help with fixes.

Sun May 31 08:00:00 PDT 1992 (patchlevel 17) Bart Massey bart@cs.uoregon.edu

*  'xboard' suffered from a couple of serious bugs.  An initial
   size needed to be given to the message label to avoid a race
   condition (!) so I gave it some text (otherwise occasionally
   xboard would fail because the message widget was 0 width under
   MIT X11R4).  The sizes needed to be Dimension, not int, because
   they were written in by Xt -- on my big-endian box Dimension
   is short, causing chaos.  Also, I hacked a declaration in for
   strrchr() to shut the compiler up -- this is arguably a kludge,
   but I couldn't think of anything better; maybe you can.

Fri May 22 13:40:50 PDT 1992 (patchlevel 16)

* First real (non-beta) release of version 2.0.

* Added GNU copyleft notices covering version 2.0 enhancements.

Thu May 21 12:30:09 PDT 1992 (patchlevel 15)

* Removed -g from Imakefile.

* Added casts in parser.l to prevent warning messages from some C compilers.

* Bugfix: code to exit if chess program couldn't be started had bug in error
message printing.

Tue May 19 11:58:06 PDT 1992 (patchlevel 14)

* Fixes one small bug: If LoadGame does not find a game in the file, it resets
xboard to BeginningOfGame mode (as if the Reset button was pressed), instead of
leaving it in LoadGame mode.

Mon Apr 13 18:32:27 PDT 1992 (patchlevel 13)

* Improved error handling when gnuchessx crashes.  Now displays a message and
enters EndOfGame state without exiting.  This should help with diagnosing
gnuchessx problems, since the position and move history are not lost.

* Debugged man page.

Version 2.0 -- Thu Apr  2 16:04:54 PST 1992 (patchlevel 12)

* Added small 40x40 pixel pieces; board size now specified as small, medium, or
large.

* Improved man page.

* Saved position files now say "white to play" if it's white's move.

* SavePosition while in EditPosition mode now gets side to play right.

* Made "Pawn" the default on edit position menus.

* Removed "To play" from edit position menus, since it's redundant.  Left
support code in so it can be restored if someone wants it.

* Tightened parser's definition of a move number to help further with skipping
over stuff before the first move.

* Put back feature of skipping over stuff in game files before a start of game
marker.  This helps when loading electronic mail messages that have things
like "00" in the header (looks like castling), or that talk about moves in
running text before the actual game score.  Tradeoff is that we can't load
games that don't either have move numbers or say "gnuchess game" just before
the moves.

* Changed version number to 2.0 because others have used "1.3" for patched
versions of 1.2.  Display version number and patchlevel at startup.

Thu Apr  2 15:30:22 PST 1992 (patchlevel 11)

* Bugfix:  Match started with TwoMachines button now handles the case where
user loaded/edited a position *and* forced some moves.

* added error message feedback to many cases where the user's button press is
rejected because it isn't allowed in the current mode.

* added -noChessProgram option to allow use as a passive chessboard without
gnuchess, replacing old buggy scheme that tried to do this automatically when
gnuchess was not found on the search path.

* parser accepts "=" in front of promotion piece

* parser accepts ":" notation for captures

* Removed SwitchSides button to make room for EditPosition.  Left code in
place, ifdef'ed out.

* Added EditPosition mode.

* Reformatted xboard.c to eliminate long lines.

* Promotion popup now appears near rank to which pawn is moving.

* UI improvement: Button representing current program mode is kept highlighted.

* Bug fix:  Hint button is now disabled when machine is on move.

Sat Mar 21 14:57:37 PST 1992 (patchlevel 10)

* TwoMachines now works from MachineWhite or MachineBlack mode.

* ForceMoves and Backward/Forward now work at the end of a game started by
the TwoMachines button.

* Sends o-o or o-o-o to gnuchess instead of O-O or O-O-O.

* Bug fix:  SwitchSides button is now disabled when machine is on move.

* Added -searchLevel option and corrected handling of -searchTime to reflect
the way gnuchess really handles command line options instead of what the
documentation used to say.  Allowed optional ":seconds" on times.

Tue Mar 17 21:00:35 PST 1992 (patchlevel 9)

* Removed non-working code that tried to recover when a remote chess program
could not be started; now exits with a message instead.

* Now waits for chess program to print its first message (normally "Chess")
before sending it any commands.

* Matches between two machines can now start from a black-to-play position or
black-to-play opening.

* Bug fix: The program would sometimes lose track of the board position after
the end of the game, drawing a board full of white pawns next time it got an X
redraw request.  Now fixed.

* Cleaned up handling of illegal moves in game files.  Now we just stop reading
and go into ForceMoves mode.

* Saved games against gnuchess indicate who won (restored and debugged 1.2
feature).

* Setting -searchTime turns off -clockMode.

* My trick for setting up a black-to-play position broke in the transition from
gnuchess 3.1+ to 4.0.  Installed a different trick that works with both.

* Bug fix: Was clobbering memory by mallocing one byte too few for the file
name in SetupPositionFromFileProc.  This usually resulted in a crash on the
second attempt to load a position from a file.

Mon Mar 16 16:49:00 PST 1992 (patchlevel 8)

* Game and position files are saved in CHESSDIR as well as loaded from there.
We actually chdir there, so gnuchess listing files also wind up there.

* Underpromotion moves from gnuchess really work now.

Sat Mar 14 14:55:24 PST 1992 (patchlevel 7)

* Cleaned up lots of bugs and kruft in parser.l.  It's a wonder the old version
worked at all.  Improved rejection of random text interspersed with the moves.

* Relabeled buttons to reduce confusion (Play From File --> Load Game;
Setup From File --> Load Position).

* Bug fix:  Doesn't exit at the end of a game that was started by pressing
the Two Machines button.

* Bug fix:  Doesn't get confused if you hit Machine Black (White) while
the machine is already playing black (white) and is on move.

* Prints "White to play" or "Black to play" after loading a position file.

* Bug fix:  No longer hangs if no start-of-game is found in a game file.

* More permissive about game file format.  The first line is not assumed
to be a header comment unless it starts with "#".  We don't insist on
seeing a "1." before the first move.

* Added pop-up dialog to allow underpromotion.  Moving a pawn to the last rank
pops up a dialog to let you select what piece to promote to.  Also added code
to handle underpromotion moves from gnuchess or from a game file correctly.

* Added code to send SIGINT to gnuchess before trying to move, if gnuchess
might be busy thinking on our time.  The code is ifdef'ed out because it's
not necessary; only beta-test versions of gnuchess 4.0 at patchlevel 19 or
below require it.

Mon Feb 24 20:10:22 PST 1992

* Merged fixes received from Stuart Cracraft and Mike McGann, to iconic mode
and to ShutdownChessPrograms.  (They both sent the same fixes.)  I did not
install the change that removed "easy" from the initialization string, so
xboard will still try to run gnuchessx in "hard" mode (thinking on opponent's
time) by sending this command.

Version 1.3 -- Thu Dec 19 18:19:00 PST 1991  mann@src.dec.com (Tim Mann)

* I've fixed a slew of bugs in this version of xboard:

* You can now back up from the end of a game, even if gnuchess was playing
against you.  Since gnuchess exits upon mate or draw (when it's not in force
mode), this feature works by starting up a new copy of gnuchess and feeding it
the saved starting position and moves.  Drawback: the new gnuchess starts with
clocks at the beginning of a fresh time control.

* Note: the "force" command to gnuchess is a toggle.  I fixed a couple of
places in xboard where "force" was being issued when gnuchess was already in
force mode, which resulted in chaos.  I don't know if they were in 1.2 or if I
added them myself in the course of putting in new features.

* ForceMoves button is now legal in PlayFromFile mode.  It closes the game file
and lets you force moves (or go Backward) from whatever position you've
reached.

* The parser now recognizes "white resigns" and "black resigns" (in any
combination of upper and lower case, with or without the closing "s").  These
used to be misinterpreted as meaning "white wins" or "black wins" respectively!
Added "1 - 0" and "0 - 1" as equivalents for "1-0" and "0-1".

* I removed the parser feature of considering "!" as a comment delimiter.
"!" is so common as an annotation in game scores that this feature seems like a
very bad idea.

* Added a wait() after each successful call to kill() to avoid leaving zombie
processes around.

* Removed the feature of putting an indication of how the game ended into the
internal move list when playing from a file.  The only benefit of this was that
it would get written back out if you saved the game at that point.  This
feature doesn't seem too useful, since you are unlikely to save a game you've
read in without making any changes, and it caused a lot of problems in the code
and user interface.  The end condition is still displayed as a message when
it's first read in from the file.  End conditions when playing against gnuchess
are still saved, too.

* programName is now the last file name component of argv[0], not all of it.

* xboard.c got three compiler warnings due to arguments that didn't match the
prototypes on X toolkit functions.  I got rid of them by adding some casts, and
adding extra unused arguments to the ReceiveFromProgram function.

* As I received it, the distribution had an extra period glued on the front
of every line that started with a period.  This broke the manpage in an
obvious way.  It also broke parser.l in a nonobvious way that stopped
PlayFromFile from working.

* Fixed one or two bugs where the clock was started when it shouldn't have
been.  I think one example was if you tried an illegal move in ForceMoves mode.

* Now starts the machine's clock if you hit MachineWhite when white is on move
or MachineBlack when black is on move.

* Now updates the to-move indicator (highlight on clock display) when you use
Forward/Backward or ForceMoves.

* gnuchess 3.1+ has a bug that makes it try to think on its opponent's time
even when in force mode; this causes problems with xboard's SetupFromFile
command because gnuchess's saved hint move is garbage after the new position is
loaded, so gnuchess prints out an error message when it tries to think about
what it would do if the user made this move.  Here is a patch for gnuchess
3.1+:

*** nondsp.c~   Mon Dec  2 12:37:18 1991
*-- nondsp.c    Thu Dec 19 15:36:06 1991
***************
*** 1223,1229 ****
    ok = flag.quit = false;
    player = opponent;
    ft = 0;
!   if (hint > 0 && !flag.easy && Book == NULL)
      {
        fflush (stdout);
        time0 = time ((long *) 0);
*-- 1223,1229 ----
    ok = flag.quit = false;
    player = opponent;
    ft = 0;
!   if (hint > 0 && !flag.easy && Book == NULL && !flag.force)
      {
        fflush (stdout);
        time0 = time ((long *) 0);

* SavePosition/SetupFromFile now handle black-to-play positions.  If it's
black's move in a saved position, the line "black to play" is printed
immediately after the board display.  Upon loading a position, xboard
looks for "black" at the beginning of this line to determine whether it's
black's move.

* SetupFromFile now leaves you (effectively) in ForceMoves mode.  This
eliminates some cases where the program would get into an inconsistent state,
and hopefully is more intuitive for the user, too.

* PlayFromFile now leaves xboard in ForceMoves mode after playing through all
the moves in the file.  You can use Backward/Forward, make moves, get gnuchess
to join the game with MachineWhite or MachineBlack, etc.  The game file can end
with either white or black to play.

* Backward/Forward now seem to work in all cases.  Previously using these
buttons during a game against the machine would get xboard out of sync with
gnuchess's idea of what was going on, resulting in chaos.  Now using these
buttons puts xboard in ForceMoves mode; you can bring gnuchess back into the
game using the MachineWhite or MachineBlack buttons.

Thu Jun 27 15:06:25 PDT 1991

  * Remove comment popups during a reset.

  * Bug in my forward move fix.  Didn't work for playgamefile mode.

Thu Jun 20 15:04:06 PDT 1991

  * Can't do a backward move when it isn't your turn because gnuchess
    gets confused.  Similar bug for forward move.  Do a bunch of moves,
    back up move and go forward.  These get filtered out now.

  * Put easy back into the initString.  This DISABLES easy mode which by
    default is ON.

  * New-line wasn't always being added to forward move strings sent to gnuchess.

  * Parsed comments as [ ..............text follows ] into d7d5

  * Long game file comments cause core dumps on HP systems.

  * Multiple uses of the get positition file button got confused
    on the second click.

  Minor fixes to the 1.2 release

Version 1.2 -- Tue Jun 11 17:14:12 PDT 1991

  * For version 1.2, Jeff Kenton, Richard LLoyd, David Jensen, Martin D.,
    Bill Schmidt, Scott Hemphill, Paul Vaughan and Bill Shauck all found
    a lot of bugs that we put into xboard just to see if they were paying
    attention.  They were.

  * Changed the protocol that xboard uses to work with the new version of
    gnuchessr.

  * There was an off by one error with the clock resetting code.  Also,
    the clock display highliting was wrong.  Thanks to Bill Shauck for
    pointing these out.

  * enumerations are not really integers on some C compilers.  I added casting.
    The new version of gnuchess expects the "go" command for two machine
    and machine plays white cases.  The whiteString resource is for
    compatibility with previous gnuchess versions which get confused by go.
    Thanks to Martin D. for catching these.

  * Fixed a bug where the checkmate message wasn't being parsed and xboard
    kept playing.  Also, the message was added to game file if saved.
    Thanks to Scott Hemhill for pointing this out.

  * Fixed a bug where saving a long game, resetting and saving a short game
    resulted in appending the end of the long game to the short one.
    If a game is just being played out and there is no reason for gnuchessr
    to be used, ignore pipe signals.  This allows people to use xboard
    as a chess board without need for gnuchess.  Also, trivially bad moves
    such as e2e2 are not passed on to gnuchessr but instead ignored out of
    hand.  This allows people using xboard as a chessboard with gnuchessr
    to pick a piece up, think and put it back down without making a move.
    Thanks to Jeff Kenton for pointing these out.

  * Added the CHESSDIR environment variable.  Game and position files are
    found in this directory.  If this variable is not declared, then the
    current directory is used.  File names starting with / are treated
    specially.

  * The bitmap file names were changed so that none exceeded 14 characters.
    This is necessary for R5.

        fcntl(from_prog[0], F_SETFL, O_NDELAY);

    The xboard fix was to set non-blocking i/o on the read pipe for gnuchessr

        printz ("Illegal move (no matching move generated)");

  * fixed a problem with the new version of gnuchessr where xboard wasn't
    getting gnuchessr error messages for illegal moves.  The problem seems
    to be fixed *without* any gnuchess changes but this is likely to be
    highly system dependant.  There should be a new line on line 246 of nondsp.c

  * -iconic doesn't work at all now.  The Iconify() does work.  This was
    a tradeoff and it is really an Xt bug.

  * Fixed a compiler warning for gcc and an error for the IBM RT compilers.
    This is the VOID_PROC macro in xboard.h.  Thanks to David Jensen for this.

  * If the DisplayWidth or DisplayHeight is less than 800, use small size mode.
    Also the size of the name widget was reduced from 500 pixels to 400 pixels
    because in small size mode there was a gap on the right.
    Changed the default font from fixed to helvetica_oblique14 to:
        **-helvetica-bold-r-normal--14-*-*-*-*-*-*-*
    helvetica_oblique14 is a font alias not on all R4 systems.
    Curiously enough, the 17 point is not available on 75dpi systems
    and the 18 point font is not available on 100dpi systems.
    Thanks to Richard K. Lloyd for pointing these out.

  * Minor hacks to work with R5 alpha.  Had to add an event handler to the
    boardWidget to get translations to work.  This may go away with the real R5.
    Added <Message>WM_PROTOCOLS: QuitProc() for R5 ICCCM compatibility.

  * If the first character of the file is not `1' then the first line
    of a game or position file is displayed as the name in a label widget.

  * Added a PopUp dialog for getting file names.

  * Modified the code to use the R4 routines rather than R3 compatibility.

  * Changed the forwards/backwards/readgamefile code to allow a play to step
    back and forth in a game.  If he steps all the way to the beginning
    he has to restart the game.  If he gets into a mated position, same problem.

  * Moved the man page from xboard.1 to xboard.man.  This makes imake man page
    installs work correctly.  Thanks to Richard K. Lloyd for pointing this out.

  * Corrected the queening code.  XBoard was sending the wrong syntax.
    It was sending for example h8(Q) when it should have been sending h8q.
    Thanks to Paul Vaughan and Mike McGann for pointing this out.

  * Added a lex parser for algebraic games.  It should be easy to use the parser
    for other interfaces such as the Microsoft Windows version.
    It parses comments of the form [anything] and ! to the end of a line.

Version 1.1 -- Mon Jan  7 14:46:03 PST 1991

  * Roger Dubar, Konstantinos Konstantinides, Wolfgang S. Rupprecht,
    Paul Scowen, Mvh Smidt and Kayvan Sylvan all helped immensely during
    beta-testing.

  * older non-ANSI versions of Sun compilers complain vociferously.

  * the remoteShell resource was added for HP-UX systems
    and other systems where the remoteShell isn't rsh.

  * -iconic doesn't work properly.  If XBoard is opened iconic then
    iconifying it later with a keystroke doesn't work.  I think
    this is an Xt bug.

  * For systems with smaller screens, XBoard can use smaller pieces,
    and a smaller board.  -bigSizeMode False uses a smaller set of pieces.
    These are scaled versions of the large pieces.  They look ok but could
    be improved.

  * getlogin() does not work in all cases.
    It was replaced by getpwuid(getuid())->pw_name).

  * Warning messages get displayed in the message box.

  * Any button restarts a paused game.

  * Kayvan Sylvan contributed a patch for ESIX.
    It seems that select() on pipes is broken on his system.  We declined
    to incorporate his patch though, because it was a work-around for
    something that was broken on one system, and selfishly, that system
    was not my own.  Nevertheless, it is likely that other System V users
    on PC's may need to use this patch and it is is included as the file
    ESIX.patch.  To use it, type

        patch xboard.c ESIX.patch

  * Fixed a bug where hint didn't work.  The local version of gnuchessr
    had been hacked.  The fix was to clone stderr and stdout for gnuchessr.

  * Fixed a bug where a player could play after a game had been finished.

  * The bitmaps have been pushed into the bitmaps directory.

  * Substantially rewrote and simplified the Two Machine code.

  * Added StrStr() because many systems don't have this ANSI function.

  * Added keyboard equivalents.  Added an iconify keystroke, C or c.

  * Works with gcc now.  gcc complained about casting float constants
    as XtPointers.

  * Detect if the visual doesn't support color.  If so, run in monoMode.
    An alternative would be to detect grayscale visual and use a collection
    of gray user interface colors.

        XBoard.clockMode:    False

  * For people who don't like or use chess clocks a clockMode switch
    has been added.  It is on by default.  It can be turned off in the
    .Xdefaults file with

  * Added a declaration, xtVersion, which will quickly break on R3 Intrinsics.

  * Hal Peterson contributed a new Imakefile.

  * Rewrote DisplayClocks().

  * Rewrote TwoMachinesPlay mode.

  * Konstantinos Konstantinides added the -searchTime option.

  * Substantially rewrote and simplified the clock code.  If a game was paused
    and then resumed, the clocks were out of sync.

  * Fixed a bug in HandleUserMove() where the user could make a move while the
    machine was thinking.  The fix detects and ignores these moves.  onMove
    was not being used and was removed.