File: ChangeLog

package info (click to toggle)
openbabel 2.3.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 75,308 kB
  • ctags: 41,952
  • sloc: cpp: 321,252; ansic: 89,228; python: 7,262; perl: 6,418; pascal: 793; sh: 194; xml: 97; ruby: 55; makefile: 47; java: 23
file content (13461 lines) | stat: -rw-r--r-- 480,230 bytes parent folder | download | duplicates (2)
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
2012-08-20  Paolo Tosco <paolo.tosco@unito.it>

	* src/formats/mol2format.cpp: added a check for N.4 nitrogens
	(fixes PR#3557898)

2012-06-09  Paolo Tosco <paolo.tosco@unito.it>

	* src/kekulize.cpp: reverted the r4862 patch to kekulize.cpp;
	the incorrect aromaticity perception of oxonium salts concerned
	only the MOL2 format, so the fix was applied to mol2format.cpp
	instead
	* src/formats/mol2format.cpp: added a check to improve downstream
	aromaticity perception on charged molecules containing oxygen

2012-06-07  Paolo Tosco <paolo.tosco@unito.it>

	* include/openbabel/atom.h: added protos for CountFreeSulfurs() and
	IsThiocarboxylSulfur() functions which are equivalent to
	CountFreeOxygens() and IsCarboxylOxygen() and address
	(di)thiocarboxyl groups
	* src/atom.cpp: added the CountFreeSulfurs() and
	IsThiocarboxylSulfur() functions
	* src/forcefields/forcefieldmmff94.cpp: added some additional
	checks to make MMFF94 atom type assignment more robust
	* src/formats/mol2format.cpp: added some checks to improve downstream
	aromaticity perception on charged molecules containing nitrogen,
	oxygen and sulfur
	* src/kekulize.cpp: added a check to fix incorrect perception of
	aromatic oxonium and thionium cations

2010-10-29  Konstantin Tokarev <annulen@yandex.ru>

	* scripts/CMakeLists.txt: fixed behavior of build system if some of
	JNI dependencies were not found

2010-10-29  Konstantin Tokarev <annulen@yandex.ru>

	* scripts/CMakeLists.txt: added dependency 'openbabel' to target
	'_openbabel' (Python bindings)
	
	On non-Windows platfroms Python module is linked by custom script
	which is not aware of target dependencies. This change fixes parallel
	build

2010-10-24  Jean Brefort  <jean.brefort@normalesup.org>

	* data/space-groups.txt: fixed space group 104 (missing transfoms).

2010-10-14 Jiahao Chen <jiahao@mit.edu>

	* src/charges/qeq.cpp,src/charges/qtpie.cpp: Added documentation.
	* data/qeq.txt: Simplified parameter file format.
	
	There is an upper bound on the screening radius that is constrained by
	the atomic hardness parameter. (These parameters are not entirely
	independent.) If this constraint is violated, i.e. radius * hardness <
	sqrt(2/pi) a.u., then it is possible to get infinite charges for
	certain geometries. For now, the screening radius using the Gaussian
	orbitals (in this code) is taken to be the same as the screening radius
	for Slater orbitals in the original QEq specifications, except when the
	constraint is violated, in which case the radius is reduced to the
	largest possible radius satisfying the constraint. To do this properly,
	a reparameterization of the methods are required, but this should
	suffice for not producing ridiculous charge predictions.

2010-09-30 Chris Morley

	* src/alias.cpp: Use MCDL for expanding aliases in 2D mols, since
	builder seems now only to generate 3D coords. Add dummy connection to
	alias before generating 3D coords to improve geometry, but still not
	quite right for NO2. Fixes #3077897
	
	* src/mcdlutil.cpp: small doc change
	
	* src/config.h.cmake: MSVC build: enable warning on unreferenced
	formal parameters and disable warning on forcing int etc. value 
	to bool 'true' or 'false' (performance warning). Should reduce number
	of warnings.

2010-09-29 Noel O'Boyle

	* src/formats/smilesformat.cpp: Handle cis/trans stereo involving ring
	closures. Handle errors in specifying cis/trans stereo in general and
	involving ring closures.

2010-09-23 Noel O'Boyle

	* src/math/align.cpp, align.h: Add OBAlign::GetRotMatrix()

	* test/aligntest.cpp: Add basic test for GetRotMatrix()

2010-09-23 Chris Morley

	* src/fingerprints/finger2.cpp: generate detailed fragement info
	and output via new DescribeBits function, as suggested by Noel. 
	
	* include/openbabel/fingerprint.h: make Flags interface writeable.
	
	* src/fingerprint.cpp(FastsearchIndexer): set fingerprints
	FPT_NOINFO flag to save time (FP2).  
	
	* src/fingerprints/finger3.cpp,src/formats/fingerprintformat.cpp:
	minor format changes to DescribeBits output.

2010-09-19  Noel O'Boyle

	* src/formats/inchiformat.cpp: Handle atoms with tet chirality due to
	lone pairs.

2010-09-19  Chris Morley

	* src/ops/opisomorph.cpp: As requested by Douglas Houston, -s option
	allows multiple molecules in pattern file (with multiple coloring of
	matching substructures); -v (inverse of -s) now uses the same code
	and has the same capabilities.

2010-09-19  Chris Morley
	
	* src/depict/depict.cpp: correct position and direction of wedge and
	hash bonds. Deduce using TetStereoTo0D. May need further work.
	
	* include/openbabel/depict/painter.h(OBColor): add a few more named
	colors,	color input from rgb hex (like #8dcb70), and a default color,
	in case of typos.

2010-09-19  Chris Morley

	* include/openbabel/obconversion.h: expose Count (the input index)
	 
	* src/ops/addinindex.cpp, src/CMakeLists.txt: add an op to add Count
	to title: --addinindex (Yes, awful names)

	* src/obmolecformat.cpp, src/transform.cpp:
	rename --addindex to --addoutindex.
	
	src/transform.cpp: -v option does nothing if parameter empty.
	(ClassDescription)small documentation changes for -s, -v

2010-09-19  Chris Morley

	* src/stereo/perception.cpp(TetStereoTo0D):fix bug which was truncating
	the loop without examining all possible bonds.
	   
	* include/openbabel/inchiformat.h: correct formating of Description
	so will work with GUI (no \n\n inside option list).
	
	* src/formats/inchiformat.cpp: OBBond instead of OBEdgeBase, which
	was removed a million years ago.
	
2010-09-17  Noel O'Boyle

	* src/math/align.cpp, test/aligntest.cpp: Correct dumb error in
	final line of calculation of RMSD.

2010-09-15  Noel O'Boyle

	* src/builder.cpp: When correcting stereo on rings, handle the case of
	the lone pair. Thanks to Peter Lavin for reporting.

2010-09-15  Noel O'Boyle

	* src/formats/smilesformat.cpp: Handle chiral S with a lone pair in
	the SMILES writer. Fixes PR#3058701. The test cases in the previous
	commit log message should actually be C[S@](=O)Cl, etc. to be
	chemically correct.

2010-09-14  Noel O'Boyle

	* src/formats/smilesformat.cpp: Handle chiral S with a lone pair and
	in general, the situation where a chiral atom has a lone pair.
	Test cases: C[S@](Br)I, [S@](C)(Br)I, C[C@-](Br)I, C[S@](=O)(=O)Cl.

2010-09-14  Noel O'Boyle

	* CMakeLists.txt: As discussed on list, don't build all bindings when
	RUN_SWIG=ON (building some bindings may cause errors). Instead, the
	option ALL_BINDINGS=ON will build all bindings.

2010-09-10  Noel O'Boyle

	* src/formats/pdbqtformat.cpp: Remove "ent" designation as this is
	already used by the .pdb file format.

2010-09-09  Noel O'Boyle

	* scripts/python/pybel_py*.x.py: Synch with cinfony. Add support for
	MCDL 2D coordinate generation when calling 'draw()'. MCDL is the
	default. To use	OASA, specify method="oasa".

2010-09-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/base.h: Add new UNUSED() macro for unused
	parameters.

	* include/openbabel/forcefield.h: Use it.

	* src/kekulize.cpp: Decrease recursion level from 31 to
	24. Prevents some crashing / "infinite" loops on large fused-ring
	systems.

	* src/formats/pdbqtformat.cpp: Add new format from Stuart
	Armstrong, InHiBOx.

	* src/formats/CMakeLists.txt: Ditto.

2010-08-26 Noel O'Boyle

	* src/formats/mdlformat.cpp: Chris beat me to one fix (see below), but
	I also added code to handle unspecified cis/trans stereo
	* test/testsym.cpp: Correct test results and add some new ones for the
	-as option (with 0D MDL).

2010-08-26 Chris Morley

	* src/depict/depict.cpp(DrawMolecule): fix so works with empty molecules
	* src/formats/gamessukformat.cpp: fix typo
	* src/formats/mdlformat.cpp: -as needs OBConversion::INOPTIONS
	* src/obmolecformat.cpp: make -C option work again

2010-08-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/generic.h, src/generic.cpp: Improve on
	functionality for OBOrbitalData -- including convenience functions
	for loading lists of orbital energies.

	* src/formats/gamessformat.cpp: Use it (closed-shell
	calculations for now).

	* src/formats/gaussformat.cpp: Grab new "z-matrix orientation"
	coordinates given sometimes by Gaussian 09. Also add some
	OBOrbitalData support.

2010-08-24 Chris Morley

	* src/format/mdlformat.cpp: add -aP format to read only title
	and properties only. Speeds up filtering of sdf datasets based on
	their properties.

	* src/ops/opisomorph.cpp: "extract" parameter on -s option to
	retain only matched atoms. Useful for preparing templates for
	--gen2D

	* src/alias.cpp(FormulaParse): return false when lower case letter
	encountered. Reduce chance of misinterpretation in this backstop
	function.

	* src/depict/depict.cpp: output D and T

	* src/formats/gaussformat.cpp: fix bug with diatomics looking for
	"Rotational Constants" when ther is only one.

	* windows-vc2008/Distribution/NSISScriptToCreateInstaller.nsi:
	put shortcut to babel guide to http://baoilleach.webfactional.com
	for the time being.

2010-08-23 Noel O'Boyle

	* src/formats/mdlformat.cpp: Make the "s" option work by resurrecting
	some old code I had written and then subsequently removed. Atom
	parities will now be used for 0D structures, but only if "s" is
	specified.

2010-08-23 Noel O'Boyle

	* include/openbabel/stereo/stereo.h, perception.cpp: Add doxygen docs
	for TetStereoTo0D and change return value to bool.

2010-08-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.cpp (GetAtomicNum): Handle "Hl" hydrogen label from CIF
	PR#3048959. Add warning when an unknown element label is provided.

	* src/parsmart.cpp, include/openbabel/parsmart.h: Add thread-safe
	SMARTS matching API, PR#3949927, thanks to David Koes.

	* src/formats/mol2format.cpp: Disable tellg/seekg forwarding,
	which is very slow with gzip-compressed mol2.gz
	files. PR#3048758.

	* src/formats/outformat.cpp: Handle new GAMESS-US/WinGAMESS output
	files.

	* src/kekulize.cpp: Add deeper recursion for aromaticity/kekule
	determination. Solves a number of semi-rare molecules with 6+
	fused 6-membered rings.

	* test/files/forcefield.sdf: Fix Esomeprazole molecule -- not
	protonated. This caused an impossible aromatization issue.

	* test/files/*results.txt: Regenerate forcefield results.

2010-08-22 Noel O'Boyle

	* scripts/CMakeLists.txt: Should have been using STREQUAL
	not EQUAL when comparing strings. The Ruby bindings (among
	others) were not being installed to the correct location.

2010-08-22 Chris Morley

	It's a bit late for new features but the value of this one
	shows up when writing command-line documentation.
	* include/openbabel/obconversion.h, src/obconversion.cpp
	(FullConvert,OpenAndSetFormat):	When file name starts with -:
	it is treated as SMILES and put in a stringstream rather being
	used to open a ifstream.

	* tools/obabel.cpp: pass through files starting with "-:", e.g.
	    obabel -:CN2C(=O)N(C)C(=O)C1=C2N=CN1C -ocan
	Multiple use also possible. Not enabled in babel, but could be.

	* src/obconversion.cpp: Comment out line end buffer deletion,
	so cml conversion works but still have memory leak.

2010-08-19 Noel O'Boyle

	* scripts/CMakeLists.txt: Get rid of return() statements by
	reorganising logic. The way it was, if there was a problem
	with the Python bindings, it would never make it to the
	Java bindings, etc.

	Now each set of bindings has two 'if' statements: the first
	decides whether or not to try to compile the bindings; the second
	actually does it (running SWIG if requested beforehand).

2010-08-19 Chris Morley

	* windows-vc2008/Distribution/NSISScriptToCreateInstaller.nsi:
	add the forgotten DLLs. Seems ok on XP but uninstall leaves some
	folders in Windows 7.

2010-08-18 Chris Morley

	* src/formats/fastsearchformat.cpp: make work with deprecated -S option
	(-s is now an op and op names are case insensitive).
    
	* tools/obabel.cpp: catch error when output specification missing
	Remove messageSummary, which is really needed only when debugging.
	Still in babel.
	 
    * src/formats/svgformat.cpp: small description change

2010-08-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/xyzformat.cpp (OpenBabel): Add parsing of 5th column
	as partial charge -- supported by Jmol and others.

2010-08-18 Tim Vandermeersch

	* include/openbabel/isomorphism.h, src/isomorphism.cpp: Use VF2
	algortihm for finding isomorphisms and set this as default algorithm.
	The class performes good enough for general purpose now and is
	comparable in speed with the current smarts matching algortihm.

	* include/openbabel/query.h, src/query.cpp: Make sure aromaticity is
	handled correctly.

	* test/automorphismtest.cpp, test/isomorphismtest.cpp: Add some more
	tests.

2010-08-16 Chris Morley

	* include/openbabel/math/vector3.h,src/math/vector3.cpp: add new
	function, Point2Line()

	* windows-vc2008/Distribution/NSISScriptToCreateInstaller.nsi: mods
	to make help file local, add java bindings. Version 2.3.0rc

	* doc/OpenBabelGUI.html, windows-vc2008/Distribution/ToolsPrograms.txt,
      src/ops/xout.cpp,src/ops/partialcharges.cpp: documentation updates

2010-08-16 Noel O'Boyle

	* include/openbabel/math/vector3.h: The components of a vector3 were
	unaccessible from Python, so I've added GetX(), GetY() and GetZ(). The
	exisintg x() method returns a reference to _vx (i.e. a pointer) and so
	couldn't be used from Python.

2010-08-13 Chris Morley

	* tools/obabel.cpp: by its design obabel cannot use multiple
	concatenated single-character options. Ensure single ones with
	an unregistered number of parameters work correctly.

	* src/formats/fastsearchformat.cpp: extra error handling

2010-08-13 Chris Morley

	* src/formats/inchiformat.cpp(ReadMolecule):Use GetStructFromINCHI
	and not GetStructFromStdINCHI so can read both standard and
	non-standard InChIs. Make error handling more robust.

2010-08-13 Noel O'Boyle

	* src/mol.cpp: HasHydrogens() never returned True as the flag was
	being cleared in AddHydrogens(). Reported by Alex Henderson on
	openbabel-devel. Now fixed.

2010-08-13 Noel O'Boyle

	* src/forcefield.cpp: Fixed a problem with invalid pointers in
	WeightedRotorSearch that was resulting in weird geometries. I think I
	introduced this problem back in May. Also noticed that the final
	conformer returned had an off-by-one error. I think I also introduced
	this problem at the same time.

2010-08-12 Chris Morley

	* src/ops/opisomorph.cpp: make more robust to errors like a missing
	file.

	* src/descriptor.cpp: allow descripor parameters to be in quotes.

	* src/formats/mdlformat.cpp: change the new -at option to -aT
	because	FastSearchFormat already uses -at.

	* src/ops/xout.cpp, src/GUI/OBGUI.cpp: change the name of the op
	xout to 0xout so that it is executed before other ops.

	* src/GUI/optswx.cpp(SetOptions): ignore entries with both
	checkbox and editboxes unless checked.

2010-08-12 Noel O'Boyle

	* src/stereo/perception.cpp: CisTransFrom3D was not able to handle
	deviations from ideal angles. Replaced existing method with one based
	on the signed distance to the plane through the double bond at right
	angles to the stereo unit.

	* src/math/vector3.cpp, vector3.h: Move body of Point2Plane into new
	function Point2PlaneSigned. Point2Plane now just returns
	fabs(Point2PlaneSigned).

2010-08-09 Chris Morley

	* src/formats/gaussformat.cpp:Comment out inconsistent use of
	OBMol::SetEnergy(double).

	The use of this needs to be agreed.

2010-08-10 Tim Vandermeersch

	* include/openbabel/rotor.h, src/rotor.cpp: Add method to fix bonds
	and mark fix atoms as deprecated. Update documentation.

	* include/openbabel/conformersearch.h, src/conformersearch.cpp: Use
	OBAlign with symmetry and update documentation.

	* test/rotortest.cpp: Some OBRotor and OBRotorList unit tests.

2010-08-10  Noel O'Boyle

	* src/builder.cpp, include/openbabel/builder.h: Add a Set/Unset method
	for keeprings. This allows the user to keep the ring conformation from
	the input molecule (this only makes sense if it's a 3D structure to
	begin with).

2010-08-09 Chris Morley

	* src/mcdlutil.cpp: fix to bug #3041650 (2D coordinates with
	disconnected molecules), provided by Sergei Trepalin.

2010-08-09  Noel O'Boyle

	* test/aligntest.cpp: Enable all parts of the alignment test
	* src/math/align.cpp, include/openbabel/math/align.h: Use Tim's work
	on masked isomorphisms. Small speedups in caching and matrix code.

	All of the alignment tests now pass and do so quickly.

2010-08-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/CMakeLists.txt: Patch from Wayne Volkmuth to fix use of
	PYTHON_PREFIX PR#3038634.

	* scripts/openbabel-csharp.i: Fixed moduleclass error broken with
	upgrade to SWIG 2.0.0.

	* src/formats/moldenformat.cpp: Add "molf" extension found with
	some example files.

2010-08-03 Chris Morley

	* src/ops/opisomorph.cpp:-s replacement. Is used instead of
	original in transform.cpp. Takes a SMARTS string as before,
	but also a molecule file when the matching is done by Tim's
	new isomorphism code which is less restrictive, e.g. bug#3029478
	Also will color the substructure, mainly for svgformat.

	* src/CMakeLists.txt: add the above file

	* src/formats/fastsearchformat.cpp: rearraged to use the new -s
	as the main target specification.

2010-08-03  Noel O'Boyle

	* include/openbabel/generic.h: Don't clone OBRingData when copying a
	molecule. If you do, you'll end up with two RingDatas because one will
	already exist due to Kekulize() in EndModify() in operator= in OBMol.
	Having more than one RingData causes problems as one can become
	invalid.

2010-08-02 Chris Morley

	* include/openbabel/obmolecformat.h,src/obmolecformat.cpp
	(WriteChemObjectImpl) move the option implementation to a
	separate function so that it can be used externally...

	* src/formats/svgformat.cpp: ...like here.

2010-08-02 Chris Morley

	* src/descriptors/filters.cpp: add new formula descriptor

	* src/transform.cpp: remove --addformula, use --append formula
	  Make -s option do nothing if parameter is empty.

	* src/obmolecformat.cpp: add --addindex

	* src/parsmart.cpp:add onceOnly to SMARTS error

2010-08-02 Chris Morley

	* include/openbabel/obconversion.h,include/openbabel/op.h,
	include/openbabel/plugin.h,src/plugin.cpp,src/obconversion.cpp:
	added some extra documentation on the OBPlugin concept and options
	as suggested by Hans deWinter

	* doc/examples/obfingerprint_getfingerprint.cpp: added an
	example file

	I haven't got doxygen working yet on my computer (do we really need
	latex?) so the formatting of the above may need attention.

2010-08-01 Chris Morley

	* data/svgformat.script: make zoom work with Chrome

	* src/formats/svgformat.cpp: Make using internal color data the
	default.
	Use "sans-serif" as the font. Improves appearance in Opera.

2010-07-30 Chris Morley

	* tools/obabel.cpp, tools/babel.cpp: allow e.g. '-L formats cml'
	in addition to '-L cml' to handle cases where the same name is used
	for two plugins of different types.

	* src/GUI/OBGUI.cpp: now menu always returns details of plugin of
	the correct type.

2010-07-30  Noel O'Boyle

	* CMakeLists.txt, src/CMakeLists.txt: Add test for libdl. Now compiles
	under FreeBSD (and hopefully the others too). Thanks to Florian Nigsch
	for a build machine.

2010-07-30  Noel O'Boyle

	* scripts/openbabel-python.i: Revert of r3914 (presumably it was a
	mistake to include this file in the commit)

2010-07-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Add detection for single-character
	"bracket" elements, e.g., [n] for a fall-back. Fixes one failure
	from sdfcansmi unit test.

	* include/openbabel/chargemodel.h: Improved documentation, added
	method to retrieve dipole moment (with scaling).

	* src/charges/*: Add scaling factors calculated from regression
	across NCI, Zinc, and other subsets (~1000 molecules).

2010-07-29  Noel O'Boyle

	* include/openbabel/rotor.h: Fix memory leak in AddRotor

2010-07-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/sdfcansmitest.cpp: Added new unit test suggested by TJ
	O'Donnell to check for canonical SMILES consistency from a
	SDFile. Currently shows 4 / 48 failures.

2010-07-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/CMakeLists.txt: Only link getopt.c if needed. Removes
	warnings from Clang and GCC about strlen on non-glibc platforms
	(e.g. Mac).

	* scripts/openbabel-python.i: Add chargemodel to Python bindings.

	* src/mol.cpp (AddHydrogens): Fix crashes exposed by
	buildertest. Make sure to clear flags even if we don't
	actually add hydrogens.

	* test/buildertest.cpp: Add asserts to ensure perception flags are cleared.

2010-07-26  Noel O'Boyle

	* CMakeLists.txt, src/formats/CMakeLists.txt: Conditionally compile
	gamessukformat.cpp only if MSVC or has regex.h. (Fix for MinGW
	compilation)

2010-07-26  Noel O'Boyle

	* scripts/CMakeLists.txt, openbabel-python.i: Pass -DHAVE_EIGEN2 to swig
	and conditionally generate bindings for conformersearch.h.

2010-07-22 Chris Morley

	* src/formats/mdlformat.cpp: right align atom numbers in A line, as
	prompted by Igor Filippov.

	* include/openbabel/tokenst.h: add functor to help withr deleting
	containers of pointers.

2010-07-21  Noel O'Boyle

	* include/openbabel/math/align.h: Add Doxygen docs. Update the default
	constructor.
	* src/math/align.cpp: Update the default constructor.

2010-07-21  Noel O'Boyle

	* src/formats/povrayformat.cpp: POV-ray format has been neglected for
	a long time. Based on Steven Wathen's comments on openbabel-discuss
	(28/11/2009), I have gotten it to work. I also added options for
	checkerboard, a mirror sphere and sky.

2010-07-21  Noel O'Boyle

	* src/CMakeLists.txt: Only compile ops/conformer.cpp and
	src/conformersearch.cpp if Eigen2 is found

2010-07-19 Chris Morley

	* src/formats/inchiformat.cpp: make suitable for InChI 1.03.
	Allow InChI options and re-enable -M and -F options for non-
	standard InChI.

	* include/openbabel/inchiformat.h: improve Description()

	* windows-vc2008/libs/i386/libinchi.dll, libinchi.lib: add
	* windows-vc2008/libs/i386/libstdinchi.dll, libstdinchi.lib: remove
	
	* windows-vc2008/default_build.bat: change from libstdinchi.lib
	 to libinchi

	* src/GUI/OBGUI.cpp,src/GUI/OBGUI.h: add menu item to shrink
	window to minimum useful size.

2010-07-19 Chris Morley

	* include/openbabel/plugin.h: reverted the last change. Something
	seems to have gone wrong with the deobfuscation of the	MAKE_PLUGIN
	macro and was causing a crash in the GUI when formats were changed.
	I did not find out the precise cause, but it seemed to be around the
	default op. The difficulty of debugging	this illustrates that using a
	macro here is is not nice; we could do with a more C++ way of making
	a plugin. Tim has suggested a possible approach
	http://openbabel.org/wiki/Plugins
	
	There is already an annotated version of the contents of the macro
	at the end of the op.h, but it might not be up to date. 
	
2010-07-16 Konstantin Tokarev
	* New INSTALL file

	* include/openbabel/plugin.h: Deobfuscated MAKE_PLUGIN macro

	* src/formats/xml/cmlformat.cpp: Save and load bond labels in 
	CML format

2010-07-13 Chris Morley

	Alternative method for read-conformers which maintains
	code segregation (no chemistry in OBConversion)
	
	* src/ops/readconformers.cpp: new OBOp to combine multiple conformers
	into a single molecule.
	
	* src/obconversion.cpp,src/transform.cpp:comment out read-conformers
	code; minor doc mods
	
	* src/obmolecformat.cpp: Change option name from "write-conformers"
	to "writeconformers". The - was causing parsing problems in the GUI.
	
	* src/ops/deferred.h,src/ops/sort.cpp: put DeferredFormat in
	a new file.
	

2010-07-13 Chris Morley

	* include/openbabel/op.h(OpOptions): ignore ops with
	"not displayed in GUI" in the first line of their Descriptions()
	 
	* src/ops/conformer.cpp,src/ops/forcefield.cpp,tools/obgrep.cpp:
	Add "not displayed in GUI" to some ops which use multiple extra options
	that the GUI cannot yet display.
	
	* tools/obgrep.cpp: fix so compiles in MSVC

2010-07-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/buildertest.cpp, src/mol.cpp: Clear flags for SSSR and
	Aromaticity after adding hydrogens, as detected by the builder
	test. Don't clear these flags in the test anymore.

	* test/automorphismtest.cpp, test/aligntest.cpp: Find formats
	correctly on UNIX.

	* include/openbabel/mol.h: Return FindChiralCenters() to use new
	IsChiral().

	* scripts/CMakeLists.cpp: Require SWIG 2.0.0.

	* src/chiral.cpp: Remove FindChiralCenters().

2010-07-12  Tim Vandermeersch

	* Add OBConformerSearch class

	* Add OBIsomorphismMapper and OBQuery

	* Add --write-conformers option to (o)babel

	* Add OpConformer to do conformer searching with (o)babel

	* Add OpEnergy and OpMinimize

	* Many documentation updates + add examples code (see cmake BUILD_EXAMPLES)

2010-07-10 Chris Morley

	* include/openbabel/math/erf.h: local implementation of erf, because
	not present in MSVC library.

	* src/charges/qtpie.cpp, src/charges/qeq.cpp: use the above for MSVC
	builds only, instead of boost.

	* CMakeLists.txt: remove MSVC test for boost, which is not used

	* windows-vc2008/default_build.bat: Remove absolute path for cmake;
	it has to be in PATH now.
	Add option for eigen. Eigen directory has to be in a env var.

2010-07-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/buildertest.cpp: Test for Noel's builder/ring.cpp
	crash. Currently passes on Mac because of clearing flags. See code
	comments for details.

2010-07-08  Chris Morley

	* src/ops/sort.cpp(Do): replace stringstream by istringstream.
	A reference to stringstream is apparently not a reference to istream
	in g++, although is is in MSVC.

2010-07-07  Chris Morley

	* include/openbabel/descriptor.h, src/descriptor.cpp:
	Allow descriptors to have a parameter. External code which
	defines new descriptors will need modifying (an extra parameter
	on three functions. External code which just uses descriptors
	is compatible.

	* include/openbabel/groupcontrib.h,src/descriptors/groupcontrib.cpp,
	src/descriptors/cansmidescriptor.cpp,src/descriptors/inchidescriptor.cpp,
	src/descriptors/smartsdescriptors.cpp:	make compatible.

 	* src/ops/sort.cpp: mods so that a parameter will be recognised

	* src/descriptors/filters.cpp: make compatible and add a useless example
	(commented out) which uses a parameter.

2010-07-07  Noel O'Boyle

	* windows-vc2008/include/*, windows-vc2008/libs/i386/*: Add include
	files and compiled libraries from bsd-xdr (required for xtcformat.cpp
	under MSVC). BSD license.
	* src/formats/CMakeLists.txt: Use the xdr library when compiling with
	MSVC
	* windows-vc2008/default_build.bat: Set the location of the xdr
	library
	* CMakeLists.txt: Ensure that the cmake configure finds the xdr
	include files under MSVC
	* src/formats/xtcformat.cpp: Rename 'small' to 'small_' as small is a
	typedef for 'char' under MSVC (or something like this)

2010-07-07  Noel O'Boyle

	* CMakeLists.txt, src/formats/xtcformat.cpp,
	src/formats/CMakeLists.txt: Check for rpc/xdr.h and conditionally
	compile xtcformat.cpp. (In preparation for MSVC support...)

2010-07-06  Noel O'Boyle

	* src/formats/gamessukformat.cpp, CMakeLists.txt: Enable GAMESS-UK
	format under MSVC (uses std::tr1::regex instead of regex.h)

2010-07-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/inchi103, src/formats/inchi103: Import final InChI 1.03
	release.

2010-07-06  Noel O'Boyle

	* include/openbabel/forcefield.h: Fix memory leak identified by VLD

2010-07-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp: Revert changes and parse
	extra parameters for now.

	* doc/Doxyfile: Renamed from Doxyfile.in (not generated by
	autoconf anymore). Generate ob.tag file for projects generating
	doxygen documentation with Open Babel symbols (e.g., Avogadro).

	* src/oberror.cpp: Fix from Seth Alves to initialize stream
	buffers (from Valgrind).

2010-07-05  Konstantin Tokarev <annulen@yandex.ru>

	* THANKS, authors.txt: Added myself to contributors

2010-07-04  Noel O'Boyle

	* src/formats/*format.cpp: Added text from wiki formats [F-Z] to their
	Descriptions in the .cpp file.

2010-07-03  Chris Morley

	* src/GUI/optswx.cpp: can use "not displayed in GUI" in option
	list in Description()

	* include/openbabel/depict/painter.h add operator += for OBColor

	* include/openbabel/depict/depict.h,svgpainter.h,
	  src/depict/depict.cpp, src/depict/svgpainter.cpp: add option
	  for internalColor on atoms and bonds (by OBPairData)

	* src/formats/svgformat.cpp:add option to display internalColor
	Remove "Additional Option" in Description

	* src/formats/xml/cmlformat.cpp: read and write color on bonds

	* src/ops/substructdata.cpp:add new op --ss which is like -s but
	colors the substructure

2010-07-02  Noel O'Boyle

	* include/openbabel/base.h: Add OBAPI declaration to new global
	function OBReleaseVersion()

2010-07-01  Noel O'Boyle

	* src/formats/*format.cpp: Added text from wiki formats [A-F] to their
	Descriptions in the .cpp file. I added some markup to CML and
	Fastsearch.

2010-07-01  Konstantin Tokarev <annulen@yandex.ru>

	* src/confi.h.cmake: Added macros OB_VERSION_CHECK and OB_VERSION

2010-06-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp: Set fixed atom constraints on rotor rules
	during rotamer/conformer searching, from Chris Wassman.

	* include/openbabel/base.h, src/base.cpp: Add OBReleaseVersion()
	global function, as suggested by Tobias Schmidt for code detection
	of versions and features. (Most useful from scripting interfaces,
	which won't have BABEL_VERSION as a macro.)

2010-06-29 Chris Morley

	* tools/babel.cpp, tools/obabel.cpp: -H no longer lists all formats
	  (As suggested by Noel)

	* include/openbabel/plugin.h: correct small error causing warning

	* src/format.cpp, src/plugin.cpp: small formatting changes in List
	output.

2010-06-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/charges/qeq* src/charges/qtpie* data/qeq.txt: Move QEq and
	QTPIE parameters to the data file. Parameters are possibly suspect
	for non-standard elements.  Jiahao Chen will send revised versions later.

	* data/UFF.prm: Remove QEq parameters -- not used by UFF.

2010-06-29 Noel O'Boyle

	* CMakeLists.txt: Avoid warnings with MinGW when compiling the exes

2010-06-29 Noel O'Boyle

	* src/formats/*format.cpp, src/formats/xml/*format.cpp: Edit some
	Descriptions() to replace Input with Read and Output with Write. Also
	uppercased any "options" to "Options".

2010-06-29 Noel O'Boyle

	* src/formats/xml/cmlformat.cpp: Partial fix for chiral N problems.
	See PR#3022295.

2010-0628 Chris Morley

	* include/openbabel/depict/depict.h, src/depict/depict.cpp:
	Use a bitset for options like drawTerminalC, so that extendable
	while binary compatible. Add a few more options display options.

	* src/formats/svgformat.cpp: add a few more display options.
	Augment Description() as a possible prototype for Noel's more
	formatted documentation.

2010-0628 Chris Morley

	* src/GUI/optswx.cpp: when using Description() strings to construct
	GUI option checkboxes, ignore lines with 4 or more leading spaces
	within each option list. Allows better formatted documentation, as
	proposed by Noel.

	* src/formats/*format.cpp: remove remaining continuation characters
	in Description()s and replace by concatinated ""..." ""..."

2010-06-24 Chris Morley

	* src/formats/mdlformat.cpp:Prevent unnecessary error message with
	blank line at end of SDF file.

2010-06-23  Noel O'Boyle

	* src/kekulize.cpp, include/openbabel/mol.h: Fix compilation errors
	with MSVC (and replace some Tabs with whitespace)

2010-06-23  Tim Vandermeersch

        * src/ring.cpp: LSSR selection seems to work now. It is based on
        lemma 1 from the Vismara paper. (See source for complete reference)

        * src/obiter.cpp, src/ring.cpp: Ring sets should no longer be
        acquired using OBMol::GetData(OBGenericDataType::RingData). Ring
        sets now have the correct "SSSR"/"LSSR" attribute set.

        * src/kekulize.cpp: Use LSSR.

        * test/lssrtest.cpp: Add tests for LSSR composition. All unit tests
        pass except for smarts (was broken before) and py_kekulize. I'm not
        sure why the last test fails but the stored results might need updating?

2010-06-22  Tim Vandermeersch

        * include/openbabel/mol.h, src/mol.cpp: Add LSSR, add aromaticity
        changes from Craig.

        * src/ring.cpp: Add LSSR (FindLSSR, GetLSSR, ...)

        * src/kekulize.cpp: Changes to aromaticity from Craig James. Still
        uses SSSR.

        * test/CMakeLists.txt, test/lssrtest.cpp: Add unit test for LSSR. 
        The test reorders the atoms and checks if the same rings are found.
        Currently used aromatics.smi, attype.00.smi and nci.smi. All 1327
        test cases pass. (old ring & aromatics test still pass. py_kelule
        test fails though.)

2010-06-21  Noel O'Boyle

	* src/builder.cpp: Fix bug when correcting tet stereo where there is
	an Implicit H

2010-06-20  Noel O'Boyle

	* src/formats/pdbformat.cpp: the_res not NULL-terminated. Resulted in
	junk output after residue name in PDB files.

2010-06-20  Noel O'Boyle

	* src/formats/mol2format.cpp: Removed obsolete code that was causing
	performance problems on large files (e.g. proteins). Fixes
	bug #3018188

2010-06-19  Chris Morley

	* src/formats/mdlformat.cpp: Added warning message when reading
	misformed files with too many atoms or bonds. Bug #2971865

2010-06-18  Noel O'Boyle

	* doc/Doxyfile.in: Update to Doxygen 1.7.0 and turn SEARCHENGINE on.
	* doc/api-style.css (removed), doc/api-header.html: Old style file
	removed as out-of-date with respect to
	Doxygen 1.7.0 (instead, the automatically generated doxygen.css is used)

2010-06-17  Noel O'Boyle

	* src/stereo/perception.cpp: Fix to previous commit for Linux.

2010-06-17  Noel O'Boyle

	* src/mol.cpp(DeleteHydrogen), src/stereo/perception.cpp,
	include/openbabel/stereo/stereo.h: If a hydrogen is deleted, it is now
	converted to an ImplicitRef in any stereo objects that reference it.

2010-06-14  Chris Morley
	
	* data/atomtyp.txt: add IMPVAL for triply bonded O+ (for carbon
	monoxide). 
	
	* src/formats/xml/cmlformat.cpp(ReadMolecule): leave processing
	of hydrogenCount attributes until the structure is complete, so
	that explict H can count towards them. Also now handles 
	hydrogenCount=0. Fixes bug #3014855 (Daniel Lowe).
	
	Change specification URI. Clarify implicit H behaviour in description.
	
	* src/obconversion.cpp: temporarily reintroduce the lineend
	memory leak. It was crashing with CML input, which doesn't
	even use the line end buffer!

2010-06-14  Noel O'Boyle

	* src/graphsym.cpp: Fix my fix to memory leak (get rid of 'new')

2010-06-14  Noel O'Boyle

	* Add target "make docs" to make the Doyxgen docs: $ROOT/doc/Doxyfile.in
	is converted to $ROOT/Doxyfile by substituting the $BABEL_VERSION and
	the PATH to Dot.

2010-06-13  Noel O'Boyle

	* src/formats/pdbformat.cpp: Applying Richard Hall's patch to fix
	handling of CONECT records where bond order was split over two lines.
	This can occur, for example, with the sulfur in RS(=O)(=O)R'.

2010-06-13  Noel O'Boyle

	* src/obconversion.cpp: Applying Tim's patch to fix memory leak

2010-06-13  Jean Brefort  <jean.brefort@normalesup.org>

	* src/math/spacegroup.cpp: make import more flexible.

2010-06-11  Noel O'Boyle

	* windows-vc2008/*default_build.bat: Add quotation marks around %CD%
	to handle case where path to current directory contains a space.

2010-06-11  Noel O'Boyle

	* src/graphsym.cpp: Fix memory leak (use of 'new' without
	corresponding 'delete')

2010-06-11  Chris Morley

	* src/descriptor.cpp(ParsePredicate): Before doing a numeric comparison,
	ensure the the filter string contains a number only. Fixes #3014398
	
	* src/formats/mdlformat.cpp: Added an option to read only the title
	and change the format to produce molecules with zero atoms.
	Useful for fast selection by title from a sd file(UNIX line endings only):
	  babel all-sdf.sdf -ocopy out.sdf --filter "title=1str*" -at
	  
	* src/GUI/OBGUI.cpp: In open and save file dialogs add gz compressed
	files to filter	string. So, as well as *.sdf, *.sdf.gz files are shown. 

2010-06-07  Noel O'Boyle

	* scripts/CMakeLists.txt, scripts/openbabel-csharp.i,
	windows-vc2008/Distribution/*obdotnet*: Enable the CSharp bindings to
	be compiled (at least on windows so far).

2010-06-07  Noel O'Boyle

	* scripts/CMakeLists.txt, scripts/perl/Makefile.PL: Now perl bindings
	seem to 'make install' correctly.

2010-06-06  Noel O'Boyle

	* scripts/CMakeLists.txt, scripts/perl/Makefile.PL: Now perl bindings seem to 'make' correctly.

2010-06-06  Noel O'Boyle

	* scripts/CMakeLists.txt, scripts/openbabel-ruby.i, scripts/ruby/extconf.rb: Ruby binding support.

2010-06-06  Noel O'Boyle

	* scripts/CMakeLists.txt: Perl binding support on Linux. Needs more
	work on the Makefile.PL side.

2010-06-04  Chris Morley

	* src/obconversion.cpp(~OBConversion): corrected memory leak caused by
	line end buffer as suggested by runz. Fixes half of bug #2992369.

2010-06-03  Noel O'Boyle

	* Set svn:eol-style to native for all text files.

2010-06-02  Noel O'Boyle

	* scripts/CMakeLists.txt: Perl bindings re-enabled. Still can't get to
	work for MSVC+ActiveState Perl though.

2010-05-26  Noel O'Boyle

	* Lots of files: 'Fix' warnings with 64-bit Windows relating to size_t
	and unsigned ints. I either:
	(a) changed unsigned int to size_t where the function was GetSize() or
	Size() or something
	or...in every other case...
	(b) static_cast<unsigned int> the size_t value (for example, no-one
	expects NumResidues() to be size_t, or GetValence())

2010-05-26  Noel O'Boyle

	* src/formats/CMakeLists.txt: Require -DINCHI_LIBRARY for MSVC builds.
	This allows the x64 or i386 inchi .lib to be selected depending on the
	build platform.
	* windows-vc2008/default_build.bat, x64_default_build.bat:
	Corresponding changes to the build batch files.

2010-05-26  Chris Morley

	* src/GUI/OBGUI.cpp: minor change to remove compiler warning

2010-05-24  Noel O'Boyle

	* test/testsym.py: Change CML roundtrip test to use temporary file to
	avoid problems on Linux (bug submitted). I notice that a new problem
	has arisen, which I need to sort out.

2010-05-24  Noel O'Boyle

	* src/dlhandler_unix.cpp: Added code for MinGW. Now can find formats,
	even when run from build tree (set BABEL_LIBDIR).
	* src/dlhandler_win32.cpp: Removed code for Cygwin and MinGW, and a
	commented out section
	* src/formats/CMakeLists.txt: Removed XML formats from MINIMAL_BUILD

2010-05-23  Marcus D. Hanwell <marcus@cryos.org>

	* CMakeLists.txt, OpenBabel2Config.cmake.in, src/CMakeLists.txt,
	src/formats/inchi103/CMakeLists.txt: Make and configure a config file
	suitable for installation too.

	* include/openbabel/reaction.h: Fixed a compilation failure I
	was hitting with GCC 4.5, std::tr1::shared_ptr was not found.

	* CMakeLists.txt, include/CMakeLists.txt, src/CMakeLists.txt,
	src/formats/CMakeLists.txt, src/formats/inchi103/CMakeLists.txt,
	OpenBabel2Config.cmake.in, OpenBabel2ConfigVersion.cmake.in:
	Refactored some parts of the build system, added my first pass
	at an OpenBabel2Config file and friends. This currently supports
	building against a build treee, installation tree logic later.


2010-05-22  Noel O'Boyle

	* CMakeLists.txt, src/CMakeLists.txt: Re-enable support for Cygwin. I
	just needed to change Cygwin to use dlhandler_unix.cpp instead of
	dlhandler_win32.cpp. (Note to self: need to sort out Mingw now, and
	then remove Cygwin specific code from dlhandler_win32.cpp)

2010-05-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* CMakeLists.txt, src/formats/CMakeLists.txt: Fix support for
	formats using shared pointers and GCC-4.x without boost.

	* include/openbabel/mol.h, src/mol.cpp: Add revised RenumberAtoms
	method which uses integer atom indexes for use in scripting
	bindings.

2010-05-18  Konstantin Tokarev  <annulen@yandex.ru>

    * src/formats/xml/cmlformat.cpp: Add support for reading and writing
    of custom labels, colors, and radii of atoms

2010-05-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mol2format.cpp: Add support for reading charge model
	descriptors from mol2 files. Should now allow round-tripping
	between mol2 -> mol2.

2010-05-12  Noel O'Boyle

	* src/charges/qtpie.cpp, qeq.cpp: Replace isnan with IsNan for
	cross-platform (i.e. MSVC) compatability. Still won't compile on
	Windows as is missing "erf" function (there is an implementation in
	boost which can probably be used).

2010-05-12  Noel O'Boyle

	* src/forcefield.cpp: Change WeightedRotorSearch to behave more like
	SystematicRotorSearch in that it now clears existing conformers,
	and stores conformers and energies found during the search.

2010-05-11  Noel O'Boyle

	* scripts/CMakeLists.txt, openbabel-java.i, openbabel-python.i: Bring
	the Java bindings back to life. Bring the python and java SWIG
	interface files into synch.

2010-05-11  Noel O'Boyle

	* windows-vc2008/libs, x64_default_build.bat: Adding libraries and
	cmake bat for x64 build. Move i386 libraries to libs/i386 to keep
	things symmetrical.
	* src/formats/CMakeLists.txt: Update for new location of libstdinchi.

2010-05-10  Chris Morley

	* src/formats/svgformat.cpp: draw terminal C atoms explicitly by default.

	* src/formats/xml/cmlformat.cpp: hack to allow CML in molpro output to
	  be read.
	  No implict H or spinmultiplicity assignment if any bonds have zero
	  order.
	
2010-05-09  Noel O'Boyle

	* CMakeLists.txt, scripts/CMakeLists.txt: The final step in getting the
	Python bindings ready for release - separating the running of SWIG from
	the compiling of the bindings. -DRUN_SWIG and -DPYTHON_BINDINGS are the
	relevant variables. If you try to compile the bindings and they are not
	present, the warning message recommends you use -DRUN_SWIG.

2010-05-07  Chris Morley

	* src/transform.cpp: Add option suggested by Noel:
	-r Remove all but the largest contiguous fragment
	(StripSalts)
	
2010-05-07  Noel O'Boyle

	* src/builder.cpp: Treat 2D structures like 0D structures.

2010-05-07  Noel O'Boyle

	* src/mol.cpp, include/openbabel/mol.h: Change OBMol::StripSalts() to
	remove all but the largest fragment if threshold is 0. Updated the
	docs.

2010-05-06  Noel O'Boyle

	* scripts/CMakeLists.txt: Place the SWIG-generated files in the
	source directory (TODO: Require -DRUN_SWIG for developers). Correct
	EQUAL to STREQUAL. Remove unnecessary soft link.

2010-05-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/tokenst.h: Add missing <sstream> header.

2010-05-06  Chris Morley

	* include/openbabel/tokenst.h: Add utility function toString()
	
	* src/formats/xml/xml.cpp: Use new reader when the input file
	changes, rather than resuing the old one. Was not working with
	input files with <?xml?> elements.
	
	* delete windows-vc2005 and windowsOBF which did not use CMake.
	  
2010-05-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.cpp: Add check for empty isotope rows (PR#2996661).

	* data/isotope.txt: Add some default isotopes for heavy elements
	up to element 118. Will need updates after next atomic mass
	evaluation.

2010-05-04  Jean Brefort  <jean.brefort@normalesup.org>

	* data/space-groups.txt: updated after group 205 Hall name fix.
	* src/math/scpaegroup.cpp: fixed group search for duplicate Hall names (grroups 3 and 68).

2010-04-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/ops/partialcharges.cpp: Add operation to calculate partial
	charges using any charge method, e.g., --partialcharge qeq.

	* src/CMakeLists.txt: Add it.

2010-04-26  Noel O'Boyle

	* test/CMakeLists.txt, test/testbindings.py, test/test_pybel.py:
	Separate the pybel tests from the Python binding tests
	* scripts/python/examples/testpybel.py: Get the Pybel tests to pass on
	Linux
	* scripts/CMakeLists.txt: Force the Python build to output to
	scripts/pybuild. Otherwise it created a temporary folder whose name
	differed from platform to platform (e.g. lib.linux-x86_64.2.6) which
	made it difficult to handle automatically.

2010-04-25  Noel O'Boyle

	* test\CMakeLists.txt, test\testbindings.py, test\testexample.py:
	Enable the use of the Python bindings for testing. Run the Pybel
	tests. Add a simple example test as a template.
	* scripts\python\examples\testpybel.py: Get the Pybel tests to pass

2010-04-22  Noel O'Boyle

	* src/GUI/OBGUI.cpp: Fixes for Unicode build. Now have SVG depiction
	on Linux also!

2010-04-20  Jiahao Chen <jiahao@mit.edu>

        * src/charges/mmff94.cpp, src/charges/gasteiger.cpp: Fixed leftover
	references to OBPartialCharge (now OBChargeModel)

2010-04-21  Noel O'Boyle

	* scripts/CMakeLists.txt: Edit variables to correspond to Konstantin's
	recent changes (something to do with a superpackage build..?)

2010-04-20  Jiahao Chen <jiahao@mit.edu>

        * src/charges/qeq.h, src/charges/qeq.cpp:
	Added implementation of QEq charge model (Rappe and Goddard, 1991)

        * src/charges/qtpie.h, src/charges/qtpie.cpp:
	Added implementation of QTPIE charge model (Chen and Martinez, 2007;
	2008)

        * src/atom.cpp: added comments to show how these new charge models can
	be called from within current OpenBabel code

        * CMakeLists.txt: added charge models and compile flags for Eigen2
	library (variables copied from Avogadro source tree)

	* cmake/modules/FindEigen2.cmake: CMake module to configure Eigen2
	(copied from Avogadro source tree)

2010-04-20  Noel O'Boyle

	* scripts/CMakeLists.txt: Handle local and global Python installs
	in a (to me) sensible way

2010-04-20  Chris Morley

	* src/ops/loader.cpp: parse of plugindefines.txt  to allow # as
	a comment and # in a SMARTS string to coexist.
	
	* data/plugindefines.txt: add some simple SmartsDescriptors.
	
2010-04-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/generic.h: Remove dangerous loop iterator
	after calling erase(), found by cppcheck.

	* include/openbabel/depict/painter.h: Add virtual destructor to
	remove warning.

	* src/formats/xtcformat.cpp: Remove minor memory leak found by
	cppcheck.

	* src/formats/fastsearchformat.cpp: Remove minor memory leak found
	by cppcheck.

	* src/ops/sort.cpp: Remove minor compile warning by GCC.

	* data/element.h, data/atomtyp.h: Regenerate. Need to add CMake
	targets for these.

2010-04-10  Chris Morley

	* CMakeLists.txt: ensure output compression not enabled for MSVC
	(as for previous build system).

	* src/CMakeLists.txt: remove ops.cpp (which had nothing useful left
	in it) and add xout.cpp. Add plugin_charges obf project for MSVC.
	
	* windows-vc2008/Distribution/NSISScriptToCreateInstaller.nsi:
	add doc folder; delete MS distributables installer when it has been
	run; add sdf.bat; add obdepict.bat and put on context menu;
	add firefox	to path so GUI and obdepict can use it.
	
	* src/GUI/OBGUI.cpp,src/GUI/OBGUI.h: add optional display of
	chemical structures in firefox (or other external program),
	using a new op xout.

	* windows-vc2008/Distribution/NSISScriptToCreateInstallerOBF.nsi
	deleted
	
2010-04-09  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/partialcharge.h, src/partialcharges.cpp,
	src/charges/: New plugin type to assign partial charges. First
	examples are MMFF94 and Gasteiger. Nothing new, but more to come.

2010-04-07  Chris Morley

	* src/formats/fingerprintformat.cpp: add option to output
	hexadecimal fingerprints only, as requested by Francesco Napolitano. 

2010-04-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/dlhandler_unix.cpp (findFiles): Don't split on tabs or
	spaces. These are legal characters for directories. (This causes
	problems with Mac users in particular.)

2010-04-04 Chris Morley

	* src/GUI/OBGUI.cpp,src/GUI/OBGUI.h: add a scrollbar on the options
	panel, so that the GUI can be used with wide, shallow windows (an
	unfortunate current fashion).

2010-04-01 Chris Morley

	* windows-vc2008: Add new Distribution folder and copy the external
	dlls and libs. Rewrite Windows installer for CMake VC2008 build.
	Uses more wild cards and so should be less prone to omissions.
	Folders windows-vc2005 and windowsOBF will be deleted, but have not
	been yet.	

2010-03-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (SetCoordinates): Fix bug in SetCoordinates -- copy
	from externally-supplied double* to _c. Renamed parameter to avoid
	this problem. Fixes PR#2975148. Thanks to Paul Mortenson.

2010-03-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/base.h: Fix "unused parameter" warnings for GCC.

2010-03-26 Chris Morley

	* src/obmolecformat.cpp: Make --separate work with multiple input
	  molecules. Fixes #2961144

2010-03-23 Chris Morley
	
	Segregate the molecules that failed inchiwrite so that there are
	no failures using Samples.txt but all fail with SamplesFail.txt.
	Similarly with SamplesTechManFail.txt. The majority of failures
	are stereochemistry.
	 
	* include/openbabel/alias.h, src/alias.cpp: reorganize the error
	messages in ExpandAlias. 

	* src/formats/mdlformat.cpp: changes in description so GUI displays
	options better.

2010-03-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/obmolecformat.h, src/ops/unique.cpp: Fix
	unordered_map compile problems on Mac. Even Apple's GCC-4.2 has
	strange errors. For now, use regular std::map with APPLE_GCC.

2010-03-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/gaussformat.cpp: Use ESP charges if available from
	the calculation. Fixes PR#2871242 as suggested by Tapani Kinnunen.

2010-03-18 Chris Morley

	* src/atom.cpp (GetImplicitValence): add [H] as a special case.
	Cannot use IMPVAL [H] 1 in atomtyp.txt because there is an infinite
	loop. Fixes #2972355.

	* src/ops/unique.cpp: using std::tr1::unordered_map; is needed for 
	Visual Studio build also.

2010-03-18  David Lonie  <loniedavid@gmail.com>

	* test/unitcell.cpp, test/files/unitcell.txt,
	test/files/unitcell_results.txt: Added coordinate transformations
	tests to unit cell tests.

2010-03-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp: Patch from Philipp Rumpf to
	fix 5-coordinate axial atom detection. Also fix PR#2971473 for
	planar SO3 molecules. Additional fixes to handle other hypervalent
	cases, including 7-coordinate pentagonal bipyramidal.

	* include/openbabel/atom.h: Explain new hybridization values
	(4 = sq. planar, 5 = trig. bipy, 6 = octahedral).

	* data/atomtype.txt: Add generic rules for hypervalent hybridizations.

	* src/atom.cpp (GetNewBondVector): Use OBBuilder as a
	replacement, to decrease duplicated code.

	* src/builder.cpp: Patch from Philipp to address hypervalent
	hybridizations. Also added code to assign random vectors for
	undefined cases -- this is better than using VZero, since at least
	atoms will have unique locations.

2010-03-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/ops/unique.cpp: Fix #ifdefs to compile on GCC 4.0
	(i.e. without Boost or unordered_map support).

	* src/formats/gaussformat.cpp: Patch from Louis Ricard to improve
	support of reading Gaussian coordinates from geometry
	optimizations, etc.

	* src/formats/hinformat.cpp: Patch from George Tu through SF
	tracker to ignore HIN comment lines. PR#2969340.

2010-03-13  Noel O'Boyle

	* scripts/CMakeLists.txt, scripts/python/setup.py: Compile the
	SWIG bindings manually.

2010-03-12  Noel O'Boyle

	* CMakeLists.txt: Require BOOST for compilation with GCC3.x. Don't
	check for or use BOOST otherwise.

2010-03-11  Noel O'Boyle

	* src/ops/unique.cpp: Enable compilation with the help of Boost on
	GCC 3.4. Note to self, don't compile if Boost not found.

2010-03-10  Matt Sprague  <mesprague@gmail.com>

	* src/formats/xml/xml.cpp: Add call to xmlInitParser() to support
	the use of xml formats in multithreaded environments.

2010-03-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mdlformat.cpp: Check atom symbols for isotopes like
	'D' or 'T'. Solves some inchiwrite failures.

	* src/alias.cpp: Downgrade errors over superatom.txt to warnings.

2010-03-06  Konstantin Tokarev

	* include/openbabel/obmolecformat.h: use tr1::unordered_map instead 
	of map when compiling with GCC 4.x

2010-03-06  Noel O'Boyle

	* src/formats/inchiformat.cpp, mdlformat.cpp: Moved warning about 0D
	from InChI to MDL where it should have been in the first place.

2010-03-05  Tim Vandermeersch

        * test/files/stereo/*: Add test structures from Razinger paper.

        * include/openbabel/graphsym.h, src/graphsym.cpp: Add parameter for 
        NOT taking stereochemistry into account.

        * test/graphsymtest.cpp: Use added files for unit testing (i.e. check 
        if the right number of symmetry classes are found). Also, the unit 
        test was using std::unique wrong (without sorting first), the two 
        failing test cases now pass. The is a new failing test though:
        test/files/stereo/razinger_fig7_1.mol All atoms get the same symmetry 
        class, it is a very simple structure though...

2010-03-05  Noel O'Boyle

	* CMakeLists.txt: Require GCC >=4.2 for visibility support

2010-03-04  Noel O'Boyle

	* test/files/testsym_2Dtests.sdf: Forgot to add test file

	* src/stereo/perception.cpp: In TetrahedralFrom3D, if a bond to the
	chiral center IsWedgeOrHash then make the stereo object unspecified.
	* src/builder.cpp: Fix logic when correcting cistrans stereo
	* test/testsym.py: The long-promised stereo tests that flushed out
	the two bugs above. Also, since it seems that each call to 'babel' is
	quite slow, I've bundled multiple SMILES into each call.
	* test/CMakeLists.txt: Simplified the logic surrounding the Python tests
	* test/testbabel.py: Added convenience function for finding test files

2010-03-04  Tim Vandermeersch

        * include/openbabel/stereo/stereo.h, src/stereo/facade.cpp: Add support
        for square-planar stereochemistry to OBStereoFacade.

        * src/formats/smilesformat.cpp: Add support for reading/writing 
        square-planar stereochemistry (@SP1, @SP2, @SP3).

        * test/smilestest.cpp: Add unit tests for smiles square-planar 
        reading/writing.

2010-03-03  David Lonie  <loniedavid@gmail.com>

	* src/generic.cpp, include/openbabel/generic.h:
	Changes to OBUnitCell to handle data more consistently. Note that
	this depreciates the use of GetOrthoMatrix and GetFractionalMatrix
	for conversions to/from fractional and cartesian
	coordinates. Simply multiplying by these matricies may no longer
	correctly convert coordinates since an orientation matrix has been
	introduced in order to handle cells that don't follow a standard
	alignment. Use

	vector3 OBUnitCell::FractionalToCartesian(vector3) and
	vector3 OBUnitCell::CartesianToFractional(vector3)

	instead. There are also two new convenience functions,

	vector3 OBUnitCell::WrapCartesianCoordinate(vector3) and
	vector3 OBUnitCell::WrapFractionalCoordinate(vector3)

	to move a set of coordinates into the unit cell.

2010-03-03  Noel O'Boyle

	* src/formats/mdlformat.cpp, src/stereo/perception.cpp, 
	include/openbabel/stereo/stereo.h, src/formats/inchiformat.cpp: More
	work on 2D stereo. Tests to follow.

2010-03-03  Tim Vandermeersch

        * include/openbabel/stereo/cistrans.h: Doc update.
        
        * include/openbabel/stereo/squareplanar.h: Update OBSquarePlanarStereo 
        class to work with Config struct like tetrahedral and cis/trans stereo
        objects.

        * src/stereo/squareplanar.cpp: implementation...

        * test/CMakeLists.txt: small changes to the way add_test is used to work 
        with CMake 2.6.

        * test/squareplanartest.cpp: Update the unit test for the OBSquarePlanar 
        class to use Config structs.

2010-03-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/CMakeLists.txt: Add back test for inchwrite and check
	failures on Python tests better.

2010-03-03  Tim Vandermeersch

        * include/openbabel/stereo/tetrahedral.h,
	src/stereo/tetrahedral.cpp: When comparing Config structs'
	stereochemistry, return true if either of the Config structs are
	unspecified (i.e. accidental). The smiles test was failing because
	it compared stereocenters that were unspecified. The documentation
	is also updated.

        * test/smilestest.cpp: Add the test case back. Now passes.

        * test/graphsymtest.cpp: There are still some cases were this test
	fails. However, it mainly has to do with N atoms becoming aromatic
	and getting an extra H atom. I'm not sure what's the best solution
	here...

2010-03-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/kekulize.cpp (expand_kekulize): Fix crashing bug -- looking
	for GetBond, not GetBondById -- the code iterates by bond indexes,
	not unique ids (which may have gaps, etc.). Fixes PR#2956135.

2010-03-01  Tim Vandermeersch

        * tests/smilestest.cpp: Remove the 2 failing test cases for now. I 
        believe they were the result from parsing +100000 molecules. I've added
        some more realistic examples. When I have time I'll try to find out why 
        the 2 cases are failing.

        * test/graphsymtest.cpp: In the process, I've added a unit test for 
        symmetry class assignment. It's very basic but there are some disabled,
        failing molecules there two. One of the failing molecules overlaps with
        the smilestest and ths might be the source of the problem, for that 
        molecule at least.

2010-03-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* CMakeLists.txt, src/CMakeLists.txt, src/formats/CMakeLists.txt:
	Updates to ensure ZLIB is not required PR#2947452.

	* test/testkekule.py: Added test for PR#1842055 with
	canonicalization and isotopes.

	* test/CMakeLists.txt: Added test smartsparse -- currently unused
	(failing) to track SMARTS parsing on valid patterns.

	* test/smartsparse.cpp, files/validsmarts.txt: Testing patterns
	from Daylight's webpages.

	* test/inchiwrite.cpp: Fixed to compile. Probably needs a python
	wrapper to call with appropriate arguments (e.g., inchi/Sample.sdf
	inchi/Sample.txt). Hint, Hint.

2010-03-02  Noel O'Boyle

	* src/formats/mdlformat.cpp: Obey MDL stereo guidelines as described
	by Greg Landrum on BO mailing list. Test cases to follow.

	* test/testsym.py: Added test for PR#2101034

	* test/CMakeLists.txt: Set required environment variables for
	"make test". Only works with CMake 2.8 though.
	* test/testbabel.py: Previous buffer fix didn't improve matters. Trying
	a second time.

	* src/formats/inchiformat.cpp: Add support for setting wedge/hash
	bonds for 2D data

	* src/perception.cpp: Unified code for the wedge and
	dash cases where there are two in-plane bonds.
	* src/formats/mdlformat.cpp: Improve support for writing of 2D.

2010-03-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/pdbformat.cpp: Fix for PR#2866659 from Fabian. Check
	for chain numbers when assigning sequence numbers.

	* src/data.cpp: Fix for PR#2889763 from Fabian -- make
	sure to check chain numbers as well -- or bond between chains!

	* src/typer.cpp: Fix for PR#2889708 -- another patch from Fabian
	to improve performance of SelectRootAtoms.

	* CMakeLists.txt: Don't use -fvisibility=hidden for
	Mac/gcc-4.2. This feature appears buggy.

2010-03-01  Tim Vandermeersch

        * src/stereo/perception.cpp: Add some more safety logic. (Fixes #2897750)

2010-03-01  Noel O'Boyle

	* src/perception.cpp: Fixed error for perception of stereo from 2D for
	3 in-plane bond + one wedge/dash. Also unified code for the wedge and
	dash cases.
	* src/formats/mdlformat.cpp: Add support for writing of 2D
	stereochemistry. The wedges/dashes read from input (or otherwise
	calculated) will be used unless the 'w' option is given, in which case
	the tetstereo objects will be used to work out the wedges/dashes. This
	is required because the wedges/dashes often contain information beyond
	the stereochemistry and it would be unwise to just forget it.

2010-02-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/gaussformat.cpp: Fix crash with reading Gaussian
	files with only one geometry.

	* src/formats/CMakeLists.txt: Fix to allow compile of InChI with
	ops/unique.cpp correctly.

2010-02-28  Noel O'Boyle

	* test/testunique.py: Implement Chris' tests for --unique
	* test/files/dupset.smi: Remove file as these test cases are included
	in the Python script

2010-02-28  Chris Morley

	* src/ops/unique.cpp: Make header file for unordered_map
	conditional: <unordered_map> for MSVC; <tr1/unordered map>
	otherwise. 
	Simplify mesaage reporting duplicates.
	
	* test/files/dupset.smi; datafile for a test (but no test yet).
	 
2010-02-27  Noel O'Boyle

	* test/CMakelists.txt, test/testfastsearch.py, test/testbabel.py:
	Added a new test for fastsearch functionality plus some convenience
	methods.

2010-02-27  Chris Morley
	
	* include/openbabel/base.h: Make GetTitle() and SetTitle() virtual
	  but do nothing in base class. Avoids the need for dynamic_casts
	  when OBBase* pointers are used in ops, etc.

	* src/formats/inchiformat.cpp, include/openbabel/inchiformat.h:
	  remove (unused) testformat and move declarations to a header
	  file which can be used by...
	  
	* src/descriptors/filters.cpp,src/descriptors/inchidescriptor.cpp:
	  move inchi descriptor
	  
	* src/descriptors/cansmidescriptor.cpp: add new descriptor
	
	* include/openbabel/obmolecformat.h,src/obmolecformat.cpp: remove old
	  implementation of --sort to a more natural home in an op...
	
	* src/ops/sort.cpp: with added features (see wiki page)

	* include/openbabel/descriptor.h, src/descriptor.cpp: change the
	  comparison functions

	* src/ops/unique.cpp: new op for removing duplicate molecules
	
	* src/CMakeLists.txt, src/formats/CMakeLists.txt: for new files.
	  unique.cpp is in format_common rather than plugin_ops because linking
	  is easier.
	  
	* src/formats/fastsearchformat.cpp: line in message
	
	* src/formats/mol2format.cpp: Provide a SkipObjects function

2010-02-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chains.cpp: Apply patch from Juergen Wieferink: PR#2948548.

	* CMakeLists.txt: Add option for disabling boost detection -- can
	cause problems compiling.

2010-02-26  Noel O'Boyle

	* src/formats/xml/cmlformat.cpp: Add support for 0D cistrans symmetry
	* test/testsym.py: Add tests for 0D cistrans symmetry across SMI,
	InChI, SDF and CML


	* src/obconversion.cpp:
	Set MAKE_ALL_READS_BINARY by default in the code. (CMake build had
	omitted to do that.) If not set on MSVC, seekg() returns incorrect
	values with UNIX files.
	
	* src/fingerprint.cpp:
	Do the binary read and write of each header variable separately
	rather than as a struct, to reduce possiblity of problems on other
	platforms which may lay out struct differently.	 

2010-02-26  Noel O'Boyle

	* src/stereo/cistrans.cpp, include/openbabel/stereo/cistrans.h: Fix
	bug in GetCisRef, and unify implementations of GetCisRef and
	GetTransRef

2010-02-26  Noel O'Boyle

	* test/testsym.py: Add a test for 0D tetrahedral symmetry across SMI,
	InChI, SDF and XML

2010-02-25  Noel O'Boyle

	* src/xml/cmlformat.cpp: Add support for 0D tetrahedral stereochem

2010-02-23  Noel O'Boyle

	* src/builder.cpp: Fix bug where a sp2-hybridised atom could be added
	at 180 deg instead of 120 if a particular corner case arose. The test
	case was "c1c2c(=O)[nH]c(=O)c2c(c2c1c(=O)[nH]c2=O)C#CC=C" where the
	final C=C was added in line with the C#C.

2010-02-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/gaussformat.cpp: Add support for reading multiple
	conformers (e.g., geometry optimization) including energy for each step.

2010-02-22  Noel O'Boyle

	Enable testing of OpenBabel executables from Python
	* test/testbabel.py: Initial checkin of tests for the Babel executable
	* test/CMakeLists.txt: Add testbabel.py
	* cmake/modules/UsePythonTest.cmake: Add a CMake module for adding
	Python tests (BSD License) from Mathieu Malaterre

2010-02-21  Tim Vandermeersch

        * src/stereo/perception.cpp: Allow S, P and bridgehead N atoms to be 
        chiral. These "filters" may still need some work though.

        * test/files/nci.smi: Make N atom non-chiral in 2 smiles. The 
        smilesmatch unittest now passes.

2010-02-21  Noel O'Boyle

	* src/formats/gausscubeformat.cpp: Revert of change made in r3534. It
	just changed the warning to a different warning.

2010-02-21  Noel O'Boyle

	* src/CMakeLists.txt: Add LIBXML2 as a dependency of the XML formats

2010-02-20  Noel O'Boyle

	* src/CMakeLists.txt: Remove LIBXML2 as a dependency of the openbabel
	DLL

2010-02-20  Noel O'Boyle

	* include/openbabel/obmolecformat.h: Error compiling on some platforms
	due to extra qualification on member name

2010-02-19  Chris Morley

	* Changed the parameters of Do() in OBOp to include an OBConversion
	object and so allow a wider range of operations. A change in the
	order of parameters means that it is not code compatible. But all
	except the first have defaults and most, if not all, public ops use
	only the first and it is unlikely that any have been written external
	to OB.
	* include/openbabel/op.h, include/openbabel/optransform.h,
	src/ops/addpolarh.cpp,src/ops/fillUC.cpp,src/ops/gen2D.cpp,
	src/ops/gen3d.cpp,src/ops/optransform.cpp: Do() changed.
	
	* include/openbabel/base.h,include/openbabel/mol.h,
	src/formats/chemkinformat.cpp,src/formats/rsmiformat.cpp,
	src/formats/rxnformat.cpp,src/formats/xml/cmlreactformat.cpp,
	src/obmolecformat.cpp,src/formats/smilesformat.cpp,
	src/formats/textformat.cpp,: DoTransformations() also has 
	OBConversion* added.
	
	* src/formats/rxnformat.cpp, src/formats/rsmiformat.cpp:
	Ensure deletion of reaction if ReadMolecule returns false.

2010-02-19  Chris Morley

	* CMakeLists.txt: define HAVE_SHARED_POINTER
	* src/formats/CMakeLists.txt: narrow MSVC to MSVC90 for shard_ptr
	  support. (Still not narrow enough.) 

2010-02-19  Noel O'Boyle

	* src/formats/gausscubeformat.cpp: Add cast to a long to enable size_t
	value to be printed out (gets rid of warning on Mac + Intel Compiler)
	* src/descriptor.cpp: Using string::npos instead of -1 to get rid of
	warning

2010-02-19  Noel O'Boyle

	* src/CMakeLists.txt: Create plugin OBFs on Windows
	* tests/CMakeLists.txt: Rename test targets to test_*, to make them
	cluster together alphabetically in an IDE (e.g. MSVC)

2010-02-19  Noel O'Boyle

	* tests/conversion.cpp: Remove former test 8 as it was failing on
	Windows because of the open file handle.
	* src/formats/CMakeLists.txt: Build shared_ptr dependent formats on
	Windows. Really, the IF statements need to be changed to test for
	shared_ptr rather than BOOST per se.

2010-02-17  Noel O'Boyle

	* tools/obabel.cpp: Include cstdlib header to enable compilation
	on Linux (due to missing exit())

2010-02-16  Chris Morley

	* tools/CMakeLists.txt: build obabel
	* src/formats/CMakeLists.txt: rename the format obf files to formats_...
	so they appear together in Visual Studio.
	* src/formats/nulformat.cpp: exciting new format
	* windows-vc2008/default_build.bat, windowsOBF/OpenBabelOBF.sln:
	compile GUI but not tests.

2010-02-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/tinkerformat.cpp (OpenBabel): Add support for MMFF94
	atom typing with "-xm" flag. Fix warning from previous revision.

2010-02-15  Noel O'Boyle

	* scripts/openbabel-python.i: Get rid of warnings. Allow access to
	rotors. Tidy up the interface a bit (prevent people calling C++
	iterators, for instance)

2010-02-14  Noel O'Boyle

	* src/formats/CMakeLists.txt: Tidy up, and ensure that formats that
	formats with dependencies are included in the Windows build too.

	* src/formats/CMakeLists.txt: Group formats into four different OBF
	files
	
	* test/*: Avoid SafeOpen warnings by including obutil.h
	* src/stereo/perception.cpp: Added default to switch statement to
	avoid compiler warning about "not all paths return a value"
	* src/formats/gausscubeformat.cpp, cifformat.cpp: Added some static
	casts to avoid warnings
	* src/formats/gaussformat.cpp: Added explicit comparison against NULL
	to avoid warning
	* src/formats/cifformat.cpp: Disabled warning 4503 about very long
	decorated name being truncated. 

2010-02-13  Noel O'Boyle
	
	* src/forcefieldgaff.cpp: Fix warnings.

2010-02-13  Noel O'Boyle
	
	* test/*: Avoid SafeOpen warnings by including obutil.h
	* formats/gulpformat.cpp, inchiformat.cpp: Add some dynamic casts to
	avoid warnings

2010-02-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/CMakeLists.txt: Add FORMATDIR to point tests at appropriate
	format location.

	* test/*: Use it.

2010-02-12  Noel O'Boyle
	
	* src/formats/CMakeLists.txt: On Windows, make sure that the XML
	formats compile to the correct location. Also no need to have
	XML_INCLUDE on Windows.

2010-02-11  Noel O'Boyle
	
	* test/CMakeLists.txt: On Windows, put the test executables along with
	the compiled DLLs.

2010-02-10  Chris Morley

	* src/formats/mdlformat.cpp: allow numbers to be other than right
	justified. (As provided by Craig.)

2010-02-08  Noel O'Boyle

	* src/formats/inchiformat.cpp, smilesformat.cpp, xml/cmlformat.cpp:
	Removal of references to strstream (legacy from GCC 2.x).

2010-02-07  Noel O'Boyle

	* src/builder.h, cpp: Make things easier by referring to unsigned long
	instead of OBStereo::Ref. Fixes problem compiling Python bindings.

2010-02-06  Noel O'Boyle

	* src/builder.cpp: IsSpiroAtom assumed that Ids were preserved on
	copying a molecule. Not true.

2010-01-26  Chris Morley

	* src/formats/MNAformat.cpp: added new format from Jeremy Murphy
	* src/formats/CMakeLists.txt,
	  windowsOBF/OBUtilFormats/OBUtilFormats.vcproj: build files

2009-12-15  Noel O'Boyle

	* src/formats/smilesformat.cpp: Create OBPairData of "SMILES Atom
	Order" whenever creating a SMILES string (not just for canonical
	SMILES). Set to "local" so that it won't be written out to an SDF
	file.

2009-12-15  Chris Morley

	* include/openbabel/parsmart.h, src/parsmart.cpp: add support for
	$ as quadruple bond to SMARTS. (Already in SMILES.)
	
	* src/bond.cpp: reset OB_KTRIPLE_BOND, etc when changing bond order.
	Fixes corruption of isonitriles in #2913204

	* src/formats/fastsearchformat.cpp: adjust application of 
	ConvertDativeBonds() to fix #2913204

2009-12-14  Noel O'Boyle

	* src/GUI/OBGUI.cpp: Fix compilation on Linux.

2009-12-11  Chris Morley

	* include/openbabel/plugin.h, src/plugin.cpp: Make TypeID() virtual in
	base class. Move definitions of	BaseFindType and GetPlugin() to cpp file
	and make GetPlugin search all plugin types for an ID.
	 
	* tools/babel.cpp, tools/obabel.cpp: now get verbose description of any
	plugin with e.g. -L gen3D
	
	* src/GUI/OBGUI.cpp: above facility from the menu.	

2009-12-04  Chris Morley

	* src/formats/gaussformat.cpp: Rotational constants were sometimes
	being missed because of a warning message.

	* src/depict/depict.cpp, src/formats/svgformat.cpp: avaoid errors with
	molcules with one atom.


2009-11-28  Chris Morley

	* include/openbabel/depict/painter.h: add default #define of OBDEPICT
	
	* src/formats/fastsearchformat.cpp: correct declaration of AddPattern

2009-11-28  Chris Morley

	Avoid the OBPairData "OpenBabel Symmetry Classes" appearing
	as a property in sdf and cml output.  
	* include/openbabel/base.h(OBGenericData):add 'local' to enum DataOrigin
	* src/graphsym.cpp: SetOrigin "OpenBabel Symmetry Classes" to 'local'
	* src/formats/mdlformat.cpp, src/formats/xml/cmlformat.cpp:
	  Do not output 'local' OBPairData

2009-11-27  Chris Morley

	* src/formats/fastsearchformat.cpp: Give an estimate of the expected
	indexing time.
	When searching, can use [#6] etc. in -s option target to find both
	aromatic and non-aromatic atoms in second SMARTS stage. Also use ~ bond
	to match both aromatic and non-aromatic bonds in fastsearch stage.
	Moves some way towards allowing behaviour expected in #2828279.
	
	* src/formats/xml/cmlformat.cpp: Accept T for triple bond. Fixes
	#2903926
 
	
2009-11-27  Chris Morley

	* src/formats/smilesformat.cpp: add sread and write support for $
	quadruple bond.

2009-11-26  Chris Morley

	* src/transform.cpp:Avoid leading separators with --append

	* data/plugindefines.txt: comment out less useful examples


2009-11-23  Chris Morley

	* tools/nbabel: Renamed as obabel. This is an alternative commandline
	interface, e.g.   obabel in.smi -O out.sdf

	* tools/svgdepict.cpp: demo program producing a file for each molecule.
	
	Tidied WindowsOBF Tools project files.
	CMakefiles not updated.

2009-11-22  Chris Morley

	* data/element.txt, data/svgformat.script, include/openbabel/depict,
	include/openbabel/depict/depict.h, include/openbabel/depict/painter.h,
	include/openbabel/depict/svgpainter.h, src/depict/depict.cpp,
	src/depict/svgpainter.cpp, src/formats/svgformat.cpp: new files
	Add tweaked versions of Tim's OBDepiction and OBPainter classes with
	a new SVGPainter class using no external libraries. SVGFormat displays
	multiple molecules in a table, designed to be viewed in Firefox.

2009-11-21  Chris Morley

	* include/openbabel/alias.h, src/alias.cpp: extensively revised.
	Expanded aliases on 2D or 3D molecules have coordinates generated
	by builder. (Nitro group not quite right.) Can revert to alias form for
	output and display. Can also generate an alias form from normal molecule;
	not sure how useful this is. 
	 
	* data/superatom.txt: changed format; now also stores a right-connected
	form and color.
	
	* src/formats/mdlformat.cpp: add option for output in alias form.	
	Output extra zeros in atom and bond blocks, as pointed out by Ernst-Georg
	Schmidt bug #2897107, and CharlieZhu.
	
	* src/format/gulpformat.cpp: replaced the 'uint' by 'unsigned'.
	'uint' doesn't compile on Visual C++.

2009-11-20  Chris Morley
	
	* include/openbabel/obmolecformat.h, src/obmolecformat.cpp:
	When sent an OBReaction object, outputs the molecules, as requested
	by Charlie Zhu

2009-11-20  Chris Morley

    * include/openbabel/reaction.h: includes for std::tr1::shared_ptr modified.
      In <memory> for VC2008 SP11 and GCC 4.3 but in <tr1/memory> for earlier GCC    
	
	* src/dlhandler_win32.cpp: add another way of getting Module Handle for
	  CMake build.
	  
	* include/openbabel/alias.h: replace OBAPI by OBCOMMON.
      Goes in a different DLL in OBF build.
    
    * Added project files for VC9 with the original OBF Windows build.
      (windows-vc2008 is for the CMake build.) 
      
2009-11-20  Chris Morley
	
	* src/mol.cpp(operator+=):no underscore if added title empty.
	(Has3D) removed test which prevented the function being used before
	EndModify()
	
	* src/obconversion.cpp(SetOutFormat):test for NULL param
	(OpenInAndOutFiles):test for empty name
	
	* src/ops/loader.cpp: delete all instances when global instance
	deleted at end to avoid (pseudo) memory leaks warning.
	
	* include/openbabel/phmodel.h: added missing OBAPI so is exported.
	* include/openbabel/text.h: Extra parameter on GetText()
	* include/openbabel/xml.h: Simplify namespaces map.
	* src/descriptor.cpp: remove commented out code.
	* src/forcefields/forcefielduff.cpp: comment out unused variable
	* src/formats/chemdrawcdx.cpp: comment out unnecessary switch statements
	* src/formats/copyformat.cpp: increase buffer size by 1
	* src/GUI/optswx.cpp: make all editboxes same size
	
2009-11-18  Noel O'Boyle  <baoilleach@gmail.com>

	* include/openbabel/alias.h: Add OBAPI

2009-11-17  Noel O'Boyle  <baoilleach@gmail.com>

	* include/openbabel/src/alias.cpp: Correct error

2009-11-13  Noel O'Boyle  <baoilleach@gmail.com>

	* src/formats/inchiformat.cpp (WriteMolecule): Don't create
	stereo objects to pass to the InChI code if the stereo is unspecified.
	This avoids an InChI warning reported by Chris.

2009-10-29  Michael Banck  <mbanck@gmx.net>

	* src/formats/molproformat.cpp (ReadMolecule): Applied patch #2893477
	by Konstantin Tokarev to support numbered atoms.

2009-11-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/xml/xml.cpp (OpenBabel): Defensive programming for
	issue reported by Matt Sprague -- access violation when
	reading/writing xml formats.

2009-10-29  Michael Banck  <mbanck@gmx.net>

	* src/formats/outformat.cpp: Applied patch #2888693 to add support for
	PC-GAMESS/Firefly.  Addresses PR#2884618.

2009-10-25  Noel O'Boyle  <baoilleach@gmail.com>

	* builder.h, .cpp: Add code to fix ring stereochemistry if possible 
	by inverting the coordinates of a ring system.

2009-10-25  Chris Morley

	* include/openbabel/src/alias.cpp: Add warning that the current implementation
	does not add atom coordinates when it expands a superatom.
		
2009-10-24  Chris Morley

	* include/openbabel/alias.h, src/alias.cpp: To convert an alias name
	(like Ph) to real chemistry, look up in a table, convert the SMILES
	of the fragment and add it in. No coordinate generation yet.
	
	* data/superatom.txt: the datafile from http://cactus.nci.nih.gov/osra/
	It could do with more entries, which are easy to add.
	
	* src/formats/mdlformat.cpp: Reinstate the code reading  aliases which
	seems to have got mangled during a merge. Example in test/files/alias.mol

2009-10-24  Noel O'Boyle  <baoilleach@gmail.com>

	* src/parsmart.cpp, include/openbabel/parsmart.h: Make
	bond_parse_order an instance variable rather than a class variable.
	Fixes bug where multiple SMARTS patterns are parsed before being used
	to Match.

2009-10-08  Noel O'Boyle  <baoilleach@gmail.com>

	* src/builder.cpp: Don't attempt to fix stereochemistry if unspecified.
2009-10-19  Chris Morley

	* src/alias.cpp: Correct small memory leak as suggested by dcb #2881605

2009-10-06  Noel O'Boyle  <baoilleach@gmail.com>

	* src/forcefield.cpp: Correctly handle SteepestDescent and Conjugate
	Gradients where nsteps is 0 or 1

2009-10-05  Noel O'Boyle  <baoilleach@gmail.com>

	* src/forcefield.cpp: In ff.GetConformers(mol) if only a single
	conformer was generated it was not being copied.

2009-10-04  Noel O'Boyle  <baoilleach@gmail.com>

	* For Windows build, enable tests to be run in either Debug or Release
	build. Make the default solution file include the tests. Add a target
	for a minimal build.

2009-10-03  Noel O'Boyle  <baoilleach@gmail.com>

	* Update Windows build to use the InChI dll, and to build everything
	to the same folder (e.g. Release or Debug). Tests can be run in Debug
	build.

2009-10-03  Noel O'Boyle  <baoilleach@gmail.com>

	* src/builder.cpp: Update handling of stereochemistry to use new
	stereochemistry objects. For tetrahedral centres, stereochemistry is
	currently not corrected if there are three ring bonds on the centre.
	* src/forcefield.cpp: Fixed bug where the SystematicRotorSearch was
	missing the angle 0.

2009-07-31  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* NEWS: Bump for 2.2.3 release.

2009-07-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mmcifformat.cpp: Fix PR2824247 and 2824502,
	Contributed by Raik Brinkmann.

2009-08-16  Chris Morley

	* src/dlhandler_win32.cpp(getConvDirectory):changes which should affect
	only MSVC build. Get handle of this module, not the exe file. As found by
	Noel and by Mingyue Zheng this broke the Python bindings. 
	Correct the module name (different when debugging).
	OpenBabel2.2.3b_Windows_Installer.exe has this mod.
	
	* include/openbabel/dlhandler.h: minor doc change

2009-09-30  Noel O'Boyle  <baoilleach@gmail.com>

	* src/builder.cpp: Reapplied Geoff's fix from r3028 (undone in r3251)
	to enable 0D molecules to be handled

2009-09-27  Noel O'Boyle  <baoilleach@gmail.com>

	* src/GUI/OBGUI.cpp: GUI now compiles and runs successfully on MacOSX.

2009-09-27  Noel O'Boyle  <baoilleach@gmail.com>

	* include/openbabel/graphsym.h, src/graphsym.cpp: Changed how static
	const unsigned int was defined to conform with C++ standard as it
	caused a compile error on MacOSX (see
	http://forums.macosxhints.com/showthread.php?t=91497 for details)

2009-09-25  Noel O'Boyle  <baoilleach@gmail.com>

	Fixed some errors when compiling the GUI on Mac.

2009-09-25  Noel O'Boyle  <baoilleach@gmail.com>

	Fixed some warnings when compiling with Intel Compiler. 

2009-09-22  Noel O'Boyle  <baoilleach@gmail.com>

	* include/openbabel/format.h: Added include <typeinfo>. Now OB compiles
	using Intel Compiler.

2009-09-22  Noel O'Boyle  <baoilleach@gmail.com>

	* src/GUI/babel.xpm: Applied patch from Riccardo Vianello (r_vianello
	at SF) to avoid warnings when building on Linux

2009-09-21  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/*: Copied + pasted the scripts directory from 22x as a number
	of commits were never merged.

2009-09-20  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/CMakeLists.txt: Support for pybel. Revert regression that
	prevented linked against Python libraries.
	* include/openbabel/text.h: Add newline at end to avoid warning

2009-09-19  Noel O'Boyle  <baoilleach@gmail.com>

	Miscellaneous static_casts added and unused variables removed to get rid
	of warnings under MSVC

2009-09-18  Noel O'Boyle  <baoilleach@gmail.com>

	* include/openbabel/generic.h: Remove unused declarations that caused
	warnings under MSVC
	* test/obtest.h: Make compatible with MSVC
	* test/CMakeLists.txt: Build tests in the same location as the OB DLL
	(Windows only)
	* src/formats/CMakeLists.txt: Build obf files in same location as the
	OB DLL (Windows only)
	* CMakeLists.txt, CTestConfig.cmake: Option to submit tests to dashboard
	* windows-vc2008, *.bat: Tidy up batch files for building OB

2009-09-17  Noel O'Boyle  <baoilleach@gmail.com>

	* CMakeLists.txt, data/CMakeLists.txt: Tidy up the Windows build. The
	goal is to have CMake make something as close as possible to a
	distribution.

2009-09-17  Noel O'Boyle  <baoilleach@gmail.com>

	* include/stereo/stereo.h: Remove obsolete stereo functions and
	associated documentation
	* scripts/CMakeLists.txt: Add option PYTHON_PREFIX to allow the user
	to specify where the Python library will be installed. Note that it
	creates an _openbabel.dll on Windows in error (it should be
	_openbabel.pyd).

2009-09-17  Noel O'Boyle  <baoilleach@gmail.com>

	* src/parsmart.cpp: Handle ring-closure bonds involved in

2009-09-17  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* CMakeLists.txt: Don't attempt to use GCC visibility support on WIN32. 
        Doesn't work with MinGW and produces lots of warnings.

        * src/mcdlutil.cpp: include cmath for MinGW builds.

        * src/config.h.cmake: Don't use dllimport/dllexport for MinGW build. GCC's
        auto-import feature will handle this automatically.

2009-09-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/stereo/perception.cpp: Implement para-stereocenter detection.
	 (see J. Chem. Inf. Comput. Sci., Vol. 33, No. 6, 1993 or code for details)

2009-09-16  Noel O'Boyle  <baoilleach@gmail.com>

	* src/GUI/CMakeLists.txt: Add icon. Add comctl32.lib for Windows
	build.
	* windows-vc2008, windows-vc2006/cmake.bat: Create new folder for
	MSVC++ Express 2008. Add batch file to run cmake.

2009-09-16  Noel O'Boyle  <baoilleach@gmail.com>

	* src/GUI/optswx.cpp: Minor mods to compile on Linux.

2009-09-13  Chris Morley

	* src/GUI/OBGUI.h,OBGUI.cpp:
	Replace deprecated file drag-and-drop with newer version using 
	wxFileDropTarget. Works in Windows; might even work in Linux.

	* src/GUI/optswx.cpp: options can now have a checkbox and an
	edit box allowing options to have parameters. These changes conflicted
	with the mods for Linux compatibility. The resolved version needs to be
	checked with Linux in case mistakes were made..

2009-09-11  Noel O'Boyle  <baoilleach@gmail.com>

	* src/GUI/CMakeLists.txt: Added Win32 to ensure that on Windows
	a command-line application was not created.

2009-09-11  Noel O'Boyle  <baoilleach@gmail.com>

	* src/GUI/*.h, *.cpp: Large number of minor mods for compatibility with unicode build of wxWidgets
	* CMakeLists.txt, src/GUI/CMakeLists.txt, tools/CMakeLists.txt: (1) Cmakeify the GUI build, (2) Add an option to
	enable a minimal build, consisting of just two file formats and one tool.

2009-09-06  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Fix Random & Systematic Rotor Search crashes. 
        (Fixes crashes in Avogadro here on 64bit)

2009-09-01  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/parsmarts.cpp: Some bug fixes to SMARTS with stereochemical atoms.

2009-08-31  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/parsmarts.cpp: First attempt to make smarts work again. Should be
        working for tetrahedral stereochemistry. Cis/Trans may still need some
        more code.


2009-08-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/fingerprint.cpp, include/openbabel/fingerprint.h,
	src/formats/fastsearchformat.cpp: Patches from Izhar Wallach for a
	similarity search within a range (e.g. Tanimoto from 0.6-0.8).

2009-08-21  Craig James <cjames@emolecules.com>

	* src/kekulize.cpp, include/openbabel/mol.h: Rewrote
	expand_kekule() in kekulize.cpp, making it much simpler to
	understand.  Original algorithm had bugs and was very hard to
	follow.

	* src/formats/mdlformat.cpp: Replaced atoi(), which would
	incorrectly accept some invalid numbers, with a custom function
	that catches most invalid numbers.  Fixed several bugs that caused
	core dumps for unusual or incorrectly-formatted SD files.
	Improved a couple of error messages.  Commented out one section
	that was supposed to read R-group definitions; the code was
	plainly wrong and caused core dumps, but the MDL spec is complex
	and it will take some work to get this right (it's a deprecated
	part of the CTAB spec anyway).
	
	* src/formats/smilesformat.cpp: Fixed two bugs: the pseudo atom '*'
	was always printed with brackets '[*]', and boron atoms were
	sometimes printed with brackets '[B] when they shouldn't be.
	
	* src/obiter.cpp: Added a number of tests for NULL pointers.  New
	stereo code was causing core dumps when atoms had zero bonds.

	* src/mol.cpp: Added a test to catch a NULL pointer that was
	causing a core dump for molecules with one atom.

	* src/stereo/percepton.cpp: Removed a warning that was issued for
	almost every SMILES.

	* Added "svn:ignore" properties for the cmake(1) files
	so they're ignored by Subversion.

2009-08-03  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/math/transform3d.h: add missing const to operator*.
	* src/math/transform3d.cpp:

2009-08-02  Jean Brefort  <jean.brefort@normalesup.org>

	* data/space-groups.txt: updated after group 229 fix.

2009-08-01  Daniel Leidert  <daniel.leidert@wgdd.de>

	* doc/babel.1, doc/obchiral.1: Fixed "mdoc warning: Extraneous .Re".

2009-07-13  Chris Morley

	* src/formats/smilesformat.cpp: make the description of -xh more
	informative: it retains explicit hydrogen.
	
	* src/formats/fastsearchformat.cpp: in the second phase the SMARTS
	from both the -s option and (optionally) with -S from a file now
	retains its explicit hydrogen, to allow lack of substitution to be
	specified.
	
	* src/formats/xml/cmlformat.cpp: can now read vibrational
	frequencies and rotational constants as well as writing them.

2009-07-15  Daniel Leidert

	* doc/babel.1: Fixed hyphen used as minus sign.

2009-07-13  Chris Morley

	* src/formats/fingerprintformat.cpp: set initial nbits=0 (default)
	and remove the setting of FP4 as the default fingerprint. 
	(FastsearchFormat remained at FP2.) OBPlugin derived classes have
	a built-in mechanism for setting defaults.
	
2009-07-08  Chris Morley

	* src/transform.cpp(OBMol::ClassDescription) Change description of -p so that GUI 
	takes pH parameter.
	 
2009-07-08  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-java.i: Added support for foreach loops using the
	Iterators.

2009-07-08  Chris Morley

	* windows-vc2005/OBCommonFormats/OBCommonFormats.vcproj,
	OBMoreFormats.vcproj: add outformat, molproformat, vaspformat
	(still not gamessukformat because of need for regex)
	
	* windows-vc2005/babelconfig.h: update version to 2.2.2
	
2009-07-08  Chris Morley
	
	* src/formats/gaussformat.cpp: small change to parsing to prevent
	crash on some files.

2009-07-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/Makefile.am, data/Makefile.in: Only build data headers if
	Perl is present.

	* Change __CYGWIN__ ifdef to also include MINGW.

2009-07-06  Chris Morley

	* src/dlhandler_win32.cpp: omit call to GetModuleHandle and just 
	obtain exe path by calling GetModuleFileName with a zero handle.
	MSVC build works again but a better solution is needed. 

2009-07-05  Tim Vandermeersch

	Make sure there is only one PluginMap for each plugin type. (Fixes
	cygwin builds, all formats  are now shown when running babel
	-H). Also added some cygwin specific code to dlhandler_win32.cpp
	to find the plugin path (..\lib\openbabel\BABEL_VERSION).

2009-07-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/generic.cpp (OBRingData): Fix bug in ring iterators,
	reported by Fredrik. PR#2815025.
	
	* test/iterators.cpp: Unit test for it.

2009-07-01  Noel O'Boyle  <baoilleach@gmail.com>

	* AUTHORS: Added my name

2009-06-27  Chris Morley <c.morley@gaseq.co.uk>

	* src/formats/xml/cmlformat.cpp: in reading <property> check that
	dictRef not found before reading title.
	Prevent crash if <symmetry> not read correctly.
	
	When writing <property> use dictRef rather than title if attr
	is namespaced.
	
	* src/math/vector3.cpp: sometimes needs #include <float.h>
	
2009-06-27  Chris Morley <c.morley@gaseq.co.uk>

	Make parsing of SMILES files stricter, following discussion on
	mailing list.
	* src/formats/smilesformat.cpp(Read Molecule):
	lines starting with # are ignored; lines starting with whitespace
	terminate (except with -e option); illegal chars reported;
	when using OBConversion::Convert(), the components of a SMILES reaction
	are output if it is a valid reaction with non-null reactant and product.
	
	(OBSmilesParser::SmiToMol): the string parameter is made const. This
	simplifies its use, e.g. can use substr. Similar changes would be useful
	elsewhere in OB. 
	 
	* src/formats/rsmiformat.cpp: re-written because of smilesformat changes.
	Now handles multiple reactants and products.

2009-06-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/zipstream*: Add support for tellg() / seekg(). Improves
	support for compressed mol2 files (although still bugs
	there). Positions from tellg() & seekg() mirror uncompressed data.

	* test/zipstream.cpp: New test to check if tellg/seekg support
	works.

2009-06-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/kekulize.cpp: Use SMARTS pattern "[aR3]" to determine if
	*any* atoms dictate a fused ring analysis. Fixes problem with
	perylene.

	* test/files/*.smi: Add perylene as a test example.

	* src/builder.cpp (GetNewBondVector): Fix part of PR#2811932 from
	Avogadro. Make sure adding hydrogens to carboxylic acid always
	occurs trans to the other oxygen atom.

	* src/data.cpp: Don't consider all sp3 hydrogens as O-, instead
	leave this for phmodel protonation. Fixes PR#2785237.

2009-06-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mopacformat.cpp: Read and write translation vectors,
	if available.

	* src/formats/gaussformat.cpp: Ditto

	* src/generic.cpp (OBUnitCell): Make sure to set the space group
	to P1 by default and after FillUnitCell.

2009-06-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/generic.cpp: Fix unit cell when setting possibly zero
	translation vectors ( e.g. PR#1961604).

2009-06-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chains.cpp: Fix for PR#2691618. When writing
	hydrogen atoms without chain names, make sure there are never
	spaces.

	* src/mol.cpp, src/atom.cpp: Test for assigning atoms and
	molecules to themselves. PR#2698096. Thanks to Pierre-Louis.

	* src/bondtyper.cpp: Add oxime functional group assignment:
	PR#2793910.

	* src/kekulize.cpp: Additional cleanups. Should be more accurate
	across a wide range of ring systems. Fixes PR# 2705497 and
	PR#1814248. For fused rings (e.g., C60) uses old algorithm.

	* test/files/nci.smi: Add test cases for PR above.

	* src/phmodel.cpp: Fix PR#2802980. Allow single-atom charge
	transformations.

2009-06-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/kekulize.cpp (expandcycle): Rewritten as cleaner recursive
	function. Look for largest possible aromatic cycle, including
	handling fused "figure 8" ring systems.

2009-06-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/kekulize.cpp (expandcycle): Fix PR#2705497. Kekulize has
	problems with fused aromatic rings joined by a non-aromatic
	ring. Make sure when expanding aromatic cycles that we only accept
	atoms which are in the *same* ring from OBMol::GetSSSR().

	* test/*: Update with recent changes.

2009-06-18  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/Python/README, scripts/csharp/README: Minor updates

2009-06-16  Noel O'Boyle  <baoilleach@gmail.com>

	* windows-vc2005/OBCSharp and CSharp files in scripts: Separate .NET
	and Mono SWIG files. Move .NET files to windows-vc2005. Update
	relevant files.

2009-06-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp (Read): If we used ReadFile, close the file
	after an error.

2009-06-14  Chris Morley <c.morley@gaseq.co.uk>

	* src/formats/inchiformat.cpp: InChI adds an implicit H to H and 
	represents H2 with one implicit H. Since H does not have implict H
	in OB, need to treat as special	cases.
	Fixes #2794908, where H was written wrongly to InChI and H2 read
	wrongly.
	
	* windows-vc2005/libinchi.dll,libinchi.lib: replaced by libstdinchi.dll
	and libstdinchi.lib
	* windows-vc2005/OBInchi/OBInchi.vcproj: updated for new inchi version.

2009-06-14  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/pybel_pyN.x.py: Use OBBuilder instead of the
	gen3d operation. 

2009-06-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchiformat.cpp, src/formats/inchi102: Backport the
	InChI 1.02 standard code.

2009-06-14  Noel O'Boyle  <baoilleach@gmail.com>

	* src/kekulize.cpp: In an aromatic ring with two nitrogens, one a
	pyrrole-type, the other a pyridine-type, ensure that the pyrrole-type
	N donates 2 PI electrons. Fixes PR#2711501

2009-06-14  Chris Morley <c.morley@gaseq.co.uk>

	* src/ops/fillUC.cpp: Tidy up the Description so that it is more
	suitable for the GUI.
	
	* windows-vc2005/gen3D/gen3D.vcproj: add fillUC.cpp to build.

2009-06-13  Chris Morley <c.morley@gaseq.co.uk>
	
	* src/formats/mdlformat.cpp: Read V property line.
	Put contents into a OBPairData with attribute "AtomValue"
	attached to the OBAtom, and, if the -av option is NOT set, 
	also interpret as a partial charge.
	Fix for #2805389

2009-06-08  Michael Banck  <mbanck@gmx.net>

	* src/formats/gamessformat.cpp (ReadMolecule): Tighten match for
	frequencies.

	*  src/formats/gamessformat.cpp (ReadMolecule): Support imaginary
	frequencies.

2009-06-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/Makefile.am: Remove kekule.cpp used as an internal test.

2009-06-05  Noel O'Boyle  <baoilleach@gmail.com>

	* src/math/vector3.cpp: Reenable defensive checks in calculation of
	angle between two vectors. Prevents bug where dp is slightly greater
	than 1.0 under certain conditions.

2009-06-05  Noel O'Boyle  <baoilleach@gmail.com>

	* src/builder.cpp: Prevent partial matching. The code currently
	doesn't handle this.

2009-06-05  Noel O'Boyle  <baoilleach@gmail.com>

	* src/builder.cpp: Skip SMARTS patterns that are too big to match.
	Smaller performance boost.
	
2009-06-02  Noel O'Boyle  <baoilleach@gmail.com>

	* src/builder.cpp: Only iterate over the unique SMARTS matches and
	stop once all ring atoms have been assigned. Performance win.
	
2009-05-29  Michael Banck  <mbanck@gmx.net>

	* src/formats/gausszmatformat.cpp (ReadMolecule): Account for negative
	variable reference in dihedral angles, patch by Hugh Chaffey-Millar.
	Fixes PR#2798297.
	
2009-05-28  Michael Banck  <mbanck@gmx.net>

	* src/formats/gausszmatformat.cpp (ReadMolecule): Fix reading of
	dihedral angles, patch by Donnie Berkholz <dberkholz@gentoo.org>.

2009-05-27  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Allow access to OBBuilder and matrix3x3

2009-05-19  Michael Banck  <mbanck@gmx.net>

	* src/formats/gaussformat.cpp (ReadMolecule): Add parsing of NMR
	isotropic shifts.  Patch by David C. Lonie.  Fixes PR#2787088.

2009-05-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/generic.cpp (OBUnitCell::FillUnitCell): Update with code
	from Avogadro. Now should handle duplicate atoms.

2009-05-04  Michael Banck  <mbanck@gmx.net>

	* src/formats/moldenformat.cpp (ReadMolecule): Read in atom
	coordinates via [FR-COORD] block if no atoms have been read
	previously.  Fixes PR#2786716.

	* src/formats/gamessformat.cpp (ReadMolecule): Fix parsing of
	intensities.  Keep on reading displacements even if there is only a
	single one.  Rewritten normal coordinates parsing.  Fixes PR#2782132.

2009-05-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/element.txt, data/element.h: Update atomic radii with
	consistent sets from recent publications.

2009-04-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/molchrg.h, include/openbabel/internalcoord.h,
	include/openbabel/typer.h, include/openbabel/chains.h,
	include/openbabel/descriptor.h, include/openbabel/atomclass.h,
	include/openbabel/parsmart.h, include/openbabel/grid.h: 
	Improved forward declarations, thanks to Noel's python script.

2009-04-26  Michael Banck  <mbanck@gmx.net>

	* src/formats/moldenformat.cpp (WriteMolecule): New method,
	implementing atom coordinates and vibrations.  Set flags() to
	WRITEONEONLY for now.

	* src/formats/moldenformat.cpp (ReadMolecule): Do not care about case
	of vibration header tag for the displacements.  MOLPRO writes
	upper-case "Vibration", Molden writes lower-case "vibration".
	
	* src/formats/moldenformat.cpp (BOHR_TO_ANGSTROM, ANGSTROM_TO_BOHR):
	New definitions.  
	(ReadMolecule): Use them.
	(WriteMolecule): Likewise.

	* src/formats/moldenformat.cpp (ReadMolecule): Do not continue to next
	line when a block is finished as the current lineBuffer already
	consists of the next [KEYWORD].

	* src/generic.cpp (GetNumberOfFrequencies): Fix return value.
	* src/formats/moldenformat.cpp (WriteMolecule): Adjusted.

	* src/formats/moldenformat.cpp (Description): Updated.

	* src/formats/moldenformat.cpp (WriteMolecule): Do not set intensities
	to zero if none are present.

2009-04-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/obiter.h (OpenBabel): Add forward declaration
	of OBRing and OBRingData suggested by Anton Simakov.

2009-04-22  Noel O'Boyle  <baoilleach@gmail.com>

	* include/openbabel/rotor.h: #ifndef SWIG added due to problems
	compiling the CSharp bindings

2009-04-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/Makefile.am: Fix some conditional compiles. Should
	help fix compile problem reported with 2.2.1 on Cygwin by Igor
	Filippov.

2009-04-21  Noel O'Boyle  <baoilleach@gmail.com>

	* src/obiter.cpp: Bugfix for off-by-one error in OBMolAtomBFSIter.

2009-04-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/bond.cpp (SetLength): Fix bug uncovered by Marshall
	Levesque. When two atoms are at the same position, move slightly
	to prevent invalid (NaN) coordinates.

2009-04-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/qchemformat.cpp (ReadMolecule): Fix tokenize mistake
	when reading Q-Chem vibrational intensities.

2009-04-11  Michael Banck  <mbanck@gmx.net>

	* src/formats/outformat.cpp (ReadMolecule): Added MOLPRO output
	file detection.

2009-04-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/rotamer.cpp, src/math/spacegroup.cpp, src/mol.cpp,
	src/formats/smilesformat.cpp, src/formats/pdbformat.cpp,
	src/formats/MCDLformat.cpp, src/formats/xml/cmlformat.cpp: 
	Compiler warnings and cppcheck complaint fixes.

2009-04-08  Michael Banck  <mbanck@gmx.net>

	* src/formats/gaussformat.cpp (ReadMolecule): Adjust normal modes
	parsing when Raman intensities are present.  Fixes PR#2728543.

2009-04-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Fix compile error. Make sure to
	cast NULL in a vector constructor.

	* src/formats/CMakeLists.txt: Add Michael's Molpro format.

	* src/forcefield/forcefieldmmff94.cpp: Fix errors in PR#2741658
	and PR#2741669, reported by  Tushar Jain.

2009-04-07  Michael Banck  <mbanck@gmx.net>

	* src/formats/molproformat.cpp (ReadMolecule): Added dipole 
	moments.

2009-04-07  Michael Banck  <mbanck@gmx.net>

	* src/formats/nwchemformat.cpp (ReadMolecule): Added frequencies
	and IR intensities support.  Fixes PR#2728437.

	* src/formats/moldenformat.cpp (ReadMolecule): Added frequencies
	and IR intensities support.  Closes PR#2737715.

	* src/formats/molproformat.cpp: New file.  Closes PR#2731625.
	* src/formats/Makefile.am: Updated.
	* src/formats/Makefile.in: Regenerated.

2009-04-06  Noel O'Boyle  <baoilleach@gmail.com>

	* src/formats/smilesformat.cpp,
	windows-vc2005/OBCommonFormats/OBCommonFormats.vcproj
	windows-vc2005/OBUtilFormats/OBUtilFormats.vcproj:
	remove contamination from experimental version so that compiles again.

2009-06-27  Chris Morley <c.morley@gaseq.co.uk>

	Make parsing of SMILES files stricter, following discussion on
	mailing list.
	* src/formats/smilesformat.cpp(Read Molecule):
	lines starting with # are ignored; lines starting with whitespace
	terminate (except with -e option); illegal chars reported;
	when using OBConversion::Convert(), the components of a SMILES reaction
	are output if it is a valid reaction with non-null reactant and product.
	
	(OBSmilesParser::SmiToMol): the string parameter is made const. This
	simplifies its use, e.g. can use substr. Similar changes would be useful
	elsewhere in OB. 
	 
	* src/formats/rsmiformat.cpp: re-written because of smilesformat changes.
	Now handles multiple reactants and products.

2009-04-21  Chris Morley <c.morley@gaseq.co.uk>
	* data/atomtyp.txt: removed alkalis, alkaline earths,
	In,Tl,Sn,Pb,Sb,Bi from IMPVAL list. (Elements with IMPVAL entries
	are given implicit hydrogens.) Corrects problem Fredrik Wallner
	had with Na.
	Also some others, incl S- to fix #2782327
	
2009-04-21  Chris Morley <c.morley@gaseq.co.uk>

	* src/alias.cpp: Added code to handle isotopic atoms to fix 2777494

2009-04-16  Chris Morley <c.morley@gaseq.co.uk>

	* include/openbabel/reaction.h, src/formats/rsmiformat.cpp,
	src/formats/rxnformat.cpp: add Clear() function for OBReaction and
	apply it via CastAndClear<OBReaction>() in the formats before reading.

2009-03-07  Daniel Leidert <daniel.leidert@wgdd.de>

	* include/iconv.h, src/formats/xml/iconv.h, src/strncasecmp.c: Fixed
	FSF address.

2009-03-02  Daniel Leidert <daniel.leidert@wgdd.de>

	* doc/babel.1, doc/obchiral.1, doc/obconformer.1, doc/obenergy.1,
	doc/obfit.1, doc/obgen.1, doc/obgrep.1, doc/obminimize.1,
	doc/obprobe.1, doc/obprop.1, doc/obrotamer.1, doc/obrotate.1,
	doc/roundtrip.1: Prevent hyphenation of URLs. Fixed an mdoc issue.

2009-03-02  Daniel Leidert <daniel.leidert@wgdd.de>

	* src/formats/smilesformat.cpp: Correct use of sprintf().
	http://lists.debian.org/debian-devel/2008/12/msg01079.html

2009-03-02  Chris Morley

	Added xtcformat,pqrformat,opendxformat to Visual Studio build.
	Could not add gamessukformat because it uses <regex.h>
	and did not have time to find a workaround (Boost probably).
	 
2009-03-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/residue.cpp, src/fingerprint.cpp, src/zipstreamimpl.h,
	src/obconversion.cpp, src/dlhandler_unix.cpp,
	src/formats/rxnformat.cpp, src/formats/fchkformat.cpp,
	tools/babel.cpp, include/openbabel/xml.h,
	include/openbabel/obconversion.h,
	include/openbabel/obmolecformat.h, include/openbabel/data.h:
	Fix #includes to handle GCC-4.3 and 4.4. Thanks to Rathann
	Mierzejewski.

	* src/pointgroup.cpp, src/formats/xtcformat.cpp: Remove calls to
	exit() uncovered by Rathann.

2009-02-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (Separate): Fix crash with Separate
	(PR#2553217). Currently uses defensive programming. This
	particular test file seems to have problems. 

2009-02-24  Marcus D. Hanwell  <marcus@cryos.org>

	* src/grid.cpp: Fixed some off by one errors in the way the max vector
	and spacing were calculated. More work is needed to make this work
	with grids aligned along arbitrary axes.

2009-02-27  Kevin Shepherd <kshepherd1@users.sourceforge.net>
	
	* src/formats/acrformat.cpp, src/formats/carformat.cpp
	src/formats/gamessformat.cpp, src/formats/mmcifformat.cpp: Compile
	warnings and minor additions to format information.

2009-02-22  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/examples/testpybel.py, openbabel-python.i: Just
	discovered a regression in latest SWIG. It didn't rename the bool()
	method, with the result that all Python iterators were failing. It
	turns out that this isn't necessary in the first place, so we can
	workaround. I've added a test to testpybel.py to check for any
	problems in future.

2009-02-20  Chris Morley
	
	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi:
	env var BABEL_DATDIR wasn't being overwritten, so now deleted first
	
	* windows-vc2005/OBCommonFormats/OBCommonFormats.vcproj:
	removed atomrecord.cpp

2009-02-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/qchemformat.cpp: Fix painful crash with Q-Chem 3.2
	output files when trying to parse vibrations.

2009-02-19  Noel O'Boyle  <baoilleach@gmail.com>

	* Windows Installer: Some changes to how environment variables are set
	to play nicer with the Python extensions. Bumped up version number.
	* babelconfig.h: Bumped up version number reported by (Windows) babel
	* scripts/python/examples/testpybel.py: Minor correction

2009-02-19  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/pybel_py3.x.py: Docstring correction
	* scripts/python/pybelapi.html: Update
	* scripts/python/examples/testpybel.py: Improve coverage

2009-02-18  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/pybel_py2.x.py, pybel_py3.x.py: Synch with cinfony.
	Long overdue.

2009-02-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/Makefile.am, scripts/Makefile.in: Fix: don't attempt to
	build Java or C# unless appropriate configure flags were set.

2009-02-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/gamessformat.cpp, src/formats/mopacformat.cpp,
	src/formats/gaussianformat.cpp, src/formats/qchemformat.cpp:
	Import vibrational data from several QM formats.

	* src/formats/cifformat.cpp: Fix problems reading CIF files with
	empty tags. Can lead to a crash.

2009-02-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp: Fix crash with OOP
	calculations (e.g., C(O)(=O)C.

	* src/formats/fchkformat.cpp: Use 16-character fields for
	coordinates to handle Q-Chem fchk files.

	* src/formats/smilesformat.cpp: Fix problem with bracketing every
	atom. Logic was wrong.

	* src/formats/qchemformat.cpp: Change formatting of NMR strings.

2009-02-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/bond.h: Add "friend OBMol" to allow OBMol to
	unset flags on bonds.

	* src/mol.cpp (EndModify): Unset ring bond membership. Fixes bug
	#2568349.

	* src/formats/pdbformat.cpp: Add more warnings for strange ATOM
	records, contributed by Pierre-Louis.

2009-01-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/element.txt, data/element.h: Change maxbonds for P to 6
	(e.g. PF6-).

	* src/formats/smilesformat.cpp: Mark coordinated water molecules
	as [OH2] to address PR#2505562.

	* src/formats/cifformat.cpp: Assign formal charges to halides and
	alkali when coordinated to a water molecule.

	* src/formats/pdbformat.cpp: Add -ac option to ignore CONECT
	records, contributed by Izhar.
	
2009-01-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp: Ensure H-O-H, H-S-H, and
	similar bond angles are done correctly. Fixes PR#2527588.

	* src/formats/pdbformat.cpp: Further refinements to parsing ATOM
	records, contributed by Pierre-Louis Bonicoli for PR#2 27225.

	* configure.in, acinclude.m4, configure: Properly check for gzip
	support. Fixes PR#2527272.

	* src/formats/smilesformat.cpp: Add a check for atoms with unusual
	valence (e.g., B with >3 bonds, C with 5, etc.). As requested for
	CIF translation.

	* src/formats/cifformat.cpp: Turn off automatic formal
	charges. Add a pass to look for typical ions and correct their
	formal charges.

	* data/atomtyp.txt: Add implicit valence and hybridization rules
	for most main-group elements.

	* src/ops/gen3d: Add a cleanup step with MMFF94 or UFF, including
	quick conformer searching. Should provide better results for most
	people.

	* src/builder.cpp: Add new function GetCorrectedBondVector() which
	scales new bonds based on elements provided and bond order (e.g.,
	similar to OBBond::GetEquibLength).

2009-01-22  Noel O'Boyle  <baoilleach@gmail.com>

	* windows-vc2005/Distribution/CheckInstallerScript.py,
	NSISScriptToCreateInstallerOBF.nsi: Update Python script to check for
	.prm files, and update installer to include MACCS.txt and missing .prm
	file.

2009-01-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/builder.cpp (Build): Make sure all bonds are copied into the
	newly-built molecule.

2009-01-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/cifformat.cpp: Fix for PR#2100215. Difficult bug -- file is
	missing a ';' on line 189. Other CIF programs had difficulty,
	including CIFTOOLS. Handle such non-standard files by issuing
	warnings when a ; line is not properly terminated and we find a
	new tag.

	* data/atomtyp.txt: Add an external type for O-H hydrogens for
	Tinker/MM2. Solves PR#1839274.

2009-01-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/fragments.txt: Expanded ring template database -- 2500 of
	the most frequent rings (including three-membered rings like
	cyclopropane or epoxides). Fixes PR#2043319.

2009-01-16  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/dlhandler_unix.cpp (openLib): Handle error reporting here --
	which will allow more informative messages to users, rather than
	just "did not load properly."

	* src/obconversion.cpp: Disable error messages, as per above.

	* src/parsmart.cpp: Remove some unused code, and add comments
	towards support of fragment SMARTS, e.g. (*).(*).

2009-01-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/pdbformat.cpp, src/formats/pqrformat.cpp: Patch
	contributed by Pierre-Louis Bonicoli PR#2503113. Take elements
	from the PDB 'element column' in preference to guessing based on
	atom type names (which are unreliable).

2009-01-14  Noel O'Boyle  <baoilleach@gmail.com>

	* windows-vc2005/OBPythonOBF/OBPythonOBF.vcproj: Minor fix to
	outdir (had trouble with paths with spaces)
	* windows-vc2005/OBCSharp/OBCSharp.vcproj: Moving to Swig 1.3.37
	* scripts/csharp/example.py: Partial revert of r2833 to bring back my
	IronPython example script

2009-01-14  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/pybel.py split into pybel_py2.x.py, pybel_py3.x.py:
	Adding support for Python 3.
	* scripts/openbabel-python.i, scripts/python/examples/testpybel.py,
	scripts/python/setup.py, windows-vc2005/OBPythonOBF/setup.py: Adding
	support for Python 3.
	* windows-vc2005/OBPythonOBF/OBPythonOBF.vcproj: Moving to SWIG
	1.3.37 (need to specify -outdir).

2009-01-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/gzmatformat.cpp: Address PR#2056697 for Gaussian
	z-matrix with embedded numbers (no variables) or no "Variables:"
	line.

2009-01-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Address crash in SMILES import
	with chiral ring closures. ChiralSearch vectors were too
	small. Should address PR#2498047.

	* configure.in, scripts/Makefile.am: Check for javac and jar at
	configure time. Do not run them unless present. Solves PR#2426622.

2009-01-09  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp,
	src/forcefields/forcefielduff.h: Add support for 5-coordinate
	and other unusual coordination environments (including lone pairs
	for hypervalent species). Not perfect, but much better than
	before.

	* src/formats/outformat.cpp: Add comments about single bonds and
	bond orders (which are followed by all QM output formats).

	* src/formats/gamessformat.cpp: Add patch from Albert DeFusco for
	GAMESS EFP fragments. PR#2484103.

2008-12-31  Noel O'Boyle  <baoilleach@gmail.com>

	* include/inchi102, src/fomats/inchi102: Fix compile/link for
	Linux/Mac of InChI 1.02. Make sure in the future to import the
	InChI DLL code. (I'm not sure what the other code is, honestly).

2009-03-08  Chris Morley

        Standard InChI (1.02final)
	* src/formats/inchiformat.cpp, include/inchi_api.h:
	Several function names changed, removed most of the options code
	Works with the precompiled Windows files windows-vc2005/libstdinchi.dll,
	windows-vc2005/libstdinchi.lib, windows-vc2005/OBInchi/OBInchi.vcproj
	
	* The inchi API files have been uploaded to
	  include/inchi102, and  src/formats/inchi102	
	** but the building of inchi files needs to be sorted out for linux **

2009-03-07  Daniel Leidert <daniel.leidert@wgdd.de>

	* include/iconv.h, src/formats/xml/iconv.h, src/strncasecmp.c: Fixed
	FSF address.

2009-03-02  Daniel Leidert <daniel.leidert@wgdd.de>

	* doc/babel.1, doc/obchiral.1, doc/obconformer.1, doc/obenergy.1,
	doc/obfit.1, doc/obgen.1, doc/obgrep.1, doc/obminimize.1,
	doc/obprobe.1, doc/obprop.1, doc/obrotamer.1, doc/obrotate.1,
	doc/roundtrip.1: Prevent hyphenation of URLs. Fixed an mdoc issue.

2009-03-02  Daniel Leidert <daniel.leidert@wgdd.de>

	* src/formats/smilesformat.cpp: Correct use of sprintf().
	http://lists.debian.org/debian-devel/2008/12/msg01079.html

2009-02-05  Chris Morley
		
	* include/openbabel/bond.h: Added parameter to SetInRing to allow
	it to be unset. (No other public way to do this.)
	
	* src/mol.cpp:(EndModify): Clear all OBBond (OB_RING_BOND)flags to
	fix bug #2568349 	
	(operator=): Copied flags OB_TCHARGE_MOL, OB_TSPIN_MOL and
	OB_PATTERN_STRUCTURE manually because all flags are cleared.
	
2009-01-30  Chris Morley

	* src/formats/chemkinformat.cpp: Move initialization into a
	separate function Init()
	
	Change option -al to -aL (Reactions have labels) to avoid conflict
	with other formats
	
	* src/formats/xml/cmlformat.cpp: Correct floatg error in CML1 output.
	Added generic WriteScalarProperties()
	Output molecular spinMultiplicity as a property, not an attribute.
	On outputing a property, if the title has a namespace use dictRef
	rather than title.
	Output (non-zero) energy from OBMOl::GetEnergy as a property in kJ/mol
	Output a negative vibrational frequency as imaginaryFrequency
		 
	* src/formats/xml/cmlreactformat.cpp: Ensure OBText strings go to
	the original output stream. (Stream may change to output moleculeList
	first.)
	Add reversible attribute on reactions.

2009-01-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/format.h (OpenBabel): Fix PR#2070342. Make
	sure format modules properly inherit GetMIMEType(). Breaks library
	ABI, which is fine for v2.3.

2008-12-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/outformat.cpp: New format to read files with
	extensions .dat, .log, .out and try to guess the format based on
	contents. Currently works with many GAMESS, Gaussian, MOPAC,
	Q-Chem, Jaguar, and MPQC files.

2008-12-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/typer.cpp: Fix for PR#2017902 -- bug introduced by r2578 in
	detecting guanidinium C atoms.

 	* data/element.txt, data/atomtyp.txt: Minor changes. Allow boron
	to have 4 bonds and adjust implicit valence for several elements.

2008-12-02  Chris Morley

	* src/tokenst.cpp, include/openbabel/tokenst.h: Add function
	to ignore istream up to a specified string.
	
	* src/formats/mdlformat.cppReadMolecule): give no warning if
	there are blank lines at the end of the file.
	(SkipObjects): rewrite to prevent confusion by $ chars in
	properties. Should hve been done long ago.

	* src/mcdlutil.cpp, include/openbabel/mcdlutil.h:  more bug
	fixes from Sergey Trepalin. Performs better, but still some
	memory leaks.
	
2008-12-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/pdbformat.cpp: Add support for reading CRYST1
	records, contributed by Francois-Xavier Coudert. PR#2343128.

2008-11-24  Craig James <cjames@emolecules.com>

	* src/canon.cpp: Trivial change: updated a couple of incomplete
	comments.

	* src/formats/mdlformat.cpp: Added informative error messages for
	several errors, such as not enough atoms in atom block, not enough
	bonds in bond block, invalid bond spec, etc.  These errors were
	detected before, but failed silently.

	* src/formats/smilesformat.cpp: Added several features.  New "x"
	option causes the X/Y coordinates to be appended to a canonical
	SMILES output, in canonical order.  Added the ability to create a
	canonical SMILES of a fragment (this was in the original
	cansmilesformat.cpp, but didn't make it into smilesformat.cpp).
	Added the "h" option that prints explicit hydrogens as [H] even if
	they aren't normally part of a canonical SMILES.  Made the "i"
	option (print chirality/isotopes in canonical SMILES) work
	correctly; it was being ignored.  Took out a few obsolete
	statements here and there that were useless (computed values that
	were never used).  Fixed a bug that could cause a crash if a
	molecule consisted entirely of hydrogen atoms.

2008-11-22  Chris Morley

	* src/mcdlutil.cpp: Small bug fixes from Sergei Trepalin
	
	* windows-vc2005/babelconfig.h, windows-vc2005/OBDLL/OBDLL.vcproj,
	windows-vc2005/OBMCDL/MCDL.vcproj, 
	windows-vc2005/OBUtilFormats/OBUtilFormats.vcproj: Windows
	build updated to make groupRedraw() callable.

2008-11-22  Chris Morley

	* src/ops/loader.cpp: do not remove comments after 4th line of
	an entry in plugindefines.tx. SMARTS uses '#'!
	
	* src/ops/optransform.cpp: revamp parsing.
	
	* src/phmodel.cpp(OBChemTsfm::Init): correct bug in which some
	kinds of transform were not taken into account when checking
	whether there was anything to do.

2008-11-22  Chris Morley

	* include/openbabel/text.h: NEW boring and trivial class OBText,
	derived from OBBase. This was proposed last year for formats
	which contained mixed content, like cdx, but has other uses. 

	* src/formats/xml/textformat.cpp: NEW input format for the above
	
	* src/formats/xml/cmlreactformat.cpp: makes use of OBText class
	to insert its output into boilerplate text provided in a file.
	
	* include/openbabel/mol.h, src/mol.cpp(Has2D): add an extra
	parameter to change from "has 2D or 3D" to "has 2D". Correct bug
	which gave the wrong answer for some linear molecules.	
	
	* include/openbabel/obconversion.h, src/obconversion.cpp
	(NumInputObjects): now adjusts for values of -f and -l options

	* src/formats/xml/xml.cpp(GetDerived):correct bug which did not
	update the XMLConversion object even when the base OBConversion
	had changed (bug#2283422).	

	* src/formats/smilesformat.cpp*(SkipObjects): make work properly
	for files without a new line at the end.
	 
	* src/ops/gen2D.cpp, src/ops/gen3d.cpp: set the molecule dimension.

2008-11-21  Geoff Hutchison  <ghutchis@Iridium.chem.pitt.edu>

	* src/data.cpp (GetAtomicNum): Fix bug with patch supplied by
	Wayne Volkmuth (PR#2289021). Crashes with 3-character element.

	* include/openbabel/atom.h: Patch from Wayne Volkmuth to ensure
	atomic numbers are unsigned (i.e., values above 127 are
	OK). PR#2289628.

	* src/formats/pdbformat.cpp: Patch from Francois-Xavier Coudert to
	write CRYST1 records when unit cell data is present. PR#2023510.

	* src/generic.cpp (OBUnitCell::GetLatticeType): Fix bug reported
	(and patched) by Jonathan Coome. PR#2100535.

	* configure.in, config.* ac*.m4, Makefile.am, Makefile.in: Remove
	autotools build files. Use Cmake instead.

2008-11-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/Makefile.am, src/ops/Makefile.am: Build mcdlutil.cpp and
	gen2D.cpp plugin.

	* configure.in: Update to indicate that trunk is not 2.2.0
	build. (May go into a 2.3 or 3.0 build.)

2008-11-12  Chris Morley

	* src/mscdlutil.cpp, data/templates.sdf: revert to previous
	version	with templates internal, since external templates
	did not seem to be always applied.
	#define nRotBondsMax 20 (from 24) which should improve performance.

2008-11-05  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/pqrformat.cpp: Apply patch from Mikael Lund to read in
	partial charges and radii. The radii are added to the atoms as
	OBPairData with attribute "Radius".

2008-10-31  Chris Morley

	* src/formats/getinchi.cpp: prevent failure when input contains
	"InChI>InChI=...", which actually occurred in an SDF file.

2008-10-27  Chris Morley

	* mcdlutil.cpp: Replace all calls to fabs with abs. 
	Remove internal templates and template molecule sorting; all
	template molecules are now in templates.sdf which has to be sorted,
	largest first.
	
	* data/templates.sdf: 147 molecules, sorted
	
	* obconversion.cpp(Convert): make OutputAtEnd option work with
	multiple input files.

2008-10-23  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/chains.cpp: Remove debug output.

	* src/forcefields/forcefielduff.cpp: Check if parameters are found and
	don't try to use a NULL pointer when there isn't a parameter. (Fixes:
	#2187870)

2008-10-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefield*.h: Fix MakeNewInstance().

2008-10-20  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/CMakeLists.txt: Add gen2D.cpp and mcdlutil.cpp
	
	* src/mcdlutil.cpp: Replace all calls to abs(double) with fabs(double)

	* src/formats/MCDLformat.cpp: Replace string.npos with string::npos

2008-10-20  Chris Morley
	
	* include/openbabel/mcdlutil.h, src/mcdlutil.cpp: New files
	which use MCDL library to generate 2D coordinates
	
	* src/formats/MCDLformat.cpp: some code moved to the above files.
	
	* src/ops/gen2D.cpp: wrapper op for --gen2d 
	
	* data/templates.sdf: New file with example template
	
	* src/transform.cpp: help on --sort and --revsort

2008-10-20  Chris Morley
	 
	* include/openbabel/obmolecformat.h, src/obmolecformat.cpp:
	New functions to sort molecules, Sort(), OutputSortedMols()
	and LessThan()
	
	* include/openbabel/descriptor.h, src/descriptor.cpp: New
	virtual function LessThan() and default implementation.
	Make several error messages once only.
	
	* src/descriptors/filters.cpp: Add LessThan functions for TitleFilter
	and more complex one + GetCachedValue() + Init() for InChIFilter.
	 
	* include/openbabel/plugin.h: Add virtual funtion Init() 


	* include/openbabel/mol.h, src/mol.cpp: extra flag to indicate
	is a pattern, not a complete molecule. SetIsPatternStructure()
	Previously described, but somehow not committed.


2008-10-17  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: in OBForceField::GetGrid(), calculate grid size 
	before adding probe atom. 

2008-10-17  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/chains.h, src/chains.cpp: some changes from
	experimental branch, mainly documentation and some bug fixes.

	* src/formats/atomrecord.cpp: Interpret HG11, HE11, ... as hydrogen
	atoms at position gamma and epsilon. Previously these atom ids were
	interpreted as Hg and He atoms. (Fixes: #2002557 & #2026265)

2008-10-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.cpp: Remove _logbuf[100] (Fixes
	#2022120)

2008-10-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/builder.cpp: fix bugs with linear molecules. (Fixes #2119034 & #2013814)

2008-10-15  Chris Morley

	* src/fingerprint.cpp: correct yesterdays commit which used
	the wrong size to reserve for the fingerprint vector.	
	
2008-10-15  Chris Morley

	* include/openbabel/obconversion.h, src/obconversion.cpp:
	New function for counting the number of molecules in an input file.
	Make option to force output at end more general (for sort).
	
	* include/openbabel/fingerprint.h, src/fingerprint.cpp:
	Add extra parameter to FastSearchIndexer constructor to
	allow vectors to be pre-sized.
	
	* src/formats/fastsearchformat.cpp(ReadChemObject): change the way
	the last result molecule is flagged (for sort).
	(WriteChemObject) Make index updating work with GUI by detecting
	a ofstream object rather than cout.
	Count number of molecules in input file, report it and use it
	to pre-size the fingerprint and seekposition vectors.
	
	* src/formats/smilesformat.cpp(SkipObjects): make compatible with
	previous interpretation changes. (Lines which start with non-SMILES
	character are ignored.)


2008-10-15  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.cpp: Accept both forms for sulfon
	and nitro groups: N(=O)O, N(=O)=O, S(O)O, S(=O)(=O) are now all valid
	and typed correctly.

2008-10-11  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefielduff.cpp: Fix minor output bug reported by
	Tapani Kinnunen (Fixes: #2144142)

2008-10-11  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, src/forcefields/forcefieldmmff94.cpp: Remove
	redefinition of _logbuf[BUFF_SIZE+1] (This and Chris' previous commit 
	fixes: #2150390)

	* src/forcefield.cpp: Fix OBForceField::GetAtomTypes() and
	OBForceField::GetPartialCharges()

	* src/forcefield.cpp: Check OBForceField::_validSetup flas before
	doing anything that may cause a segfault. (Fixes: #2059299)

	* src/forcefields/forcefield*.h: Set _validSetup to false in
	constructor.

	* CMakeLists.txt, src/config.h.cmake: apply patch from Christian
	Ehrlicher to fix cmake MSVC compilation.

2008-10-10  Chris Morley

	* src/fingerprints/finger3.cpp: rearrange
	a) so that div and div-- do not appear in same statement, which
	is illegal (Andrew Dalke).
	b) replace ternary conditional, which did not compile in gcc
	It's a pity the Microsoft compiler did not warn about either of these.
	
	The preferred file format no longer needs a comment as first line.

	* src/formats/chemkinformat.cpp(ReadReactionQualifierLines):
	correct error similar to b) above flagged in bug #2150390	 

2008-10-16  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Added casting methods for all of the
	different types of OBGenericData

2008-10-10  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-perl.i: Replaced the C++ iterators by Perl classes
	which can be used for iteration natively in Perl.

2008-10-04  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Fix OBForceField::GetAtomTypes() and
	OBForceField::GetPartialCharges()

2008-09-26  Chris Morley

	* src/formats/fastsearchformat.cpp: Improved error message when
	 target is SMARTS rather than SMILES. Bug #2129841
	 
	* src/formats/getinchi.cpp: small mod to avoid occasionally seeing
	 a "quoted" InChI when there isn't one. (There ARE none in the wild.)
	
2008-09-23  Chris Morley
	
	* src/fingerprints/finger3.cpp: enhanced PatternFP which can take
	extra parameters and file format.
	
	* data/MACCS.txt; data for new MACCS fingerprint (from RDKit)
	
	* data/plugindefines.txt; definition of MACCS fingerprint.

2008-09-20  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Check OBForceField::_validSetup flas before
	doing anything that may cause a segfault. (Fixes: #2059299)

	* src/forcefields/forcefield*.h: Set _validSetup to false in
	constructor.

2008-07-19  Michael Banck  <mbanck@gmx.net>

	* src/formats/opendxformat.cpp: Rename theGaussianCubeFormat global
	variable to theOpenDXCubeFormat.

	* src/formats/CMakeLists.txt: Added opendxformat to formats.

2008-07-11  Chris Morley

	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi
	Set Env Var BABEL_DATADIR to installation directory. Safer than 
	relying on finding the data files in the current directory.
	
	* include/openbabel/builder.h, src/builder.cpp: check whether
	fragments.txt is loaded successfully and if not return false
	from Build().

2008-07-09  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/pybel.py: Bug fix for make3D for linear molecules.
	Fixes bug 2014055. Minor doc fixes. Remember to close output files
	in Molecule.write().

2008-07-03  Noel O'Boyle  <baoilleach@gmail.com>

	* windows-vc2005/OBPythonOBF/setup.py: Update setup.py to include
	forcefield files when installing

2008-07-03  Michael Banck  <mbanck@gmx.net>

	* scripts/Makefile.am (dist-hook): Do not fail if make distclean does
	not succeed in the perl and ruby directories.
	* scripts/Makefile.in: Regenerated.

	* data/Makefile.am (table_DATA): Added plugindefines.txt.
	* data/Makefile.in: Regenerated.
	* data/CMakelists.txt: Removed space-groups.xsl from to_install.

	* test/cmlreadfile.cpp: Read files from TESTDATADIR, not relative to
	current directory.
	* test/wrapper.sh: Use ${srcdir}, not ${top_srcdir} to set
	$BABEL_DATADIR.
	* test/wrapper.sh: Run inchi tests from source directory if ${srcdir}
	is non-empty.  Set and export TESTDATADIR.

2008-07-03  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/ruby/README: Updated build instructions

2008-07-03  Michael Banck  <mbanck@gmx.net>

	* src/CMakelists.txt (LIBRARY_VERSION): New variable.
	* src/CMakelists.txt (BABEL_LIBRARY): Set VERSION property to
	${LIBRARY_VERSION}.
	
2008-07-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/Makefile.am, src/CMakeLists.txt: Update SONAME to 3 for
	version 2.2.0 release.

2008-07-03  Marcus D. Hanwell  <marcus@cryos.org>

	* CMakeLists.txt: Relaxed the CMake requirement to 2.4.7.

	* include/openbabel/griddata.h, src/griddata.cpp: Added three new
	getter functions to get the x, y and z axes.

	* src/CMakeLists.txt: Updated to use SONAME 3.

	* include/openbabel/mol.h, src/mol.cpp: Added extra arguments to
	GetMolWt, GetExactMass and GetSpacedFormula to optionally disable
	implicit hydrogens. Defaults to preserve existing behaviour.

	* src/grid.cpp: Fixed the Init function to apply padding correctly.

2008-07-02  Marcus D. Hanwell  <marcus@cryos.org>

	* include/openbabel/grid.h, src/grid.cpp: Updated the documentation
	and a few fixes to the function prototypes.

        * include/openbabel/griddata.h, src/griddata.cpp: Updates to the
	documentation, added a GetMaxVector function and made SetLimits const
	fixes for the vector3 form.

	* CMakeLists.txt, src/CMakeLists.txt, src/formats/CMakeLists.txt:
	Reduce the number of version variables floating around to only those
	that are used...

	* CMakeLists.txt, src/formats/CMakeLists.txt: Use a versioned plugin
	directory as autotools does.

2008-07-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/locale.cpp: Add string.h header, from patch by Marcus
	Hufgard. Allows compilation with GCC 4.3.1 on Linux:
	PR#2008642.

	* src/formats/gausszmatformat.cpp: Add definition of
	strcasestr if not defined. Solves compile problems on Cygwin.

	* configure.in, src/config.h.in, configure: Check for
	rpc/xdr.h needed for xtcformat.

	* src/formats/xtcformat.cpp: Use new HAVE_RPC_XDR_H #define.

	* src/formats/smilesformat.cpp: Bring back FIX format, killed
	during merger of canonical and standard smiles.

	* src/rotamer.cpp, src/locale.cpp, src/base.cpp,
	include/openbabel/atom.h, include/openbabel/locale.h,
	include/openbabel/forcefield.h,
	include/openbabel/pointgroup.h,
	include/openbabel/fingerprint.h: Doxygen updates for 2.2.0.

2008-07-02  Chris Morley

	* src/descriptor.cpp(PredictandSave): don't duplicate an existing
	OBPairData. Was crashing when adding a property that was already
	present. 
	 
	* src/formats/smilesformat.cpp(StandardLabels): A couple of vectors now
	have 2147483647 pushed when the atom is H, to match the situation with
	canonical ordering, rather than ending up with a size smaller than the
	number of atoms. I assume 2147483647 = 2^31-1 is just a big number?
	Fixes bug 1999348.

2008-07-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/kekulize.cpp (expandcycle): Add more flexible API for
	expandcycle.

	* scripts/perl/Makefile.PL: Update from Noel for PR#2007797.

	* Makefile.*, configure.*: Update for 2.2.0 release.

2008-07-01  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/atomrecord.cpp: Fix bug where arginine hydrogen atoms
	where read as dummy Xx atoms. (#2002557)

	* src/formats/pdbformat.cpp: 1) Write the chain number. 2) Don't
	rearrange atom ids when writing. (see chains item 2)

	* src/chains.cpp: 1) Serine OG is now given the correct atom id.
	2) produce correctly ordered atom ids (see pdbformat item 2)
	3) fix for cyclic peptides (have no NTer)
	4) water, ions and ligands are all placed in the ' ' chain now and get
	unique residue numbers.
	5) partially identified residues are merged with the atoms not used to
	identify them and the resids is set to UNK (hetflags is also set to
	true) (e.g. CSD in 1LWF = CYS with two O's on S )

2008-07-01  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/pybel.py: Make pybel use CloneData instead of SetData
	
2008-07-01  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Make the BFS Iterator return two values,
	the Atom and the depth
	
2008-07-01  Chris Morley

	* data/atomtyp.txt: remove IMPVAL entry for silicon to fix
	bug #1911590. (I thought I had already done this.)
	
	* windows-vc2005/babelconfig.h: add macro which apparently
	disables native tr1 in recent VC++ 2008, so that boost version
	will be used. Step towards getting tit to compile on this
	platform but probably not there yet. Not critical for v2.2.0
	release, since Windows compilation should be done from SVN.

2008-06-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Makefile.am: Move cmake to EXTRA_DIST (4 Makefiles for one
	file?)
	* Makefile.in: Regenerated.

	* include/openbabel/base.h, src/base.cpp: New CloneData()
	method to solve PR#2004495 for scripting interfaces.

	* src/Makefile.am, src/Makefile.in: Bump library version for
	2.2 release.

	* src/formats/smilesformat.cpp: Minor fix relating to
	PR#1999348.

	* src/patty.cpp, src/forcefield.cpp, src/oberror.cpp, 
	src/generic.cpp, src/canon.cpp, src/dlhandler_unix.cpp, 
	src/data.cpp, src/grid.cpp, src/mol.cpp: Minor fixes from
	static code analysis. Test for empty() instead of size().


2008-06-30  Michael Banck  <mbanck@gmx.net>
	
	* src/Makefile.am (EXTRA_DIST): Added config.h.cmake.
	* src/Makefile.in: Regenerated.

	* Makefile.am (SUBDIRS): Added cmake.
	* Makefile.in: Regenerated.
	* cmake/Makefile.am: New file.
	* cmake/Makefile.in: New file.
	* cmake/modules/Makefile.am: Likewise.	
	* cmake/modules/Makefile.in: Likewise.	
	* configure.in (AC_OUTPUT): Added cmake/Makefile and
	cmake/modules/Makefile.
	* configure: Regenerated.
	* acinclude (AM_PATH_XML2): New macro, copied from aclocal.m4.

2008-06-29  Marcus D. Hanwell  <marcus@cryos.org>

	* include/openbabel/math/vector3.h,
	include/openbabel/math/matrix3x3.h: Made the destructors non-virtual,
	fixes Avogadro bug 2005984.

2008-06-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/obiter.h, src/obiter.cpp: Fix
	PR#1901348. Add support for BFS iteration from arbitrary
	atoms.

	* include/openbabel/math/*.h, src/math/*.cpp: Updates to fix
	some GCC warnings.

	* include/openbabel/bond.h, src/bond.cpp: Patch from Steven
	Constable, PR#2004391. Adds SetLength() to move both atoms.

	* include/openbabel/mol.h: Fix for ReserveAtoms() suggested by
	Andrew Dalke.

	* src/formats/mdlformat.cpp: Fix for SKP records, suggested by
	Andrew.

	* src/formats/pdbformat.cpp: Fix for CONECT records for atoms
	with > 4 records (PR#1711154).

2008-06-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/parsmart.cpp: Add support for Isotopes in SMARTS. Fixes
	PR#1987729.

	* test/files/nci.smi: Add tests for matching isotopic
	SMILES/SMARTS.

2008-06-23  Chris Morley

	* test/inchiwrite.cpp: add -xn option so that the tests are done without
	the 'recommended' InChI options. wInChI.exe is not yet available
	for InChI 1.02. Needs revisting when it is.

	* src/fingerprint.cpp(FastSearchIndexer): ensure fpid is terminated
	when copied to guard against theoretical problem pointed out
	by Andrew Dalke.

2008-06-21  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/chains.cpp: Assign HOH and ligands to separate residues.
	(#1774776)

2008-06-21  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/atomrecord.cpp: Keep original chain ID (#1760959).

2008-06-21  Carsten Niehaus  <cniehaus@kde.org>

	* src/obutil.cpp: Typo fixes.

	* src/forcefields/[forcefielduff.cpp,forcefieldmmff94.cpp]: Typo fixes

	* src/formats/[mpdformat.cpp,xtcformat.cpp]: Typo fixes
	
	* src/forcefields/*.h: Make ctor explicit.
	
2008-06-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obutil.cpp (CartesianToInternal): Fix PR#1923896 for
	Fenske-Hall z-matrix format. When looking for non-linear
	atoms, don't pick non-bonded >10.0 Angstroms, which cause
	problems with FH (and other) fixed format z-matrices.

	* src/mol.cpp (ConnectTheDots): Fix for PR#1813502 for
	existing bonds getting deleted by ConnectTheDots. Make sure to
	preserve all original connections from PDB.

	* src/formats/pdbformat.cpp (ReadMolecule): Fix for PR#1985681
	with virtual bonds still built into a PDB file.

2008-06-20  Chris Morley

	* include/openbabel/locale.h, src/locale.cpp: extra #includes
	
	* windows-vc2005/babelconfig.h: define strdup. Version to 2.2.0
	
	* include/openbabel/obiter.h: trivial change to avoid compiler warning
	
	* src/fingerprints/finger3.cpp: do singel SMARTS match, as suggested by
	Ernst-Georg Schmid

	* windows-vc2005/OBError/OBError.vcproj: add locale.cpp

2008-06-20  Noel O'Boyle  <baoilleach@gmail.com>

	* Revert of r2347: I had set eol:native instead of eol-style native.

2008-06-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/fingerprint.cpp: Contribution from Andrew Dalke for
	improved speed using GCC.

2008-06-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/locale.h, src/locale.cpp: New OBLocale class
	to centralize calls to setlocale/uselocale. Should solve strange
	segfault on Linux with freelocale.

	* include/openbabel/obiter.h, src/obiter.cpp: Add depth tracking
	for DFS and BFS iterators. Addresses PR#1901348.

2008-06-18  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/*.cpp: Checked all files for their use of tokenize().
	All added lines are like:
	
	if (vs.size() < 1) return false; // timvdm 18/06/2008 

	* include/openbabel/obiter.h, src/obiter.cpp: Reimplement
	FOR_PAIRS_OF_MOL. Do not build a list of all pairs in the constructor,
	but find the pairs while iterating. This is faster and requires less
	memory.

	* include/openbabel/forcefield.cpp: Add SetParameterFile().

	* src/forcefields/forcefieldmmff94.*: Use the new SetParameterFile().
	Add a global definition for MMFF94s.

	* data/*: Add MMFF94s parameters.

	MMFF94s: Same functional form, only torsion and oop parameters are
	different. To see the difference, you can try to minimize alanine with
	both force fields, MMFF94s will give a planar nitrogen while MMFF94
	will not.

2008-06-17  Noel O'Boyle  <baoilleach@gmail.com>

	* Reverted r2535 except for changes to scripts/perl/Makefile.PL
	* scripts/openbabel-python.i: Updated SWIG interface file to ignore 21
	methods of each std::vector created. This should substantially reduce
	the size of the wrapper code.

2008-06-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/xtcformat.cpp: make confs a std::vector too. Was double
	*confs = new double[natoms * 3].

2008-06-16  Chris Morley

	* include/openbabel/oberror.h, src/oberror.cpp:
	add a parameter to ThrowError to allow error messages to be 
	output only once (although they are all logged.). The default
	behaviour is as at present.
	
	* src/formats/inchiformat.cpp: default output uses the "recommended"
	set of InChi options. -xn option uses no options as at present.
	
	Add -xl option to output the InChI log - only once for multiple
	molecules.
	
	* include/openbabel/fingerprint.h, src/formats/fingerprintformat.cpp:
	Make DescribeBits error message appear only once.
	
	* src/mol.cpp(GetTitle): make variable title static to avoid returning
	a pointer to a temporary variable. But this might cause problems with
	multiple molecules unless the title is captured in the calling code 
	before getting the next. Until this is done properly, add a
	test so that the problem can only occur with multi-line titles.

	* src/formats/smilesformat.cpp: add option to output explicit hydrogen
	form like [CH3][CH3].
	**** The SMILES output currently crashes with  Nc1nc(O)c2nc[nH]c2n1
	but I haven't tracked this down.****
	
	* src/ops/addpolarh.cpp: add simple op for Feature Request #1995162 
	
	* windows-vc2005/gen3D/gen3D.vcproj,
	windows-vc2005/OBMoreFormats/OBMoreFormats.vcproj: update

2008-06-15  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/cssrformat.cpp, src/formats/MCDLformat.cpp,
	src/formats/mmcifformat.cpp, src/formats/balstformat.cpp,
	src/formats/chemdrawcdx.cpp, src/formats/boxformat.cpp,
	src/formats/unichemformat.cpp, src/formats/yasaraformat.cpp,
	src/formats/zindoformat.cpp, src/formats/gromos96format.cpp,
	src/formats/xedformat.cpp: sprintf --> snprintf

	* src/chains.cpp, src/pointgroup.cpp, src/rotor.cpp: Some more sprintf
	-> snprintf (I don't expect any problems here, but just in case...)

	* include/openbabel/forcefield.cpp, src/forcefield.cpp,
	src/forcefields/*: Replace sprintf(_logbuf, ...) with
	snprintf(_logbuf, BUFF_SIZE). 

2008-06-14  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/chain.h, src/chain.cpp: Replace:
	1) malloc/free with new/delete
	2) new T[n] with std::vector (where possible)
	Original code still there as comments, can be removed once reviewed.

	* src/parsmarts.cpp: Replace malloc/free with new/delete.
	Replace realloc(array, size) with:
	  T *tmp = new T[size];
	  copy(array, array + old_size, tmp);
	  delete [] array;
	  array = tmp;


2005-06-14  Marcus D. Hanwell  <marcus@cryos.org>

	* src/formats/xtcformat.cpp: Some modifications to the xtc format to
	use C++ structures.

	* CMakeLists.txt, src/formats/CMakeLists.txt: Some build system
	updates to build format plugins as modules.

	* src/ops/loader.cpp: GCC 4.3 fix - cstdlib needed for free calls.

2008-06-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/atom.h, src/atom.cpp: Add OBAtom::Duplcate()
	which will copy everything except the internal index.

	* include/openbabel/generic.h, src/generic.cpp: Add
	OBUnitCell::FillUnitCell() method to create space-group-defined
	atoms. Uses OBAtom::Duplicate.

2008-06-13  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.cpp: Change GetGradient(..., int terms
	= ...) to GetGradient(..., int /*terms*/ = ...). (comiler warning:
	unused parameter).

	* src/forcefields/*.cpp: Change i->Compute<gradients>() to i->template
	Compute<gradients>().

	* include/openbabel/builder.h, src/builder.cpp: Make most functions 
	static.

	* src/mol.cpp: Use OBBuilder::GetNewBondVector() in AddHydrogens(). 

2005-06-13  Marcus D. Hanwell  <marcus@cryos.org>

	* src/formats/mdlformat.cpp: Use static_cast in the min function.

2008-06-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/typer.cpp: Add a special case for guanidinium carbon
	atoms. (We may need additional special cases.)

	* data/atomtyp.txt, data/atomtyp.h: Change pattern for N3+ to
	match any 4-valent N, regardless of whether the formal charge has
	been set.
	
	* src/kekulize.cpp (NewPerceiveKekulizeBonds): Give up on
	kekulization when we find "cycles" with < 3 atoms. Sybyl mol2
	labels some atoms as aromatic that aren't in rings. Fixes
	PR#1965566 and PR#1784204.

	* include/openbabel/mol.h, src/mol.cpp (GetTitle): Add a parameter
	to replace newlines with spaces. Fixes PR#1984742.

	* configure.in: Check for xlocale.h, locale.h, and uselocale functions.

	* src/data.cpp, src/ops/loader.cpp, src/ops/optransform.cpp,
	src/descriptors/groupcontrib.cpp, src/builder.cpp,
	src/forcefields/forcefieldmm2.cpp,
	src/forcefields/forcefielduff.cpp,
	src/forcefields/forcefieldmmff94.cpp,
	src/forcefields/forcefieldghemical.cpp, src/obconversion.cpp:
	Change locale using uselocale if available and reset it to the
	afterwards. Update of previous change, suggested by Benoit.

	* include/openbabel/bond.h, include/openbabel/atom.h,
	src/bond.cpp: Fixes for "const" correctness. It's now possible to
	get the bond length of a const OBBond.
	
2008-06-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.cpp, src/ops/loader.cpp, src/ops/optransform.cpp,
	src/descriptors/groupcontrib.cpp, src/builder.cpp,
	src/forcefields/forcefieldmm2.cpp,
	src/forcefields/forcefielduff.cpp,
	src/forcefields/forcefieldmmff94.cpp,
	src/forcefields/forcefieldghemical.cpp, src/obconversion.cpp:
	Change locale before parsing files to use "C" numeric locale and
	reset it to the original state afterwards. Should solve PR#1785463.

	* src/obiter.cpp: Fixes from Izhar for DFS and BFS iterators.

	* src/mol.cpp, include/openbabel/mol.h: Added iterative
	GetFragment method to augment Separate(), contributed by Izhar.

2008-06-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/phmodel.cpp (OBPhModel::CorrectForPH): Fix PR#1835204. Allow
	SMILES to have pH-correction. (i.e., only check for automatic
	formal charges for molecules with dimension > 0).

	* src/formats/mdlformat.cpp: Add a check for EOF before reading,
	as suggested by Izhar.

	* src/formats/smilesformat.cpp: Add initial pass at "standard"
	SMILES labels.

	* Doxygen, include/*.h, src/*.cpp: Update doxygen documentation.

2008-06-07  Chris Morley

	* src/formats/fingerprintformat.cpp: correct folding error message
	and prevent description of bits when fingerprint is folded.
	
	* src/formats/smilesformat.cpp: change -xc to -xa (for atomclass)
	
	* windows-vc2005/OBFS/OBFS.vcproj,windows-vc2005/OpenBabelOBF.sln
	add dependency of OBCommon to Fastsearch project

2008-06-06  Chris Morley

	* src/formats/smilesformat.cpp: SMIFormat was being hidden because
	its constructor was being called again when its derived class
	CANSMIFormat was made. Now both derived from a base class with most
	of the functionality. 
	Modified Description() and made same for both.
	Removed DEFAULTFORMAT flag (MolFormat already is).
	
	* include/openbabel/mol.h: add back #include <float.h> which was
	somehow removed in the last commit and is need for Windows build.
	
	* windows-vc2005/OBCommonFormats/OBCommonFormats.vcproj: remove
	cansmilesformat.cpp
	
2008-06-06  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/phmodel.h, src/phmodel.cpp: Changes to OBPhModel, 
	use the	Henderson-Hasselbalch formula to determine protonation states.
	Updated doxygen documentation to give some info about the method.

	* include/openbabel/mol.h, src/mol.cpp: Use it.
	OBMol::AddHydrogens(bool polar=false, bool correctForPH=true, double
	pH=7.4)

	* data/phmodel.txt: Add extra column with pKa values.

	* test/phmodel.cpp: Unit test for the new phmodel. The two errors are
	Glutamate (4.0 used, should be 4.3) and Lysine (10.0 used, should be
	10.1). I'll probably have to add a visited list so we can only
	transform an atom once, transformations would then have to be ordered
	by decreasing complexity. But the errors are very small and this is a
	major improvement compared to what we had.

2008-06-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/openbabel-python*, scripts/python/*: Split the python
	bindings into three pieces for improved compilation. Should solve
	PR#1905826.

	* src/obconversion.cpp: Add stdlib.h to hopefully solve
	PR#1985717.

	* configure.in, configure: Update to build libinchi by default.

	* src/formats/smilesformat.cpp: Incorporate cansmilesformat
	code. Now all SMILES export goes through Craig's cleaner,
	less-buggy code. Currently all SMILES are canonically
	ordered. Need to add code to provide non-canonical ordering for "regular."
	
	* src/formats/Makefile.* src/formats/CMakeLists.txt: Update for above.

2008-06-05 Chris Morley

	* src/obconversion.cpp(Convert): test for Cntl Z to terminate
	commandline input rather than \n (a blank line).
	Fixes bug 1984660: piping with titleless mol files.
	Commandline data input always was clunky and is even clunkier now.
	Being able to pipe is more important. 
	
	* src/forcefield.cpp:In line 2535 replace 'dafault:' by 'default:' 
	This may have a real effect and needs to be checked.
	
	* include/openbabel/bitvec.h, src/canon.cpp,src/dlhandler_win32.cpp,
	src/forcefield.cpp, src/formats/cansmilesformat.cpp,
	src/formats/gamessformat.cpp, src/formats/gaussformat.cpp,
	src/formats/KFReader.c,src/formats/mol2format.cpp,
	src/formats/msmsformat.cpp, src/pointgroup.cpp,
	src/tokenst.cpp:
	Tidy to reduce compiler warnings: remove or comment out unreferenced
	variables; size_t decalation replaces some int or unsigned;
	!=NULL added to avoid implict const char* to bool conversion 
	
	* windows-vc2005/OBMoreFormats/OBMoreFormats.vcproj: change to
	project build order as pointed out by peterennis bug #1985163


2008-06-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mopacformat.cpp: Fix for PR#1978982 with reading
	Mopac 2007 force calculations.

	* src/formats/atomrecord.cpp: Fix SetAtomID as reported in
	PR#1838095. Thanks to Marc Lasson for bug report and fix.

	* src/formats/adfformat.cpp, src/formats/Makefile.am: Add KFReader
	and ArrayList code contributed under LGPL by SCM, Inc. for
	improved ADF binary support.

2008-06-04 Chris Morley

	* include/openbabel/mol.h: include float.h so that isinfinite
	is handled properly in Windows
	
	Deficiencies raised by Andrew Dalke
	
	* src/fingerprint.cpp: Error message if attempting to fold to 
	less than size of unsigned int.
	
	* src/formats/fingerprintformat.cpp(WriteMolecule) Error message 
	when parameter of -xN option (fold) is negative.
	
	* src/formats/fastsearchformat.cpp(WriteChem Object):
	Error message if more than one input file.
	
	Delete the outputstream after deleting the index, which is when
	it is written. Sometimes a fs file made without a specified name 
	was empty.
	
	* tools/babel.cpp: change indentation on help text
	
	* windows-vc2005/OpenBabelOBF.sln: another go at getting debug and
	release configurations right. The scripting interfaces need to be
	explicitly enabled before building if they are required. (I get
	tired of waiting for them.)

2008-06-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/residue.cpp (GetResidueNumber): Fix bug reported by Izhar
	Wallach.

	* src/forcefields/forcefielduff.cpp: Fix error reported by Chris
	Morley with Microsoft compiler -- don't duplicate loop variable names.

2008-06-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/atomtyp.txt, data/atomtyp.h: Add hybridization rules for
	Si, Al, Ge, As, Se, and Te. (Atom typing and valence rules need to
	be generalized.) Fixes problems with adding hydrogens to Si
	uncovered in Avogadro.

2005-06-02  Marcus D. Hanwell  <marcus@cryos.org>

	* src/atom.cpp, src/mol.cpp: Added extra checks in AddHydrogens for
	finite hydrogen coordinates. Also added some extra checks in the
	GetNewBondVector function to check for sane numbers.

2008-06-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Makefile.am, Makefile.in: Correct small automake typo with
	"autoconf" libtool macro directory.

	* configure: Regenerated using autogen.sh.

	* include/openbabel/grid.h: Fix compiler warning -- make sure to
	return values in all methods.

	* src/forcefield.cpp: Fix compiler warning "default" not "dafault"
	in switch statements.

	* src/formats/qchemformat.cpp, src/formats/gamessformat.cpp,
	src/formats/gaussformat.cpp, src/formats/fchkformat.cpp: Add
	support for reading dipole moments using OBVectorData.

2008-06-01  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/atomrecord.cpp: Call OBAtom::ForceImplH() for all atoms.
	Loading a pdb file and calling OBMol::AddHydrogens() added only on
	hydrogen.

2005-05-31  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-csharp.i: Fixed two of the three remaining
	std::vectors based on examples found in Krugle code search

2005-05-30  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-csharp.i: Fixed most of the std::vectors by using
	weird macro described in std_vector.i in the SWIG distribution

2005-05-30  Marcus D. Hanwell  <marcus@cryos.org>

	* configure, configure.in: Stop the wx-config test being called when
	the wx-gui is not enabled - bug 1979603.

2005-05-30  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-csharp.i: Added header file to SWIG wrapper. Also
	removed several of the vector templates. These don't seem to be
	handled correctly by SWIG (should report bug to them).

2008-05-30  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: OBFFConstraints::Clear(), clear all the bitvecs.
	ConjugateGradientsTakeNSteps(), set _grad1[] to (0,0,0) when atom is
	fixed and not _gradientPtr (_grad1 is used for linesearch).
	Setup() & SetConstraints, check if SetupCalculations needs to be
	called. This is the case when the ignored bitvecs of both
	OBFFConstraints are different.

	* include/openbabel/forcefield.h: OBFFConstraints::GetIgnoredBitVec().
	Used in Setup() & SetConstraints().

2008-05-28 Chris Morley

	* windows-vc2005/OBCSharp/OBCSharp.vcproj,
	* windows-vc2005/OBJava/OBJava.vcproj,
	* windows-vc2005/OpenBabelOBF.sln
	Build release versions even in Debug mode.
	Use env var JAVABASE, e.g."C:\Program Files\Java\jdk1.6.0_03"
	so that there is no dependence in the code on the installed
	Java version. (Is there a standard variable for this?)
	
	* windows-vc2005/OBMoreFormats/OBMoreFormats.vcproj:add adfformat

2008-05-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/openbabel-perl.i, scripts/perl/Makefile.PL: 
	Fix up Perl scripting. Now works on Mac OS X and appears to have
	clean converisons via "make test." Fixes PR#1795155 and 1881688.

	* src/formats/adfformat.cpp (OBT41Format::ReadMolecule): Convert
	from zyx format in ADF files to xyz in Open Babel for cubes. Only
	keep cubes which have actual data.

2005-05-28  Marcus D. Hanwell  <marcus@cryos.org>

	* src/formats/xml/cmlformat.cpp: Fixed PR 1975137 - atoi, strtol
	require null terminated strings.

2008-05-27  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/obiter.cpp: (same as Chris' commit, but let's do the same for angles)
	Make sure to always set _i, even when _vtorsion is empty.
	Otherwise OBMolTorsionIter::bool() will compare _i to _vtorsion.end() which
	caused a segfault on windows. Fixes Avogadro windows bug #1972244.

2008-05-27 Chris Morley

	* src/obiter.cpp(OBMolTorsionIter::OBMolTorsionIter):
	prevent crash when _vtorsion is empty. Was affecting builder
	with small molecules.

2008-05-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/Makefile.* src/formats/Makefile.*: Add versioned install
	directories for formats. Fixes PR#1905093.

	* src/formats/hinformat.cpp: Fix PR#1947913 with hang during HIN
	reading.

2005-05-26  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-csharp.i: Creating SWIG wrapper for C#
	* windows-vc2005/OpenBabelOBF.sln, OBJava, OBCSharp: Creating projects
	for OBJava and OBCSharp

2008-05-24  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/builder.cpp: Fix bug. CorrectStereoAtoms was not checking the 
	size of refs, before doing refs[0]...refs[3] (thanks Noel)

2008-05-25 Chris Morley
	
	windows-vc2005/examples: new folder with an example project
	for OBF build. Will replace /template.

2008-05-24  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Setup(), delete TorsionData before using 
	FOR_TORSION_OF_MOL. (fixed #1954233)

	* windows-vc2005/OBCommonFormats/OBCommonFormats.vcproj: Correct
	location for obmolecformat.cpp

2005-05-24  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/java/README: Updated instructions for using Java bindings on
	Linux

2008-05-23  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* windows-vc2005/openbabel.sln: remove non-existing OBPython and test, 
	add template.

	* windows-vc2005/OpenBabelDLL/OpenBabelDLL.vcproj: move obmolecformats 
	from formats to sources.

	* windows-vc2005/template/*.*: Example of a C++ program using openbabel.

2005-05-23  Marcus D. Hanwell  <marcus@cryos.org>

	* include/openbabel/obconversion.h: Removed extra qualification on
	OpenInAndOutFiles which broke compilation here.

2008-05-23 Chris Morley

	* include/openbabel/obconversion.h, src/obconversion.cpp:
	Add OBConversion::OpenInAndOutFiles to aid scripting

2008-05-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp: SetTorsion(), move j=*i out of this for loop:
	for (i = atom.begin(), j = *i; ... ; i++, j = *i)
	This was causing weird results in windows (MSVC2005). Thanks 
	to Noel for reporting the bug, this also fixes #1954233 I believe.

2008-05-23 Chris Morley

	* src/formats/xml/cmlformat.cpp: Applied Jean Brefort's patch to fix
	leading spaces on atom refs bug #1965086
	

2005-05-23  Noel O'Boyle  <baoilleach@gmail.com>

	* Pybel: minor fix to test suite for running outside cinfony

2005-05-23  Noel O'Boyle  <baoilleach@gmail.com>

	* Pybel: Synching with cinfony, and getting ready for release as 1.3

2008-05-22 Chris Morley

	* data/atomtyp.txt: remove
	  IMPVAL  [N^2-,N^3-]		2
	and add
	  IMPVAL	[N-]			2
	so that O1S(=O)(=O)[N-]C(=O)C=C1C.[K+] is interpreted correctly.
 
	* src/formats/pngformat.cpp: minor documentation change

2005-05-22  Marcus D. Hanwell  <marcus@cryos.org>

	* CMakeLists.txt: Fixed version string in CMake. Also added policy
	stuff for CMake 2.6 and the option to set the library directory.

2008-05-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp: copy OBChiralData for all atoms in operator=.

	* include/openbabel/builder.h, src/builder.cpp: Added
	Swap(...) : swap the position of two substituents (can be used to
	invert chiral centers)
	CorrectAtomChirality(...) : use the (atomreftype) input references to
	make sure the molecule has the right chirality as specified by
	IsClockwise() / IsAntiClockwise().
	CorrectBondChirality(...) : use the IsUp() / IsDown() values to rotate
	the bonds if needed.

2008-05-20  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	Changes from avogadro win32 build:

	* include/openbabel/obutil.h: Change std::min(a,b) into std::min<const
	double>(a,b).

	* src/mol.cpp: OBMol::FindChildren was iterating over an atom's bonds
	in a wrong way.

2008-05-19  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: rename _T to
	_temp. (_T is more likely to be defined elsewhere compared to _temp).

2008-05-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/grid.h, src/grid.cpp,
	include/openbabel/griddata.h, src/griddata.cpp: Some 'const'
	updates.

	* src/formats/adfformat.cpp: Update to use OBGridData rather than
	custom T41Data class.

2008-05-16  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/java/OBTest.java: Bring back test program.

	* scripts/openbabel-java.i, scripts/openbabel-perl.i,
	scripts/openbabel-ruby.i: Fix script bindings. Now compile
	cleanly. Perl still needs work to pass tests.

	* include/openbabel/math/spacegroup.h, include/openbabel/plugin.h:
	Minor updates for SWIG compatibility.

	* src/formats/Makefile.*: Add xtcformat.cpp.

	* src/formats/xtcformat.cpp: Add rpc/types.h for Mac
	compatibility.

2008-05-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Added functions
	to temporarily ignore or fix an atom. This allows interactive programs
	to use this while drawing (no repulsion between your new atom and the
	fragment you want to connect to. 

	* src/forcefields/forcefield*.cpp: Same

2008-05-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/CMakeList.txt: Add xtc format for non-WIN32 platforms.

2008-05-13  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/obconversion.cpp: save the filename in ReadFile (needed for xtc
	format).

2008-05-13  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/xtcformat.cpp: Portable compressed trajectory file
	format. Used by gromacs. Since there is no real API to handle
	trajectories at the moment, ReadMolecule is used. Instead of
	CastAndClear, the OBBase object is only cast to an OBMol object to
	which conformers are added for each frame. Box, step and time are
	currently ignored. Currently read only. (Avogadro implementation)

	* Makefiles: NOT updated yet, from looking at the gromacs source, it
	seems that the XDR stuff needs special handling on windows and I don't
	want to break OB now.

2008-05-13  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/atom.cpp: Replace implementation for 
	bool IsHbondDonor() { return MatchesSMARTS("[$([#8,#7H,#9;!H0])]"); }
	with C++ code for better performance.

2008-05-10  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/OBPythonOBF/setup.py: Adding missing oberror.dll.

2008-05-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/opendxformat.cpp: Bug fixing. Now roundtrips OpenDX
	data from APBS. The format will create an empty OBMol with
	attached OBGridData.

2008-05-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Regenerate autotools build system based on Daniel's updated autogen.

	* include/openbabel/mol.h, src/mol.cpp (DeleteAtom, DeleteBond,
	DeleteResidue): Update to allow the user to free an atom, bond or
	residue (i.e., just remove the atom or bond or residue from the molecule).

2008-05-07  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/pybel.py: Synch with cinfony.

2008-05-06  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: initialize static _constraints to a
	OBFFConstraints object.

2008-05-06  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/parsmarts.cpp: Add if(_pat) before _pat->...(). This was causing
	Avogadro to crash here sometimes.

2008-05-05  Daniel Leidert <daniel.leidert@wgdd.de>

	* autogen.sh: Force aclocal and autoheader to regenerate files to
	avoid timestamp issues (probably not necessary for automake and
	autoconf).

	* include/openbabel/Makefile.am: babelconfig.h is not removed
	automatically. Added it to DISTCLEANFILES.

2008-05-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp: Ensure energy is always 0.0.

	* src/formats/gaussformat.cpp: Prevent crash with incorrect partial charges.

	* include/openbabel/base.h, include/openbabel/generic.h: New class
	for 3x3 matrix data (e.g., quadrupole moments).

	* src/formats/adfformat.cpp, src/formats/t41data.h: Initial import
	of Molekel Tape41 support for ADF.

2005-05-04  Marcus D. Hanwell  <marcus@cryos.org>

	* configure.in, src/config.h.in, include/openbabel/forcefield.h: Fixed
	the babelconfig.h file - typo spotted...

2008-05-04  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/OBPythonOBF/setup.py: Minor changes to install the
	correct OBFs in the Python Windows install.

2008-05-04  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Make
	OBForceField::_constraints static.

	* include/openbabel/forcefield.h: Add virtual destructors to
	OBFFCalculation2-4.

2005-05-03  Marcus D. Hanwell  <marcus@cryos.org>

	* src/config.h.cmake: Fixed so that TIME_WITH_SYS_TIME is defined.

2008-05-03  Tim Vandermeersch <tim.vandermeersch@gmail.com>
	
	* src/forcefields/forcefieldmmff94.*: Do the same for logging.

	* include/openbabel/forcefield.h, src/forcefields/forcefieldghemical.*,
	src/forcefields/forcefielduff.*,src/forcefields/forcefieldmmff94.*:
	OBFFCalculation has been replaced by OBFFCalculation2,
	OBFFCalculation3 and OBFFCalculation4. This makes the sizeof() smaller
	and improves performance.
	The OBFFCalculation::Compute(bool gradients) is now a template <bool
	gradients> Compute() function. The compiler will generate a Compute
	function with gradients and one without gradients. The E_Bond, ...
	functions are also template functions now. The old functions are still
	available as a wrapper for backwards compatibility. The template
	function is initialized in OBForceField::Energy(bool gradients) by
	calling E_Bond<true>() or E_Bond<false>().

2008-05-01  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* scripts/openbabel-python.i: Add OBBitVec.

2008-05-02  Marcus D. Hanwell  <marcus@cryos.org>

	* CMakeLists.txt: Fixed include directory order.

2008-05-01  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* data/atomtyp.*: Added amidine/guanidine IMPVAL rule (thanks to Steve
	Constable for reporting & fixing the bug).

2008-04-29  Marcus D. Hanwell  <marcus@cryos.org>

	* src/CMakeLists.txt, src/formats/CMakeLists.txt: Updates in order to
	build after obmolecformat.cpp was moved.

2008-04-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* autogen.sh, autoconf/: Add macros to work with new libtool 2.2.2.

	* configure.in, configure, aclocal.m4:  */Makefile.in: Use above.

	* src/obmolecformat.cpp: Move from src/formats to facilitate
	external programs creating OBMolecFormat subclasses.

	* src/formats/opendxformat.cpp: New format for OpenDX grids from
	APBS.

2008-04-30  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/mol.h: Add units to documentation for
	GetTorsion/SetTorsion.

	* tools/obrotate.cpp: Total review of the code. Thanks to Josep Maria
	and Noel for pointing out the problems.

	* src/mol.cpp: Added UnsetSSSRPerceived to all OBMol::Delete*()
	functions. (not DeleteConformer(int i), doesn't change rings... )

	* scripts/python/examples/*.py: Added some force field examples. More
	will follow.

	* include/openbabel/bond.h: Add some defensive checks to
	OBBond::GetBeginAtomIdx, OBBond::GetEndAtomIdx and
	OBBond::GetNbrAtomIdx. (closes #1953657)

	* scripts/openbabel-python.i: Added OBForceField::SetLogToStdOut() and
	OBForceField::SetLogToStdErr() to replace SetLogFile(std::ostream
	*pos) in python.

2008-04-29  Marcus D. Hanwell  <marcus@cryos.org>

	* src/CMakeLists.txt, src/formats/CMakeLists.txt: Moved the
	obmolecformat.cpp linkage back to where it was - this works on both
	Windows and Linux and so seems the better solution.

2008-04-29  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Torsion constraints are working now.

2008-04-28  Marcus D. Hanwell  <marcus@cryos.org>

	* libavogadro/src/extensions/gaussianinputdialog.cpp: Removed trailing
	white space.

2008-04-28  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefielduff.cpp: Added groups and Ignore.

	* src/forcefields/forcefieldghemical.cpp: Added groups and Ignore.

	* src/forcefields/forcefieldmmff94.cpp: OpenMP version of MMFF94. Does
	not affect normal compilation. Only used with GCC options "-lgomp
	-fopenmp".

	* include/openbabel/forcefield.h: Changed _ncoords from int to
	unsigned int. (Fixes some compiler warnings)

2008-04-27 Chris Morley

	* include/openbabel/mol.h, src/mol.cpp(AssignSpinMultiplicity):
	added a parameter which forces no implicit hydrogen. The default
	is false and backward compatible.
	
	* src/mol.cpp(PerceiveBondOrders): added a call to
	AssignSpinMultiplicity which should prevent molecules from
	computational chemistry formats being given implicit hydrogen.

2008-04-25  Noel O'Boyle <baoilleach@gmail.com>

	* data/mr.txt: Based on a comparison with RDKit's Crippen parameter
	text file, identified a single error in the MR value for Me1 (see
	JCICS, 1999, 39, 868) 

2008-04-21 Chris Morley

	* src/descriptors/groupcontrib.cpp(Predict): Make a copy of
	the molecule and add hydrogens before calculating property.
	As recommended by Noel in his blog.

2008-04-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/xml/cmlformat.cpp: change line 1810 from 
	s = pUnitCell.GetSpaceGroupName();    to
	s = pUnitCell->GetSpaceGroupName(); 

2008-04-22  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/cmlformat.cpp: import/export crystal symmetry.
	* src/math/spacegroup.cpp: fixes a bug related to transform creation.

2008-04-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h: Documentation update.
	
	* src/forcefield.cpp: Fixed (X, Y, Z, XYZ) atoms are now checked in
	SteepestDescent and ConjugateGradients and works.
	Enable constraints again. Distance and angles work, torsion still
	needs some attention.

2008-04-21  Marcus D. Hanwell  <marcus@cryos.org>

	* include/openbabel/obconversion.h: Moved the Formatpos typedef
	outside of the class in order to preserve old API call.

2008-04-21 Chris Morley

	* include/openbabel/obconversion.h, src/obconversion.cpp:
	Reinstate a version of OBConversion::GetNextFormat() to prevent
	breaking xchemdraw. Formatpos is defined differently but would
	not be accessed in an application program.

	NEWS, windows-vc2005/OBPythonOBF/Readme.txt:
	Minor documentation changes

2008-04-19  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Added
	SetupPointer. Added Framework for specifying groups using OBBitVec for
	now until we have OBGroup/OBFragment. Documentation example using
	groups. 
	The *RotorSearch functions should call SetupPointers when they change
	conformer. This will update the pointers to the atom positions in the
	OBFFCalculation(s). This solves some weird results when the rotor
	search functions were used with MMFF94 or ghemical. UFF doesn't have
	this problem because it still uses the vector3 class.

	* src/forcefields/forcefieldmmff94.*: Added SetupPointer.
	SetupCalculations() now checks the intra and inter groups.

	* src/forcefields/forcefieldghemical.*: Added SetupPointer.

2008-04-19  Marcus D. Hanwell  <marcus@cryos.org>

	* include/openbabel/grid.h, src/grid.cpp,
	include/openbabel/griddata.h, src/griddata.cpp: Now using std::vector
	to store data internally. Made safer where possible.

	* src/formats/gausscubeformat.cpp: Cleaned up support for reading in
	multiple cubes - large cube files can now be read in.

	* src/formats/gausscubeformat.cpp: Worked on improvements to the cube
	writing function. It now staggers cubes in the z correctly and I think
	I got the rest of it lining up correctly now. Enabled.

	* configure.in, src/config.h.in: Updates to the auto* build tools,
	added HAVE_GCC_VISIBILITY logic and the defines to use it.

2008-04-15  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/OBPython: removed
	* windows-vc2005/OBPythonOBF: added setup.py,
	openbabel_postinstall.py, Readme.txt and logo.bmp

2008-04-15 Chris Morley

	* tools/obchiral.cpp, tools/obenergy.cpp, tools/obfit.cpp,
	tools/obminimize.cpp, tools/obmm.cpp, tools/obprobe.cpp,
	tools/obprop.cpp, tools/obsym.cpp:
	don't #include <#include <unistd.h> in Windows build
	
	* windows-vc2005/OBTools.sln, windows-vc2005/OBTools,
	windows-vc2005/OBTools/*.proj: New build files for tools exes

	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi
	Add tools exe files to installer

2008-04-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/atomrecord.cpp: Fix from Louis Ricard to handle PDB
	files from platon. An example has been added to the test
	repository.

	* src/formats/gamessukformat.cpp: New format contributed by Jens
	Thomas to support the GAMESS-UK variant.

	* src/formats/moldenformat.cpp, src/formats/msmsformat.cpp: Ensure
	namespace is properly included.

	* tools/babel.cpp: Eliminate some GCC warnings.

	* ltmain.sh, configure.in, configure, */Makefile.*: Upgrade to
	libtool 2.2.x, which offers improved build speed and bug fixes.

2008-04-13  Marcus D. Hanwell  <marcus@cryos.org>

	* CMakeLists.txt, cmake/modules/MacroEnsureVersion.cmake,
	src/config.h.cmake: Added visibility support when using a recent GCC
	compiler.

	* src/CMakeLists.txt, src/formats/CMakeLists.txt,
	src/formats/inchi/CMakeLists.txt: Various fixes to ensure things are
	linked correctly.

	* include/openbabel/obmolecformat.h: Ensured this header includes the
	babelconfig.h header and exports its symbols.

	* src/formats/APIInterface.cpp: Export symbols.

	* src/formats/xml/cmlreactformat.cpp: Removed extra qualifier.

2008-04-10 Chris Morley
	
	* data/atomtyp.txt: revise IMPVAL entries for S. 
	Fixes bug #1938652. Patches a dilapidated program structure...
	
	* test/files/FormulaTest.smi: add S containing species to test above
	
	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi:
	add help file and remove SetOutPath "$DESKTOP" which prevented
	shortcuts starting with the current directory being that of the
	exe file. Data files were not being found.

2008-04-09  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp: Fix issue with C atoms not
	being set for OOP terms. Thanks to Bob Hanson for spotting this.

2008-04-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp: Remove inline declaration on constraints --
	prevents Python script bindings from compiling.

	* src/formats/hinformat.cpp: Read in partial charges. Fixes
	PR#1931260.

2008-04-01 Chris Morley

	* windows-vc2005/OBPythonOBF/OBPythonOBF.vcproj,
	* windows-vc2005/OpenBabelDLL/OpenBabelDLL.vcproj
	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi
	Updated in minor ways
	
	* windows-vc2005/Projects in this workspace.txt: add OBF build

2008-04-01  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/setup.py: Error in my previous commit

2008-03-31  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Fix conjugate
	gradients. (my previous commit had a bug..)

2008-03-31  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/python/setup.py: Fix for MacOSX to allow compiling against
	the contents of the build tree rather than /usr/local

2008-03-31 Chris Morley

	* src/GUI/OBGUI.cpp, src/GUI/OBGUI.h: Click on menu item copies
	plugin id to clipboard
	
2008-03-29  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldghemical.cpp,
	src/forcefields/forcefielduff.cpp,
	src/forcefields/forcefieldmmff94.cpp: Don't use Cut-off when disabled.

2008-03-29  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Implement
	methods to handle cut-offs. Added SetLineSearchType().

	* src/forcefields/forcefieldghemical.*, src/forcefields/forcefielduff.*,
	src/forcefields/forcefieldmmff94.*: Use it.
	
	* tools/obminimize.cpp: Add new options to specify cut-off and linesearch.

2008-03-29 Chris Morley

	* src/formats/inchiformat.cpp: Add output options 
	"include fixed hydrogen layer" and "include bonds to metal"
	as shortcuts to NIST's InChI functionality.
	
	* include/openbabel/obconversion.h: Make default to OUTOPTIONS,
	as IsOptions does. Makes setting most options less cumbersome.


2008-03-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/UFF.prm: Improved N sp, sp2 atom typing, suggested by Bob Hanson.

	* src/forcefields/forcefielduff.*: Many bug fixes for angle and
	torsion terms, suggested by Bob Hanson (via Jmol implementation).

	* test/files/uffresults.txt: Updated for above changes.

	* configure, configure.in, */Makefile.in: Bump to 2.2.0b5 and
	update build files.

2008-03-27  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* test/files/uffresults.txt: Update UFF results for recent bug fixes.

2008-03-27  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Always call SetCoordinates in Setup.

2008-03-27  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Working
	Newton2NumLineSearch. Used only for SteepestDescent at the moment.

2008-03-26 Chris Morley

	* include/openbabel/parsmart.h, src/parsmart.cpp:
	Fix bug #1906462. If SMARTS pattern contains [H], the matching
	now is done on n explicit hydrogen copy of the molecules. Extra bool
	in struct Pattern and mods to AllocPattern, SMARTSParser, Match.
	Have to be careful with the mods: Match is called more than
	420 times in doing a smi to smi conversion with a SMARTS filter!

2008-03-25  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefielduff.cpp: changed anglecalc.zi = ..[0] to
	... [5]. This bug was reported by Bob Hanson in mail.

2008-03-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Fix LineSearch(*,*) to respect fixed atoms.
	Don't calculate gradient in NumericalDerivative.

2008-03-24 Chris Morley

	* src/formats/gaussformat.cpp: Fix bug #1924342 by looking for
	"Multiplicity" as suggested by Richard West

2008-03-24  Noel O'Boyle  <baoilleach@gmail.com>
	
	* windows-vc2005/OBPython/openbabel.py: Removed from SVN (it is
	created with SWIG as part of the build process)

2008-03-24  Noel O'Boyle  <baoilleach@gmail.com>
	
	* scripts/openbabel-python.i: Added griddata.h

2008-03-23  Noel O'Boyle  <baoilleach@gmail.com>
	
	* scripts/python/pybel.py: First attempts at incorporating the recent
	work by Tim, Geoff and others on geometry optimisation and 3D
	coordinate generation.

2008-03-23  Noel O'Boyle  <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Fix for bug reported by Florian Nigsch.
	The Python iterators didn't correctly handle the case where there was
	nothing to iterate over.

2008-03-22 Chris Morley

	* src/builder.cpp: Slightly cleaner version of yesterdays's change.
	Load data when _fragments is empty.

	* src/formats/gausscubeformat.cpp, src/formats/gausszmatformat.cpp,
	src/formats/mmcifformat.cpp, src/formats/moldenformat.cpp,
	src/formats/msmsformat.cpp:
	Add some flags for Read or Write only, remove duplicate registration
	statements(IDs are not case sensitive), edit Description so options
	appear properly in GUI.
	
	* src/formats/acrformat.cpp, src/formats/chemdrawcdx.cpp,
	src/formats/qchemformat.cpp, src/formats/xml/cdxmlformat.cpp,
	src/formats/mopacformat.cpp, src/formats/msiformat.cpp: 
	Reduce compiler warnings by commenting out unused variables.
	
	* src/obutil.cpp: Remove OBAPI from definitions; only needed in 
	declarations

	* src/ops/gen3d.cpp: Remove error wrap statements (no cerr calls in
	OBBuilder now)
	
	* src/plugin.cpp(Display): remove tab character which was giving error
	messages in wxWidgets menus.
	* windows-vc2005/OBPythonOBF: New project to build Python for OBF
	(multi-DLL) build.
	
	Update Windows OBF build files.

2008-03-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Move GetGrid to
	OBForceField to implement it for all force fields at once.

	* src/forcefields/forcefieldmmff94.*: Remove GetGrid.

	* tools/obprobe.cpp: Implement the obprobe program.

2008-03-22  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp,
	src/forcefields/forcefieldmmff94.*: Add GetGrid probe method.

	* tools/Makefile.*, tools/obprobe.cpp: Add obprobe tool, still needs
	to be implemented. (copied from obenergy)

	* tools/obminimize.cpp: Don't call ValidateGradients before
	minimizing, takes long for proteins.
	
	* data/UFF.prm: Fix SMARTS patterns for phosphorus (Bob Hanson)

	* src/forcefields/forcefielduff.cpp,
	src/forcefields/forcefieldghemical.cpp: Move loop for better
	performance.

	* src/forcefields/forcefieldmmff94.*: Make Compute() functions inline,
	some optimization to VDW Compute().

	* src/formats/atomrecord.cpp: Added using namespace std.

2008-03-22  Noel O'Boyle  <baoilleach@gmail.com>
	
	* src/formats/xml/Makefile.am: CML format can now be built without
	shared_ptr, so I removed this dependency (c.f. CM 2008-03-14)

2008-03-21  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/gausscubeformat.cpp: Applied patch from Louis Ricard and
	make it work. Read function is done, write still needs to be done.

2008-03-21 Chris Morley

	* include/openbabel/builder.h, src/builder.cpp:
	Delay parsing of fragments.txt until first use, and then
	do only once, saving in a static variable. This matters for
	gen3D where operation on multiple molecules is common.
	I know OBBuilder is still under development and is not 'my'code;
	please revert if not suitable.

2008-03-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/atomrecord.cpp: New file to handle PDB-style atom
	records -- shared between PDB and PQR formats.

	* src/formats/pdbformat.cpp: Use it.

	* src/formats/pqrformat.cpp: Initial support for reading PQR style
	files (i.e., partial charge and VDW radius supplied with
	coordinates).

	* src/formats/Makefile.am, src/formats/Makefile.in,
	src/formats/CMakeLists.txt: Updates for above.

	* src/formats/cansmilesformat.cpp: Fix for bug exposed by Avogadro
	-- sometimes we only have one atom (and no canonical order data).

	* tools/obfragment.cpp: Update to generate new OBBuilder database.

2008-03-20  Carsten Niehaus  <cniehaus@kde.org>

	* src/*.cpp: Typo fixes

	* CMakeLists.txt: Require CMake 2.4.5.
	
2008-03-16  Noel O'Boyle  <baoilleach@gmail.com>
	
	* All .cpp and .h files: Set SVN property svn:eol to native

2008-03-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/CMakeLists.txt: Add ops and descriptors subdirectories.

	* src/ops.cpp, src/forcefield.cpp, src/ops/loader.cpp,
	src/ops/optransform.cpp, src/descriptors/cmpdfilter.cpp,
	src/descriptors/smartsdescriptors.cpp,
	src/descriptors/groupcontrib.cpp, src/format.cpp, src/alias.cpp,
	src/forcefields/forcefieldmmff94.cpp, src/formats/MCDLformat.cpp, 
	Change to UNIX line-endings for consistency. (Some files also had
	multiple line formats.)

	* include/openbabel/math/matrix3x3.h,
	include/openbabel/forcefield.h: Move to loop form. Compiler
	loop unrolling is effective, and loops can be vectorized for
	greater speed. 

2008-03-15  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/builder.h, src/builder.cpp: Added Swap function.

2008-03-15  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/builder.h, src/builder.cpp: More robust way to
	determine OBBitVec fragment masks. This is now handled internally and 
	actually checks if a and b (in Connect) don't belong to the same
	fragment. This also fixes the previously not working commit for: 
	c1cc(CC)ccc1

	* src/CMakeLists.txt: Remove groupcontrib.cpp, added some new files.
	Not sure if the ops/ dir is included.

	* data/CMakeLists.txt: Update data files to install.

	* CMakeLists.txt: Change version to 2.2.0b4.

	* include/openbabel/builder.h, src/builder.cpp: Moved some
	functionality from Build to Connect(). OBBuilder now constructs
	molecules with a single pass trough the database.

	* src/forcefield.cpp: Remove debug output.

2008-03-14  Chris Morley

	* src/formats/gausszmatformat.cpp: add replacement function for
	strcasestr, which is not in Visual Studio's library.

	* windows-vc2005/babelconfig.h: #define strcasestr _strcasestr

	* src/formats/mdlformat.cpp, src/formats/xml/cmlformat.cpp:
	Don't output property with attribute "PartialCharges", which isn't
	relevant in these formats. 
	
	* src/formats/xml/cmlformat.cpp: Make compilation of the code that dependends
	on OBReaction(and hence shared_ptr) conditional on HAVE_SHARED_POINTER.
	Means that most of cmlformat.cpp can be used even when HAVE_SHARED_POINTER
	is not defined, and that Noel's change on 2008-03-04 can be reversed
	(although I have not done it).
	
	* src/obconversion.cpp: prevent crash and add error message when multiple
	output files are used with no input file.
	
	* include/openbabel/obutil.h: actually do the reversion, see below
	
	* src/formats/crkformat.cpp, src/formats/inchiformat.cpp: small 
	changes in descriptions (to make GI look better).
	
	* windows-vc2005/Distribution/NSISScriptToCreateInstaller.nsi:
	Add several data files
	
	Update Windows single DLL build files

2008-03-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (Separate): Make sure to throw out any bogus
	OBChiralData. This is much preferable to crashing.

	* src/builder.cpp: Support new fragment.txt format with comments,
	etc.

	* data/*.txt: Update comments and fix minor formatting changes.

	* tools/obgen.cpp: Update to add hydrogens, cleanup geometry,
	perform weighted rotor search, etc. Should produce decent 3D
	structures with MMFF94.

2008-03-11  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/msmsformat.cpp: New format to write input files for
	MSMS (Michael Sanner Molecular Surface) calculation program,
	contributed by Ugo Varetto and the Molekel project.

	* src/formats/moldenformat.cpp: Read input from Molden files,
	contributed by Ugo.

	* src/formats/Makefile.*: Add above.

2008-03-13  Chris Morley

	* include/openbabel/obutil.h: Revert the previous change.
	In Windows there is a min function in the default namespace
	(::min compiles ok). So it is essential that std::min is used.
	It's also better not to have using std; in header files. If
	there is a problem in Avagadro it would be better to find a
	solution there. Maybe a cause for its Windows version to crash?
	 
2008-03-10  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/obutil.h: replaced std::min() with min() and put
	using namespace std at the top of the file. The compiler only gave an
	error for this when compiling avogadro, not openbabel itself.
	(windows)

	* include/openbabel/builder.h: Added OBAPI.

2008-03-10  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/cifformat.cpp: export space group if known.
	* src/formats/xml/cdxmlformat.cpp: removed a printf debug instruction.

2008-03-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Fixes from Craig James. Allow ring closure
	bonds in SMILES to be aromatic. Also check for ring closures in
	ParseComplex.

	* test/files/aromatics.smi: Add test for ring closure bug above.

2008-03-10  Noel O'Boyle <baoilleach@gmail.com>
	
	* test/cmlreadfile.cpp: Commented out the failing test. This is a
	minor bug on Linux.

2008-03-09  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/gausscubeformat.cpp: Read/write multiple cubes. Always
	write in bohr. More error checking in write might be needed.

2008-03-06  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/mol.h, src/mol.cpp: GetEnergy(int) and GetEnergies 
	now use OBConformerData to hold the energies.

	* include/openbabel/forcefield.h, src/forcefield.cpp: GetConformers
	and GetCoordinates attatches OBConformerData to the molecule. Energies
	and Forces are set.

	* src/forcefields/forcefieldmmff94.*: minimize the number of calls to
	atoi(GetType, ...) in Setup functions. Use OBBitVec class to replace
	vector<int> where possible.

2008-03-05  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp: The recent patch from Liu Zhiguo had a bug in
	OBMol::ConnectTheDots(). Inside a loop, NextBond was called without
	checking the return value directly. The return value was being checked
	outside the loop.
	
	while (valCount < bondCount[atom->GetIdx() - 1]) {
	  maxbond = atom->NextBond(l);
	  ...
	  if (!maxbond) // Added
	    break;      // Added
	  valCount++;
	}
	if (!maxbond)
	  break;

2008-03-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/parsmart.cpp: Add protection against double-free
	bugs. Assign pointers to NULL. Addresses bug reported from 
	Avogaro PR#1897745.

	* src/forcefields/forcefieldghemical.cpp: Fix problem with VDW
	gradients -- typo of "kb" instead of "ka."

	* src/forcefields/*.cpp: Remove many (but not all) compile
	warnings from GCC. 

	* src/kekulize.cpp, src/chains.cpp: Ditto.

	* src/ring.cpp: Before running FindSSSR(), delete old data. This
	improves potential race conditions in multi-threaded client code
	(e.g., Avogadro).

2008-03-05  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/gausscubeformat.cpp: Added write function.

2008-03-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chains.cpp (DeleteByteCode): Add protection against double-free
	bugs in chains.cpp. Assign pointers to NULL.

2008-03-04  Daniel Leidert <daniel.leidert@wgdd.de>

	* doc/babel.1: Fixed unkown RE macro.

2008-03-04  Noel O'Boyle <baoilleach@gmail.com>
	
	* src/formats/xml/Makefile.am: Only compile cmlformat.cpp if
	HAVE_SHARED_POINTER is true

2008-03-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/math/vector3.h, include/openbabel/base.h,
	include/openbabel/residue.h: Fixes for compiling with GCC
	-pedantic flag, thanks to Daniel Leidert.

	* tests/* : New tests for UFF, Ghemical and MMFF94 unit
	tests. Compares energies and validates gradients. Still appear to
	be some small gradient errors (although these may be due to
	numerical instability.)

	* src/forcefields/forcefield*.cpp (ValidateGradients): Return
	false when gradient errors are > 5.0% anywhere along the line.

2008-03-03  Noel O'Boyle <baoilleach@gmail.com>
	
	* tests/Makefile.am, files/3d.head.2.cml, tests/cmlreadfile.cpp,
	test/wrapper.sh: Add tests for CML scripting support

2008-03-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/dlhandler_unix.cpp: Ensure files match .so exactly. Prevents
	errors when looking for .so.dSYM files.

	* src/formats/MCDLformat.cpp: Fix GCC compile error.

	* src/formats/Makefile.am, src/formats/Makefile.in: Build rsmi and
	MCDL formats.

	* src/config.h.in: Regenerate for HAVE_BOOST symbol.

	* src/forcefields/forcefielduff.*: Fix angular
	gradients. Previous implementation mis-read paper for force
	constant.

	* tools/obminimize.cpp: Validate gradients before starting
	minimize. Useful for debugging force fields.

2008-03-02  Noel O'Boyle <baoilleach@gmail.com>
	
	* configure.in: Only use BOOST for shared_pointer if the GCC4.x
	implementation is not available.

2008-03-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/perl: Add dependency checking for libopenbabel. This
	prevents people trying to run automated CPAN tests without the
	library.

2008-03-01  Noel O'Boyle <baoilleach@gmail.com>
	
	* acinclude.m4: Set "have_boost" to "yes" so I can test it in
	configure.in
	* configure.in: Set Automake variable HAVE_SHARED_POINTER if the user
	has either of Boost or tr1/memory (gcc4.x)
	If "have_boost" is "yes" then set both the Automake variable
	USE_BOOST_FLAGS and the C++ #define USE_BOOST
	* src/formats/Makefile.am: Set the compile flags for BOOST if necessary
	Only compile chemkinformat, rxnformat and chemdrawcdxformat if
	HAVE_SHARED_POINTER is true

2008-02-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/generic.h (OBVectorData): New class for storing vector3
	(e.g., dipole moment, transition dipole, etc.)

2008-02-29  Chris Morley

	* src/obconversion.cpp:mods to OBConversion destructor to prevent
	input or output stream being deleted twice when there is an
	associated XMLConversion object - with CML. Possibly closer to
	fixing bugs #1815533 and #1900480.
	
	Add OBMCDL for Windows OBF build.

2008-02-29  Noel O'Boyle <baoilleach@gmail.com>

	* acinclude.m4: Just say 'not found' if BOOST not found.
	
	* configure.in: Look for BOOST and look for tr1/memory.

2008-02-29  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Bugfix for "[ 1904345 ] Angle, Pair,
	Torsion iterators dones not have deref() method". Turns out that I
	could have been using the __ref__() method all along. This doesn't
	seem to be in the SWIG documentation though.

2008-02-28  Marcus D. Hanwell  <marcus@cryos.org>

	* include/openbabel/grid.h, src/grid.cpp,
	include/openbabel/griddata.h, src/griddata.cpp: Fixed the
	interpolateDerivative function (hopefully). Added new functions to set
	and retrieve values from the grid using just grid indices. This should
	become the preferred way to access the grid values.

	* include/openbabel/grid.h, src/grid.cpp, src/griddata.cpp: Updated
	the grid classes to use an x, y, z index and added several new
	convenience functions using vector3 variables. Some more work is
	needed and a few extra functions to access/set grid values.

	* src/formats/gausscubeformat.cpp: Stop translating from x, y, z index
	to z, y, x as the grid classes now use the more common x, y, z index.

2008-02-28  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h, src/forcefield.cpp: Some
	improvements on the way gradients are handled. E_Bond, E_Angle, ...
	iterate over the calculations and Add the gradients to the correct
	atoms pointed to by the _gradientPtr. This pointer can then be used
	directly by line search.

	* src/forcefields/forcefieldghemical.*: Use it. GetGradient() function
	removed.
	
	* src/forcefields/forcefieldmmff94.*: Same.
	
	* src/forcefields/forcefielduff.*: Same, but UFF still uses old
	derivatives dunctions with all the vector3 objects.

2008-02-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.*: Remove redundant calls to
	Compute when calculating gradients. Remove un-needed angle/oop
	code. Problem lies elsewhere.

	* doc/Makefile.am, doc/Makefile.in: Add missing man pages and html
	documentation.

	* doc/roundtrip.1: Add missing man page. (More needed for new
	tools.)

	* test/roundtrip.cpp: Fix incorrect usage statement. Thanks to
	Daniel Leidert.

	* acinclude.m4: Add Boost detection code. Still needs addition to
	configure script.

2008-02-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/base.h, src/base.cpp: Add new GetAllData()
	function to return a vector of all OBGenericData of a given
	type. This has been long requested and is sorely
	needed. (For example, it's useful when you have multiple orbitals
	in a molecule.)

	* src/formats/gausscubeformat.cpp: Add the title of the cube as an
	attribute of the GridData.

	* tools/obprop.cpp: Update to new name of PSA descriptor.

	* configure.in, configure: Update with patch from Daniel Leidert
	for PR#1902640 and wx-config.

2008-02-25  Chris Morley

	* src/forcefield.cpp: added (double)cast to sqrt to prevent
	compiler error.
	
	* src/formats/xml/xml.cpp(XMLConversion::WriteStream): do not
	write when buffer empty. Workaround to prevent crash in CMLFormat
	which occurs when freeing libxml2 writer. I don't understand exactly
	what is happening here. I wish we had a C++ XML library!
	I hope cures bugs #1815533 and #1900480.

2008-02-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/msiformat.cpp: Finally fixed bond connections and
	single/double bonds. Still needs more testing.

	* src/formats/gausscubeformat.cpp: Try to skim to the end of the
	file after reading data.

2008-02-24  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldghemical.cpp: Small change for the new
	derivatives.

2008-02-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp: Output the number of possible rotamers when
	doing rotor search -- as a long unsigned int.
	Remove old derivatives in favor of BALL analogues.

	* include/openbabel/forcefield.h: Remove old derivatives in favor
	of BALL analogues.

	* src/forcefields/forcefieldmmff94.cpp: Ditto.
	
	* src/forcefielduff.cpp: More checks for real numbers, uncovered
	doing WeightedRotorSearch.

2008-02-24  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Added VectorAngleDerivative_BALL,
	VectorTorsionDerivative_BALL and VectorOOPDerivative_BALL.

	* src/forcefields/forcefieldmmff94.cpp: Use it. MMFF94 now has
	analytical gradients.

2008-02-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/rotamer.cpp (SetCurrentCoordinates): Allow -1 as a rotor
	setting -- implies do not change the dihedral angle.
	Some general code cleanups.

	* src/forcefield.cpp (WeightedRotorSearch): Fix some bugs -- check
	rotors without changing other dihedral angles and make sure to
	update the conformer structure after the search.

2008-02-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/atom.cpp (GetAngle): Return 0.0 for the angle if the vectors
	are too small. (The angle is ill-defined in these cases, so this
	is better than returning NaN.)

	* src/forcefield.cpp: Hunting down more divide-by-zero bugs.

	* src/forcefields/forcefieldghemical.cpp: Remove some rare
	divide-by-zero errors (e.g., when atoms are on top of each other).

	* src/forcefields/forcefielduff.cpp: Ditto.

2008-02-22 Chris Morley

	* src/mol.cpp(AssignSpinMultiplicity): Move the functionality
	recently removed from AddHydrogens() to here. Don't assign spin
	multiplicity to multi-atom molecules with no bonds.
	Molecules specified only by elemental formula from thermoformat,
	cmlformat and smilesformat seem to be handled ok.
	
	* src/formats/xml/cmlformat.cpp: handle <atomArray> occurring as
	a child of, formula> as well child of <molecule>.
	DoAtoms) Rewrite so that not confused when multiple sets of
	atom coordinates are present.
	
	* include/openbabel/forcefield.h: include float.h
	
	* windows-vc2005/babelconfig.h: add defines for IsNan and isfinite

	* src/descriptor.cpp: remove define for IsNan

	* test/files/FormulaTest.smi: correct the SMILES for carbene and
	add CH3D

2008-02-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp (WeightedRotorSearch): Check each individual
	rotor setting in isolation and use Boltzmann initial weightings.
	(*RotorSearch): Make sure to call Energy() evaluations without
	gradients.

	* src/rotamer.cpp (SetRotorToAngle): Remove unlikely (but
	possible) divide-by-zero error.

	* src/forcefields/forcefieldghemical.cpp: Fix divide-by-zero error
	in calculation of torsional term. Should be bullet-proof now.

	* src/formats/mdlformat.cpp: Fix rare crash when handling invalid
	alias records.

	* src/formats/msiformat.cpp: Remove debugging information and fix
	various bugs (e.g., dummy atoms).

2008-02-21  Marcus D. Hanwell  <marcus@cryos.org>

	* src/formats/gausscubeformat.cpp: Simplified the cube reading code,
	now more resilient to more loosely formatted cube data without the
	extra line ending at the end of each z data set.

2008-02-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp (LineSearch): Check gradients with isfinite()
	and for overly-large movements. Prevents any possible "explosions"
	or "disappearing atoms."

2008-02-18  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: When
	OBForceField::Setup was called and failed it returned false. But when 
	you did it again IsSetupNeeded() returned false and Setup() therefor
	returned true. This caused lots of crashes in avogadro's AutoOpt tool.
	OBForceField::_validSetup now checks to see if last Setup() failed, if
	so, a real Setup() is done (and will return false if failed).
	Get rid of compiler warnings: unused variable, changed function(bool
	gradients = true) into function(bool = true).
	Setup also calls UnsetSSSRPerceived() now.

	* include/openbabel/mol.h: Added OBMol::UnsetSSSRPerceived().
	Shouldn't this be called when we Add/Delete bonds.

	* src/forcefields/forcefieldmmff94.cpp: Some bug fixes related to atom
	typing of rings. Making and breaking rings in avogadro while MMFF94
	AutoOpt tool is running (in Avogadro) caused it to crash.

2008-02-17  Marcus D. Hanwell  <marcus@cryos.org>

	* src/formats/gausscubeformat.cpp: Rewrote the Gaussian cube format to
	use OpenBabel functions and data structures. Adding error checking and
	also reordered the grid data from the Gaussian order to the internal
	GridData order. Orbitals are now visible in Avogadro - success!

2008-02-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp: Removed check in AddHydrogens() to make sure hydrogens
	are added to molecules with no bonds. This check was probably put in
	to make sure you don't add hydrogens to a molecule comming from a QM
	program for which ConnectTheDots() was not called yet? 

2008-02-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/msiformat.cpp: Add new support for MSI/Accelrys
	Cerius II files. Still needs a bit of debugging, but works fine on
	single-molecule files.

	* src/formats/Makefile.*: Update for new format.

2008-02-13 Chris Morley
	
	* data/plugindefines.txt: comment out problematic entry
	
	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi:
	update this installer for the multiple DLL build
	
	Update other Windows build files.

2008-02-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/griddata.cpp, include/openbabel/griddata.h: Fix for
	documentation (and code) for GetOriginVector -- return the minimum
	x, y, and z coordinates from the grid.

2008-02-12 Chris Morley

	* src/formats/MCDLFormat.cpp: NEW FILE Converted from his Java code
	by Sergey Trepalin. There is a Java applet viewer and editor for
	this linear format at http://sourceforge.net/projects/mcdl.
	Some of the utility functions have been temporarily shoe-horned
	into this file so there is only one MCDL related file. They will be
	separated when further code for 2D layout from the applet
	becomes available.
	
	* windows-vc2005/OpenBabelOBF.sln: updated
	
2008-02-10  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/grid.cpp: Added extra check to Interpolate() to make sure no
	_val[i] is used when i >= _xdim*_ydim*_zdim, this fixes some craches
	in the Avogadro surface engine. I suspect that larger molecules have
	larger errors in their _xmin, _xmax, _ymin, ... values (error
	propagation) which causes the first check to pass, but still request 
	an invalid _val[i]

2008-02-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/Makefile.am: Make sure to link src/alias.cpp with
	mdlformat.

	* src/Makefile.am: Build alias.cpp with main libopenbabel.

	* src/formats/smilesformat.cpp: Reject SMILES molecules with 0
	atoms. Fixes bug on test suite.

	* test/files/smartsresults.txt: Update for recent SMARTS and atom
	typing changes.

2008-02-08 Chris Morley

	* src/alias.cpp: NEW FILE with AliasData::Expand(). Currently
	just a crude parsing, rather than an alias look up.
	
	* include/openbabel/alias.h: Add AliasData::Expand()
	
	* src/formats/mdlformat.cpp: Call AliasData::Expand() so that
	more A lines have chemical meaning. Probably puts writeinchi
	test back ok.
	
	Update Windows builds.

2008-02-05  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.*: New GetType(OBAtom *)
	function. This new function improves atom assignment times. This
	per atom method is also better suited for programs which allow
	interactive editing while running force field optimalization (e.g.
	Avogadro). This also allows to assign atom types to large
	molecules such as proteins.
	- Replaced old SetTypes() function with new one that makes use of the
	GetType(OBAtom*) function.
	- Added functions to calculate canonical parameter indices. (Not used
	yet)
	- Added "unsigned" where needed to get rid of compiler warnings.

	* data/mmffsup.par, data/mmffarom.par, data/mmffhdef.par,
	data/mmffsymb.par: Removed unneeded files.

	* data/Makefile.*: Removed unneeded files.

	* data/CMakeList.txt: Should MMFF94 and UFF parameter files be in
	here?

2008-02-02  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp: Bugfix for DeleteResidue()

2008-02-01 Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/examples/testpybel.py: Made test suite
	compatible with Python 2.3 (Pybel itself had no problems)

2008-01-31 Noel O'Boyle <baoilleach@gmail.com>

	* scripts/ruby/README: Updated as follows...
	(1) it's no longer necessary for the user to run ruby extconf.rb
	(2) added info on performing a local installation

2008-01-30 Joshua Ballanco <jballanc@gmail.com>

	* scripts/ruby/extconf.rb: Reworked the mkmf fix to be more
	generally applicable to *nix platforms.

2008-01-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	Fixes contributed by Liu Zhiguo via e-mail.
	* src/data.cpp (OBResidueData::AssignBonds): For pre-defined
	residues, do not check distances. (PDB files should be fairly
	clean.)
	(OBGlobalDataBase::Init): Make sure to check return value from
	OpenDatafile.

	* src/mol.cpp (operator +=): Make sure to preserve residue
	information when appending.
	(ConnectTheDots): Make sure to preserve existing bonds, e.g. from
	PDB files.

	* src/atom.cpp: (IsHBondAcceptor, IsHBondDonorH): Improvements for
	more accurate description of h-bonding. IsHBondDonorH now cleanly
	checks neighbors for IsHBondDonor rather than duplicating logic.

	* src/formats/mol2format.cpp: Don't attempt to re-perceive atom types.

2008-01-30  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-java.i: Updated to make identical (in terms of
	includes and header files) to python wrapper. Added ignore statements
	for operators as there are just too many warnings about these.

2008-01-29  Joshua Ballanco <jballanc@gmail.com>

	* scripts/ruby/extconf.rb: Fixed an error that had Ruby 1.8.6
	using gcc to compile and link the C++ extension file. Also updated
	the method of finding the correct include directories.

2008-01-24  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/setup.py: Changed search method to find openbabel.so
	(may need testing on other platforms)
	* scripts/openbabel-perl.i: Updated to make identical (in terms of
	includes and header files) to python wrapper.

2008-01-24  Chris Morley
	
	* src/formats/inchiformat.cpp(WriteMolecule): remove #ifdef _WIN32
	from InChIKey code.

2008-01-24  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/Makefile.am,Makefile.in: Incorporated Rich Apodaca's fix
	for Ruby OpenBabel error message "undefined symbol: Init_openbabel"
	* scripts/openbabel-ruby.i: Updated to include same header files as
	openbabel-python, but commented out problematic obfingerprint.h. Also
	upper-cased the first letter of the templates to avoid warning
	messages, and then needed to rename template VectorData to
	VectorGenericData to avoid a conflict with another object of the same
	name in OpenBabel.

2008-01-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/ops.cpp, src/pointgroup.cpp, src/kekulize.cpp, src/mol.cpp,
	src/obutil.cpp, src/ring.cpp, src/atom.cpp,
	src/forcefields/forcefielduff.cpp,
	src/forcefields/forcefieldmmff94.cpp,
	src/forcefields/forcefieldghemical.cpp,
	src/formats/cansmilesformat.cpp: Fix GCC warnings, adding explicit
	braces for if/else statements, explicit () around logic
	statements, etc.

	* include/openbabel/ring.h (GetRootAtom): Return unsigned int for
	comparison with atom indexes.

	* include/openbabel/plugin.h: Remove unused parameter for warning
	reduction.

2008-01-22  Chris Morley

	* src/formats/mdlformat.cpp(WriteMolecule): CHG line output
	corrected.

2008-01-22  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/yasaraformat.cpp: replaced const char* by string.

2008-01-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/atom.h, src/atom.cpp: Handle SetType(string)
	as const as well.

	* src/obconversion.cpp: When looking for .gz extensions, make sure
	substrings go to the end of the string. This prevents problems on
	extensions like ".gzmat."

	* src/formats/gausszmatformat.cpp: New format. Supports
	reading/writing to Gaussian Z-matrix files. PR#1863673 and #1696776.

2008-01-21  Jean Brefort  <jean.brefort@normalesup.org>

	* src/math/spacegroup.cpp: fixed all g++ warnings.

2008-01-20  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-perl,ruby,java.i: Merged in changes to
	openbabel-python.i.

2008-01-20  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/atom.h: replace char* by const char* where
	appropriate to get rid of the deprecated conversion from
	const char* to char* gcc message.
	* include/openbabel/chains.h: ditto.
	* include/openbabel/data.h: ditto.
	* include/openbabel/pointgroup.h: ditto.
	* src/atom.cpp: ditto.
	* src/chains.cpp: ditto.
	* src/data.cpp: ditto.
	* src/formats/PQSformat.cpp: ditto.
	* src/formats/chem3dformat.cpp: ditto.
	* src/formats/chemdrawcdx.cpp: ditto.
	* src/formats/crkformat.cpp: ditto.
	* src/formats/fastaformat.cpp: ditto.
	* src/formats/gromos96format.cpp: ditto.
	* src/formats/pdbformat.cpp: ditto. (don't let this format to
	modify etab).
	* src/formats/yasaraformat.cpp: ditto.
	* src/mol.cpp: ditto.
	* src/parsmart.cpp: ditto.
	* src/pointgroup.cpp: ditto.
	* src/tokenst.cpp: ditto.
	* test/roundtrip.cpp: ditto.

2008-01-20  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/cifformat.cpp: don't try to find the group when there
	is no symmetry related data in the data block.
	* src/generic.cpp: fixed a typo (bug).
	* src/math/spacegroup.cpp: return after throwing an error.

2008-01-19 Chris Morley

	* scripts/openbabel-python.i: include op.h
	* windows-vc2005/OBPython/openbabel.py: updated

	* windows-vc2005/Distribution/NSISScriptToCreateInstallerOBF.nsi:
	add installer script for  obf (multi DLL) build
	
	* windows-vc2005/OBPython/_openbabel.pyd,
	windows-vc2005/OBPython/OpenBabelDLL.dll: remove compiled files
	
	* src/plugin.cpp(ListAsVector):correct message when listing
	"plugins"
	
	* data/plugindefines.txt: remove some of the trivial examples
	
2008-01-19  Jean Brefort  <jean.brefort@normalesup.org>

	* src/math/spacegroup.cpp: accept white spaces in transforms
	descriptions in cif files. Fixes bug 1873908.

2008-01-17  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/pybel.py, scripts/python/examples/testpybel.py:
	Updated to use plugin descriptors. Changed to create a single instance
	of plugin descriptors and fingerprinters. Also, readfile now raises an
	IOError if the file does not exist.
	* scripts/python/examples/findcoverage.bat: Add .bat file to automate
	calculation of code coverage for pybel.

2008-01-16 Chris Morley

	* include/openbabel/obconversion.h(ReadObject),
	* include/openbabel/mol.h(CreateMolecule):
	These declarations were added by Jean, but do not seem to
	have definitions currently, which causes problems with SWIG.
	Comment them out for the time being.
	
	* include/openbabel/fingerprint.h: last commit was mistake;revert. 
	* scripts/openbabel-python.i: do not include groupcontrib.h
	* windows-vc2005/OpenBabelDLL/OpenBabelDLL.vcproj: updated
	for extra files etc.

2008-01-16  Noel O'Boyle <baoilleach@gmail.com>

	* include/openbabel/forcefield.h, plugin.h: Documentation fixes
	* src/bitvec.cpp: Documentation fixes

2008-01-16  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Updated to allow compilation

2008-01-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/base.cpp: Fix API documentation for return(1), as mentioned
	by Andrew Dalke. PR#1827795.

	* src/formats/cacheformat.cpp: Fix incorrect chemical/x-alchemy
	MIME type. PR#1822511.

	* src/formats/mol2format.cpp: Fix trailing newline
	issue. PR#1868929.

	* src/formats/chemdrawcdx.cpp: Return false when attempting to
	read past the end of the file. This solves PR#1856016.

	* include/openbabel/generic.h: Fix template issue with
	OBPairTemplate, PR#1830110.

	* src/mol.cpp (OpenBabel): Add patch from Noel PR#1840908 for
	inertial matrix speedup.

	* data/phmodel.txt, src/phmodel.cpp: Fixes from Stephen Constable,
	related to PR#1838943.

	* src/typer.cpp: Ditto. (Re-enables CorrectAromaticNitrogen to
	handle tryptophan.)

	* configure.in: Bump for 2.2.0b2 snapshot.

2008-01-11  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/Makefile.*: Add tokenst.h

2008-01-11  Michael Banck  <mbanck@gmx.net>

	* src/Makefile.am (SUBDIRS): Added descriptors and ops.
	(libopenbabel_la_SOURCES): Removed filters.cpp, gen3d.cpp,
	smartsdescriptors.cpp and groupcontrib.cpp.
	(libopenbabel_la_LIBADD [BUILD_SHARED]): Added ops/libops.la and
	descriptors/libdescriptors.la.
	(libopenbabel_la_LIBADD [!BUILD_SHARED]): Likewise.
	* src/Makefile.in: Regenerated.
	* src/descriptors/Makefile.am: New file.
	* src/descriptors/Makefile.in: Generated.
	* src/ops/Makefile.am: New file, skipping op2d.cpp for now.
	* src/ops/Makefile.in: Generated.
	* configure.in (AC_OUTPUT): Added src/descriptors/Makefile and
	src/ops/Makefile.
	* configure: Regenerated.

2008-01-11  Michael Banck  <mbanck@gmx.net>

	* include/openbabel/tokenst.h: Add newline at end of file.

2008-01-10 Chris Morley

	* src/tokenst.cpp, data.cpp, include/openbabel/base.h, data.h:
	Move OpenDataFile from data.cpp to tokenst.cpp. Move declarations
	of tokenize and Trim to a new header file tokenst.h, so that
	these utility functions can be use in modules which do not
	include the main chemistry API. Other similar utilities should
	probably be treated in the same way.
	
	* src/descriptors/cmpdfilter.cpp: NEW FILE. plugin to combine
	descriptors in --filter and similiar options.
	
	* src/ops: NEW DIRECTORY. Move src/gen3d.cpp, op2d.cpp to there.
	
	* src/ops/loader.cpp: NEW FILE for plugin to make new
	plugins from text file.
	
	* src/obconversion(LoadFormatFiles):hook for OBDefine.
	
	* include/openbabel/plugin.h: add MakeNewInstance and GetPlugin.
	In MAKE_PLUGIN check for empty ID before registering.

	* src/plugin.cpp(ListAsVector), include/openbabel/op.h(OpOptions):
	no listing if ID starts with _  Allows dummy instances.

	* src/filters.cpp, smartsfilters.cpp, groupcontrib.cpp: Moved to
	src/descriptors
	
	* include/openbabel/bitvec.h: modify Windows build macros
	
	* src/descriptor.cpp:remove an unnecessary zero check and minor
	doc changes

2008-01-09  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/rotor.h: Added Yongjin Xu's rotorKeyList class as
	OBRotorKeys, added documentation and NumKeys().

	* src/forcefield.cpp, include/openbabel/forcefield.h: Use the new
	OBRotorKeys class in SystematicRotorSearch, angle constaints work and
	renamed BondConstraint to DistanceConstraint.

2008-01-04  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/rotor.cpp: remove _fix.Clear() from OBRotorList::Clear()

2008-01-04  Michael Banck  <mbanck@gmx.net>

	* test/cml.sh: Use /bin/bash to run, not /bin/sh as "source" is a
	bashism.

2008-01-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/xyzformat.cpp: Accept non-standard XYZ files with an
	atom number rather than an element symbol in the first column.

2007-12-20  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/pdbformat.cpp: fix crash [#1846728].
	* src/math/spacegroup.cpp: add missing header.

2007-12-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/forcefield.h (HasAnalyticalGradients): New
	method to define if full analytical gradients are implemented for
	a force field. Allows code to choose analytical vs. numeric based
	on implementation. Defaults to false (i.e., implement analytical
	later).
	
	* src/forcefields/forcefieldghemical.h,
	src/forcefields/forcefielduff.h: Define that analytical gradients
	are implemented.

2007-12-18  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: Cleaned up
	header file and documentation. All private variables now start with
	"_". Added support for Molecular Dynamics.

	* src/ops.cpp: fix compiler error.

2007-12-17 Chris Morley

	Try to resynchronize.
	
	* src/obconversion.cpp, /include/openbabel/obconversion.h:
	Change return type of AddChemObject from bool to int. 
	This allows the modes with and without a queue of 2 to be
	distinguished. It is backward compatible and in fact has been
	this way previously. Consequential changes in GetChemObject() in
	obmolecformat.cpp, rxnformat.cpp, 
	
	* include/openbabel/forcefield.h(UpdateConformers, UpdateCoordinates):
	return values.
	
	* src/dock.cpp(GridDockNextPose): add return value.

	* src/atom.cpp(GetResidue): return a value
	
	* src/transform.cpp: filter mol if DoOps returns false. 

	* include/openbabel/op.h(DoOps) return false if Do() does,
	to aid filtering. Minor documentaion.
	
	* include/openbabel/plugin.h: Minor documentation.
	
	* include/openbabel/reaction.h: Add support for an Agent molecule.

	* src/gen3d.cpp: Add start and stop ErrorWrap so OBBuilder diagnostic
	code to cerr is demoted to obInfo messages.
	
	* src/oberror.cpp(StopErrorWrap):Set _inWrapStreamBuf to NULL.
	so can handle multiple molecules.
	
	* src/builder.cpp: Set dimension of molecule to 3 (CML needs this).
	Replace tabs.
	
	* src/formats/getinchi.cpp: remove OBCOMMON macro. Not needed in a format.
	
	* src/kekulize.cpp: initialize expand_ successful to supress
	compiler warning.

	* src/formats/xml/cmlformat.cpp: Minor documentation
	
	* src/formats/chemkinformat.cpp(WriteReactionLine): if molecule has
	no title use its formula.
	
	* src/formats/xml/xml.cpp(~XMLConversion):check that document has
	been terminated.
	
	Update Windows OBF build files incl some new projects making OBF files.


2007-12-15  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.cpp: Analytical gradients for all
	interactions except OOP.

2007-12-14  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.[h,cpp]: Solved problem with VDW
	interactions. H-Bond donor/acceptor reactions were not handled
	correctly.

2007-12-12  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* srd/mol.cpp: Bugfix for FindTorsion. Now checkes to make sure the
	wing atoms are not the same atom. This occurs in 3-membered rings.

	* src/forcefields/forcefieldmmff94.cpp: Improved torsion and OOP
	energies.

2007-12-11  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: Setup now checks
	if the molecule actually needs to be set up by calling IsSetupNeeded()
	itself.

2007-12-10  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/base.h: add missing headers, see debian bug #455170.
	* include/openbabel/data.h: ditto.
	* include/openbabel/lineend.h: ditto.
	* include/openbabel/mol.h: ditto.
	* include/openbabel/obconversion.h: ditto.
	* include/openbabel/obmolecformat.h: ditto.
	* include/openbabel/plugin.h: ditto.
	* include/openbabel/xml.h: ditto.
	* src/bitvec.cpp: ditto.
	* src/dlhandler_unix.cpp: ditto.
	* src/format.cpp: ditto.
	* src/math/spacegroup.cpp: ditto.
	* src/matrix.cpp: ditto.
	* src/residue.cpp: ditto.
	* src/tokenst.cpp: ditto.
	* tools/babel.cpp: ditto.

2007-12-07  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/dock.h, src/dock.cpp: Added docking class.

	* src/forcefield.cpp: Implemented X, Y, Z atom constraints.



2007-12-07  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp, include/openbabel/forcefield.h: replaced double _energy
	with vector<double> _energies.

	* src/forcefield.cpp, include/openbabel/forcefield.h: update for
	restraint code.

2007-12-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/xyzformat.cpp: Fix bogus warning about titles when
	reading past the end of the file.

	* data/element.*: Fix atom colors to match Jmol standard. (Changes
	in Fe, Co, Ni, Cu only.)

2007-12-06  Tim Vandermeersch <tim.vandermeersch@gmail.com>
	
	* src/forcefield.cpp, include/openbabel/forcefield.h: Added some log
	functions, documentation update and bond length constraints.

2007-12-05  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: OBForceField now
	defines Setup() itself. It calls the needed virtual setup functions
	which FF implementations can overwrite.
	Continue work on constraints implementation.

	* src/forcefields/*: Changes for new Setup system.
	
	* include/openbabel/atom.h: Removed old Ignore/Fixed functions.

2007-12-04  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: Updated support
	for constraints by added OBFFConstraints class.

2007-12-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/pointgroup.h, src/pointgroup.cpp: New class to
	wrap  S. Patchkovskii's brute-force 3D point group symmetry
	code. Still needs some updates from original C code, particularly
	to make it "less chatty."

	* tools/Makefile.am, tools/obsym.cpp: New tool to detect point
	group symmetry and eventually write newly "symmetrized" coordinates.

	* src/CMakeLists.txt, src/forcefields/Makefile.*: Update to remove
	MM2 forcefield from building.

2007-12-03  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: Added
	IsSetupNeeded to limit the number of calls to Setup, this improves
	performance for applications like avogadro (AutoOpt tool)

2007-12-02 Chris Morley

	* src/forcefield.cpp, include/openbabel/forcefield.h,
	forcefieldghemical.h, forcefieldmm2.h, forcefieldmmff94.h
	MakeNewInstance as pure virtual function to OBForceField
	for use in multithreaded environments.

2007-12-02  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: Added support
	to ignore and fix atoms. see doxygen documentation for more info.

2007-12-02  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp, include/openbabel/forcefield.h: Split 
	SystematicRotorSearch into ...Initialize and ...NextConformer. This 
	alows a progress bar to be displayed in avogadro.

	* src/forcefields/forcefieldghemical.cpp: Removed (commented out)
	special treatment of linear angles, wasn't workiung correctly, needs
	to be looked at...

2007-11-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chains.cpp: Improve speed when clearing residue info in
	molecules with no residues.

	* include/openbabel/atom.h, src/atom.cpp: New method GetResidue()
	to optionally request no chain perception. Useful in
	builders/editors (e.g., Avogadro).

2007-11-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/Makefile.am, tools/Makefile.am: Fixes for building
	outside of the source tree.

	* test/iterators.cpp: Fix #include for OBRing. Now compiles cleanly.

2007-11-28  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/data.h, src/data.cpp: Added Allred-Rochow
	Electronegativities.

	* data/element.txt, data/element.h: idem.

	* src/forcefields/forcefieldmmff94.cpp: use it.

2007-11-28 Chris Morley

	* src/formats/smilesformat.cpp(ParseSimple): Add ForceImplH()
	to fix bug #1839589
	
	* src/mol.cpp(AssignSpinMultiplicities): Leave spinMultiplicity
	at zero (not hydrogen deficient) for atoms labelled as above.
	
	* include/openbabel/atom.h: newflag OB_ATOM_NOT_H_DEFICIENT
	with set and read functions the above.

2007-11-28  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: OBForceField::VectorTorsionDerivative() now
	returns 180 instead of 0. (was needed for MMFF94)

	* srd/forcefields/forcefieldghemical.cpp,
	src/forcefields/forcefielduff.cpp: Also changed 0 to 180 for torsions.
	Bug fix for OBForceFieldXXX::GetGradients(). (Compute() wasn't called)

	* src/forcefields/forcefieldmmff.*: More changes...

2007-11-27  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/formats/smilesformat.cpp: fixed compile error on gcc.

	* src/forcefields/forcefieldmmff94.*: Partial charges are now assigned
	correctly. 

2007-11-27 Chris Morley

	* src/formats/smilesformat.cpp: Replace ReadMolecule and add
	isNotSmiles(). Lines starting with non-SMILES characters are ignored.
	Input stream left at first non-SMILES char unless a whitespace.
	(WriteMolecule) Add options smilesonly and nonewline to ease
	rsmiformat. Not intended to be public.
	
	* src/formats/rsmiformat.cpp: New file for Reaction SMILES format

2007-11-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp (VectorOOPDerivative): Calculate forces, as
	per Tim's reference.

	* src/forcefields/forcefielduff.cpp: Use it.

	* tools/obminimize.cpp: Fix a bug to use conjugate gradients when
	-cg is specified. (Explosions seem to occur more often with CG for me.)

2007-11-27  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.*, data/mmffsymb.par: Formal
	charges are now assigned correctly.

2007-11-25  Patrick Spendrin, Christian Ehrlicher
	
	* */CMakeLists.txt: some improvements to get it running under win32

2007-11-25 Chris Morley

	* src/dlhandler_win32.cpp, generic.cpp,
	
	* include/openbabel/atomclass.h, alias.h:
	Including atomclass.h and alias.h into dlhandler_win32.cpp breaks
	code segregation (OBConversion and user interfaces do not know
	about the chemistry.) Include in generic.cpp instead and change
	the build macros used by 'native' MSVC8 build from OBCOMMON to OBAPI
	I hope this fits ok with CMake.
	
2007-11-24  Patrick Spendrin, Christian Ehrlicher
	
	* include/openbabel/atomclass.h: adding support for sstream
	
	* src/config.h.cmake: cleanup
	
	* src/dlhandler_win32.cpp: improvements for msvc
	
	* */CMakeLists.txt: improving CMake based buildsystem esp. for win32
	and mingw32 - it builds now again, though there will come more improvements
	next

2007-11-18  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldmmff94.*, data/mmffsymb.par: Atom typing 
	works!!
	
	* src/forcefield.cpp, include/openbabel/forcefield.h,
	tools/obminimize.cpp: Added DetectExplosion() to aid in debugging the
	problem with planar molecules.

	* src/typer.cpp, data/ringtyp.txt, include/openbabel/mol.h: Fixed some
	bugs and added more ringtypes.

	* src/ring.cpp, include/openbabel/ring.h: Added GetRootAtom(), returns
	the index of the root atom (e.g. O in furan, ...)

2007-11-20  Chris Morley

	* src/formats/xml/cmlformat.cpp: Now Has own WriteChemObject
	so OBReaction object can bypass OBMoleculeFormat functionality
	and be passed directly to WriteMolecule.
	WriteMolecule passes OBReaction objects to CMLReactFormat.
	Restore handling of WriteAromaticBonds which somehow got deleted. 
	
	* src/formats/xml/cmlreactformat.cpp: Changes to handling of
	options MolsNotStandalone and ReactionsNotStandalone.
	
	* src/formats/xml/xml.cpp(GetDerived): transfer IsLast flag to
	extended object when writing.
	
	* src/formats/thermoformat.cpp: Replace changes made for cmake
	by _MSC_VER as macro indicating Visual C++ compiler
	
	Update Windows VS OBF build files.

2007-11-19  Chris Morley

	* src/formats/xml/cmlformat.cpp: extra string temp variable so
	that it will compile on gcc
	
	* src/formats/xml/cmlreactformat.cpp: minor changesfrom compiler
	warnings
	
2007-11-18  Chris Morley

	* include/openbabel/alias.h: New File with OBGenericData derived
	class to hold aliases of placeholder atoms.
	
	* src/formats/mdlformat.cpp: When reading an alias block put the
	data into the AliasData class above, without trying to interpret it.
	Write alias block is the atom has unexpanded AliasData.
	
	* src/format/xml/cmlformat.cpp: had forgotten Atom4Refs
	whem doing mods for atomclasses.
	
	* src/GUI/optswx.cpp:added a test for >0 to a parameter of isspace()
	
	* include/openbabel/plugin.h: Moved CharPtrLess to be a free
	standing struct rather than embedded in OBPlugin. Less to go wrong
	with SWIG.
	

2007-11-18  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/builder.cpp: Added some documentation. Now uses OpenDataFile().

	* src/typer.cpp, include/openbabel/typer.h, data/ringtyp.txt: Added
	OBRingTyper class. Brief doxygen documentation included on use.

	* src/ring.cpp, include/openbabel/ring.h: Added GetType() and
	SetType() (see OBRingTyper)

	* include/openbabel/mol.h: Added SetRingTypesPerceived() and
	HasRingTypesPerceived() (see OBRingTyper) 

2007-11-16  Chris Morley

	* include/openbabel/atomclass.h: New file with OBAtomClassData
	class, derived from OBGenericData and that attaches to OBMol.
	
	* src/formats/smilesformat.cpp: Added capability to reads and 
	optionally write atom class e.g [CH3:1].
	
	* src/format/cmlformat.cpp: Read and write atom classes (embedded
	in atom ids, with care that they remain unique, even when atom
	classes ar not.
	
	* windows-vc2005/OpenBabelDLL/OpenBabelDLL.vcproj: updated to
	remove RDKit references.

2007-11-16  Michael Banck  <mbanck@gmx.net>

	Make libinchi.la a convenience library.

	* src/formats/inchi/Makefile.am (lib_LTLIBRARIES): Renamed to ...
	* (noinst_LTLIBRARIES): ... this.
	* src/formats/inchi/Makefile.in: Regenerated.

2007-11-16  Michael Banck  <mbanck@gmx.net>

	* src/formats/xml/Makefile.am (INCLUDES): Added
	-I$(top_builddir)/include.
	* src/formats/xml/Makefile.in: Regenerated.

2007-11-15  Chris Morley

	Update Windows build files.
	
	* src/formats/pngformat.cpp(TargetClassDescription): modify so 
	that options for OBMol appears in GUI.
	
2007-11-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/griddata.cpp, src/grid.cpp: Change to new SetLimits method
	for assigning axes, origin -- everything required by OBFloatGrid.

	* src/formats/gausscubeformat.cpp: Use it.

	* include/openbabel/Makefile.am: Make sure to install new headers
	griddata.h, op.h.

2007-11-13  Chris Morley

	* src/formats/pngformat.cpp: Remove class name in declaration
	as patch #1830826 from LI Daobing. I haven't yet found how to
	get a warning on this in Visual C++.

2007-11-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/Makefile.am: Add "ops" code introduced by Chris, including
	gen3d coordinate generation.

	* src/formats/chemkinformat.cpp
	(ChemKinFormat::ParseReactionLine): Added some compilation fixes
	for GCC.

	* src/formats/Makefile.* : Enable compilation of png, rxn, and
	chemkin formats.

2007-11-11  Chris Morley

	Added gen3D.cpp, a wrapper for OBBuilder to make plugin option.
	
2007-11-11  Chris Morley

	* src/formats/chemkinformat.cpp: Reading rewritten so that it
	is like other formats - separate ReadChemObject and
	ReadMolecule. Allows -f and -l options and, potentially,
	filtering of reactions.
	Many parsing changes on reading, incl allowing species names 
	containing spaces with simple input.
	On writing extra option to omit zero rate reactions, formatting
	changes and correct loss of first species in list bug.
	
	* src/formats/xml/cmlreactformat.cpp: Separate out code as
	WriteRateData.
	Add molecules to list even if to be immediately output, so that
	they can benefit from being combined with other inputs.
	If ID of a molecule is a filename, remove the path and extension.
	
2007-11-11  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchi/*.c, include/inchi/*.h: Import InChI v1.02b
	distribution code.

2007-11-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

        * src/Makefile.*: Updated for new files.

        * include/openbabel/base.h: New	data type for grid data.

	* include/openbabel/grid.h, src/grid.cpp: Some modifications to
	support new OBGridData class. Still needs documentation	and other
	updates. (This code is showing some bitrot.)

	* include/openbabel/griddata.h, src/gridddata.cpp: New class to
	link a OBFloatGrid as an OBGenericData	(e.g., to a molecule).

	* src/formats/gausscubeformat.cpp: New format from Molekel project
	to read coordinates and cube/grid data from Gaussian cube files.
	
	* src/formats/gromos96format.cpp: Fix typo caused by residue
	numbers as strings.

2007-11-08  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/builder.cpp: rotation works! you can now create fragment based
	structures such as: CCC(c1ccc(C(c2c(c3ccccc3)cccc2))cc1)


2007-11-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/*.cpp, include/*.h: Change to UNIX line endings for
	consistency.

2007-11-07  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/builder.cpp, include/openbabel/builder.h: OBBuilder class
	for fragment based structure generation.

	* data/fragments.txt: fragment library for OBBuilder class.

	* tools/obgen.cpp: modified to use OBBuilder

2007-11-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.cpp: Fix VDW gradients.

2007-11-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp (WeightedRotorSearch): Improved conformer
	searching. Still needs geometry optimization for each
	rotamer. (That seems to uncover a bug in OBMol/OBForceField.)

	* tools/obconformer.cpp: Switch to WeightedRotorSearch followed by
	minimization.

	* data/UFF.prm: Improved typing.

	* src/forcefields/*: Add delayed initialization. Only parse the
	parameter file when the force field is called by Setup on a
	particular molecule.

	* src/forcefields/forcefielduff.cpp: Bug fixes.

2007-11-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* CMakeLists.txt */CMakeLists.txt: CMake build files contributed
	via Saro Engels and Christian Ehrlicher and the KDE-Win project.

2007-11-04  Chris Morley

	* src/forcefields/forcefieldghemical.cpp(ParseParamFile):
	replaced 4 instances of reserve by resize (on ipar etc).
	Was previously crashing for me.
	
	* include/openbabel/base.h, generic.h: Moved the declaration of
	the OBGenericData base class from generic.h to base.h. This
	potentially reduces dependencies. Most of the derived classes are
	still declared in generic.h. New OBGenericData classes would be
	better with their own header files.
	
	* include/openbabel/atom.h: consequent extra #include.
	
	* src/generic.cpp: OBVibrationData wasn't copying properly. 
	Simplify so uses implicit copy constructor and assignment, which 
	are more reliable.
	
	* src/mol.cpp: remove calculation of _totalSpin from 
	AssignSpinMultiplicity. Done on demand in GetTotalSpinMultiplicity.
	
	* src/descriptor.cpp: minor edit in comment
	
2007-11-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.*: Calculates full UFF energies,
	including out-of-plane bending. Still need to finish all analytical
	gradients.

	* data/UFF.prm: Fixed atom typing rules.

2007-11-02  Michael Banck  <mbanck@gmx.net>

	* src/formats/inchi/inchi.sym: New file.

	* src/formats/inchi/Makefile.am (libinchi_la_LDFLAGS): Use inchi.sym
	to restrict the exported symbols via libtool's -export-symbols option.

	* src/formats/inchi/Makefile.in: Regenerated.

2007-11-02  Kevin Shepherd <kshepherd1@users.sourceforge.net>

	* src/formats/cifformat.cpp: Further to 1821894 this patch
	implements vincefn's suggestion i.e. "whenever reading a data name
	(tag),replace all '.' by '_'" and rolls back the previous
	changes.
	
2007-11-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefielduff.*: First pass at a UFF
	implementation. It compiles, but that's about it for now.

	* data/UFF.prm: Initial parameters taken from RDKit under BSD
	license.

	* include/openbabel/forcefield.h, src/forcefields/*: Switch to
	ipar and dpar as vectors of int and double, respectively.

2007-10-31  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/residue.h, src/residue.cpp: Switch residue
	numbers to be strings internally. Added GetNumString() to return
	the number as a string (needed for backwards compatibility).

	* src/data.cpp, src/mol.cpp: Use new residue string support. Fixes
	problems raised by David Osguthorpe.

	* src/formats/pdbformat.cpp, src/formats/*: Ditto.

	* include/openbabel/rotamer.h, src/rotamer.cpp
	(SetCurrentCoordinates): New method to set the current coordinate
	set, rather than creating new conformers. More memory-efficient
	with large conformer searching routines.

	* configure, Makefile.in, */Makefile.in: Rebuild with current
	autoconf, libtool, etc.

2007-10-28  Kevin Shepherd <kshepherd1@users.sourceforge.net>

	* src/formats/cifformat.cpp: Fix for Request ID 1821894.  This
	change allows more CIF files to be understood, allowing the
	_atom_site.XXXX varient of the naming.
	
2007-10-27  Kevin Shepherd <kshepherd1@users.sourceforge.net>

	* src/formats/alchemyformat.cpp: Altered the ReadMolecule function
	to be more flexible in handling comments and whitespace.
	This fixes Request ID 1821003, and can be tested with Test File
	Request ID 1820997.
	
2007-10-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/pdbformat.cpp: Fix some issues with multiple-chain
	proteins. This is likely a minor fix until David Ogusthorpe
	contributes his changes.

2007-10-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/torlib.[h,txt]: New torsional library data, improving conformer
        searching.

	* tools/obconformer.cpp: New tool to do real conformer searching,
	using new random and Monte Carlo searching mechanisms in OBForceField.
	
	* tools/Makefile.*: Add above.

	* include/openbabel/forcefield.h, src/forcefield.cpp: Add geometry
	optimization steps to SystematicRotorSearch and new method
	RandomRotorSearch.

2007-10-22  Chris Morley

	Implement exact fastsearch option.
	* src/transform.cpp:Add test for same number of heavy atoms if the
	internal exactmatch option set.

	* src/format/fastsearchformat.cpp: Split out ObtainTarget() to
	make code less cumbersome. Add -ae option implementation.
	
2007-10-18  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/Makefile.am: The dl Python module is not present on (many?)
	64-bit systems, so it falls back to the DLFCN module which hopefully
	*is* present. I would appreciate if someone could rerun the toolchain
	and check in Makefile.in.

2007-10-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/forcefield.h: New LineSearch() method to
	update a step over the entire molecule's coordinates at once. Much
	faster, since it drastically minimizes the number of energy
	evaluations.

	* src/forcefield.cpp: Implement above, plus switch SteepestDescent
	and ConjugateGradients to use it.

	* include/openbabel/mol.h, src/mol.cpp: Add SetCoordinates() call
	to set the entire coordinate system at once.

2007-10-15  Chris Morley
	
	* src/babel.cpp, src/nbabel.cpp: The last commit gave incorrect
	error messages. Correct this, add Read or Write only to output
	from Hxxx and make both Hxxx and H xxx acceptable.

2007-10-15  Chris Morley
	
	* src/babel.cpp, src/nbabel.cpp: Abort and error message when
	SetInAndOutFormats fails. Fixes bug #1813493
	
2007-10-14  Chris Morley

	* src/fingerprints/finger3.cpp, src/formats/fingerprintformat.cpp
	Change format for -xs format again: functional groups tab 
	separated. Suggested by Chris Swain.

2007-10-11  Chris Morley

	* src/format/mdlformat.cpp: Remove warning about incorrect title
	line which is sometimes output when it should not be, bug#1752435
	
	(ParseAliasText) ignore alias blocks with just "?" Suggestion by
	Rajarshi Guha
	
	* src/fingerprints/finger3.cpp, src/formats/fingerprintformat.cpp:
	Slight change in output formatting for -xs and -xu options
	
	* src/formats/xml/cmlformat.cpp: still trying to deallocate
	strings supplied by libxml2. Should be using free (not delete)
	but still not working with my compiler so still commented out.

2007-10-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

        * src/forcefield.cpp, src/forcefields/forcefieldghemical.cpp:
        Defensive programming patch contributed by Ross
        Braithwaite. Prevents divide by zero in determining torsional
        angles in planar rings.

        * include/openbabel/atom.h, src/forcefield.cpp: Add "fixed atoms."

2007-10-08  Chris Morley

	* src/formats/xml/cmlformat.cpp: removed delete statement which
	probably is responsible for bug #1792938. See 2007-08-19
	
2007-10-08  Chris Morley

	* src/formats/mdformat.cpp: output v2000 formal charge as M CHG
	statement rather than in the atom block, which is in correct when
	M RAD or M ISO apppear. Suggestion by p.mortenson bug #1796960

2007-10-05  Chris Morley

	* include/openbabel/forcefield.h: correct back to OBFPRT
	and add default definaition as nothing.

	* include/openbabel/groupcontrib.h: add back to OBDESC
	and add default definition as nothing.
	
	* src/forcefields/forcefieldmmff94.cpp: add initial value for 
	energy and comment out several unused variables to reduce compiler
	messages.
	
	* src/formats/getinchi.cpp: Now reads unquoted InChIs split with
	XML elements like <br />
	
	* src/formats/inchiformat.cpp: Make InChIKey output replace 
	normal InChI rather than adding to it. Still Windows only until
	1.02beta InChI source files added.
	
	* src/formats/smilesformat.cpp(ParseRingBond): ensured that atoms
	are added to OBChiralData::Atom4Refs in the order of the ring closure
	digits on the chiral atom rather than the atom index order. Partial
	fix for bug #1805910
	Added SetChiralityPerceived after reading. Avoids doing it again 
	in FindChiralCenters() which seems not to work sometimes, e.g. for
	CN1CCC[C@H]1c2cccnc2 and CP(O)(=O)C[C@H](O)CN

2007-10-03  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/groupcontrib.h: removed undefined OBDESC.
	* include/openbabel/op.h: removed OBOp:: from inside class
	definition.

2007-10-03  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/forcefield.h: fixed typos.

2007-09-26  Chris Morley

	* src/formats/inchiformat.cpp: forgot to change InChIKey option
	in code  to -xK.
	
	* include/zconf.h: replaced. Needed for Windows builds.

	Added Windows build files for obf (multiple DLL) build

	* windows-vc2005/babelconfig.h: replace USE_OBF by USING_DYNAMIC_LIBS

2007-09-25  Chris Morley

	Added files:
	include/openbabel/op.h: new OBOp class, plugin options
	src/ops.cpp: trivial OBOp class for centering
	src/op2d.cpp: class to add 2D coordinates using RDKit
	src/RDKitConv.cpp: conversion OBMol to RWMol
	
	* include/openbabel/descriptor.h: changeprefix macro from OBERROR
	to OBAPI.
	
	* src/descriptor.cpp(Display), src/groupcontrib.cpp(Display),
	src/smartsdescriptors:
	added form -L descriptors ID to give verbose description at runtime
	
	* include/openbabel dlhandler.h, forcefield.h, fingerprint .h,
	groupcontrib.h, xml.h, src/forcefields/*.h, src/formats/getinchi.cpp,
	canon.h: change prefix macros
	
	* include/openbabel/plugin.h(GetTypeMap): improve error return when
	there are no instances, but still a mess, but should not occur.
	
	* src/GUI/OBGUI.cpp(MakePluginsMenu): modified to use ListAs Vector
	rather than ListAs String.
	
	* src/obconversion.cpp: get rid of ill-considered USE_OBF 
	and continue with USING_DYNAMIC_LIBS.
	
	* src/transform.cpp(DoTransformations): add two hooks for OBOp
	classes
	
	* windows-vc2005/babelconfig.h: remove USE_OBF and add OBDESC
	
	* src/formats/inchiformat.cpp: change InChIKey option to -xK.
	(-xk was already used.)


2007-09-02  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/chemdrawcdx.cpp: fixed bond order for triple and
	aromatic bonds.

2007-09-20  Chris Morley

	* include/openbabel/generic.h: add new class OBRotationData
	
	* src/formats/gaussformat.cpp: (GaussianOutputFormat::ReadMolecule)
	read in vibrational and rotational data to OBGenericData classes
	
	* src/formats/xml/cmlformat.cpp:(WriteMolecule) if mol title is a
	filename, remove path and extension before outputing to id attribute
	Add WriteRotationData and WriteVibrationData (mainly for MESMER)
	
2007-09-15  Chris Morley

	* src/mol.cpp(GetTotalSpinMultiplicity): now returns correct value
	(1 for normal molecule). Improve documentation. Fixes bug
	#1793980.
	
	* include/openbabel/atom.h, mol.h: improve documentation to emphasize
	OBAtom::GetSpinMultiplicity returns 0 for normal atoms.
	
	* tools/nbabel.cpp: alternative commandline, with explicit -O option
	for output file, less flexible option placing.
	
2007-09-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (Separate): More defensive programming to prevent
	crashing with incomplete OBChiralData.

	* src/formats/cansmilesformat.cpp: Add support for new OBPairData
	"canonical order" -- space terminated string of canonical atom
	labels.

	* tools/obfragment.cpp: New version which outputs XYZ files with
	atoms in canonical order matching the SMILES.

2007-09-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp: Small improvements to LineSearch and
	ConjugateGradientsTakeNSteps for performance improvement. In
	particular, reset the CG direction periodically and only print
	output every 10 steps.

	* src/forcefields/forcefieldghemical.cpp: Smarter VDW calculation
	-- minimize the number of multiplies. Not much of an improvement,
	unfortunately.

2007-09-04  Chris Morley

	* include/inchi_api.h, windows-vc2005/libinchi.dll,
	windows-vc2005/libinchi.lib: updated to v1.02 beta
	
	* src/formats/inchiformat.cpp: added option to output InChIKey.
	Windows only until the appropriate files for UNIX are installed.

2007-09-03  Chris Morley

	* include/zlib.h, iconv.h, zconf.h: Added.
	Needed for Windows build. I hope they do not interfere 
	with unix builds
	
	* src/formats/xml/cmlreactformat.cpp: Added
	
	* src/formats/pngformat.cpp: remove include to insizes.h
	
	Update Windows project files
	* windows-vc2005/OBComLn/OBComLn.vcproj
	* windows-vc2005/openbabel.sln
	* windows-vc2005/OpenBabelDLL/OpenBabelDLL.vcproj

2007-09-03  Chris Morley

	* src/formats/rxnformat.cpp: removed spurious first line of file
	which gave misleading comiler error messages. Make references to
	tr1 etc consistent with other reaction formats
	
	* include/openbabel/reaction.h: make #include "tr1/memory"
	conditional.
	
	* src/formats/pngformat.cpp: Make independent of compiler and
	platform, esp size of int. Add WriteMolecule to embed into a
	PNG file. Would be better in a program that also wrote PNG files!
	
2007-09-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Merged in changes from 2.1.x branch.

2007-09-02  Chris Morley
	
	* src/formats/chemkinformat.cpp: removed warning and improved
	when writing with the simple option.

	* src/formats/freefracformat.cpp:no longer use TrimErrors which
	caused errors on Windows.

	* src/math/spacegroup.cpp: replace stdargs.h by more modern 
	cstdarg

	* src/mol.cpp(Separate): use code which does not crash when
	Atom4Refs from OBChiralData unaccountably has fewer than 4 
	elements.

2007-09-02  Jean Brefort  <jean.brefort@normalesup.org>

	* src/fingerprints/finger3.cpp: fixed compilation with g++.

2007-09-02  Jean Brefort  <jean.brefort@normalesup.org>

	* configure.in: applied patch from Klaus Heinz fixes #1786288.

2007-08-30  Chris Morley

	* data/SMARTS_InteLigand.txt: Replaced with slightly modified
	version. I think the existing file was not based on a version
	which had been modified to work within OB's SMARTS implementation.
	
	* include/openbabel/fingerprint.h and src/fingerprint.cpp: 
	added GetBit() and virtual DescribeBits()
	
	* src/fingerprints/finger3.cpp: added PatternFP::DescribeBits
	Added various Trim()s to remove CRs, which is why FP3 had not
	been working, (as Noel noticed).

	* src/formats/fingerprintformat.cpp: added options to output
	description of functional groups in a molecule (esp when using FP4)
	
	* src/math/spacegroup.cpp: included <stdarg.h>

2007-08-27  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/generic.h: make OBUnitCell use SpaceGroup.
	* include/openbabel/math/Makefile.am: add space groups.
	* include/openbabel/math/spacegroup.h: new SpaceGroup class.
	* include/openbabel/math/transform3d.h: new transform3d class (for
	use in space groups).
	* include/openbabel/math/vector3.h: add a new constructor and fix
	a const issue. 
	* src/formats/cifformat.cpp: use space groups.
	* src/generic.cpp: make OBUnitCell use SpaceGroup.
	* src/math/Makefile.am: add space groups.
	* src/math/spacegroup.cpp: new SpaceGroup class.
	* src/math/transform3d.cpp: new transform3d class.
	* src/math/vector3.cpp: fix a const issue.

2007-08-20  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/Makefile.am: removed obsolete cmlreactlformat stuff.
	* src/obconversion.cpp: fix dynamic libraries use on unix.

2007-08-19  Chris Morley

	Add chemical kinetics formats. These used std::tr1::shared_ptr
	and if this is not provided as such, the USE_BOOST macro needs to be
	defined and the Boost library installed.
	
	* include/openbabel/reaction.h: modified
	* src/formats/chemkinformat.cpp: added
	* src/formats/rxnformat.cpp: modified
	* src/formats/xml/cmlreactlformat.cpp: deleted
	
	* src/formats/xml/cmlformat.cpp(WriteMolecule):Handle when 
	OBChiralData::Atom4Ref has <4 items.
	(ReadMolecule): in <property> be more flexible in where the
	title attribute can be.
	Failed attempt to delete C strings from libxml2 to solve memory
	leak bug. Still unresolved.

	* src/formats/thermoformat.cpp: add option to terminate on END,
	rather than end of file. 
	For Windows use 2 digit exponents in output.

2007-08-18  Chris Morley

	* src/formats/pngformat.cpp: add format for extracting  chemical
	structure data from PNG files.
	
2007-08-18  Chris Morley

	* src/format/copyformat: Copy whole input stream if a 
	length is not found.
	
	* src/formats/getinchi.cpp: test for negative chars to avoid
	isspace() failing.
	
	* include/openbabel/plugin.h: small documentation changes
	
	* src/GUI/optswx.cpp: remove some debugging code
	
	* src/obconversion.cpp: re-enable Compressed input for Windows. 
	Add macro to deactivate compressed output which still has 
	problems.
	Use USE_OBF rather than USING_DYNAMIC_LIBS which was ambiguous.
	Zero wInpos and wInlen in itialization list - needed for mod
	to copy format.
	ReportNumberConverted(): allow text from TargetClassDescription
	to have only a single line.
	
	* windows-vc2005/babelconfig.h: enable compression but
	deactivate compression on write. 
	Rationalize the macros 	controlling the build in Visual Studio.
	Now define SINGLE_DLL for current OpenBabelDLL build.
	For future multiDLL builds USE_OBF with macros, like OBCONV 
	appropriate for the DLL being built.

2007-08-18  Jean Brefort  <jean.brefort@normalesup.org>

	* data/Makefile.am: add space groups descriptions.
	* data/space-groups.txt: ditto.
	* data/space-groups.xsl: ditto.

2007-08-13  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/obconversion.h:b removed extra
	OBConversion:: which made compilation fail.

2007-08-10  Chris Morley

	* src/obconversion.h,.cpp: Added ALL to Option_Type enum.
	Added CopyOptions() and IsLastFile() and 
	ReportNumberConverted() functions.
	
	* src/GUI/OBGUI.cpp, tools/babel: use ReportNumberConverted
	instead of explicit code.

	* include/openbabel/obmolecformat.h: Added RegisterOptionParam
	for "append".
	
	* src/formats/obmolecformat.cpp(ReadChemObjectImpl): clear
	stream flags to prevent stalling when eof set in previous file.
	Remove some debugging code.

	* src/GUI/optswx.cpp: untabify

2007-08-04  Chris Morley

	* src/formats/mdlformat.cpp: Add ReadCollectionBlock(),
	which currently just issues a warning that COLLECTION blocks
	are not implemented. The rest of the molecule in the example
	in bug #1753217 is now read ok.
	
2007-08-04  Chris Morley

	* include/OB_BGL/ :Added interface with Boost Graph Library
	written by Gerde Menche.
	
	* include/openbabel/mol.h: modified EndAtoms() and EndBonds()
	to return after the atomas and bonds in _vatom and _vbond
	rather than the overallocated end of the vectors. Needed for
	the above.

2007-08-03  Jean Brefort  <jean.brefort@normalesup.org>

	* include/openbabel/format.h: Format::FormatsMIMEMap() must
	return a reference, otherwise, a new copy is used each time
	and no mime type is usable.

2007-07-25  Chris Morley

	* src/formats/mdlformat.cpp(MDLFormat::ReadMolecule):
	Added more tests to prevent ill-formed lines in M RAD, CHG and ISO
	lines from causing a crash. Added informative error message.
	Deficiency pointed out by Andrew Dalke.
	
	*src/descriptor.cpp, src/include/openbabel/descriptor.h:
	Add wildcard * facility and simplify - remove GenericDataCompare.
	
2007-07-06  Chris Morley

	* src/descriptor.cpp, src/include/openbabel/descriptor.h:
	Add MatchPairData() so that Property names with spaces can be
	searched for by replacing them with underscores in the filter,
	append or delete strings, as suggested by Noel.
	(GenericDataCompare): fix test for two numbers
	Added GetValues() to implement --append
	
	*src/transform.cpp: Extra option: --append (to mol title).
	Does what Joey Bedell wanted.

2007-07-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/Makefile.am, src/Makefile.in: Bump library version for 2.1.1
	release.

2007-07-05  Chris Morley

	* src/formats/inchiformat(WriteMolecule): downgraded the InChI
	message "Tetrahedral stereo info not available" to obInfo, 
	since it arises from the workings of the the opaque OB chirality
	system. Also added the molecule number for identification.
	
	* src/GUI/OBGUI.cpp, tool/babel.cpp: added &std::cout to the
	call to OBConversion::Write() for the APIInterface, because the
	previous NULL value was causing it to be ignored. This meant
	that ---errorlevel wasn't working,  as again found by Noel.
	
2007-07-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mdlformat.cpp (MDLFormat::ReadMolecule): Add
	additional error and warning messages, including a check if the
	atom/bond block doesn't work. Fixes crash reported by Joe Bedell,
	Sigma-Aldrich.

	* Makefile.am, Makefile.in: Skip INSTALL.Windows, deleted by
	Chris.

2007-07-04  Chris Morley

	* src/finger3.cpp: Trim firts line which decided format of
	patterns.txt. In Windows there was trailing \r which caused
	none of the patterns to be read, as found by Noel.
	
2007-07-04  Chris Morley

	* src/formats/smilesformat.cpp(CreateSmiString): call
	FindClosureBonds even when all atoms are chiral.
	(GetSmilesElement): only call GetChiralStereo when
	atom has is specified clockwise or anticlockwise, not just chiral.
	
2007-07-02  Noel O'Boyle <baoilleach@gmail.com>

	* include/oberrors.h: Fixed typo in Doxygen

2007-07-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, */Makefile.in: Updated with patch from
	Jean Brefort. Adds new --with-pkglibdir flag to facilitate
	packaging with versioned format directories.

2007-07-01  Chris Morley

	* src/obconversion.cpp(InstallStreamFilter): test for non-zero
	pInFormat to avoid crash with no input.
	
	* src/formats/gamessformat.cpp: Test for "$END" now works on $END$.
	Put size test first. Fixes bug #1738005 and probably #1745066.
	
	* INSTALL.Windows: deleted obsolete file
	
2007-06-30  Chris Morley

	* src/formats/smiles format.cpp(GetSmilesElement):do not always
	output atoms in 2D molecules in bracket form if the chirality
	is not specified (fix for bug #1738355)
	
	* src/GUI/OBGUI.cpp: small change to About text

2007-06-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/pdbformat.cpp: Fix for PR#1705895 -- check for
	string length before trying to read the 3rd character. Causes
	crash on Windows.

	* scripts/Makefile.*: Fix for change in Ruby build script.

	* src/formats/gaussformat.cpp (and others): Fix for
	PR#1737209. Return false for reading a molecule with no atoms. In
	these formats, empty molecules are invalid.

2007-06-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/obenergy.cpp, tools/obminimize.cpp: Minor feature request
	1722878 to add hydrogens before running force field
	calculations for Chris Swain.

2007-06-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* NEWS: Update for upcoming 2.1.1 release.

	* src/formats/pdbformat.cpp (ReadMolecule): Add a new OBPairData
	for any record we don't currently parse. This way all data is
	preserved.

	* src/formats/mol2format.cpp: Fix PR#1739905. Add warning if
	elements cannot be interpreted as atom types correctly (e.g., this
	GaussView file). Instead, attempt to interpret as element names.

	* data/types.txt: Fix two HO typing errors, which masked this
	bug.

	* scripts/openbabel-ruby.i: Fix module declaration -- really
	OpenBabel.

	* tools/obminimize.cpp: Minor fix requested by Chris Swain --
	allow setting output format using -o flag.

	* tools/obfit.cpp: Add RMS output to standard error.

2007-06-23  Noel O'Boyle <baoilleach@gmail.com>
	
	* scripts/*.i (except Perl, which was already done): Added
	groupcontrib.h and updated wrapper code
	* scripts/python/Pybel stuff:
	Added calcdesc() method to Molecules for descriptor calculation 
	Added update() method to MoleculeData
	Convert to string before setting a value in MoleculeData
	Updated tests, and API docs

2007-06-15  Chris Morley
	
	* src/smartsdescriptors.cpp: Added SmartsDescriptor class to 
	allow filters based on SMARTStest (like Number of Hydrogen
	Bond Acceptors) to be defined in a single line.
	A few (SMARTS from JoelLib) are defined: HBA1 HBA2 HBD nF
	
	* src/filters.cpp: in SMARTS filter only look for single match.
	
	* src/formats/inchiformat.cpp: small change in Description()
	
2007-06-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, Makefile.*: Updates from the Cygwin
	ports project for better compatibility (e.g., shared format
	modules on Cygwin). Thanks to Yaakov of Cygwin ports and Noel.

2007-06-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/chemdrawcdx.cpp: Fix a Universal binary problem on
	Mac OS X. We cannot rely on an autoconf test since the compiler is
	run twice: for ppc and i386. Thanks to Mike Stump from Apple for
	help.

	* scripts/java/: Updated classes for vectors of rings and vectors
	of strings.

	* Makefile.am, Makefile.in: Update for Chris's removal of the
	windows directory below.

2007-06-05  Chris Morley

	* src/formats/smilesformat.cpp(PaseSmiles):ignore any char<0
	Caused crash in isspace() in Visual C++8. Fixes bug
	#1730132 for this compiler at least.

	* windows/: Delete. This should have gone before because we are
	no longer supporting VC++6.
	
	* src/GUI/OBGUI.cpp(OnGetInputFile): Delete  | wxHIDE_READONLY 
	so that compiles with v2.8.3 of wxWidgets.

2007-06-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/cansmilesformat.cpp (AddHydrogenToChiralCenters):
	Fix PR#1700301. Never attempt to create atoms while iterating
	through the molecule. Safer technique -- keep a list of atoms to
	add hydrogens, add in a separate step.
	(AtomIsChiral): Fix PR#1699418. When determining chiral
	information for canonical SMILES, make sure to check if the atom
	is 3D. Otherwise it will never have wedge/hash bond flags.

	* src/mol.cpp (DeleteHydrogens): Update to fix PR#1704551 with H-H
	bonds not deleted. 

	* src/formats/smilesformat.cpp: Add warning message for unmatched
	ring closures described below.

	* configure, configure.in: Bump to 2.1.1 version.

2007-06-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Fix bug reported by Craig with
	un-matched ring closures. These should now always be rejected,
	since _rclose will not be empty.

	* test/files/invalid-smiles.txt: Add ring closure tests from
	Craig.

	* test/mol.cpp: Add test for H-H deletion bug reported by Donald,
	PR#1704551.
	
2007-06-01  Noel O'Boyle <baoilleach@gmail.com>

	Final changes for Windows release of OBPython 1.2

	* windows-vc2005/OBPython/setup.py: bumped version up to 1.2
	* scripts/python/pybelapi.py: updated API docs

2007-05-30  Chris Morley

	* include/openbabel/base.h(tokenize): Add \r to default
	delimiters in the two functions. Now Windows or old Mac files
	(esp data files) should be read properly. 
	Cures bug #1727333, I hope.
	
2007-05-30  Chris Morley

	* src/fingerprint.cpp(Tanimoto): return 0.0 if no bits set.
	Should cure bug #1728410.
	
2007-05-30  Chris Morley

	* include/openbabel/lineend.h: remove sync()call from destructor
	so that can delete in OBConversion's destructor after
	istreams have gone.
	
	* include/openbabel/obconversion.h, *src/obconversion.cpp
	Add InstallStreamFilter() and call from Read() and Convert().
	I hope this will cure the Windows Python bug, and is a neater
	method all round.
	 
2007-05-25  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/cdxmlformat.cpp: don't clear the molecule
	before writing. [#1725343]

2007-05-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* */Makefile.in: Regenerate UNIX build files.

	* src/plugin.cpp: Make sure to #include <iterator> to solve GCC
	compile problem. 

	* src/descriptor.cpp: Change _isnan to IsNan, as discussed on the
	list to solve GCC compile problem.

	* scripts/*: Updated to compile. May have removed functionality
	because of plugin changes.

	* tools/obminimize.cpp, tools/obgen.cpp, tools/obenergy.cpp:
	Switch to OBPlugin::List().

2007-05-17  Chris Morley

	* tools/obprop.cpp: mods to use new versions of logP etc.
	
	* include/openbabel/groupcontrib.h, src/goupcontrib.cpp:
	move declarations of OBGroupContib into header file and delete
	OBLogP etc which should not have been there but still compiled.
	
	* src/plugin.cpp(ListAsVector): Add support for only IDs.
	
	* include/openbabel/fingerprint.h:comment had become
	uncommented.
	
2007-05-16  Noel O'Boyle <baoilleach@gmail.com>

	* Added Chris's header changes to Makefile.am
	* Removed comments starting with //* as they confused SWIG as there
	was no matching */
	* python SWIG interface file: Included the new headers
	Note: the python bindings still don't compile.

2007-05-14  Chris Morley

	* src/obconversion.cpp(Read, Convert): Do not install a 
	FilteringInputStreambuf if stream already contains one. This
	solves my problem with multiple reads on the same input stream.
	 
2007-05-13  Chris Morley

	* src/obconversion.cpp(Read): Ensured that FilteringInputStreambuf
	is used. Previously it wasn't, which could cause errors
	except with unix reading unix files.
	 
2007-05-12  Noel O'Boyle <baoilleach@gmail.com>

	* SWIG interface files: Added template for vectors of strings
	* pybel.py: Added informats and outformats, dictionaries corresponding
	to the supported input and output formats

2007-05-11  Jean Brefort  <jean.brefort@normalesup.org>
	* include/openbabel/format.h: add missing new line (makes gcc happy).
	* include/openbabel/plugin.h: remove ClassName:: from method declaration.
	* src/formats/xml/cmlformat.cpp: ditto.

2007-05-10  Chris Morley

	* src/forcefields/forcefieldmmff94.cpp, .h: Mod for new plugin
	framework.
	Add return values to several functions, so that it would compile.

2007-05-10  Chris Morley

	Revision of plugin classes including OBFormat
	OBFormat, OBForcefield, OBFingerprint and the new
	OBDescriptor all derive from OBPlugin (not OBPluginiter)
	New files:
	include/openbabel/descriptor.h, include/openbabel/format.h
	include/openbabel/plugin.h, src/descriptor.cpp
	src/filters.cpp, src/format.cpp, src/plugin.cpp
	Removed file:
	include/openbabel/pluginiter.h
	Relocation of these and other files probably a good idea
	(incl new folder src/descriptors) but not done yet.
	class OBFormat moved out of obconversion.h, .cpp into
	its own files.

	* tools/babel.cpp: remove -F and add -L option

	* src/transform.cpp: reorganize to include new options
	--filter, --add, --delete

	* src/groupcontrib.cpp: remove OBLogP and similar classes;
	now descriptors which are instances of OBGroupContrib

	* src/formats/* : several forcefield and fingerprint files
	changed to fit new framework, obmolecformat.h to register
	new options.

	* src/formats/xml/cmlformat.cpp: if inchi is a property 
	write to <identifier> not <property> tag.

	* src/GUI/OBGUI.h, .cpp:display plugins in a menu item.

	* windows-vc2005: update Window build

2007-05-10  Noel O'Boyle <baoilleach@gmail.com>

	* pybel.py: Added support for unitcell, and deletion of OBPairData
	(need to update the tests and the API docs)

2007-05-08  Chris Morley

	* include/openbabel.h/base.h, src/base.cpp: corrected
	bug in DeleteData(OBGenericData*) which is the probable
	cause of bug #1715092. Added new function DeleteData(string)
	which makes it easier to use.
	Moved the declarations for Tokenize and Trim from mol.h to
	base.h so that they could be used more widely. Maybe there is
	an even better home.

2007-05-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/*.i: Added casting from OBGenericData to OBUnitCell.

2007-05-08  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/*.i: added a template for a vector of OBRing*
	which is required for OBMol.GetSSSR()

2007-05-08  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/*.i: added a method to cast OBGenericData to
	OBPairData.
	
	* scripts/python/pybel.*: added dictionary-like support for
	accessing molecule data, and updated the tests and the API
	documentation.

2007-04-30  Chris Morley 

	* NSIS installer script: Add some extra data files, replaced
	*.* which was causing extra files to be copied, and deleted
	HKCU/SoftwareOpenBabelGUI/ on uninstall.
	As used in OpenBabel2.1.0_Windows_Installer.exe	

2007-04-26  Noel O'Boyle <baoilleach@gmail.com>

	* NSIS installer script: Updated to install the MS VC++
	run-time installer

2007-04-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Merged 2.1.0 branch into trunk.

	* configure.in, configure: Bump to 2.2.0b1 version for trunk.
	(Not sure if we'll do 2.2 or 3.0, but we'll see.)

	* src/formats/inchi/strutil.c: Bug reported on the InChI mailing
	list.

	* src/formats/inchiformat.cpp: Bug caught during ChemSpotlight
	testing -- some files don't have chirality information (e.g., 3D
	files but with 0.0 coordinates throughout). Warn and give up.

2007-04-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* NEWS: Minor fixes for 2.1.0 final release.

2007-04-05  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* data/psa.txt: corrected smiles for 3-rings.

	* src/groupcontrib.cpp: call ConvertDativeBonds before assigning
	contributions, is needed for TPSA (e.g. [N](-*)(=*)=* ). Update to
	documentation.

	* include/openbabel/groupcontrib.h: documentation update.

2007-04-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/residue.h: Undo previous change. Rich Apodaca
	suggested some SWIG-fu instead.

	* scripts/ Update accordingly. Includes ruby changes, new README
	and examples.

2007-03-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/base.cpp: Additional "What's new" documentation for 2.1
	release.

	* include/openbabel/residue.h: Hide some residue names (e.g.,
	_1MG) from SWIG wrappers -- such constants are not valid symbols
	in some languages like Ruby.

	* scripts/ Update accordingly.

2007-03-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/: Updated interface wrappers, including new Java
	README. (Java is confirmed to work on Mac OS X.)

2007-03-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp: Make sure to always return from any
	exception. Otherwise we could crash running code.

	* src/formats/mdlformat.cpp: Avoid infinite loop in
	ParseAliasText.

	* src/formats/acrformat.cpp: Minor formatting change.

	* test/Makefile.am, test/Makefile.in, test/wrapper.sh: Add
	inchiwrite tests to suite.

	* test/inchiwrite.cpp, test/inchi.pl: Formatting to integrate into
	Perl "prove" test suite.

2007-03-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/obprop.cpp (main): Fix PR#1688251 with while/for loop on
	CML files. Thanks to Tapani Kinnunen for the report.

	* src/formats/mol2format.cpp: Fix problem reported by Noel with
	"USER_CHARGES" appearing instead of Gasteiger.

	* src/data.cpp, src/groupcontrib.cpp: Fix doxygen warnings.

	* include/openbabel/groupcontrib.h: Documentation fixes.

	* NEWS: Minor fixes.

	* doc/*.1, doc/*.html: Documentation updates.

2007-03-24  Benoit Jacob <jacob@math.jussieu.fr>

	* include/openbabel/atom.h, src/atom.cpp: Change SetVector to
	const parameter.

2007-03-23  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* tools/obprop.cpp: Function string sequence(OBMol) was not returning
	any string.

2007-03-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/psa.txt, data/mr.txt, data/logp.txt: Small changes -- DOS
	to UNIX line endings. 

	* test/Makefile.am, test/Makefile.in: Make sure to add inchiwrite
	to compile list.

	* test/wrapper.sh: Add notes on passing arguments to "prove."

	* tools/obprop.cpp: Fix formatting problems - PR#1685879, reported
	by Tapani Kinnunen.

	* src/formats/mol2format.cpp: Add new -xl flag to output "ligand
	only" data (i.e., no residue info). Fixes PR#1683788.

	* src/formats/smilesformat.cpp: Fix PR#1680070 with output of
	chiral root (first) atoms. Really need to clean up BuildTree()
	since that if() statement is messy, but works for 2.1 release.

2007-03-23  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* data/psa.txt: Added ";heavy", fixes the logp_psa test.

2007-03-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp: When determining length, if two atoms are
	really close, add a small random separation (~0.1Ang). Fixed
	PR#1684479.

2007-03-22 Chris Morley

	* windows-vc2005: Simplified projects to OpenBabelDLL with driver
	programs for commandline, GUI, and Python interface.

	* include/openbabel/forcefield.h: So that the Python build
	in Windows will work, added a dummy function so that the 
	compiler will really make some functions of the templated class
	OBIter<OBForceField> which SWIG is expecting. The needs to be
	done properly, but needed to get it working for the 2.1 release. 
	
	* include/openbabel/obconversion.h and src/obconversion.cpp:
	added the patches supplied by Jerome Pansanel for providing a
	list of available formats.
	
2007-03-20 Chris Morley

	* src/formats/xml/cmlformat.cpp: Add code to write W and H in
	bondstereo. Ensure <bondStereo> is written in array form.
	
	Mods inDoAtoms to read the right set of atom coordinates.
	
	Add option to write bonds as aromatic.
	
2007-03-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp: Amend yesterday's change to address double
	free() bug, PR#1683541. Still don't like this, as it could leak
	the zip_istream we create.

	* src/parsmart.cpp: Fix PR#1683890 for SMARTS pattern 'x' with no
	number. Default is "at least one ring bond."

	* test/files/smartstest.txt, test/files/smartsresults.txt: Update
	for above. 'x' pattern and 'x0' pattern.

2007-03-19  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/mol.cpp: OBMol::DeleteAtom - Moved DeleteAtom to *after* the
	EndModify call.  At this point the atom is already removed from the _vatom
	vector.  OBMol::DeleteBond - Moved DeleteBond to *after* the EndModify
	call.  At this point the bond is already removed from the _vbond vector.

2007-03-18 Chris Morley

	* src/formats/mdlformat.cpp: Added support for atom aliases when
	reading. It's not much described in the main MDL specification,
	so this implementation is just adequate to handle the InChI
	samples, where for some reason, this antiquated feature is
	used in several molecules.
	
	* src/formats/inchiformat.cpp(ReadMolecule): Now reads implicit
	H isotopes.
	(WriteMolecule): rewrote option to not display routine warnings.
	
	* test/: Added inchiwrite.cpp, two NIST sample molecule sets and
	annotated results sets.
	
	* src/formats/getinchi.cpp: Added declaration of GetInChI().
	
	* src/canon.cpp (FixCisTransBonds): changed | to || in if statement
	
	* src/forcefield (GenerateCoordinates): initialize torang to 0,
	to avoid compiler warning. This variable doesn't seem to be
	doing much but please could somebody check this is ok.
	
2007-03-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (Separate): Add support for copying, updating
	OBChiralData. Fixes PR#1680730.

	* src/obutil.cpp: Fix typo in yesterday's change.

	* test/logp_psa.cpp: Update to output predicted values, even if
	they match.

	* src/obconversion.cpp: Make sure to declare the new readbuf
	outside of the if() scope.

2007-03-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/molchrg.cpp: Add new OBPairData descriptor "PartialCharges"
	to express origin as Gasteiger charges.

	* src/formats/qchemformat.cpp, src/formats/mopacformat.cpp, 
	src/formats/gamessformat.cpp, src/formats/gaussformat.cpp: 
	Set PartialCharges descriptor to express origin as Mulliken
	charges.

	* src/formats/mol2format.cpp: Use above.

	* src/*: Strip out 0.0f and similar floating-point casts,
	extending yesterday's changes with forcefield.cpp. Defensive
	programming against similar floating-point issues.

2007-03-16  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/atom.h, include/openbabel/mol.h: Fix
	PR#1626789 with large PDB files. Fixes regression to 2006-09-25
	changes supporting >2^16 atoms or bonds.
	
	* src/mol.cpp(EndModify): Ensure idx is unsigned (to match atom indexes).

	* include/openbabel/chains.h, src/chains.cpp: Make sure atomids is
	int, not short. Atom IDs can go up to a full unsigned int.

	* src/formats/chemdrawcdx.cpp: Some code cleanups, including use
	of obErrorLog.

	* src/forcefield.cpp: Fix PR#1680717. Seems to be an issue with
	floating-point roundoff. When 0.0f and similar tags were removed,
	works great.

2007-03-16  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/groupcontrib.cpp, include/openbabel/groupcontrib.h: General
	class to handle group contribution algorithms (LogP, TPSA, MR, ...).
	Also contins OBLogP, OBPSA and OBMR. Should these simple classes be
	bundled in a OBDescriptors class?

	* src/logp.cpp, src/psa.cpp, include/openbabel/logp.h,
	include/openbabel/psa.h: moved to groupcontrib.cpp/h

	* data/mr.txt: data for molecular refractivity.

	* test/logp_psa.cpp: forgot to commit.

2007-03-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchiformat.cpp, src/formats/cmlformat.cpp: Fix compile
	problems with GCC and last changes. (Return value from
	OBChiralData should be assigned to a full object.)

	* src/obconversion.cpp, src/obconversion.h: Tackle some gzip
	problems, including PR  #1617838. We need to be sure we don't try
	to gzip twice. Create a zip_istream pointer, then free it as
	needed.

	* scripts/*: Updated for recent library changes.

2007-03-13 Chris Morley
	
	* src/formats/inchiformat.cpp: Add bond stereo handling to
	ReadMolecule(). Correct 0D stereo in reading and writing.
	Remove the waring message about stereochemistry. Apart from
	a few special cases, e.g. allenes, 'either' parity, I think
	the InChI writing and reading is now ok., but still more 
	testing needed...
	TestFormat messages improved.
	
	* src/formats/xml/cmlformat.cpp: Correct handling of 0D
	atomParity on reading and writing.
	
	* src/GUI/optswx.cpp: Added documentation

2007-03-13  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields/forcefieldghemical.cpp: Fix 1,4-scaling problem.

2007-03-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefieldmmff94.cpp: Switch pow() to use
	doubles to prevent compile problems on older Linux/GCC systems.
	Switch to using OpenDatafile.

	* src/logp.cpp, src/psa.cpp: Switch to use OpenDatafile() call.

	* src/fingerprints/finger3.cpp: Likewise.

	* src/forcefields/forcefieldmm2.cpp,
	src/forcefields/forcefieldghemical.cpp: Likewise.

	* src/formats/xml/Makefile.am, src/formats/xml/Makefile.in: Fix
	problems with compiling XML formats on Mac OS X.

	* include/openbabel/Makefile.am: Make sure to include psa.h and
	logp.h in distribution.

	* src/data.cpp: Move comments to provide better documentation for
	OpenDatafile. Switch OBGlobalDatabase::Init to OpenDatafile.

	* include/openbabel/data.h: Add envvar argument to OpenDatafile.

	* config.sub, config.guess, configure, Makefile.*: Update with
	automake-1.10 and autoconf-2.61.

2007-03-13  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* tool/obminimize.cpp: added '-sd', '-cg', '-c criteria' options

	* doc/obminimize.1: update for added options (man pages for obenergy
	and obminimize are also on wiki now) 

2007-03-12  Geoffrey Hutchison  <babel@geoffhutchison.net>	

	* src/formats/mopacformat.cpp: Added patch #1676963
	for MOPAC 2007 output format. Thanks to 'dn2010.'
	(Daniil Bratashov). Solves PR#1654907.

	* src/formats/qchemformat.cpp: Added support for keywords.

	* src/formats/acrformat.cpp: New format, contributed by Daniel
	Mansfield.

	* src/formats/Makefile.am, src/formats/Makefile.in: Add acrformat.

	* src/formats/gaussformat.cpp: Add feature to write bonds,
	contributed by Daniel Mansfield.

	* src/formats/fchkformat.cpp: Add initial support from Maxim
	Fedorovsky. (Maxim's contribution also supported vibrational data
	using Eigen and matrix operations.)

	* include/openbabel/generic.h, src/generic.cpp: Include
	OBVibrationData class (even if the matrix operations to use it
	aren't in Open Babel yet).

	* tools/obprop.cpp: Additional properties, including canonical
	SMILES and InChI. Fixes request PR#1620842.

	* THANKS: Work on updates for 2.1 release.

	* NEWS: Likewise.

2007-03-11 Chris Morley
	
	* src/data/atomtyp.h: Aggressive simplification of 
	IMPVAL for oxygen and new value for Si. Read and test with
	/test/files/FormulaTest.smi. Solves bugs 1635901 and
	1474930
	
	* include/openbabel/forcefield.h: Remove unused 
	#ifndef isnan

2007-03-11 Chris Morley

	* src/formats/inchiformat.cpp: Moved handling of InChI
	options to new subroutine and it added options to 
	ReadMolecule().
	In WriteMolecule() removed deletion of OBChiralData and
	re-zeroed z coords, so that OBMol is unchanged.
	
	* src/GUI/OBGUI.cpp, OBGUI.h: Made default ostream a 
	stringstream which is written to textbox at end. Solves
	bugs 1596906 and (probably) 1669973.
	Added facility for copying output to input.
	
	* src/GUI/optswx.cpp,stdwx.cpp:Leave header files in src/GUI

2007-03-10  Tim Vandermeersch <tim.vandermeersch@gmail.com>
	
	* include/openbabel/psa.h, src/psa.cpp, src/Makefile.am,
	src/Makefile.in, data/psa.txt: Added OBPSA class.

	* tools/obprop.cpp: Added PSA property.

	* test/logp_psa.cpp: LogP and PSA test for 3 molecules.

2007-03-10 Chris Morley

	* src/formats/inchiformat.cpp(WriteMolecule): For 2D molecules
	use a modified CalculateChiralVolume() to add psueudo z
	coordinates, rather than using InChI's 2D bond stereo method.
	I think we are close to getting the InChI write stereochemistry
	right at last, but systematic checking needed.
	
	* include/openbabel/chiral.h, src/chiral.cpp
	(CalculateChiralVolume): add backwards-compatible extra 
	parameter to facilitate use of pseudo z coordinates.
	
	* src/formats/cansmilesformat.cpp(BuildCanonTree): two more
	instances of the bug corrected yesterday.

2007-03-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure, configure.in: Bump for 2.1.0b7 snapshot.

	* Doxyfile: Bump version for eventual 2.1.0 release.

	* src/*, src/formats/*: Add OBGenericData::SetOrigin calls to
	provide attribution to sources of data: file input, user input,
	perceived, etc.

	* tools/obfit.cpp: Likewise.

2007-03-09  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/logp.h, src/logp.cpp, src/Makefile.am,
	src/Makefile.in, data/LogP.txt:
	Added OBLogP class (see mailing list).

	* tools/obprop.cpp: Added LogP property.

2007-03-09 Chris Morley

	* src/formats/cansmilesformat.cpp(BuildCanonTree):The insert in 
	line 893 invalidates iterator ai. Add a line so that the subsequent
	test (outside the loop) does not crash my debug build but always
	is false - no push_back. Solves bug 1650790. I hope that Craig or
	somebody can check whether the cannonical SMILES output is still ok.

2007-03-09  Donald E. Curtis <dcurtis3@sourceforge.net>

	* include/obiter.h: added deconstructor functions.  Lack of these can
	cause problems when using the FOR_*_OF_* macros.

2007-03-08  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* forcefield.h/cpp: documentation update.

2007-03-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Fix problem with "invented" stereo
	from 2D files -- make sure to check bond torsion ~0.0 and
	~180.0. Fixes PR#1663814.

	* doc/*.1: Initial cleanups of man pages, including new pages for
	obenergy, obminimize, and obrotamer.

	* Doxyfile-man: Update to point to new babel location.

	* src/chains.cpp: Fixing bug with chain perception related to
	PR#1626789, and 1577248. Setting visit flags skipped
	marking some atoms as members of residues.

	* test/residue.cpp: Add new tests for PR#1577248.

	* data/types.txt, data/types.h: Add Lp atom type for Sybyl based
	on PR#1672575.
	
2007-03-08  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/obutil.cpp: moved IsNan() to here. Hopefully this will eliminate
	the problem with non C99 compatible compilers.

	* src/forcefield.cpp: update documentation + small optimization
	changes.

	* include/openbabel/forcefield.h: update documentation (in progress).

	* tools/obenergy.cpp: Added man page.
	
	* tools/obminimize.cpp: Added man page.

2007-03-07 Chris Morley

	* src/for,ats/smilesformat.cpp(FixCisTransBonds): replace
	bitwise | by logical ||. 
	I guess if (v1 < 2 || v1 > 3 || v2 < 2 || v2 > 3) was meant.
	
	* include/openbabel/base.h(GetData(DataOrigin), base.cpp: 
	This was returning a reference to a local object. 
	Return a copy of it instead.
	
	* src/formats/inchiformat.cpp: Reformat Description().
	In WriteMolecule, modify bond stereo to work with new Up/Down
	usage.
	
	* src/formats/xml/cmlformat.cpp: For reading and writing,
	modify bond stereo to work with new Up/Down usage.
	Now writes bondStereo elements in array form.
	
2007-03-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/obdoc.cpp: Update for wiki format to facilitate updates
	after 2.1 release. 

	* src/formats/pdbformat.cpp: Mark that chain/residue
	perception is not needed. Make sure that code anticipates atoms
	with no residue.

	* src/data.cpp (OBResidueData): Anticipate that some atoms will
	have no residue.

	* src/formats/mopacformat.cpp: Add keyword support, fix problem
	with writing molecules (i.e., molecule was cleared before
	cartesians written).
	
	* src/formats/smilesformat.cpp, src/formats/mol2format.cpp, 
	src/formats/xml/cmlformat.cpp, src/formats/carformat.cpp,
	src/formats/cifformat.cpp, src/formats/fastaformat.cpp,
	src/formats/gaussformat.cpp, src/formats/gamessformat.cpp,
	src/formats/alchemyformat.cpp, src/formats/cansmilesformat.cpp:
	Clean up descriptions and indentation.

2007-02-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefield.cpp, src/forcefield.h: Cut out some compiler
	warnings from	GCC. Remove is14(), already available through
	OBAtom::IsOneFour.

	* src/forcefields/forcefieldghemical.cpp: Make sure to return from
	all functions.

	* src/dlhandler_unix.cpp: Use global loading. May improve script
	language interface on Linux.

	* include/openbabel/base.h, src/base.cpp: Support for filtering
	OBGenericData based on the source.

	* include/openbabel/generic.h, src/generic.cpp: Likewise.

	* test/files/smartsresults.txt: Fix results based on Craig's
	SMARTS changes today.

2007-02-28  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Replaced isnan() by OBIsNan(). 

2007-02-28  Craig James <cjames@emolecules.com>

	* src/formats/smilesformat.cpp: Fixed PR#1663854 "Canonical SMILES
	gives incorrect cis/trans" in cansmilesformat.cpp, also fixed the
	same problem in smilesformat.cpp.

	* Disabled SMARTS parsing of cis/trans '/' and '\', these are
	temporarily treated as ordinary single bonds, due to severe bug
	in SMARTS matching.  See PR#1663730, this is a temporary workaround.

2007-02-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mol2format.cpp: Fix PR#1666406 with mis-typed Sybyl
	atom types.

	* data/types.txt, data/types.h: Likewise.

2007-02-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchiformat.cpp: Fix compile problems on GCC.

	* src/mol.cpp: Fix PR#(PR#1665519) with AddHydrogens when no
	conformers are available.

	* Doxyfile: Remove babelconfig and config from header list.

	* src/patty.cpp: Mark as deprecated.

	* src/fingerprint.cpp, src/mol.cpp, src/typer.cpp
	src/parsmart.cpp, : Documentation updates.

	* include/obmolecformat.cpp, src/formats/obmolecformat.cpp,
	include/openbabel/xml.h, include/openbabel/typer.h,
	include/openbabel/parsmart.h, include/openbabel/rand.h, 
	include/openbabel/mol.h: Likewise.

2007-02-26 Chris Morley

	* src/formats/inchiformat.cpp(WriteMolecule): Mods to 0D and 2D
	stereochemistry; more to be done, work in progress.
	Added Option to use InChI options.
	
	* src/formats/mdlformat.cpp(ReadMolecule):Use the content of
	any "NAME"(case independent) property as OBMol title if there
	is not already one.
	
	* src/format/xml/cmlformat.cpp, xml.cpp(GetContent): Add Trim()
	after several cases of xmlTextReaderConstValue to remove any \n
	
	* src/obconversion.cpp(Convert): Add test for pInFormat to avoid
	crash with erroneous input.
	
	* src/mol.cpp(Separate): Copy dimension to each fragment.

2007-02-26  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/mol.cpp: OBMol::AddBond() / OBMol::DeleteBond() 
	Bond indexing starts at one.  Had to undo the change made by Tim and
	correct the fix on 2007-01-07 as a result of the bulk resizing.

2007-02-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/ring.cpp (FindRings): Don't return early if all atoms are
	visited. Some atoms may be in multiple rings and will be visited
	more than once on a graph traversal.

2007-02-25  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/mol.cpp: OBMol::DeleteBond()
	_vbond.erase(_vbond.begin() + bond->GetIdx());
	Since _vbond indices start at 0 and bond->Getdidx() indices start at
	1, the line is replaced by:
	_vbond.erase(_vbond.begin() + bond->GetIdx() - 1);

2007-02-25  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h: comment out Description() (comply
	with new pluginiter).

	* obmm, obenergy, obminimize, obgen: comment out the use of
	Description().

2007-02-25 Chris Morley

	* windows-vc2005/OpenBabelDLL: Updated OpenBabelDLL.vcproj.
	Temporarily added OpenBabelDLL.dll and OpenBabelDLL.lib
	(without forcefield)
	
	* include/openbabel/kinetics.h, lineend.h, pluginiter.h:
	documentation changes.
	
2007-02-25  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/ring.cpp: Added a check in FindRings to make sure the depth is
	not larger than the number of atoms we have. (see mailing list)

2007-02-24  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Added ConjugateGradientsInitialize() and
	ConjugateGradientsTakeNSteps(). ConjugateGradients() still exists and
	uses these two new function.
	Idem for SteepestDescent.

2007-02-24  Tim Vandermeersch <tim.vandermeersch@gmail.com>
	
	* src/mol.cpp: changes OBMol::NewBond, fixes PR#1666785. AddBond() was
	resizing the _vbond vector and NewBond() used push_back to add items.
	This created a gap bewteen the bonds added by NewBond() and AddBond().
	The FOR_BONDS_OF_MOL iterator expects all bonds to be at the begin of
	the vector. Note: this also fixes the initial problem with the
	OBAngleData and OBTorsionData.

	* test/addhydrogens.cpp: added/deleted... (was used for debugging)

	* src/forcefield.cpp: changes "*logos << ..." to OBFFLog(...)

	* src/forcefields/forcefieldghemical.cpp: changes "*logos << ..." to 
	OBFFLog(...)

2007-02-23  Tim Vandermeersch <tim.vandermeersch@gmail.com>
	
	* data/ghemical.prm: Final update. All molecules from the validation
	ste are given correct atom types and charges.

	* src/forcefields/forcefieldghemical.cpp: Calculated energies comply
	with those from ghemical except for 1,4-scaling. Ring atoms are not
	always scaled in ghemical, not sure why.

	* src/forcefield.cpp: Added OBFFLog, fixes PR#1664279. (tested, but
	needs to replace all "*logos << ..." lines)
	Moved IsInSameRing from OBForceFieldMMFF94 to OBForceField.
	Test molecule from PR#1665765 minimizes correctly, but added cutoff
	accuracy to make sure.

	* tools/obmm.cpp: Added commands for DelHydrogens, GenerateCoordinates,
	SystematicRotorSearch and NumConformers.

	* include/openbabel/forcefield.cpp: Added a definition for isnan.
	(should be replaced with a better method in the math class??)

2007-02-22  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/mol.cpp: Added SetParent call to NewBond function.  Should resolve
	segfault issues related to bug 1665519.

2007-02-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (NewBond): Fix PR#1665649. Make sure to set the
	parent of a newly-created bond.

	* test/mol.cpp: Add test for above.

	* src/formats/Makefile.am, src/formats/Makefile.in: Fix linking
	problems on Linux discovered by Craig.

2007-02-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/*.i, scripts/*: Add access to OBForceField classes and methods.

	* tools/obprop.cpp: Remove "test" methods, introduced sometime
	since the last release.

	* tools/obmm.cpp: Make sure to set the OBForceField log to prevent
	crashes (e.g., PR#1664279).

	* Doxyfile: Bump version number to 2.1.0b6 for new snapshot.

	* configure.in, configure: Bump to 2.1.0b6 for new snapshot.

	* src/forcefield.cpp, tools/obrotamer.cpp: Update to use
	std::vector instead of arrays.

	* src/rotamer.h, src/rotamer.cpp: Update documentation to use
	std::vector. Fixes compile problems on Windows.
	AddRotamer(std::vector) New method for above.

	* src/base.cpp: Documentation updates.

	* src/canon.cpp, src/forcefield.cpp: Likewise.

	* include/openbabel/ring.h, generic.h, pluginiter.h, canon.h,
	forcefield.h, lineend.h: Likewise.

	* src/all.h, src/formats/all.h, src/Makefile.am, src/Makefile.in,
	src/formats/Makefile.am, src/formats/Makefile.in: Update to allow
	using precompiled headers again.

	* src/canon.cpp, src/formats/cansmilesformat.cpp: Fix crash caused
	by linking problem. CanonicalLabels() moved to the Open Babel namespace.

2007-02-20  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: UpdateCoordinates now 'knows' about conformers
	and selects the correct one before returning.

	* tools/obminimize.cpp: Implemented (was copy of obmm).

2007-02-18  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefield.cpp: Added vector analysis methods 
	VectorLengthDerivative(), VectorAngleDerivative(), 
	VectorTorsionDerivative()

	Removed SetEnergyCalculated and related methods for the moment.

	* src/forcefields/forcefieldghemical.cpp: Updated to use the vector
	analysis methods.
	
	* src/forcefields/forcefieldmmff94.cpp: Updated to use the vector
	analysis methods.

	* tools/obgen.cpp: Added -ff option.

	* tools/obenergy.cpp: Added. Calculate the energy of a molecule.
	
	* tools/obminimize.cpp: Added. Minimize the energy of a molecule.

2007-02-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/typer.cpp: Fix PR#1594657 -- long recursion for large
	multi-ring systems like fullerenes. This started by two calls to
	CheckAromaticity, including one allowing recursion depth of
	20. Discussion with Henry Rzepa suggested 14 as a reasonable
	cutoff.

	* src/forcefields/forcefieldmmff94.cpp: Fix compilation problem
	with call to NumericalDerivative.

2007-02-17  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/forcefield.h: Some doxygen comments updated.

	* src/forcefield.cpp: Added SystematicRotorSearch(), uses RotamerList
	class to rotate all torsions, select the best conformation (lowest
	energy) and minimize it (1000 steps).

	SteepestDescent(int steps, int method) and 
	ConjugateGradients(int steps, int method): 
	the "int method" argument is added, can be set to
	OBFF_ANALYTICAL_GRADIENTS (default) or OBFF_NUMERICAL_GRADIENTS.

	Added ValidateGradientError(vector3 &numgrad, vector3 &anagrad):
	calculate the difference in % between the analytical and numerical
	gradient.

	NumericalDerivative(OBAtom *atom, int terms) and
	GetGradient(OBAtom *a, int terms):
	the added argument terms can be set to OBFF_ENERGY (total gradient,
	default), OBFF_EBOND (gradient for bond stretching), ... (Mainly used
	for ValidateGradients

	* src/forcefields/forcefieldghemical.cpp: All analytical gradients are
	now correct (errors can still be minimized by limiting the number of
	devisions etc...) ValidateGradients also compares gradients for
	individual energy terms. 
	
	Electrostatic term implemented.

	* data/ghemical.prm: Added charge parameters.

	* tools/obgen.cpp: Changed to SystematicRotorSearch().
	
	* tools/obmm.cpp: Added help command.

2007-02-17  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/chemdrawcdx.cpp: don't center molecules.

2007-02-16  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/obmolecformat.cpp: make it compile again (gcc-4.1.2).

2007-02-15 Chris Morley

	Sorry that incomplete code keeps escaping. I'll put up Separate
	code now, although the performance for 0D stereochemistry (sigh)
	needs sorting out. Fulfills Feature Request 1581542
	* include/openbabel/obiter.h, src/formats/obiter.cpp: Extend
	OBMolAtomDFSIter operator* to return NULL to indicate end of a fragment.
	Add parameter to constructor allow the iteration to start at any atom.
	
	* include/openbabel/mol.h, src/formats/mol.cpp: Add API function
	OBMol::Separate() to return disconnected fragments in OBMol vector.
	
	* include/openbabel/obmolecformat.h, src/formats/obmolecformat.cpp:
	Code for applying Separate() in conversion process.
	Also, add ReadNameIndex() for indexing names in multiobject files.
	Requires further testing.
	
	* src/formats/transform.cpp: Added options --separate and 
	renamed -j as --join. (-j still works)

2007-02-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefieldmm2.cpp,
	src/forcefields/forcefieldmmff94.cpp: Remove exit() calls in favor
	of error messages and default return values. Fixes PR#1650132.

	* src/forcefields/forcefieldghemical.cpp: Add default
	electrostatic function (return 0.0) to fix compilation error.

	* tools/obmm.cpp: Add cg command for conjugate gradients.

2007-02-15  Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* include/openbabel/obconversion.h: Removed OBConversion:: before
	CheckForUnintendedBatch(...); to fix compilation error.

	* src/forcefield.cpp: Added/Updated LineSearch, SteepestDescent,
	ConjugateGradients. Also added the same functions as Validate... to
	test the implementation for x^2 + 2 y^2.
	Added bool is14(OBAtom *a, OBAtom *b). Should move to atom.cpp??
	Started working on DistanceGeometry (needs more sophisticated matrix
	operations than OB currently supports).

	* src/forcefields/forcefieldghemical.cpp: Now uses
	OBFFXXXCalculationYYY to improve performance. All energy functions have
	analytical derivatives. Small corrections to the energy expressions to
	match energies produced by ghemical, added 14-scaling for non bonded 
	energy terms. Different bondtypes in ghemical.prm are no longer
	ignored. Added ValidateGradients().

	* src/forcefield/forcefieldmmff94.cpp: Continue work on MMFF94 to
	comply with the validation suite.
	Added ValidateGradients().
	
2007-02-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/obmolecformat.cpp: Comment out sections of
	ReadChemObjectImpl -- looks like code from Chris invoking
	OBMol::Separate().

2007-02-13 Chris Morley

	Clear OBMol objects by default at start of ReadMolecule.
	
	* include/openbabel/base.h: Add CastAndClear().
	
	* src/*format.cpp(ReadMolecule): Replace dynamic_cast by a call
	to CastAndClear().
	
	* include/openbabel/obconversion.h, src/obconversion.cpp
	(Read, ReadString, ReadFilemove): Remove clearFirst parameter,
	since it is no longer needed. 
	
2007-02-13 Chris Morley

	* include/openbabel/obconversion.h, src/obconversion.cpp:
	Corrected bug 1657817 - wrong name for batch conversion
	of one file - which was due to misinterpretation as 
	splitting operation. Solution requires that the base name
	for output files splitting is not empty - not a big constraint.
	Added extra warning messages and checks in 
	CheckForUnintendedBatch(). Made this function and 
	BatchFileName() and IncrementedFileName() protected.
	
2007-02-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/cansmilesformat.cpp
	(OBMol2Cansmi::AddHydrogenToChiralCenters): Fix PR#1658317 with
	chirality on last atom. Switched iterator to use obiter.h macros.

	* configure.in, configure, src/config.h.in: Add big-endian,
	little-endian check,	which defines WORDS_BIGENDIAN for
	chemdrawcdx.cpp (and other binary formats in the future).

	* src/formats/chemdrawcdx.cpp: Solve compilation problems with
	previous change. (endian.h and byteswap.h are GNU and Linux
	extensions.) Requires declaration of WORDS_BIGENDIAN in
	babelconfig.h (as above for Unix).

	* src/Makefile.am, include/openbabel/Makefile.am,
	src/obconversion.cpp: Remove references to newline.[h, cpp].

	* include/openbabel/lineend.h: Add std namespace declarations to
	solve compilation problems with GCC.

	* include/openbabel/ring.h, src/ring.cpp: Documentation updates,
	added new constructor to simplify OBRingSearch::SaveUniqueRing().

	* src/generic.cpp, include/openbabel/generic.h: Change reference
	of DataSource to DataOrigin, as suggested by Noel.

	* include/openbabel/bitvec.h: Fix bug (and documentation) with
	FirstBit().

	* include/openbabel/obutil.h: Fix GCC compile warning.

	* test/cansmi.cpp: New test program for Canonical SMILES format.

	* test/wrapper.sh, test/Makefile.am, test/Makefile.in: Use it.

	* data/types.txt, data/types.h: Fix PR#1650239 with incorrect
	Sybyl Mol2 atom types.

2007-02-11 Chris Morley

	Replaced filter for line endings with a version which works
	with fastsearch. Solves bug 1617324.
	* include/openbabel/newlinebuf.h and src/newlinebuf.cpp:
	replaced by include/openbabel/lineend.h
	
	* src/obconversion.cpp: code in Convert() and Read() replaced.
	
	Removed peek() in the Convert()loop. This was needed for 
	some other mod, which has probably not yet been committed.
	This is not causing any problems for me, but is rather
	central to the conversion process.
	
	Added some documentation on GetOutputIndex. 

2007-02-08  Noel O'Boyle <baoilleach@gmail.com>

	* scripts: Regenerated bindings for scripting languages
	
2007-02-07  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/chemdrawcdx.cpp: make it work on little-endian
	machines.

2007-02-02 Chris Morley

	* include/openbabel/mol.h: Remove definition of Separate()
	which was added prematurely.
	
2007-02-05  Noel O'Boyle <baoilleach@gmail.com>

	* scripts: Removed %apply of OUTPUT and regenerated scripts

2007-02-02 Chris Morley

	* windows-vc2005/Distribution: remove the Windows DLLs added
	yesterday.

2007-02-01 Chris Morley

	* windows-vc2005/Distribution: add some Windows DLLs for the 
	installer.

2007-01-31  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/canon.h, src/canon.cpp: Add canonical
	numbering code from Craig James. (Eventually needs integration
	into other methods -- these duplicate since they support
	fragments.)

	* src/formats/cansmilesformat.*: Add CANSMI format for Canonical
	SMILES output. Eventually needs better integration into current
	SMI format rather than duplication.

	* src/Makefile.* include/openbabel/Makefile.*: Add above files.

2007-01-27  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/cdxmlformat.cpp: add support for formal charges.

2007-01-26  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/cdxmlformat.cpp: fixed issues in writing
	multi-molecules files.

2007-01-26 Chris Morley

	* src/obconversion.cpp, include/openbabel/obconversion.h: Mitigate
	some of the uncertainties in writing multi-molecule files.
	pointed out by Jean Brefort, including bug 1644241.
	Added SetLast as an alternative name for SetOneObjectedOnly.
	Added documentation to GetOutputIndex().
	
2007-01-25  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/cdxmlformat.cpp: scale bond lentghs to 30 (using the
	first molecule) and enable write support.

2007-01-25  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/cdxmlformat.cpp: add some stereochemistry and initial
	write support (not enabled).

2007-01-24  Jean Brefort  <jean.brefort@normalesup.org>

	* src/formats/xml/Makefile.am: add cdxmlformat.
	* src/formats/xml/cdxmlformat.cpp: make it basically work.
	* src/formats/xml/xml.cpp: fix a memory leak.

2007-01-23  Donald E. Curtis <dcurtis3@sourceforge.net>

	* tools/obmm.cpp: Added check for cin.eof resolving bug 1639880.

2007-01-22  Donald E. Curtis <dcurtis3@sourceforge.net>

	* include/openbabel/bond.h: Added const versions of GetBeginAtom and
	GetEndAtom.

	* include/openbabel/atom.h: Added const version of GetVector.  Required
	changing _v to mutable.

	* src/atom.cpp: Added implementation of GetVector.

	* include/openbabel/math/vector3.h: Added const to function definition of
	AsArray function.

2007-01-17  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/Distribution: Added all of the remaining files to the
	installer script so that you can now make an installer directly after
	compiling the relevant projects (OBGUII and OBComLn). Have also
	checked in the example files included with the Windows distribution.

2007-01-16  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel/mol.h, src/*: Documentation updates.

	* include/openbabel/Makefile.am: Make sure pluginiter.h is included.

2007-01-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/snprintf.c: Update with declaration of GPL license in
	addition to Artistic. Checked with author:
	http://www.ijs.si/software/snprintf/

	* configure.in, configure, Makefiles: Bump version number to
	2.1.0b5.

	* src/forcefields/forcefieldmmff94.cpp: Added stub for
	electrostatic calculation. Solves linking problems on Mac OS X.

2007-01-14  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/Distribution: Edited the installer script to make it
	easier to set the version number. Also added explicit paths to some of
	the DLLs in the SVN repository.

	* COPYING: Removed the text after the terms and conditions. This is
	the text describing how to apply the license.

2007-01-13  Noel O'Boyle <baoilleach@gmail.com>
	
	* windows-vc2005/Distribution: Added files necessary for creating an
	installer using NSIS, an open source software for creating Windows
	installers. The current script needs to be edited to be able to pick
	up the files from the OpenBabelGUI build.

2007-01-12  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-python.i: quick fix to allow the openbabel module
	to be imported without errors. The OBFingerprintIter issue remains
	unresolved.

2007-01-09 Chris Morley <ob@gaseq.co.uk>

	* scipts/openbabel-python.i: changes to OBFingerprintIter. Not tested
	yet!
	
	* include/openbabel/pluginiter.h: comment out PluginIter::Description()
	and operator* which are causing problems with the Python build - 
	I suspect because they are not used in the C++ code.
	
	* include/openbabel/forcefield.h: src/forcefields/forcefieldghemical.cpp,
	 src/forcefields/forcefieldmm2.cpp: changes to several return values
	to avoid compiler errors. 

2007-01-08 Chris Morley <ob@gaseq.co.uk>

	* include/openbabel/pluginiter.h: correct documentation on 
	the use of FOR_EACH to iterate over all objects.

2007-01-07  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/mol.cpp: Moved all Destroy* calls to the end of Delete* functions so
	that indexes are updated and other meta information.

	* src/mol.cpp: NewBond was assigning indexes based on the size of the
	_vbond vector but since the vector is incremented in chunks of 100 this
	was producing incorrect index numbers.  Updated misc docs.  Also had a bug
	in DeleteBond using the bond variable for more than one purpose (added
	bondi for iterator usage).

2007-01-07 Tim Vandermeersch <tim.vandermeersch@gmail.com>
	
	* src/math/vector3.cpp: Added Point2PlaneAngle(vector3 a, vector3 b,
	vector3 c, vector3 d) (moved from OBForceField)
	
	* src/forcefield.cpp: Added logging features

	* src/forcefields/forcefieldmmff.cpp: All energy functions except
	E_Electrostatic() now use a OBFFXXXCalculationYYY class. Runs much
	faster.

	* src/formats/mopacformat.cpp: Added MOPAC Internal format (mopin)
	
	* data/exttype.txt: Updated for MOPAC Internal format (mopin)

2007-01-06 Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/OBPython/setup.py: Bumped up version number to 1.0.
	Added a postinstall script that sets BABEL_DATADIR. Included
	zlib1.dll.

	* Added windows-vc2005/OBPython/openbabel_postinstall.py: A post
	install script that sets the value of BABEL_DATADIR.

	* windows-vc2005/OBPython/README.txt: Updated instructions on how to
	run setup.py to create the distribution.

2007-01-06 Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-[python,java,perl,ruby].i: Added ability to handle
	the new pluginiter.h, and in particular, its use in
	OBFingerprint.Iter. Also, regenerated all of the dependent files.

	* scripts/openbabel-python.i: Removed python code added on 2006-12-20
	to set BABEL_DATADIR as it actually had no effect.

2007-01-06 Tim Vandermeersch <tim.vandermeersch@gmail.com>

	* src/forcefields: Ghemical now uses SMARTS for atomtype setting.
	
	* src/forcefields: Added initial MMFF94 implementation. (uses new
	OBFFCalculation class for better performance)

	* tools/obgen.cpp: Now uses OBForceField::GenerateCoordinates().

	* data/: Added SMARTS patterns to ghemical.prm for typing. Added
	ghemical.prm to Makefile.*
	Added parameters for MMFF94 (files for validating MMFF94 not included)
	Data needs forcefield subfolder??

	* test/obmmff94validate.cpp: Validate MFF94 using the validation
	suite.
	
2007-01-05 Chris Morley <ob@gaseq.co.uk>

	* include/openbabel.residue.h: Added EXTERN macro for global 
	variables for DLL builds. (Does nothing otherwise).
	
	* Updated OpenBabelDLL project file.
	
2007-01-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/*.cpp, include/openbabel/*.h: Compiler warning fixes from
	Jean Brefort.

	* include/openbabel/residue.h, include/openbabel/generic.h: Remove
	static declarations for OBGenericDataType and residue properties.

2007-01-05 Chris Morley <ob@gaseq.co.uk>

	* include/openbabel/fingerprint.h: Give OBFingerprint a virtual
	destructor. Noel found this was why SWIG was failing.
	
2007-01-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields/forcefieldghemical.cpp: Fix typo from file
	renaming. (Can't use Tripos since that's a copyright.)

	* Makefile.in: Regenerate all Makefiles to fix build problems.

2007-01-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/forcefields: New code from Tim for MM2 and Ghemical force fields.

	* include/Makefile.*: Updates for Chris's changes earlier today.

	* include/inchi/*.c: Moved actual inchi source files back to src/.

	* configure, */Makefile.in: Updates for inchi move and forcefield directory.

2007-01-03 Chris Morley <ob@gaseq.co.uk>

	* Update Windows project files. But Python SWIG interface isn't
	working on Windows.
	
	* Moved libxml and inchi header files to include.

2006-12-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Doxyfile: Change format slightly for better API documentation.

	* src/*, include/openbabel/*: Many API documentation updates.

	* include/openbabel/base.h, src/base.cpp (OBBase::Clear): New method in base
	class to improve OBConversion::Read() syntax.

2006-12-27 Chris Morley <ob@gaseq.co.uk>

	* src/newlinebuf.cpp: Revert to as in rev 1652.

2006-12-22 Chris Morley <ob@gaseq.co.uk>

	* include/openbabel/pluginiter.h, fingerprint.h: Modify so that most
	of code to implement plugin module behaviour is in pluginiter.h,
	making it easy to give this behaviour in future to other classes.
	Compatibility for OBFingerprint maintained except for iteration
	through fingerprint types which is now in the style of obiter,
	hopefully making it compatible with Python (binding not yet done).
	
	* formats/fastsearchformat.cpp: change implementation of F option
	to new iteration style.
	
	* src/fingerprint.cpp, include/openbabel/fingerprint.h: remove 
	the replaced static variable _pDefault and GetNxtFPrt().
	Add FastSearch::ReadIndexFile() alterantive to avoid 
	std::stream parameter which is no good for scripting.
	Add FastSearch::FindMatch() which is simialr to Find() but requires
	all bits of fingerprint to match.
	
	* src/obconversion.cpp: added NO_NEWLINEBUF to avaoid compiling
	newline buf which is currently incompatible with FastsearchFormat
	and OBConversion::SkipObjects().
	All types of line ending seem to work ok with VC++8 on Windows.

2006-12-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obiter.cpp (OBAtomAtomIter): Fix bug reported by Zhiguo Liu,
	with obvious typo.

	* src/formats/pdbformat.cpp: Fix atom typing bug reported by
	Zhiguo Liu. Fix problems with unknown elements (due to atom
	parsing) from PR#1577238.

2006-12-20  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/OBPython/setup.py: Install data files (e.g.
	patterns.txt needed for FP3) into site-packages/openbabel_data

	* scripts/openbabel-python.i: For Windows installs, set BABEL_DATADIR
	to the location into which the binary installer installs the data files

	* src/fingerprints/finger3.cpp: Replace instances of "/" by
	FILE_SEP_CHAR

2006-12-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/python/setup.py, scripts/perl/Makefile.PL: Updates from
	Dominik Mierzejewski to check for src/.libs directories. Prevents
	"chicken and egg" problem with what component is built first.

2006-12-16  Noel O'Boyle <baoilleach@gmail.com>

	* fingerprint.cpp/.h: Changed the FindFingerprint method to accept
	const string& instead of string&. This is necessary for access to this
	function from Python.
	
	* scripts/python/pybel.py, testpybel.py, pybelapi.html: Added a method
	to Molecule for calculating a molecular fingerprint, handled by a new
	Fingerprint class.
	
2006-12-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, Doxyfile: Bump to 2.1.0b4 for upcoming snapshot.

	* src/*.cpp: Update class documentation (for many classes) to
	reflect <openbabel/header.h> syntax. Makes API documentation
	consistent with usage.

	* src/obconversion.cpp, src/obconversion.h: Enable on-the-fly line
	ending translation for input. Windows and Classic Mac files should
	now translate without problems. Right now, XML files are excluded
	through the new READXML flag.

	* src/formats/xml: Update for READXML flag and move of xml.h
	header.

	* include/openbabel/xml.h: Move header for public use.

	* src/formats/fastsearchformat.cpp: Add READBINARY flag.

	* include/openbabel/Makefile.am, Makefile.in: Fix "make dist"
	target to remove generated babelconfig.h header for snapshots and
	releases.

	* scripts/Makefile.am, scripts/Makefile.in: Make sure to clean
	java targets.

	* data/mm2.prm, data/Makefile.am, data/Makefile.in: MM2 parameters.

2006-12-15 Chris Morley <ob@gaseq.co.uk>

	* tools/babel.cpp, src/obconversion.cpp, src/formats/obmoleculeformat.h:
	Move -k option help info into OBConversion::Description, where it can
	be used by other front-ends. (The info in help() is specific to the
	command-line interface.) Register it as having no parameters.
	
2006-12-14  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/formats/gaussformat.cpp: Will export "model/basis,method" if keyword
	translation is enable however is not tested accurate.
	
	* src/formats/ghemicalformat.cpp: Re-wrote and tested the GAMESS keyword
	export.
	
	* src/formats/gamessformat.cpp: Modified keyword import operations.
	Should now import the model,basis,method for keywords it knows about.
	This method is all statically implemented.  We need a new way to do this
	translation such as OBKeyword class.
	
	* tools/babel.cpp: Added help information for the '-k' parameter which
	attempts to translation keywords along with molecule information.

2006-12-13  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-[python,ruby,java,perl].i: Updated to include all
	iterators in obiter.h. Note: there is a problem getting
	OBMolPairIter to work even if std_pair.i is included and a template
	<int, int> created (compile of openbabel_python.cpp fails in this case
	so these additions have not been included). 

2006-12-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/babel.cpp: Moved src/main.cpp here -- more consistent with
	new directory structure.

	* configure, configure.in, src/Makefile.*, tools/Makefile.*: Ditto.

	* scripts/: Regenerated files based on Noel's changes today.

	* test/files/smartsresults.txt: Updated after Craig's bug-fixes.

	* test/cmltest/: Update scripts to handle new location of babel
	binary.

2006-12-13  Craig A. James <cjames@emolecules.com>

	* src/parsmarts.cpp, src/formats/smilesformat.cpp: Fixed bug in
	SMILES parser/writer and SMARTS parser that reversed Cis/Trans
	chirality when the "/" or "\" followed an open-parenthesis "("
	character.  Commented out an unused function from parsmarts.cpp.
	Fixed a bug where a semicolon ";" was printed for an aromatic bond
	instead of a colon ":" for external bonds.
	
2006-12-13  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-[python,ruby,java,perl].i: Tidied up the
	references to classes in obiter.h (e.g. there's no such thing
	as OBResidueBondIter). Added some comments. Added wrappers for Python
	to allow iteration over atoms in a molecule, etc.
	This involved renaming the original OB method, and replacing
	it by a Python class implementing the iterator protocol.

2006-12-12  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-[python,ruby,java,perl].i: Added a line to
	create a vector of unisigned ints, required to use the Fingerprint
	class. Also, added lines to prevent warnings due to shadowed classes
	in obiter.h.

2006-12-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* include/openbabel: New directory for public headers. Ensures
	internal and external code use the same 
	#include <openbabel/header.h> syntax.

	Also, all related UNIX-based build changes.

2006-12-04  Vincent Favre-Nicolin <Vincent.Favre-Nicolin@ujf-grenoble.fr>

	* src/format/ciffformat.cpp: Added new OBFormat-derived class to
	handle Crystallographic Information Files. Initial implementation
	handles reading & writing atomic coordinates, reading unit cell
	and spacegroup name but no interpretation of symmetry is done.

2006-12-04  Benoit Jacob <jacob@math.jussieu.fr>

	* src/math/vector3.cpp: optimize createOrthoVector(), update doc.

2006-12-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/generic.h, src/generic.cpp (OBRingData): Add new methods for
	iterating over rings. (OBAngleData): Modifications from Tim
	Vandermeersch to facilitate iteration over angles in an OBMol.

	* src/mol.h, src/mol.cpp (FindAngles()): New method to parallel
	FindTorsions() for filling an OBAngleData record in an OBMol,
	contributed by Tim.

	* src/obiter.h, src/obiter.cpp: New classes and macros, including
	FOR_RINGS_OF_MOL, FOR_ANGLES_OF_MOL, FOR_TORSIONS_OF_MOL
	FOR_PAIRS_OF_MOL, contributed by Tim.

	* src/forcefield.h, src/forcefield.cpp, src/Makefile.am,
	src/Makefile.in: New classes for mol. mechanics force fields
	contributed by Tim Vandermeersch.

2006-12-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/Makefile.am, test/Makefile.in: Remove outdated vector3 and
	matrix tests.

	* scripts/: Added fingerprint.h header for direct access to
	OBFingerprint classes.

	* src/grid.h, src/grid.cpp (OBGrid): New base class, derived from
	OBBase to allow conversion to handle grids. Also simplifies
	OBFloatGrid and OBProxGrid code.

	* src/*: Documentation updates.

	* src/formats/xml/cdxmlformat.cpp: New file for ChemDraw CDXML format.

	* src/formats/inchiformat.cpp (InChIFormat::ReadMolecule): Fix
	compile error with GCC. OBMol::SetTitle() can't handle implicit
	string operations.

2006-12-07 Chris Morley <ob@gaseq.co.uk>

	* src/formats/inchiformat.cpp: Read capability added using the NIST
	code but stereochemistry not yet implemented.
	
	* src/formats/getinchi.cpp: parser to extract InChIs (possibly
	split) from other text. Examples in the file.
	
2006-12-06 Chris Morley <ob@gaseq.co.uk>

	* src/formats/mdlformat.cpp: SDFormat and MOLFormat now derived from
	base class MDLFormat. SD files now always output with $$$$
	(cures bug 1604992), mol files do not output properties.

2006-12-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/math.cpp: Improve speed by switching from endl (causes
	flush) to "\n". Make sure to output number of tests 1..testCount.

	* test/wrapper.sh: Switch to call new math test program.

2006-12-04  Benoit Jacob <jacob@math.jussieu.fr>

	* test/math.cpp: match the Test::Harness output format. Fix a bug
	in testEigenvalue.

	* src/obutil.h, src/math/vector3.cpp, src/mol.cpp: revert to using
	std::min instead of fmin.

2006-12-03  Benoit Jacob <jacob@math.jussieu.fr>

	* src/math/vector3.h, src/math/matrix3x3.h,
	  src/math/vector3.cpp, src/math/matrix3x3.cpp:
	 --- IMPORTANT: disable floating-point checks and exception-throwing
	     by default. Now that is compiled only if OB_OLD_MATH_CHECKS is
	     defined.
	 --- Fix compilation error on Windows reported by Noel O'Boyle.
	     (another compilation error on Windows remains to be fixed).
	 --- Fix some more methods. Now all the floating-point code
	     should be quite sane.
	 --- Optimize/simplify several more methods.
	 --- add matrix3x3::operator*=( const double &), make operator /=
	     use it.
	 --- remove #define PI, use the standard M_PI instead.
	 --- replace #define SQUARE() by a static inline function.
	 --- remove hyper-dangerous #define x,y,z

	* test/math.cpp: extend tests, merge (an improved version of)
	matrixtest.cpp. Now math.cpp covers all what vector3.cpp and
	matrixtest.cpp did cover, plus a lot more. Geoff: maybe it's time
	to remove the tests vector3 and matrixtest?

        * test/vector3.cpp: fix bugs, if that still matters.

	* src/obutil.h: add note clarifying that to check if x is zero, one
	should use IsNegligible( x, 1.0) instead of IsApprox( x, 0.0 ).

	* src/rotor.cpp, tools/obxyz.cpp: use M_PI instead of PI.

2006-12-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/*: Cleanups and fixes, including for compilation
	problems with Perl. (Derives from some macro expansion for THR.)

2006-12-01  Benoit Jacob <jacob@math.jussieu.fr>

	* src/grid.h, src/grid.cpp: In class OBFloatGrid:
	cleanup and simplifications, minor optimizations, add a FIXME
	comment in operator<< about endianness issues, replace a dangerous
	memset by a for loop. (This memset relied on the fact that the
	floating-point value 0.0 is represented by the bits 0....0, which
	happens to be true, but is not something we want to depend on.
	Plus, compilers are/should be clever enough to make the for loop
	just as fast.)

2006-11-29  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/openbabel-python.i: Added some SWIG magic that allows the
	creation of a C doubles array. Also added a Python convenience
	function that converts a list to a C doubles array. This will allow
	users to access functions such as OBMol::Rotate.

2006-11-29  Benoit Jacob <jacob@math.jussieu.fr>

	* math/vector3.cpp: fix a bug that I had introduced a few days ago
	in createOrthoVector. Thanks go to the new unittests.

	* math/matrix3x3.h, math/matrix3x3.cpp: fix some defines in the
	same way as in vector3.h, add both constant and non-constant
	operator()(int,int) to access the matrix elements easily.
	Fix isUnit(), isOrthogonal(), isDiagonal().

	* test/math.cpp, test/Makefile.am, test/Makefile.in:
	New tests for the math/ subdirectory. Covers the constructors, access
	methods, various operators, operations on rows and columns and
	(partly, will be completed) the distances/angles/orthogonality stuff.

	* src/obutil.h: add new function IsNegligible(), checks whether a is
	much smaller than b with given precision.

2006-11-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/obrotate.cpp: Use a simpler implementation with
	OBMol::SetTorsion(). (Need to rewrite command-line parsing to
	allow setting torsions of all matches, but no time now.)

	* tools/obrotamer.cpp, src/Makefile.am, src/Makefile.in: New tool
	to generate random rotamers using OBRotamerList and
	company. Additional example of using rotamer code.

	* src/rand.h, src/obutil.h, src/Makefile.am, src/Makefile.in:
	Split out OBRandom to mirror rand.cpp.

	* src/rotamer.cpp, src/rotamer.h, src/rotor.h, src/base.cpp:
	Documentation updates. 

	* src/rotor.cpp (OBRotorRules): Make sure Init() is called before
	any action, i.e.., GetRotorIncrements(). Fixes a bug uncovered
	with obrotamer.cpp

2006-11-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/*.cpp: Update to switch from OBNodeBase and OBEdgeBase
	iterators to OBAtom and OBBond respectively. Follows on 2006-11-20
	change contributed by Gerd Menche. Switch many iterators to
	preincrement for minor optimization.

	* tools/*.cpp: Ditto.

	* scripts/*: Regenerate for continuing API changes (e.g., vector3,
	etc.)

2006-11-27  Benoit Jacob <jacob@math.jussieu.fr>

	* src/math/vector3.h, src/math/vector3.cpp: Remove some inline
	keywords from yesterday's patch, further optimize
	vector3::createOrthoVector().

2006-11-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obutil.h, src/obutil.cpp: Optimizations and improvements
	from Benoit Jacob, including documentation clarifications.

	* src/math/vector3.h, src/math/vector3.cpp: Optimizations and
	improvements, including documentation clarifications. Inline some
	small methods, mark 'const' where possible, remove 'friend'
	declarations, etc. contributed by Benoit Jacob.

	* src/math/matrix3x3.h, src/math/matrix3x3.h: Use it.

	* Doxyfile: Update for 2.1.0b3 snapshot and current Doxygen
	version (1.5.1).

	* src/rotamer.h, src/rotamer.cpp, src/rotor.h, src/rotor.cpp:
	First step at documentation updates on rotamer/conformer
	generation routines.

	* src/fingerprint.cpp, src/tokenst.cpp, src/generic.h: Eliminate
	minor Doxygen warnings.

	* src/data.h, src/data.cpp (OBTypeTable::Translate): Add new
	method for returning the translated string as a value --
	simplifies scripting language access.

	* src/mol.h: Documentation updates.

2006-11-25  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005/OBPython/logo.bmp: Replaced logo with one that Geoff
	sent me.

	* scripts/python/pybel.py, testpybel.py, pybelapi.html: Added a
	.close() method to the Outputfile class of Pybel. This uses the
	CloseOutFile() method added by Chris Morley in r1606. This is
	necessary to ensure that all tests pass on Windows.

2006-11-24 Chris Morley <ob@gaseq.co.uk>

	* src/obconversion.cpp(Write),(Read): Check for stream pointers
	being NULL.

	* src/obconversion.h, src/obconversion.cpp: Added CloseOutFile()
	at the suggestion of Noel O'Boyle.
	
2006-11-24  Noel O'Boyle <baoilleach@gmail.com>

	* windows-vc2005: added libxml2.dll (taken from Chris' Windows OB GUI
	distribution)
	* windows-vc2005/OBPython/logo.bmp, setup.py: new files added that
	allow the creation of a Windows OB scripting installer
	* windows-vc2005/OBPython/Readme.txt: Updated with instructions on
	running setup.py

2006-11-23 Chris Morley <ob@gaseq.co.uk>

	* windows-vc2005: Added OBPython project to allow OB to be used
	form Python on Windows.
	
	* src/parsmart.h(SmartsLexReplace), src/ring.h(CompareRingSize):
	Added OBAPI to declarations of these exported global functions.
	
2006-11-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/atom.h, src/base.h, src/bond.h, src/residue.h, src/mol.h,
	src/ring.h, src/mol.cpp, src/base.cpp, src/obiter.h: Remove
	OBNodeBase, OBEdgeBase, and OBGraphBase classes, contributed by
	Gerd Menche.

	* tools/obprop.cpp: Ditto. Example of changing iterators to new format.

	* scripts/*: Updated based on above changes.

	* src/formats/xml/cmlformat.cpp: Change size_t to
	string::size_type to be sure of 64-bit correctness.

2006-11-17 Chris Morley <ob@gaseq.co.uk>

	windows-vc2005: Added projects for OpenBabelDLL, OBComLn, and OBGUII
	
2006-11-18  Michael Banck <mbanck@gmx.net>

	* test/textbuffer.cpp: Do not include "zipstream.h" if HAVE_LIBZ is 
	not defined.  Do not check for a gzip'd input stream if HAVE_LIBZ is
	not defined.

2006-11-18  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/testpybel.py: Needed to relax one of the tests of
	molecular weight, as it was failing for the OB2.1b2 snapshot (there
	must have been some changes to the atomic masses). Also,
	corrected tolerance tests to use the absolute value of the difference
	rather than the actual value.
	
2006-11-18  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/setup.py, pyopenbabel.py, testpyopenbabel.py,
	pyopenbabelapi.html: Changed all references to pyopenbabel to pybel
	(new name). Also, corrected minor typo in docstring in pybel.py.

2006-11-17 Chris Morley <ob@gaseq.co.uk>

	* src/formats/xml/cmlformat.cpp: mods to input and output properties
	with the title attribute on <property>, as requested by Carsten Niehaus. 
	
2006-11-17 Chris Morley <ob@gaseq.co.uk>

	* src/formats/turbomoleformat.cpp: Added input and output options to
	read and write in Angstroms (default is bohr).
	Modified WriteMolecule() so that the use of strlwr doesn't corrupt
	etab. (Was apparent only in GUI where etab persists between molecules.)
	
	* src/obconversion.cpp: changed some results of string finds to
	std::string::size_type. 

2006-11-15  Noel O'Boyle <baoilleach@gmail.com>

	* scripts/python/pyopenbabel.py: Updated to be consistent, fast, pass
	all unit tests, and to have API documentation in docstrings.

	* scripts/python/testpyopenbabel.py: Added complete coverage unit tests
	for pyopenbabel.py.

	* scripts/python/test/*: Removed previous attempts at testing

	* scripts/python/pyopenbabel.txt: Removed previous attempts at
	providing documentation (we now have a wiki, and API documentation)

	* scripts/python/head.sdf: Added small test file, used by
	testpyopenbabel.py.

	* scripts/python/pyopenbabelapi.html: Added API documentation for
	pyopenbabel.py, automatically generated using "pydoc -w"

2006-11-09  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/formats/gamessformat.cpp: Gamess output parsing now only gathers
	run information from the input deck rather than gather all and defaults
	from gamess.  we may need to reconsider this in the future or add an
	option for it.

2006-11-08  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/formats/gamessformat.cpp: Bug fixes after further testing.

	* src/formats/gamessformat.cpp: For now keywords are in uppercase.  This
	needs to be decided on by the dev community and will be discussed with
	the gamess developers for gamess-specific keywords.

	* src/formats/ghemicalformat.cpp: Read GAMESS info from the "gamess"
	namespace

	* src/generic.h: Added GetData(const char *s) to OBSetData
	so that you can retrieve data from a const char rather than
	having to instanciate a string.

	* src/formats/gamessformat.cpp: More improvements on reading generic
	computational meta data.  (added runtyp / dfttype / basis).  Also modified
	the location of gamess extra information.  GAMESS now stores it's
	information in an OBSetData with attribute "gamess" which is part of the
	molecule.

2006-11-07 Chris Morley <ob@gaseq.co.uk>

	* src/formats/xml/cmlformat.cpp(WriteMolecule): Output new
	namespace URL rather than the old one.
	
	* src/obutil.cpp" Remove static from Solvelinear() and 
	SolveQuadratic() so that would compile on VC8.
	
	* windows-vc2005/babelconfig.h: Extra macro definitions.
	
	* windows-vc2005/libinchi.dll,  windows-vc2005/libinchi.lib:
	1.01 versions from NIST

2006-11-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/main.cpp, src/obutil.cpp, src/fingerprints/finger3.cpp,
	src/format/fastsearchformat.cpp: Patch from Martin Vogt to address
	PR#1590609. Crashes due to incorrect handling of string parsing on
	64-bit platforms.

2006-11-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, Makefile.in: Add back support for
	optional compile of wxWidget GUI in src/GUI.

	* scripts/*: Split openbabel.i into individual copies for each
	language.

	* scripts/java/*: Initial attempt at a java interface from SWIG. Untested.

2006-10-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/molreport.cpp: New psuedo-format to generate atom
	and bond information as suggested by Rich Apodaca. Addresses
	PR#1587499.

2006-10-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/openbabel.i, scripts/*: Updated with changes from Martin 
	Vogt to fix break (likely dating back to header split of atom.h,
	bond.h, residue.h). 

2006-10-20 Chris Morley <ob@gaseq.co.uk>

	* src/formats.xml/xml.cpp (ReadChemObject): added extra error
	message and convert the rest to use obErrorLog.
	
	* src/formats/mdlformat.cpp: modify description to work around
	bug in wxWidgets radiobuttons.
	
2006-10-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.h, src/obconversion.cpp: Make sure to free
	streams created using ReadString, ReadFile, or WriteFile()
	methods. Fixes PR#1578916.

2006-10-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/chemdrawcdx.cpp: Fixed corruption of 2D coordinates
	caused by attempted conversion from CDX scale to Angstroms. Fixes
	PR#1576703.

	* configure.in, configure, Makefile.*: Bump to version 2.1.0b2 for
	next snapshot (now using autoconf-2.60).

	* data/*, src/fingerprints/finger3.cpp: Rename pattern file to
	SMARTS_InteLigand.txt.

	* src/obiter.h: Fix GCC warning reported by Carsten.

	* src/formats/*format.cpp: Update chemical MIME types,
	specification URLS and extensions from the chemical MIME project:
	http://sf.net/projects/chemical-mime 

	* scripts/openbabel.i: Add output string for
	OBTypeTable::Translate().

	* scripts/*: Regenerate.

	* test/textbuffer.cpp, test/vector3.cpp: New tests for newline
	translation and vector3 manipulations.

2006-09-30 Chris Morley <ob@gaseq.co.uk>

	* src/formats/fastsearchformat.cpp(ReadChemObject):
	Output message with the properties of the index if no
	SMILES structure provided.
	
	* src/fingerprint.h: Added FastSearch::GetIndexHeader()
	Reformat tabs.
	
2006-09-30 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/chemdrawcdx.cpp (Flags): added NOTWRITABLE
	
	* src/formats/fastsearchformat.cpp: Made timing of indexing
	work properly.
	
	* src/oberror.cpp(ThrowError) : return immediately if _logging is
	false; do not add to list of messages.
	
	* src/generic.cpp(GetLatticeType, GetSpaceGroupNumber) : ensured
	all paths returned value to avoid compiler warning (no real effect)

2006-09-27  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/generic.h: Updated OBSetData to initialize to correct
	OBGenericDataType enumeration.
	* src/formats/ghemicalformat.cpp: GPR format now exports GAMESS
	information correctly if it exists as part of the molecule.

2006-09-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/ruby: Add new ruby interface -- probably needs to be
	moved to allow compilation into main libopenbabel.

	* scripts/*: Updated for above changes.

2006-09-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/base.h, src/atom.h, src/bond.h: Update internal atom
	indexing to use an unsigned int, rather than short. Fixes
	PR#1556819, caused by large molecules (i.e. >2^16 atoms or bonds).

	* src/newlinebuf.h, src/newlinebuf.cpp: Fix bugs uncovered during
	ChemSpotlight testing. Now appears to smoothly handle old Mac OS
	9, DOS, and Unix line endings with no problems.

	* src/generic.h, src/generic.cpp: Incorporate patches from Carsten
	for lattice type and space groups.

	* src/formats/chemdrawcdx.[h, cpp]: New format code for ChemDraw
	CDX binary code, contributed by Fredrik Wallner.

	* src/formats/Makefile.am, src/formats/Makefile.in: Update for
	above.

	* tools/obgen.cpp, tools/Makefile.am: New "obgen" tool for
	creating simple 3D coordinates for SMILES and other 0D
	formats. Contributed by Tim Vandermeersch.

2006-09-06  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/generic.h: Added new OBGenericData subclass: OBSetData

2006-08-30  Donald E. Curtis <dcurtis3@sourceforge.net>

	* src/mol.cpp: Added OBMol::CreateResidue() function.

2006-08-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchi/: Update InChI library with final release of
	1.0.1. Need to update configure script to detect libinchi version
	to only build newer revisions when needed.

2006-08-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp (ParseComplex): Ensure complex
	expressions end in a ']' character. Added patch from Nick England
	for handling chiral output using OBChiralData. Should fix
	PR#1508741.

	* test/files/invalid-smarts.txt: Add additional complex expression
	for tests.

	* src/generic.cpp (OBUnitCell): Update lattice detection to use
	IsApprox instead of IsNear.

	* src/mol.cpp (PerceiveBondOrders): Ditto.

2006-08-04 Chris Morley <ob@gaseq.co.uk>
	
	* src/kinetics.h(OBRateData): Change constructor to fit in with
	the recent change in OBGenericData constructor.
	
2006-08-03 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/smilesformat.cpp (ParseSimple)(ParseComplex)
	Removed extension labelled "is this safe" and added support for
	* and [*] as wildcard elements. arom = false was also needed.
	
	* src/kekulize.cpp(getorden): Treat Te (atNo=52) the same as Se.
	Allows c1cc[te]c1 to be interpreted as better rubbish.

2006-08-02 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/smilesformat.cpp (ParseSimple)(ParseComplex)
	Accept, with a warning, the illegal aromatic elements
	b [si] [ge] [sb] [bi] [te] [sn]
	
2006-07-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/cmlformat.cpp (BeginElement): Make sure to call
	BeginModify() on a <molecule> tag, since EndModify() is already
	called. Fixes PR#1512054 and probably PR#1523956.

2006-07-21 Chris Morley <ob@gaseq.co.uk>

	* src/obconversion.cpp(AddChemObject): remove compiler warning by
	returning Count!=0 rather than Count.
	
	* src.obutil.cpp(IsApprox): replaced fmin, which is not known to
	MS compiler, with std::min.

2006-07-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/internalcoord.h: New header to encapsulate OBInternalCoord.

	* src/Makefile.am, src/Makefile.in, src/mol.h: Updates for above.

	* src/obutil.h: Remove old-style casts, and minor documentation
	updates. 

	* src/data.h, src/generic.cpp, src/generic.h, src/math/vector3.h
	src/obiter.h: Update to use initialization lists more
	consistently.

	* src/formats/inchiformat.cpp: Use obiter classes to remove
	shadowed temporary variables.

	* src/typer.cpp: Fix bug with aromatic typer claiming errors on
	blank lines. 

	* src/data.cpp: Fix bug with reading data files from versioned
	directories. 

	* data/phmodel.txt, data/phmodel.h: Fix bug with seed charge on
	hydroxamic acid reported by Noel.

2006-07-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/math/vector3.h, src/math/vector3.cpp: (IsApprox) Add new
	method to compare vectors based on approximate floating-point
	comparisons, rather than potentially dangerous == and !=
	operators.

	* src/chiral.cpp: Use vector3::IsApprox instead of ==.

	* src/residue.cpp, src/bond.cpp, src/atom.cpp, src/bond.h: Add
	back needed headers for compilation, removed with yesterday's
	change dividing up mol.h

2006-07-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/atom.h, src/bond.h: New headers to encapsulate OBAtom and
	OBBond interfaces, respectively.

	* src/bond.cpp: Switch #include of mol.h to new header.

	* src/atom.cpp: Ditto. (SetHybAndGeom): Fix missing break
	statement, uncovered using AntiC static analysis program.

	* src/Makefile.am, src/Makefile.in: Make sure to include above in
	distributions. 

	* src/residue.h, src/residue.cpp: Move OBResidue class declaration
	from mol.h. 

	* src/mol.h: Remove OBAtom, OBBond, and OBResidue, as above.

	* src/obutil.h, src/obutil.cpp: Add IsApprox() and CanBeSquared()
	contributed by Benoit Jacob.

	* src/math/vector3.h, src/math/vector3.cpp: Add new implementation
	of vector3::normalize and createOrthoVector, contributed by Benoit.

2006-07-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp, src/main.cpp: Remove unneeded semicolons,
	which prevent compilation with GCC at high warning levels.

	* src/mol.h: Remove extra OBMol:: specification -- prevents
	compilation with GCC and confuses Doxygen.

	* src/gaussformat.cpp: Add -xk and -xf write options to output
	supplied keywords to Gaussian input. Allows batch output of files
	with the same options.

	* src/gamessformat.cpp: Ditto. Add contributions from Donald
	Curtis for reading GAMESS input files.	

2006-06-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chains.cpp: In TracePeptideChain and TraceNucleicChain, test
	for atom visit before recursing. Otherwise, leads to an infinite
	loop and crash. Fixes PR#1515198, reported by Noel.

2006-06-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure, configure.in: Fix logic in last change.

	* Doxyfile: Update to grab obmolecformat.h now in src/format/.

	* src/*.cpp, src/*.h, src/formats/*.cpp:
	Cleanup #includes for iostream, fstream -- only use iostream when
	needed (i.e. for cout, cerr, cin, clog declarations).

	* src/all.h, src/formats/all.h: Trim precompiled header templates
	to most common headers.
	
	* src/patty.cpp: Remove unused "COMPILE_PATTY_MAIN" #ifdef.

	* src/chiral.cpp: Remove unused floating-point methods.

	* src/rand.cpp: Remove unused #ifdef DEBUG code.

	* src/parsmart.cpp, src/formats/crkformat.cpp: Update calls to
	printf with calls to obErrorLog.

	* src/obutil.cpp (InternalToCartesian): Check index requests to
	avoid requesting past the vector end.
	(#ifdef): Remove ifdef, leave code for roots.

	* src/formats/ghemicalformat.cpp: Remove dummy atoms, which can
	cause problems. Mark all aromatic bonds as bondtype 'C'.

	* test/files/attype.00.smi: Add unspecified chiral alkane for @?
	SMARTS testing.
	
	* test/files/formalchargeresults.txt, test/files/ringresults.txt,
	test/files/formularesults.txt, test/files/smartsresults.txt:
	Update for changes to attype.00.smi using generate.sh.

	* test/Makefile.am: Cleanup.

2006-06-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure, configure.in, src/all.h, src/formats/all.h,
	Makefile.in: Add experimental support for precompiled headers with
	GCC, using the --enable-precompiled-headers flag to the configure
	script. Haven't performed much timing/optimization -- appears to
	help about 10-12%.

	* src/base.h, src/mol.h, src/obconversion.h, src/generic.h:
	Warning eliminations and documentation improvements from Carsten.

	* src/obiter.cpp: Further improvements to documentation on DFS and
	BFS iterators.

	* src/chains.cpp: Updated call to fprintf(... stderr) to use
	modern OBMessageHandler.

	* scripts/*: Regenerate for latest header changes.

	* Doxyfile, doc/api-style.css: Updated for doxygen-1.4.7 and new
	style changes.

2006-06-28 Chris Morley <ob@gaseq.co.uk>

	* src/obiter.cpp: Some of the examples wouldn't compile - need 
	&*a rather than a in parameter calls. Added comment in all the
	examples. I ran into this personally with FOR_NBORS_OF_ATOM(b, &*a)
	but haven't tested the similarly modified OBResidue example.
	
	* src/formats/mdlformat.cpp(GetTimeDate): Change second parameter
	which was corrupting output of mol file line 2.  
	
2006-06-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obiter.cpp: Add improved documentation on DFS and BFS atom
	iterators. Fix bug with disconnected fragments uncovered with unit
	testing.

	* test/iterators.cpp, test/wrapper.sh, test/Makefile.am,
	test/Makefile.in: New test for atom and bond iterators.

2006-06-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/base.h src/generic.cpp, src/generic.h, src/mol.h,
	src/bond.cpp: Documentation changes, including several from Carsten.

	* src/*.cpp: Remove un-needed header #includes turned up by a
	script adapted from KDE suggested by Carsten.

2006-06-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obiter.h, src/obiter.cpp: Add depth-first and breadth-first
	search iterators for atoms through an OBMol. Fixes feature request
	PR#1273213.

	* src/bitvec.h: Minor cleanup of #include paths.

2006-06-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/generic.h, src/generic.cpp (OBUnitCell): Add lattice type
	definition, requested by Carsten Niehaus and add GetCellVolume()
	method contributed by Carsten.

	* src/newlinebuf.h, src/newlinebuf.cpp: New "filtering streambuf"
	class to filter line-endings, e.g. \r\n or \r -> \n expected by
	much of the code. Fixes PR#1510008 and goes towards feature
	request PR#1499615. Currently unused until testing is complete.

	* src/Makefile.am, src/Makefile.in: Add newlinebuf.

2006-06-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.h, src/atom.cpp (CountRingBonds): New method to return
	the number of explicit ring connections to an atom.

	* src/parsmart.h, src/parsmart.cpp: Add support for Daylight 'x'
	primitive for total # of ring connections using above method.

	* test/files/smartstest.txt, test/files/smartsresults.txt:
	Test 'x' patterns above.

	* scripts/*: Regenerate to add new OBAtom::CountRingBonds()
	method.

	* src/formats/xyzformat.cpp (WriteMolecule): Only output "Energy" in
	title if it's nonzero. General cleanup.

2006-06-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/smilesformat.cpp: Allow use of H atoms for a root
	atom when used in a cis/trans "/" or "\" specification. Make sure
	to output [H] atoms when in a cis/trans specification. Fixes
	PR#1508783. Fix part of PR#1508741 -- chiral atoms should be fine
	as root nodes (which preserves the ordering).

	* src/parsmart.cpp: Add support for @? matching unspecified chiral
	centers. Fixes PR#1364638. Add support for [H] explicit hydrogen
	atoms, fixing PR#1463791.

2006-06-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/files/invalid-smarts.txt: Add invalid ring closure bond
	specifications suggested by Craig in PR#1503849.

	* src/parsmart.cpp: Fix PR#1503849 for invalid SMARTS ring
	closures -- check both beginning and end bond specifications for
	the closure. Uses new function EquivalentBondExpr to test if
	two bond specifications are equivalent.
	Fix part of PR#1506408 for SMARTS matching @ and @@ atom
	specifications.

	* src/formats/smilesformat.cpp: Fix cis/trans problem with
	PR#1506408 -- IsUp/IsDown parsing support in SMILES was
	inconsistent with mol.h and parsmart.cpp. "/" is Up "\" is Down.

	* test/files/smartsresults.txt: Regenerate using above changes.

	* src/kekulize.cpp: Fix PR#1504089 by adding a special case to
	prevent double bonds between aromatic S-S systems, which is
	unneeded to show aromaticity.

	* test/wrapper.sh: Add smilesmatch to list to prevent regression
	on PR#1506408.

	* test/ringtest.cpp, test/smartstest.cpp: Correct minor errors in
	finding filenames and result generation.

	* test/files/nci.smi: Add new test SMILES file.

	* test/smilesmatch.cpp: Use it.

2006-06-15 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/smilesformat.cpp(ParseSmiles): when using 
	extension and bond is doubled, add 
	UnsetImplicitValencePerceived() so that implicit hydrogens are
	recounted.
	
	* src/formats/smilesformat.cpp(GetSmilesElement): ensure explicit
	hydrogens are always written with bracketed atoms (esp when
	charged; [OH3+] was being output incorrectly).
	
	* test/files/FormulaTest.smi: Added. Contains several small
	molecules to test SMILES input, implicit hydrogen detection
	and elemental formula generation. 

2006-06-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/base.h, src/base.cpp: Add "const" qualifiers to
	OBGenericData methods.

	* src/mol.h: Add documentation, including patch contributed by
	Carsten Niehaus.

	* scripts/*/*.cpp: Regenerated using SWIG for above changes.

	* test/invalidsmiles.cpp, test/files/invalid-smiles.txt: New
	test. Check to see that invalid SMILES are properly rejected.

	* test/smilesmatch.cpp: New test. Check to see if SMILES strings
	match themselves using SMARTS.

	* test/Makefile.am, test/Makefile.in, test/wrapper.sh: Add
	invalidsmiles and smilesmatch to test list.

2006-06-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/parsmart.cpp: Completely reject dot-disconnected SMARTS
	e.g. "C.C" which currently are unimplemented and can cause
	crashes, e.g. PR#1505711.

	* src/obutil.cpp (SafeOpen): Make filename arguments "const".

	* test/*.cpp: Update to use new SafeOpen prototypes and remove
	old-style casts to (char*) to remove const.
	
	* test/invalidsmarts.cpp: New test to check that invalid SMARTS
	patterns are properly rejected. Also tries buffer smashing with
	random binary data.

	* test/files/invalid-smarts.txt: Initial set of invalid SMARTS
	which hopefully will tests certain parts of the SMARTS
	parser. Crude start, but more devious patterns to come.

	* test/files/random*: Random binary data for invalid format
	testing and "fuzz" testing.

	* test/formalcharge.cpp: New test to check formal charge
	assignment. Currently does not test, simply generates results for
	debugging.

	* test/files/formalchargeresults.txt: Results from above.
	
	* data/bin2hex.pl: Condense multiple spaces to one. Provides a
	small amount of compression for data headers (about 3K out of
	435K).

	* data/*.h: Rebuild using above.

2006-06-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp (BatchFileName): Make sure to properly
	strip off ".gz" extension if zlib compression is enabled. Fixes
	PR#1503596.

	* src/parsmart.cpp: Support for [D], [v], [X] patterns
	(i.e. default values of 1), fixing part of PR#1474716. Support for
	[as] as an aromatic As atom, per SMILES aromaticity for arsenic.
	Support for [se] for aromatic Se atom, per SMILES aromaticity --
	fixes PR#1503851.

	* test/files/smartstest.txt: Add tests for [D], [v], [X], [c],
	[p], [as], [s], and [se] SMARTS patterns as above.

	* test/files/smartsresults.txt: Regenerate after above fixes.

	* test/wrapper.sh: Make sure to pass along command-line arguments
	to "prove" command. Allows "./wrapper.sh -v" for verbose output.

	* src/formats/mdlformat.cpp: Make default molecular dimension to
	be 2D, but check for 3D coordinates too. Many non-standard files
	out there with no real dimension line (e.g. PR#1409133).

	* src/formats/xyzformat.cpp: Smarter handling of
	"energy" tag in title -- if present, remove it from title. If
	mol.GetEnergy() is near zero, don't print it.

	* scripts/openbabel.i: Update from Noel to use
	vector<OBGenericData*> instead of vector<OBGenericData>.

	* scripts/*.cpp: Regenerate using SWIG 1.3.29.

2006-06-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.cpp: (Init): Fix problem with parsing data --
	introduced with changes on 05-24. Add null to right char*
	buffer. Fixes PR#1502795.

2006-06-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/oberror.h, src/oberror.cpp (GetMessageSummary): Added
	methods to track counts of messages at each level, implementing
	PR#1449517.

	* src/main.cpp: Use it.

	* Makefile.am, Makefile.in: Make sure to eliminate .svn
	directories when running "make dist"

	* test/Makefile.am, test/Makefile.in: Make sure to build "smarts"
	not "smartstest" on platforms without Perl.

	* src/tokenst.cpp: Modified to check buffer and delimiters for
	NULL strings, use default string ctor.

	* src/generic.h (Clone): Change from a pure virtual function to a
	virtual which returns NULL as a default. Allows building script
	wrappers with vector<OBGenericData>.

	* scripts/*: Regenerate to solve compilation problems, addressed
	by generic.h changes above.

2006-06-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/hinformat.cpp (WriteMolecule): Make sure to escape
	molecule titles in double quotes. Fixes PR#1501694.

	* src/formats/xml/cmlformat.cpp (EndElement): Back out yesterday's
	change after discussion with Chris -- would cause problems with
	compound documents with embedded <cml></cml> blocks.

	* test/roundtrip.cpp: Add check for failed OBConversion::Read()
	calls suggested by Chris.

	* src/base.h: Documentation updates for OBGenericData methods to
	address Noel's PR#1484029.

	* scripts/openbabel.i: Added template support for
	vector<OBGeneric> to address iterating through generic data for
	PR#1484029.

	* scripts/*: Regenerate as above.

2006-06-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/rxnformat.cpp (WriteMolecule): Cast size_t to
	unsigned for sprintf statement. Eliminates warning with GCC.

	* src/formats/mpdformat.cpp: Eliminate unsigned/signed warning.

	* src/formats/*format.cpp (more files): Remove calls to sprintf,
	sscanf, strcpy.

	* src/formats/xml/cmlformat.cpp (EndElement): Make sure </cml> tag
	returns false (end of processing).

	* src/residue.cpp: Make sure to call base class in copy
	ctor. Eliminates GCC warning.

	* test/cmltest/test.sh: Skip test if cml cannot be loaded.

	* test/roundtrip.cpp: Fix faulty error problems with
	multi-molecule CML files. Before trying a read at the end of the
	file, make sure to clear molecular information.

2006-06-04 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/xml/xml.cpp(ReadXML): Made so that returns false at
	the end of the file. Solves problem with roundtrip.
	
	* src/formats/mdlformat.cpp(ReadMolecule): Added Trim to new code
	to read multiline properties, because was sometimes confused by
	trailing CRs in Windows.
	
2006-06-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, src/config.h.in: Update to include
	snprintf prototype in all files -- increased use with changing
	sprintf calls to snprintf to minimize buffer overflows.

	* src/math/*: Remove calls to exit(!) on faulty input -- return
	errors and default values.

	* src/formats/*format.cpp (more files): Remove calls to sprintf,
	sscanf, strcpy.

	* test/*.sh: Protect against existing environment variables when
	re-defining. For test calls, we need to ensure only our binaries
	load.

2006-06-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.cpp (OBElementTable::ParseLine): Change sscanf call to
	use fixed length (256 chars) for name string, rather than
	preprocessor #define BUFF_SIZE.

	* src/formats/xml/xml.cpp, src/formats/xml/xml.h, 
	src/formats/*format.cpp: Remove calls to sprintf, sscanf, strcpy.

	* scripts/*: Regenerate to add Craig's UnsetHash() and
	UnsetWedge() calls.

2006-05-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/xml/xml.cpp (ReadXML): Fix PR#1486678 for
	multi-molecule files. The libxml2 library is very unhappy reading
	a file past EOF, so make sure to check the state of the istream
	before reading.

	* test/cmltest/*: Renamed roundtrip.sh script, which
	was a confusing name, to cycleformats.sh.

	* src/formats/pdbformat.cpp: Run PerceiveBondOrders regardless of
	size (most PDB multiple-bonds should be picked up by residue
	information). Fixes PR#1493626.

2006-05-30 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/smilesformat.cpp (ParseSimple): Tidied up code
	to handle extension lc as conjugated double bonds and radical.
	Defer potential double bonds to end of ParseSmiles() when molecule
	complete to ensure not applied to aromatic atoms. PR#1493148
	still ok and extension works again.
	
2006-05-26  Craig James <cjames@emolecules.com>

	* src/mol.h Added UnsetHash() and UnsetWedge() macros.
	
2006-05-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp (AddChemObject): Output a warning when a
        format is WRITEONEONLY and more molecules are coming. Fixes
        PR#1473192.

	* src/formats/mdlformat.cpp (ReadMolecule): Make sure to grab all
        lines of potentially multi-line properties. Fixes PR#1489209.
	
	* src/formats/smilesformat.cpp (ParseSimple): Change behavior when
	encountering a bond between two potential radical or aromatic
	atoms. Previously marked bond as double, now mark as 5 -
	potentially aromatic bond. Appears to fix PR#1493148.

	* src/kekulize.cpp (NewPerceiveKekuleBonds): Make sure that
	bestorden is reset when traversing cycle. Previous code would only
	check one atom for adding extra electrons. Appears to fix
	part of PR#1445453.
	(expandcycle): Ensure a bond is in a ring before expanding. Fixes
	part of PR#1445453 for 1-phenyl-1H-pyrrole.

	* test/aromatest.cpp: Make sure to test that all ring bonds are
	aromatic to confirm that above bugs do not come back.

	* test/files/aromatics.smi: Add additional test cases for above
	bugs.

	* test/ringtest.cpp, test/smartstest.cpp: Update so that
	generating results is aware of test directory.

	* test/generate.sh: Shortcut to properly generate test results
	under "make check" conditions.

	* test/files/smartsresults.txt: Update after all of todays changes.

2006-05-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/main.cpp, tools/*.cpp, test/*.cpp: Added USING_DLL
	declarations for WIN32 compiles. Thanks to Noel and Donald Curtis
	for pointing out Cygwin problems.

	* src/Makefile.am, src/Makefile.in: Add missing -no-undefined for
	Cygwin compilation.

	* src/formats/Makefile.am, src/formats/Makefile.in: Add missing
	obmolecformat.cpp for Cygwin compilation.

2006-05-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/dlhandler_unix.cpp (findFiles): Fix PR#1493706 problem with
	misplaced NULL terminator.

	* README: Updated to mention 2.1 development.

	* Doxyfile: Make sure to exclude src/GUI/

        * src/patty.cpp, src/typer.cpp, src/rotor.cpp, src/chains.cpp,
        src/parsmart.cpp, src/data.cpp, src/atom.cpp: Updates to fix calls
        to strcpy, replacing some static char* with std::string.

2006-05-23  Craig James <cjames@emolecules.com>

	* src/formats/smilesformat.cpp: Fixed a potential buffer
	overflow when parsing SMILES.

2006-05-21 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/xml/xml.cpp (ReadXML): Output the error 
	message from libxml2 when parser fails. Was previously seen
	in unix builds (for some reason), but not in Windows.
	
2006-05-19 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/xml/xml.cpp, xml.h (ReadStream): Simplify so that
	input chunks up to '>' are taken, rather than trying to get up
	to endtag. Remove gettomatch(). I hope this solves bug #1486678
	and allows roundtrip test to run properly (but not tried). 
	 
2006-05-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchi/ : Update with InChI 1.01 pre-release.

	* src/formats/inchi_api.h: Ditto.

2006-05-16 Chris Morley <ob@gaseq.co.uk>

	* src/mol.cpp: Remove BeginModify and EndModify from AddAtom(),
	 NewAtom() and AddBond(). Doesn't seem sensible to call 
	 EndModify() (which calls Kekulize()) before all the molecule
	 is there. The change should speed up conversion of large molecules.
	 This only change for this revison for easy reversion if
	 this is too drastic a change.
	 
2006-05-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/patty.cpp, src/kekulize.cpp, src/fingerprint.cpp,
	src/rotor.cpp, src/chains.cpp, src/parsmart.cpp, src/chiral.cpp,
	src/bitvec.cpp, src/main.cpp, src/grid.cpp, src/mol.cpp,
	src/bondtyper.cpp: Update to remove #ifdef for SSTREAM
	(stringstream is ISO C++ and widely accepted). Remove other
	spurious #ifdef's where possible.

2006-05-11  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/cml.sh, test/cmltest/roundtrip.sh, test/cmltest/test.sh:
	Provide more fine-grained test errors and messages.

	* test/roundtrip.cpp: Finding extra molecules in a file should
	exit with an error.

	* src/mol.cpp (GetMolWt, GetExactMass): Simplify and improve
	performance by handling explicit hydrogens like any other explicit
	atom. Functions identically to previous version on regression
	test. Improves performance on isolated protons or bridging hydrogens.

2006-05-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/formula.cpp, test/files/formularesults.txt:
	New test for OBMol::GetFormula(), OBMol::GetMolWt(), and
	OBMol::GetExactMass().

	* src/mol.cpp (GetMolWt, GetExactMass): Fix PR#1485580. Missing
	parentheses in calculating # of implicit + explicit
	hydrogens. Thanks to Noel for suggestion.

	* src/dlhandler_unix.cpp (findFiles): If environment variable
	BABEL_LIBDIR is set, ignore compiled-in default. (User setting
	should always take precedence)

2006-05-09  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/files/: New subdirectory to contain test data files.

	* test/Makefile.am: Update TESTDATADIR accordingly.

	* test/*: Ditto.

2006-05-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, src/config.h.in: Update to include
	#define's for OBERROR, OBFPTR, and OBCOMMON as below.

	* scripts/*: Regenerate using SWIG.

	* test/wrapper.sh: Update to include export for BABEL_DATADIR.

	* test/*: Add many new unit test frameworks (atom, mol, bond,
	conversion, format, etc.)

2006-05-08 Chris Morley <ob@gaseq.co.uk>

	* src/formats/xml/cmlformat.cpp(WriteMolecule): since the id
	must start with letter, add "id" if it doesn't and write a <name>
	element.
	
	* src/generic.h: add virtual GetValue function for OBGenericData
	and also definitions in OBComment and OBPairData. Hopefully will
	solve bug 1483112.
	
	* src/oberror.h: Add default define for OBERROR as nothing
	 
2006-05-07 Chris Morley <ob@gaseq.co.uk>

	* oberror.h: Change classes from OBAPI to new OBERROR
	so that can be compiled separately.
	
	* src/mol.h, src/bitvec.cpp, oberror.cpp, obconversion.cpp:
	change to OBERROR extern OBMessageHandler obErrorLog;
	
	* src/obconversion.h: add #include "oberror.h";
	
	* src/obconversion.cpp: now that oberror can be accessed everywhere
	change all cerr messages to use obErrorLog.
	
	* src/fingerprint.h: replace OBAPI by OBFPTR to allow fingerprint
	code to be separately compiled.
	
	* src/formats/xml.h: add OBCOMMON so that XML classes can be
	separately compiled. Add implementation of SkipObjects for
	XMLBaseFormat and XMLConversion::SkipXML.
	
	* src/formats/obmolecformat.cpp: Add ReadNameIndex to speed access
	in files with many molecules. I wasn't going to commit this until
	it was tested a bit more, but I must have misunderstood what
	Tortoise SVN was doing.
	
	* src/GUI/OBGUI.cpp: don't crash if there are no formats.  

2006-05-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

        * src/formats/smilesformat.cpp (SmiToMol): Since SMILES sets
        formal charges, turn off automatic updates. Some general cleanups
	(removing commented-out code.)

2006-05-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chains.h, src/chains.cpp: Initial work on	documenting,
	indentation, and general cleanup of chains.cpp.
	(ConstrainBackbone): Check for valence of backbone atoms 
	should actually be for HvyValence() since all hydrogens are ignored.
	Fixes PR#1442779.

2006-04-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Doxyfile: Add map of included files in headers to
	documentation. Need to work on removing un-necessary #includes in
	headers.

	* src/math/*: Minimize #include headers.

	* src/generic.h: Include obutil.h for triple class -- was included
	indirectly by way of vector3.h.

	* test/smartstest.cpp: Changed the way tests are counted -- per
	molecule instead of per pattern AND per molecule (cuts drastically
	down on the test overhead). Remove endl and sync with stio to
	improve buffering.

	* test/smartstest.txt, test/smartsresults.txt: Add additional
	SMARTS pattern tests and results.

2006-04-24 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/xml/cmlformat.cpp: Accept coordinate2 and
	coordinate3 elements for CML1.
	Laxer acceptance of atomRef?? which is sometimes misused - but added
	warning. Converted cerr calls to obError.
	Added option to read 2D rather than 3D coordinates.
	Output formula only when no bonds AND no coordinates.
	Ensured atoms from formula marked as having no H.
	GetMolID() gets name or number for error messages.
	
	* src/GUI/OBGUI.cpp: uncommented standard stream redirection.
	Do we need some conditional compilation?
	
	* src/formats.smilesformat.cpp, src/mol.cpp: Recent change in
	ImplictHydrogenCount broke GetMolWt,GetExactMass,GetSpacedformula
	and explicit H form of output in SMILES. But it is better that
	ImplictHydrogenCount means what it says. Added in appropriate form
	of GetExplicitHydrogens to these routines.
	
	* src/formats/xml/xml/cpp(gettomatch): rewrite to allow stream to
	be discarded up to next match.
	
2006-04-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp: Fix broken gzip-decoding of input
	(PR#1473243) introduced by 2006-04-11 change. Fix bug when writing
	multi-molecule files using WriteFile() (PR#1474265).

	* src/atom.cpp, src/residue.cpp: Remove inadvertant debug messages.

2006-04-20 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats.xml/xml.h, src/formats/obmolecformat.h, 
	windows-2005/babelconfig.h: added OBCOMMON macro to aid DLL build.
	(Usually empty).
	
	* src/obconversion.cpp(AddChemObject): prevent formats with 
	WRITEONEONLY from writing more than once.

2006-04-19 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/molecformat.h: added #ifdef _WIN32 around 
	experimental code which cause problems in unix build.

2006-04-16 Chris Morley <ob@gaseq.co.uk>

	* src/transform.cpp, src/main.cpp, src/GUI/OBGUI.cpp: To avoid
	messing up help output revert to original wording of OBMol::
	ClassDescription, and pick out the last word for the conversion
	info message.
	
	* src/GUI/OBGUI.cpp, src/GUI/OBGUI.h: initialize HelpFile in
	current folder at program start.
	
	* src/formats/smilesformat.cpp(CreateSmiString): ensure unbonded [H]
	e.g. from formula, is output.
	
	* src/formats/thermoformat.cpp, src/formats/xml/cmlformat.cpp: 
	ensure formula are read in correctly by adding ForceNoH() and 
	calling Assign SpinMultiplicity	in the right place.

2006-04-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/Makefile.am, test/Makefile.in: Only run CML tests if XML
	formats were compiled. (i.e., if libxml not available, can't test
	CML)
	
	* test/ringtest.sh, test/smartstest.sh, test/cmltest/test.sh:
	Minor shell script portability fixes.

2006-04-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/perl/META.yml, scripts/python/setup.py: Packaging
	changes for the scripting wrappers.
	
	* src/formats/mdlformat.cpp: Remove inadvertent debug statement
	left from yesterday.

2006-04-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mdlformat.cpp (ReadMolecule): Add support for atom
	stereo in v2000 format and OBChiralData. Partly addresses
	PR#1463796.

	* src/formats/smilesformat.cpp (GetChiralStereo): If we have a 2D
	molecule and stereochemistry is unspecified, don't assume we have
	a particular stereochemistry. Partly address PR#1463796.
	Also fix a problem with writing chiral "H" designations with explicit
	hydrogens, introduced with yesterday's fix to
	OBAtom::ImplicitHydrogenCount.

2006-04-11  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.h, src/obconversion.cpp: Added a test to be
	sure that we do not check gzip encoding multiple times (much less
	try to gzip repeatedly). Fix PR#1465586 where ReadString() or
	ReadFile() followed by Read() will fail because input streams are
	closed prematurely.

	* src/atom.cpp (ImplicitHydrogenCount): Fix a bug where formulas
	were calculated incorrectly -- explicit hydrogens should count
	against an implicit hydrogen count too. Fixes part of PR#1463787.
	(i.e., SMARTS 'h' token was matching total number of hydrogens)

	* src/mol.cpp (AddBond): Fix a bug exposed by PDB parsing, where
	code attempts to add a bond from one atom to itself.

	* src/formats/mol2format.cpp: Fix residue parsing to remove
	calls to create a residue when in fact, the molecule has no residues.

	* src/formats/pdbformat.cpp: Fix CONECT record parsing to read
	malformed records (e.g., created by very old Open Babel versions)
	via splitting by spaces. Fixes PR#1468802.

	* src/parsmart.cpp: Reformat indentation for clearer code
	reading. Fix bug with syntax of 'H' token -- should refer to the
	*total* number of hydrogens. PR#1463787.

	* test/smartsresults.txt: Regenerate after above bug-fixes.

	* src/formats/crkformat.cpp (ReadCRK): Change to correctly read
	multi-molecule files, where the </Structure2D> tag would appear,
	but parsing would continue, uncovered using roundtrip testing.

2006-04-08  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/openbabel.i, scripts/*: Update to add Cygwin DLL headers.

	* THANKS: Update with contributors to 2.0.1 release.

2006-04-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/dlhandler_unix.cpp: Upgrade to use the opendir/readdir
	replacement for the non-portable scandir contributed by Mikael
	Johansson.

	* src/formats/Makefile.am, src/formats/Makefile.in: Fix error in
	logic with building inchi, introduced yesterday. D'oh!

	* src/formats/inchi/Makefile.am, src/formats/inchi/Makefile.in:
	Add --no-undefined flag to produce proper compilation on Windows
	(i.e., Cygwin).

2006-04-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* NEWS: Update for 2.0.1 release notes.

	* configure, configure.in, acinclude.m4: Add new configure options
	for silent libtool use & compiler flags.

	* scripts/Makefile.am, scripts/Makefile.in: Provide better
	"distclean" target to remove python build targets and backup
	files.

	* src/mol.h: Update IsRotor() and NumRotors() documentation to
	explain the current minimal definition of a rotatable
	bond. Addresses PR#1463505.

	* src/oberror.cpp: By default, retain a maximum of the 100 most
	recent entries in the error log in memory. All errors will be
	filtered and sent to output, but only retain some (not all). Fixes
	PR#1439893.

	* src/formats/inchi/Makefile.am, src/formats/inchi/Makefile.in:
	Only install the inchi_api.h header.

	* src/formats/xml/Makefile.am, src/formats/xml/Makefile.in: Turn
	off optimization -- appears to fix crashes on FC4 and FC5,
	PR#1447233.

	* src/formats/xml/xml.h: Add std:: namespace declarations, solving
	compilation problems on some GCC compiler versions.

	* src/formats/Makefile.am, */Makefile.in: Changes to only build
	libinchi when the library is not available on the system. Fixes
	PR#146451.

2006-03-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/aromatest.cpp: New test to check aromaticity. When supplied
	with a test file, it checks to be sure all non-hydrogen atoms are
	aromatic.

	* scripts/*: Update scripting wrappers with SWIG 1.3.29.

	* src/Makefile.am, src/Makefile.in : Add @LIBDL@ as
	suggested by Michael Shigorin (PR#1458706). Make sure
	babelconfig.h isn't included in dist tarball, as suggested by
	Michael Banck.

2006-03-27  Michael Banck  <mbanck@gmx.net>

	* src/fingerprint.h: Fix compilation error with gcc-4.1.
	  Patch by <vlaaad@users.sourceforge.net>.
	* src/formats/copyformat.cpp: Likewise.
	* src/formats/crkformat.cpp: Likewise.
	* src/formats/xml/cmlreactlformat.cpp: Likewise.
	* src/formats/xml/xml.h: Likewise.
	* src/formats/xml/xmlformat.cpp: Likewise.

	* src/formats/fastaformat.cpp: Include babelconfig.h.

	* src/rand.cpp: Include <time.h> and <sys/time.h>.

2006-03-18 Chris Morley <ob@gaseq.co.uk>
	
	* src/obconversion.cpp, obconversion.h,
	src/formats/molecformat.cpp, src/formats/rxnformat.cpp:
	The ability to stop conversion on a write error has somehow
	been removed. Restored this by changing the return of 
	AddChemObject()	to a bool indicating any failure of 
	WriteChemObject(). I don't expect that many people are
	programming at this depth for this change to matter.
	
	* src/mol.cpp(AddHydrogens): Do not add hydrogens
	when to a molecule which has no bonds and more than one atom. We
	do need a review to clarify these functions, but they are generally
	working ok. 
	
	* src/data.cpp, data.h: Added a global function OpenDatafile which
	looks in the normal places for data files. It also starts in the
	current directory. If this is acceptable, it could be used to collect
	the code for this functionality in one place. 
	
	* src/formats/xml/xml.h: added std:: to a string
	
	* src/GUI/OBGUI.cpp:Added warning when output extensions mixed.
	
	* src/GUI/optswx.cpp: Be less restrictive with punctuation in options.
	
	* src/formats/inchiformat.cpp: Now calculates InChI for C and CH.
	
	* src/formats/thermoformat.cpp: minor parsing corrections

2006-03-16 Chris Morley <ob@gaseq.co.uk>

	* data/atomtyp.txt: IMPVAL for halogen ions
	
	* /src/formats/smilesformat.cpp(ParseComplex): Move hcount test
	back again so that [C] is read as C not CH4
	(GetSmilesElement): Restrict addition of implicit H by
	resurrecting normalValence variable. Output [C], not [CH0].

2006-03-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/xml/xml.h: Fix std:: namespace decl for type_info.

	* src/Makefile.am: Temporarily disable compilation of src/GUI
	until compile errors are all fixed.

	* scripts/* : More changes to allow building, linking, and running
	(again!) with current CVS tree.

	* src/generic.h (OBTorsion): Add default code for SetData(OBBond*)
	-- not sure what this *should* do. Allows compilation of script
	wrappers.

	* src/obutil.h, src/math/matrix3x3.h, src/math/vector3.h: Add
	#ifndef SWIG portions to prevent SWIG from choking on some
	non-class function declarations.

	* */Makefile.in: Regenerate (get rid of bogus --gnu flags).

2006-03-14 Chris Morley <ob@gaseq.co.uk>

	* src/GUI/OBGUI.cpp(Expand): Mods to avoid errors when filenames
	are empty, have trailing paces, semicolons, etc.
	
	* src/formats/obmolecformat.cpp, obmolecformat.h: Deferred 
	molecule routines (-C -j options) rewritten to ensure no memory leaks
	under normal or error conditions. (Previously rather carelessly
	written, I'm afraid.)
	
	* src/formats/smilesformat.cpp: Corrected [CH0] extension on
	input and made work on output.
	 
	* src/formats/thermoformat.cpp: Added SetDimension(0). Initialise
	MidT. Added tdd extension.
	
	* src/mol.h: Comments on OBMol copy ctor and assignment saying
	that OBGenericData is copied and on operator+= that it is not.

	* src/base.h, kinetics.h: Mods consequent on OBGenericData changes 

2006-03-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

        * configure.in, configure, src/Makefile.am, src/config.h.in: Add
	initial support for DLL builds on Cygwin. Seems to compile a
        libopenbabel.dll, but still linking problems for
        babel.exe.
	Also add support for detecting wx widget library to build src/GUI.

	* */Makefile.in: Regenerated using automake.

	* src/GUI/OBGUI.cpp: First pass at removing compilation warnings
	with GCC -- make sure all functions are passed correctly.

	* src/GUI/stdwx.h: Use a new babel.xpm if needed (e.g., Mac, UNIX).
	
	* src/formats/xml/cmlreactlformat.cpp: Add back missing
	reaction.h.

        * src/fingerprint.h, src/formats/xml/xml.h: Change static
	declarations to avoid spurious memory leak warnings with
	valgrind.

	* src/base.h: Add #ifdef to remove non-implemented iterators for
	SWIG.
	
        * scripts/*: Build updates for Perl and Python wrappers.
	
	* test/roundtrip.cpp: Update to remove spurious warnings with CML
	(and other) format translation.

	* test/smartsresults.txt: Update to reflect recent SMARTS updates.

2006-03-13 Chris Morley <ob@gaseq.co.uk>

	* src/mol.cpp(GetSpacedFormula): I like the approach added by
	Craig to be independent of implicit/explicit H without
	changing the OBMol. But needs some mods.
	Remove call to	ExplicitHydrogenCount(); they are already
	included in ImplicitHydrogenCount(). Add test to correctly
	handle molecules with no bonds,	hydrogen isotopes. Works with
	SMILES C C[2H] C[H] (=carbene) [H][H] [2H][H] 
	Added support for D and T.
	
	* src/mol.cpp(GetMolWt and GetExactMass): Mods similar to above
	so that implicit or explicit H is handled.
	
	* src/atom.cpp, atom.h(ExplicitHydrogenCount): Add extra parameter
	to not count D and T. (Backward compatible) 
	
	* src/mol.cpp(AssignSpinMultiplicity): Exclude D and T so that
	SMILES CC[2H] is interpreted as C2H5D. Previously was CH3CH:
	
	* src.formats/smilesformat.cpp(OBMol2Smi::GetSmilesElement):
	Reduce implicit H count by number of explicit H isotopes, which
	already were output explicitly. CC[2H]=> add Hs => [CH3][CH2][2H]
	(ParseComplex): [CH0] means explicitly there are no hydrogens.
	
	* src/mol.h, atom.cpp: Added flag on OBAtom to indicate there 
	are no hydrogens. Added get and set methods.
	
	
	* src/atom.cpp(ImplicitHydrogenCount), src/mol.cpp(AddHydrogens):
	Add support for SpinMultiplicity>=4. As in molecule CH - the source
	of ions	in a flame ionization detector.
	
	* src/mol.cpp(AssignSpinMultiplicity): Use positively set no Hs to
	allow SMILES [CH0] = C atom.
	 
	* src/rotamer.cpp(PackCoodinates,UnpackCoordinates): Make cf double
	rather than float to avoid compiler warnings.
	
	* src/transform.cpp: Added --addformula option.
	
	* src/mol.cpp:(operator=): OBGenericData objects now copied with 
	OBMol.
	
	* src/generic.cpp, generic.h: Clone function given parameter
	referring to new molecule, so that OBAtom pointers can be rebased.
	Added documentation that using atom and bond pointer in
	OBGenericData objects is a bad idea.
	
	* src/rotamer.cpp, rotamer.h): Moved code for copying 
	OBRotatmeterData into Clone(). Significant rewriting required;
	not tested yet.
	
	* src/formats/obmolecformat.cpp(MakeCombinedMolecule): simplify code
	because of GetFormula changes (don't need to make copy to compare
	formulae) and OBMol copying changes.
	
	* src/GUI: Small bug when selected format begins with t now corrected.
		
2006-03-10 Chris Morley <ob@gaseq.co.uk>
	
	* src/formats/smilesformat.cpp: make a default format so that
	the default object is OBMol even when MOLformat (the other default
	format) is not present.
	
	* src/formats/smilesformat.cpp(ParseRingBond): prevented crash
	and give error message when parse failure (e.g. a line starting
	with a number) - common and of long standing.
	
	* src/formats/obmolecformat.cpp(ReadChemObjImpl): another delete
	for OBMol object when ReadMolecule returns false;    
	
2006-03-09 Chris Morley <ob@gaseq.co.uk>

	* src/reaction.h, src/format.rxnformat.cpp: revert to previous
	versions, rxnformat.cpp from OB2.0.0. The boost dependent versions
	were committed in error -  work in progress on new some new
	reaction formats.
	
	* several formats, mainly output formats, converted to derive from
	OBMoleculeFormat and their WriteChemObject functions deleted. I
	don't think these were responsible for memory leaks, but it the
	less code to maintain the better.
	
	* src/formats/obmolecformat.cpp(WriteChemObjectImpl): OBMol
	object not being deleted in the event of an error. Moved delete
	statement so that it is.
	
	* src/transform.cpp(DoTransformations): ensure OBMol deleted
	in the event of an error.
	
	* src/GUI/OBGUI.cpp: #include selformats.h: make lc 
	
2006-03-09 Chris Morley <ob@gaseq.co.uk>

	* src/bitvec.cpp, bond.cpp, bondtyper.cpp, chains.cpp,chiral.cpp,
	generic.cpp,grid.cpp,kekulize.cpp,matrix.cpp,
	mol.cpp,molchg.cpp,obiter.cpp,patty.cpp,phmodel.cpp,
	rand.cpp,ring.cpp,rotamer.cpp,	rotor.cpp,tokenst.cpp,transform.cpp
	/src/formats/ most cpp files
	/src/formats/xml/pubchem.cpp
	/src/fingerprints/finger2.cpp, finger3.cpp 
	/src/math/matrix.cpp, vector.cpp
	Add #include "babelconfig.h" at top of files. This eases my use
	of pre-compiled headers and I thought (wrongly) that it would
	assist memory in leak detection. Many cpp files already have this
	header directly rather than relying on it through mol.h.
	Not a very useful exercise, but I hope harmless.
	
	* src/obconversion.cpp(FullConvert): Added extra test to remove an
	extraneous error message under some circumatances. The bug was
	introduced in when facility to use the same file for input and
	output was added.
	Reversed the memory leak related change of 2006-03-02 (see devel
	forum discussion).
	
	* src/formats/xml/xml.cpp(ReadXML):Add continue shortcut for nodes
	that are not elements. (SetUpWriter): remove extra writer creation.
	
	* src/dhandler_win32.cpp(findFiles): Rewritten, now handles * and *.*
	Was getting confused by . and .. directories.
	
	* src/mol.h Remove unnecessary #include "reaction.h"
	
	Added /src/GUI for OpenbabelGUI source files. Put here because
	it is now potentially cross-platform.
	
2006-03-02 Craig James <cjames@emolecules.com>

	* src/bitvec.cpp, src/bitvec.h: Added new operator<(bv1, bv2) that
	returns true if the bits in bv1 are a subset of the bits in bv2.

	* src/dlhandler_unix.cpp (findFiles): Fixed a memory leak.  The
	code to free the memory was there but had been commented out.

	* src/mol.h, src/mol.cpp: Added functions UnsetUp(), UnsetDown().
	Modified SetUp() and SetDown() to also invoke UnsetUp() and
	UnsetDown(), respectively, so that both up and down flags aren't
	set simultaneously.  Changed UnsetAromatic() to use UnsetFlag().

	* src/mol.cpp (GetSpacedFormula, GetFormula): Molecular Formula
	was counting only explicit hydrogens, e.g. might report C20H2.
	Changed to report the total (implicit plus explicit) hydrogen
	count so that Molecular Formula is correct.

	* src/obconversion.cpp (OptionParamArray): Fixed memory leak.

	* src/formats/mdlformat.cpp (ReadMolecule): Fixed reference to
	uninitialized memory that caused random behavior.  Reformatted
	file to correct indenting problems.

	* src/math/vector3.cpp (Comments only): Added comments to
	CalcTorsionAngle() explaining how it works.
	
2006-03-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

 	* src/obconversion.cpp (ReadFile): Fix bug PR#1435777 for crash
	when calling when only the input format was set -- code mistakenly
	referenced pOutFormat.

	* src/parsmart.h: Add #ifndef SWIG to prevent wrapping internal
	struct's used to form the Pattern type.

	* src/formats/mdlformat.cpp: Use old-style Trim() syntax to
	prevent backwards-incompatibility. Remove final " 0" for REGNO from
	v3000 COUNTS line. Fixes PR#1439475, as susggested by Ernst-Georg.

	* test/smartsresults.txt: Update to match previous atom type changes.

2006-02-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

        * src/data.cpp (AssignBonds): Make sure that OBResidueData calls
	Init() before starting and some minor cleanups to atom type
	assignment, exposed by comparing PDB->Mol2 files from Babel and
	Sybyl. Thanks to Kevin Parkes for the example file.

	* src/formats/mol2format.cpp (WriteMolecule): Add back atom names
	from residues, add a residue number to each residue name (e.g.,
	THR1 vs. THR). Should better match mol2 files from Sybyl.

	* data/atomtyp.txt; Add an implicit valence rule for phosphates to
	fix PR#1403974.

2006-02-22 Chris Morley <ob@gaseq.co.uk>

	* src/formats/mdlformat.cpp: Mod to read files with no M END.
	Bug found by Hassan Mamdani.

2006-02-20 Chris Morley <ob@gaseq.co.uk>

	* src/obconversion.cpp(Description): Make dependent on HAVE_LIBZ.
	
	* src/parsmart.cpp: Rename STRICT to OB_PARSMART_STRICT because of
	conflict in VC8. Not used anyway.
	
	* src.typer.cpp(OBAromaticTyper::ParseLine): Ignore blank lines
	to avoid error messages.
	
	* src/formats/mdlformat.cpp: Add Trim() after a getline() to remove
	erroneous CRs when Windows binary mode used. Add m option to 
	Description.
	
	* src/xml/cmlformat.cpp(WriteFormula): Pass copy of OBMol so that
	can add implicit hydrogen when molecule is an atom.
	As suggested by Tappani Kinnunen:
	Added test for NULL pointer in reading Nasa_OldThermo;
	deleted erroneous xmlTextWriterStartElementNS(); but
	have not yet added empty dictRef attribute to property
	(needs more consideration).
	
	* src/format/xml/xml.cpp(ReadXML):Skip over non-elements.

2006-02-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/parsmart.cpp (ParseComplexAtomPrimitive): Fix PR#1364604 for
	no default value for "X" primative (should default to one
	connection if no number is specified).

	* ChangeLog.1.x: New file, contains changes for 1.x releases.

	* Doxyfile: Update to allow 2.1 documentation generation.

	* configure, configure.in, Makefile.*: Update to test for Perl and
	"prove" used for new test harness.

	* test/*: New test "harness" using Perl, if available to provide
	summary output. Yields much better summary information and sets
	BABEL_LIBDIR as needed to prevent user problems with the 2.0.0 release.

2006-02-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

        * src/formats/pdbformat.cpp: Fix PR#1368851 for PDB export with
        large coordinates. Optionally shifts coordinates if needed.

        * src/mol.h: Fix PR#1373650 -- return NULL if no coordinate array
        is available. Prevents segfault.

        * src/atom.cpp (GetResidue): Make sure to return NULL if chains
        perception fails.

        * src/chains.cpp: If only one residue is found, and it's UNK, it's
        probably not a residue, so nuke it. 

        * src/formats/mol2format.cpp: Combined with two above fixes,
        ensure atom labels are printed correctly for mol2 files. All three
        fix PR#1371789.

        * src/obconversion.cpp: Update documentation to point out
        workaround for PR#1368969 with static members of OBConversion --
        declare dummy variable to make sure LoadFormatFiles() has been called.

	* tools/obxyz.cpp: New program to allow cartesian transformations
	(translations, rotations).

2006-02-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* residue.h, residue.cpp: Move residue property definitions into
	new header to support biomolecule formats.

	* src/formats/fastaformat.cpp: New format, contributed by Sangwoo
	Shim. Resolves format request PR#902406.

	* src/formats/mdlformat.cpp: Fix possible memory leak
	with comment data and ensure comment is stored properly.
	
	* src/math/matrix3x3.cpp, src/math/matrix3x3.h,
	src/math/vector3.cpp: Fix documentation errors.

	* src/obconversion.h, src/obconversion.cpp: Add option to
	WriteString to omit any trailing whitespace. Resolves PR#1396953.

2006-01-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/zipstreamimpl.h (overflow): Patch calls to setp as
	suggested by Rathann Mierzejewski.

	* scripts/perl/* : Added more unit tests, fixed bug with
	case-sensitive filesystems, and problems with dynamic loading on
	Linux. 

	* scripts/python/*: Updated to fix problem with dynamic loading on
	Linux.

	* aclocal.m4, configure, configure.in, ltmain.sh, */Makefile.in
	*/Makefile.am: Update to libtool-1.5.22 and ensure libxml2 is only
	used if v2.6.5 or later.

	* src/kinetics.h: Move from src/formats/xml/ for general utility.

	* src/formats/xml/xcmlformat.cpp: Remove deprecated file.

2005-12-22 Chris Morley <ob@gaseq.co.uk>

	* src/main.cpp (main): removed unsigned from pos to correct bug
	found by Mikael Johansson.

	* src/formats/turbomole.cpp: Updates by Mikael Johansson.
 
2005-12-19 Chris Morley <ob@gaseq.co.uk>

	* src/molecformat.h, molecformat.cpp: Put most of code into static
	functions which can be called from elsewhere.
	Changed implementation of the -j option so that combining is done by
	+= of OBMol so that useable with any format.
	
	* src/formats/xml/xml.h(XMLMoleculeFormat): Reduced code duplication
	by calling static OBMoleculeFormat functions.
	
	* src/mol.cpp(operator+=): Combined molecule has a dimension equal
	to the smallest of its constituents.
	
	* src/chiral.h: added missing std:: and #include <vector>

2005-12-18 Chris Morley <ob@gaseq.co.uk>

	* src/obconversion.h, obconversion.cpp (IsFirstInput())mod.
	(OneObjectOnly) Added inverse call.
	(Convert) Call WriteChemObject only at end with C option
	(FullConvert) Can now have input and output files the same
	#define ZEROATOMSOK

	* src/generic.h, src/mol.h, tokenst.cpp(Trim): Now returns a reference 
	to the string	to make it easier to use, esp in function parameters.
	
	* src/generic.h: OBGenericData and derived classes: OBCommentData,
	OBExternalBond,	OBPairData,OBVirtualBond,OBRingData,OBUnitCell,
	OBConformerData,OBSymmetryData,OBTorsionData,OBAngleData,OBChiralData,
	OBSerialNums added virtual Clone() method to	allow copying given a 
	polymorphic	OBGenericData pointer.
	
	* src/rotameter.h:	ditto OBRotameterData
	
	* src/residue.cpp: Commented out OBGenericData methods in OBResidue
	and deletion of objects in destructor - now in base class.
	
	* src/mol.h: OBResidue now derived from OBBase; comment out its 
	OBGenericData methods and _vdata. ditto OBAtom, OBBond, OBMol,
	
	* src/mol.h, mol.cpp: I kept needing a more easily parsed
	GetFormula(). Added GetSpacedFormula()and changed the	implementation
	(but not interface) of GetFormula().
	Initialized and copied _dimension in constructors.
	
	* src/parsmart.cpp: changed error message handling.
	
	* src/transform.cpp: Added --title and --property options. Improved
	handling or error conditions while doing options.
	
	* src/main.cpp: Ensure that long options can take more than one
	following text parameter. (Used for --property).
	Make clog message describe the type of object converted, e.g.
	"2 reactions converted" (when reaction.h is updated) Small
	consequent change in help().
	
	* src/formats/APIInterface.cpp, main.cpp: All long options are now
	GENOPTIONS
		  
	* src/obmolecformat.h: Split out implementation into a new
	src/formats/obmolecformat.cpp. Added code for -C option to defer
	output of molecules so that	molecular properties, defined in several
	files can be combined. Move obmolecformat.h to src/formats/ 
	
	* src/formats.mdlformat.cpp: Corrected bug #1370212 with code along
	the lines suggested.
	Attempt to reconcile bug #1368849 and earlier suggestions:
	As before $$$$ is written between molecules but is now written at the
	end only if any properties have been written (sdf) but not if they haven't
	(mol). Add option -xm to not output any properties.
	
	* src/formats/fastsearchformat.cpp: Added -u option for updating index.  
	* src/formats/: add thermoformat.cpp and titleformat.cpp.
	
	* src/formats/xml/xml.h: remove SetFormatting; add missing std::	
	* src/formats/xml/xml.cpp: add option to have no xml formating	

	* src/formats/xml/xcmlformat.cpp: add option to output properties.
	Read and write properties, read and write Nasa thermo data.
	GetSpacedFormula() simplifies cml output!
	Renamed to src/formats/xml/cmlformat.cpp
	
	* src/formats/smilesformat.cpp: reads * as radical centre, as NIST is doing. 
	
	* src/formats/titleformat.cpp added. 	
	
	* src/formats/xml/kinetics.h added, containing OBRateData and 
	OBNasaThermoData classes derived from OBGenericData. 	

2005-11-25  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/mdlformat.cpp, rxnformat.cpp: Yesterdays change
	broke rxnformat. Add option to supress $$$$.
	
	* windows/obabel/OBabel.dsp: This config sees fingerprints ok.
	
	* windows/OBRunTime.dsw: rename to OpenBabel.dsw
	
2005-11-24  Chris Morley  <c.morley@gaseq.co.uk>

	* windows-vc2005: upadtae files but struggling with wrong tags
	on some files. Renamed as OpenBabel.sln
	
	* src/INSTALL.WINDOWS: removed. (First draft 2004 by PMR)
	
	* src/README: removed. (about 2003 oblib)

2005-11-23  Chris Morley  <c.morley@gaseq.co.uk>
	
		* src/fingerprint.h, fingerprint.cpp: rearrange so that FptIndex
	has member functions.
	 
	* src/formats/fastsearchformat.cpp: Add -xu option to update
	index.

	* src/parsmart.cpp(SMARTSError): Error messages were being
	writen by fprintf(stderr... and stdout. This made no difference
	on console output but was not being picked up by the Windows GUI.
	Changed to obErrorLog style.
	
	* src/chains.cpp(GenerateByteCodes): Changed error messages to
	obErrorLog style.
	
	* zipstreamimpl.h(flush):Added test for NULL ostream, which had
	been causing crashes (in Windows).
	
	* kekulize.cpp: L152 bestorden was not being initialized (my new
	debugger tells me) and the code was testing it. Moved the line 
	bestorden=99 to before the while loop. Not extensively tested but
	seems to give the same as before for a few molecules. 
	
	* src/obconversion.cpp(Write): Added conditional compilation to
	remove zipstream call in Windows. Started crashing with 
	---errorlevel. A kludge until we sort out	the Windows compression
	problems. Two other similar calls in obconversion are still there...
	
	* src/obconversion.cpp(FullConvert): Added SetInStream and changed
	the names of pInStream and pOutStream which were stupidly
	given names which are also member variables! It's a bit late to
	be altering core code like this but splitting, aggregation,
	batch and normal all seem ok on Windows.
	
	* src/finger3.cpp: Change name of FP3 file.
	
	* data/SMARTS_InteLigand_051110.txt: replaced by 
	SMARTS_InteLigand.txt
	
	*src/formats/mdlformat.cpp: Writes $$$$ for every molecule to
	resolve bug #1362781
		 
	* INSTALL.windows: rewritten

	windows-vc2005: Add DLL projects and update.
	
2005-11-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mdlformat.cpp: Correctly handle unspecified chiral
	centers (CFG=3), fixes PR#1324929.

2005-11-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Makefile.am, Makefile.in: Make sure INSTALL.Windows is included
	in dist.

	* doc/babel.1: Update with recent format additions.

	* src/formats/amberformat.cpp, src/formats/balstformat.cpp,
	src/formats/smilesformat.cpp, src/formats/turbomoleformat.cpp:
	Update specification URLs.

2005-11-16  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/obconversion.cpp(Convert): m_IsLast set more definitely
	as part of solution to bug #1357957.
	(FullConvert) Extra gzip code to solve bug #1357705.
	[Windows builds are now reading gzip ok but not always writing it
	properly.]

	src/formats/fastsearchformat.cpp: Extra lines withconditional
	SetMoreFilesToCome to solve bug #1357957. [There may possibly be
	a gzip incompatibility here as well].
	
	* src/fingerprint.h, src/fingerprint.cpp, 
	src/fingerprints/finger2.cpp, src/fingerprints/finger3.cpp:
	Make bitsperint a private variable and provide a Get(). Not
	worth doing - the bug was a missing USING_DYNAMIC_LIBS in 
	the settings for OBExtraFormats project.
	
	Windows build files.  

2005-11-15  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/obconversion.cpp: remove #include <dflcn.h>

	* windows/OBGUIDlg.cpp (OnInitDialog): add dummy OBConversion
	object to load format files.

2005-11-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Makefile.am, Makefile.in: Remove non-functional b32.mak file
	from distribution.

	* NEWS, THANKS: Further updates for 2.0 release.

	* data/types.h, data/types.txt: Added PCM atom types.

	* doc/Makefile.am, doc/Makefile.in: Removed defunct Migration.html
	(from OELib).

	* doc/FAQ.html, doc/OBTwoMigration.html, scripts/python/Examples.html:
	Updated documentation (from the new website).

	* src/formats/pcmodelformat.cpp: Initial support for PCModel
	files. Possibly does not include all atom types, but does read all
	the initial files I threw at it.

	* src/formats/Makefile.am, src/formats/Makefile.in: Compile it.

	* src/formats/freefracformat.cpp: Add support for reading files
	with atomic symbol in 4th column, rather than first (i.e.,
	PCModel-style "free form fractional").

2005-11-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/atomtyp.h: Updated with Chris's recent changes.

	* data/Makefile.am, data/Makefile.in: Add Christian's data file.

	* scripts/perl/Makefile.PL, scripts/python/setup.py: Bump version
	number for 1.0 release.

	* src/obconversion.cpp: Patch from Jean Brefort to ensure dynamic
	loading of modules occurs correctly on UNIX.

	* src/fingerprints/finger3.cpp: Update to also check versioned
	directories. Fixes bug reported by Chris Swain.

	* src/formats/inchi/Makefile.am, src/formats/inchi/Makefile.in:
	Fix capitalization errors pointed out by Jean Brefort.

	* src/formats/xyzformat.cpp, src/formats/freefractformat.cpp: Add
	specification URLs to point to Open Babel website. New format
	database will give information on what OB reads/writes.

	* src/formats/gaussformat.cpp: Fix error uncovered in roundtrip
	test with graphite & 2D translation vectors. TV are reported as
	atomic number -2.

	* test/Makefile.am, test/Makefile.in: Clean-up of Makefile.am.

	* tools/obdoc.cpp: Fix HTML -- there was a trailing </h2> tag.

2005-11-12  Chris Morley  <c.morley@gaseq.co.uk>

	* src/finger3.cpp: reads two formats of patterns file. Added FP4
	with patterns in...

	* data/SMARTS_InteLigand_051110.txt: from Christian Laggner with
	extra LGPL line.

	* data/patterns.txt: Added extra firstline to identify format.

	* data/atomtyp.txt: Added additional IMPVAL lines for
	atoms of F Cl Br I P S to allow implicit hydrogens(e.g.in SMILES)
	and improve the reversibility of add/remove hydrogens. Needs to be
	put into equiv .h file.
	 
	* src/formats/xml/xcmlformat.cpp: Now writes correct namespace uri
	for CML1. Test for no bonds (for outputting a formula instead)
	now made before removing hydrogens.

	* src/formats/xml/xcmlformat.cpp, xml.h: Mods to allow nested
	molecules.

	* src/formats/xml/xml.cpp: XML programming notes added.

	* src/formats/xml/xmlformat.cpp, xml.cpp, xml.h: files can now
	contain objects of different types, e.g. molecules in cml and pubchem
	
	* test-set/others/: added some cml files    

	* src/obconversion.cpp: minor changes to comments
	
	Update Windows build files

2005-11-10  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/bgfformat.cpp (ReadMolecule): Fix problem with atom
	type translation uncovered during roundtrip testing -- atom type
	was "cleaned" before assignment.

	* src/formats/Makefile.am, src/formats/Makefile.in: Make sure
	libinchi is correctly linked to inchiformat module.

	* src/formats/PQSformat.cpp, src/formats/fastsearchformat.cpp,
	src/formats/fingerprintformat.cpp, src/formats/inchiformat.cpp,
	src/formats/rxnformat.cpp: Found a few remaining calls to
	cerr. Updated to use OBMessageHandler framework, fixing PR#1281758.

2005-11-09  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Doxyfile: Update version number for 2.0 release.

	* NEWS, THANKS: Updates for 2.0 release.
	
	* data/patterns.txt: Updated with new version from Chris Morley
	with corrected SMARTS patterns.

	* doc/Makefile.am: Remove man.1 pages from target list for now -- new
	versions are much better than doxygen generated versions.

	* doc/api-header.html, doc/api-footer.html: Updated for new
	website template.

	* doc/*.1: Updated man pages by hand.

	* configure, configure.in, src/config.h.in, */Makefile.in: Updated
	to always build InChI now that the IUPAC code is distributed under
	the GNU LGPL.

	* src/formats/Makefile.am, src/formats/Makefile.in,
	src/formats/inchi/*: Ditto.

	* scripts/perl/Makefile.PL: Make sure to include libz in
	compilation.

	* src/bitvec.cpp, src/bondtyper.cpp, src/chains.cpp,
	src/chiral.cpp, src/fingerprint.cpp, src/generic.cpp,
	src/obconversion.cpp, src/patty.cpp, src/resdiue.cpp,
	src/rotor.cpp: src/formats/mdlformat.cpp,
	src/formats/mol2format.cpp, src/formats/smilesformat.cpp:
	Updated to use OBMessageHandler framework for errors rather than
	old ThrowError or cerr directly. Solves PR#1281758.

	* src/parsmart.cpp: Actually implement up & down bond
	primitives. Solves PR#1219329.

	* src/formats/PQSformat.cpp: Remove calls to exit() which should
	never be used in production code.

	* src/formats/balstformat.cpp: Add specification URL.

	* tools/Makefile.am, tools/obdoc.cpp: Add hint for "obdoc" tool
	which creates the file format documentation.

	* tools/obchiral.cpp, tools/obprop.cpp: Add Doxygen man page.

2005-11-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/hinformat.cpp: Make sure to mark all aromatic bonds
	as "a" in output. Fixes bug reported by Rajarshi Guha.

2005-10-21  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/atomtyp.txt, data/atomtyp.h, data/types.txt, data/types.h:
	Updated Dreiding atom types, contributed by Menno Deij.

2005-10-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Makefile.am, Makefile.in: Make sure both windows and
	windows-vc2005 directories are included.

	* src/data.cpp (OBTypeTableTranslate): Fix possible crashes when
	translating atom types and one or both columns are out of range.

	* src/freefractformat.cpp: Add TrimErrors routine to trim trailing
	standard error notations in numbers. Now properly reads 1.234(56)
	as input.

	* test/ringresults.txt, test/smartsresults.txt: Updated to reflect
	atom typing changes.

2005-10-19  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/xcmlformat.cpp: Added reading and writing
	of <crystal> xFract etc.

	* src/formats/freefracformat.cpp: added kludge for
	getline() in Windows(binary mode) possibly returning 0x0d 
	from a blank line.
	Removed two unreferenced variables

	* doc/OBTwoMigration.html: Replace example of Reaction SMILES
	(sadly not yet done) by CMLReact. Couple of typos.

2005-10-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Doxyfile: Updated for new doxygen release (1.4.5).

	* NEWS: Updated with initial release notes for 2.0.

	* configure, configure.in: Fix problems with libz detection.

	* doc/OBTwoMigration.html: Add a draft migration guide, touching
	on four key code updates.

	* doc/*.1: Updated manpages.

	* scripts/*: New versions (1.0.0b5) using SWIG 1.3.27.

	* src/atom.cpp, src/mol.cpp, src/molchrg.cpp: Documentation
	updates (switching to new iterators).

	* src/chains.h, src/chains.cpp: Updates from last OELib GPL
	version, which were not previously incorporated.

2005-10-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* COPYING: Updated FSF address.

	* src/formats/Makefile.*: Add new copyformat code.

	* src/atom.cpp, src/base.cpp, src/ring.cpp, src/patty.cpp,
	src/mol.h, src/molchrg.cpp, src/oberror.h, src/oberror.cpp,
	src/obiter.cpp: Documentation updates.

	* src/obconversion.h, src/obmolecformat.h : Revert change of
	std::type_info -- GCC requires the namespace declaration.

2005-10-17  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/formats/xml/xcmlformat.cpp: Added CML1 writing.
	Corrected bug in writing "x","y" instead of "x2","y3" etc.
	Corrected bug in x and z 3D coords in array mode.  

2005-10-17  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.h:Replaced std::type_info by type_info
	in preparation for mods to ensure STL/VC6 compatibility.
	I hope it will still compile in unix.

	* src/obconversion.cpp,obconversion.h: Added GetInLen(), wInlen,
	rInlen to provide the length of the object being written.
	This simple operation is irritatingly complex because of object
	queue.

	* src/copyformat.cpp: simple new format which allows chemical
	filtering from a multi-object file with no possibility of losing
	content by OB's conversion, e.g. sdf or xml files.

	* src/formats/exampleformat.cpp: Now a heavily commented
	format template. Maybe should be put in another folder.

	* src/formats/inchiformt.cpp(WriteMolecule): correct bug sometimes
	causing crash when no 0Dstereo info.

	* windows-vc2005: Added project files for Visual C++ 2005

2005-10-14  Geoffrey Hutchison  <ghutchis@Alumina.local>

	* Source-code documentation updates. Ensure all classes and struct
	definitions have at least a brief description.

2005-10-14  Chris Morley  <c.morley@gaseq.co.uk>
	
	Update Windows build files and documentation. Remove unused files.

2005-10-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* acinclude.m4: Fix bug in CHECK_ZLIB macro to correctly disable
	zlib support if --without-zlib option is selected.

	* src/data.h, src/typer.h, src/bondtyper.h, src/phmodel.h,
	src/rotor.h: Add a GetSize() method to all OBGlobalDatabase
	classes. Ensures a data table is not empty after calling Init().
	
	* configure.in, configure, src/config.h.in: Update for a 2005-10-15
	snapshot. Require libxml2 >= 2.6.0 (which adds the xmlwriter API).

	* doc/api-header.html, doc/api-style.css: Update with new Doxygen
	version (which adds "tabs" to organize sections).

	* src/Makefile.am, src/Makefile.in: Update to zipstreamimpl.h
	instead of zipstream.cpp.

	* src/zipstream.h: Switch basic_zip_ostream and
	basic_unzip_istream to using public base classes, which works
	around a bug in some versions of GCC.

	* src/formats/xml/Makefile.am, src/formats/xml/Makefile.in: Switch
	from defining LDFLAGS to correct AM_LDFLAGS (which allows the user
	to customize LDFLAGS as desired).

2005-10-11  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.cpp(FormatFromExt): correct mistake 
	in last mod.
	src/obconversion.h Add explicit copy constructor for 
	OBConversion (just so	pAuxConv is set to NULL).

	* src/generic.cpp, src/chiral.cpp: added return statements 
	etc to avoid compiler warnings.

	* src/data.h: Added OBAPI to class OBResidueData (for DLL builds)

	* src/mol.h, src/formats/pdbformat.h, src/data.cpp: Moved 
	global variable	OBResidueData resdat to data.cpp and
	treat it like other global variables. (This makes DLL builds
	easier.) If its use is specific	to pdb format, perhaps it
	should be a a static variable in PDBFormat?
	
	* windows/babelconfig.h: removed HAVE_LIBZ because in DLL
	builds unzipping code was preventing input of any file. OK
	in OBGUIs where is now defined in Settings.
	
	Updated Windows build files. 

2005-10-09  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/obconversion.cpp(FormatFromExt): test failure of 
	string::find,	etc by return of string::npos

	* src/obconversion.cpp(SetStartAndEnd):
	If EndNumber < StartNumber output only one object 
	
	* src/mdlformat.cpp(SkipObjects): inverted test for "$$$"
	which was causing -f and -l errors reported by Chris Swain.
	
	* src/formats/inchiformat.cpp: Added 'test' format for
	doing round trip, testing before and after with InChI
	
	* src/zipstreamimpl.h: Name changed from zipstream.cpp 
	
	* src/zipsteam.h: consequent name change of #include
	
2005-10-07  Chris Morley  <c.morley@gaseq.co.uk>

	Update Windows build files.

	* src/chiral.cpp(CalcSignedVolume): change name of second
	loop variable from i to j (VC6 deficiency)

	* src/data.cpp(OBElementTable::ParseLine); make symbol[5]
	[3] wasn't enough. (Better debugger!)

	* src/fingerprint.cpp: remove #if HAVE_CONFIG
		
2005-10-05  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/zipstream.cpp(add_footer): changed 2nd var n to m to
	accomodate VC6 compiler. (But still not writing properly in VC6)

	* src/obconversion.cpp: moved compression code from Convert()
	to Convert((std::istream* is, std::ostream* os) and restored
	pOutStream after conversion. Also in write();

	*  src/obconversion.cpp (FullConvert): moved call to 
	OneObjectOnly() inside loop in splitting section to cure bug
	#1313201.
	
	* src/formats/fastsearchformat.cpp: Changed Convert() to
	Convert(NULL,NULL) (two places) so that compression code will
	be called.	 

	* src/formats/smilesformat.cpp (SmiToMol): removed call to 
	AddHydrogens().


2005-10-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/obgrep.cpp: Fix PR#1286797. Count of matching molecules
	was stored as a char??. Corrected code to store as unsigned int
	and output correctly. Thanks to Chris Swain for the bug report.

	* src/zipstream.h, src/zipstream.cpp: Update to (hopefully) fix
	syntax problems with VC++ experienced by Chris Morley.

	* src/atom.cpp (GetType): Make sure to save and restore
	OBTypeTable patterns -- otherwise higher-level code will see
	unexpected type translations.

	* src/data.h src/data.cpp (OBTypeTable): Set const on parameters
	where needed, add error checking for GetToType and GetFromType()
	methods.

	* src/formats/*.cpp: Add code to move to ifs.eof() after reading
	to ensure the multiple-molecule parsing doesn't attempt to add an
	invalid empty molecule.

	* src/formats/smilesformat.cpp: Add defensive code around chiral
	search code -- ensure all pointers are valid before dereferencing.

	* test/roundtrip.cpp: Ensure the filestream is not at EOF before
	attempting to read another molecule (and complain that a format
	has translated an incorrect number of molecules).

	* tools/README: Remove comments about deprecated obtanimoto program.

2005-10-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure, configure.in: Fix BUILD_SHARED condition to only
	build dynamic file format modules when shared libraries are also
	enabled.

	* scripts/*: Update SWIG modules using SWIG 1.3.26rc1.

	* src/formats/smilesformat.cpp: By default, add implicit hydrogens
	when reading SMILES files.

	* tools/obprop.cpp: No need to add hydrogens to SMILES files, as
	above.

	* src/formats/carformat.cpp: Modifications to better handle
	multiple-molecule CAR files, as suggested by Jean Dessolin.

	* test/roundtrip.cpp: Refined error messages to report molecule
	number and file number (1 vs. 2).

2005-09-29  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/types.h: Updated (as below).

	* src/zipstream.h, src/zipstream.cpp: Updated with cleaned-up
	versions from OpenSG project. Added method to add gzip header
	after creating stream.

	* src/obconversion.cpp: Clean up WriteString() and WriteFile()
	methods to use Write() -- eliminates duplicated code. (Maybe
	Convert should use Read() and Write() similarly.) Now works
	correctly with gzip output.

	* src/dlhandler_unix.cpp: Update to fix crashing bugs with global
	loading of OBConversion::LoadFormatFiles().

	* configure, configure.in, */Makefile.am, */Makefile.in: Update
	for new snapshot, minor fixes for distribution.

	* Doxyfile, src/base.cpp: Update for eventual 2.0.0 release.

2005-09-17  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats.mpdformat.cpp: Nick England's format for printing
	atom types added  (Slightly modifed option handling.)

	* data/types.txt: Extended. types.h not yet updated.

2005-09-14  Chris Morley  <c.morley@gaseq.co.uk>

	* src/main.cpp(main): line 322 Mods to place * correctly 
	when file name has *.gz

	* src/obconversion.cpp, obconversion.h: Removed dummy
	instance which was causing trouble and called LoadFileFormats()
	from the initialisation of a static variable. Removed call to
	LoadFileFormats in constructor.

	* src/obconversion.cpp: Added -z option and code for zipstream
	output in Convert() and Write(). But ozipstream seems not to be
	working properly at present. 
	Messed around with ReadString()	and ReadFile(). 

2005-09-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp: Only use dummy instance on WIN32 or when
	not using dynamic modules (e.g., CygWin).

	* src/zipstream.cpp, src/zipstream.h: Changes to compile on
	GCC. (Hopefully it will *still* compile on VC6.)

2005-09-14  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.h, obconversion.cpp(Read): Make non-templated
	and move to .cpp; Add zipstream code to Read and Convert,
	
	* src/OBConversion.cpp: Add global dummy instance, so that format 
	files are loaded. (A better way to do this needs to be found.)
	
	* src/zipstream h, zipstream.cpp: changed to compile on VC6! 

2005-09-12  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/zipstream.h, src/zipstream.cpp: Modified classes (updated to
	compile in GCC) to support gzip/zlib compression streams.

	* configure.in, configure, src/Makefile.am, */Makefile.in: Add
	support for conditional compilation of code depending on zlib. (i.e.,
	zipstream.cpp).

	* src/obconversion.cpp (FormatFromExt): Change to detect .gz
	extension and look for previous extension.

2005-09-11  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, src/config.h.in, Makefile.in,
	*/Makefile.in: Update to detect libxml2 headers and libraries
	using AM_PATH_XML2 and compile src/formats/xml directory.

	* src/formats/Makefile.am: Remove cml.cpp and cmlformat.cpp old
	code.

	* data/bondtyp.txt, data/bondtyp.h: Updated porphyrin /
	phthaloc. patterns with hand-written SMARTS and bond
	orders. Ensures correct bond order assignment.

	* src/data.h, src/data.cpp: Move OBResidueData from pdbformat.cpp,
	so that other code can use residue data.

	* src/generic.h: Move OBSerialNums from pdbformat.cpp.

	* src/formats/pdbformat.cpp: Remove OBResidueData and OBSerialNums
	as above.

	* src/formats/smilesformat.cpp (OBSmilesParser): Make sure _mapcd
	is cleared before reading a molecule -- would crash when
	reading/writing multiple SMILES files.

	* src/formats/yasaraformat.cpp: New format, contributed by Elmar.

	* src/formats/xml/pubchem.cpp, src/formats/xml/xcmlformat.cpp:
	Change OBMol::SetTitle() calls to be ISO C++ compilant.

	* src/dlhandler_unix.cpp: Add support for multiple search paths
	for shared format modules. Uses environmental variable
	BABEL_LIBDIR which can be a colon separated list of paths
	(e.g. /usr/lib/openbabel:/usr/local/lib/openbabel ...)

	* test/ringresults.txt, test/smartsresults.txt: Regenerate after
	recent SMARTS and atom typing changes.

2005-09-10  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/libxml: Added libxml2 header files. I have
	used a Windows DLL for libxml2 and haven't used the 
	source files,	but I guess they should be added.
	
	* src/formats/xml: Added classes for CML, CMLReact,
	PubChem and a general XMLFormat which chooses based on
	xmlnamespace. 
	xml.cpp	amd xml.h contain an extended OBConversion 
	with libxml2xmlreader and xmlwriter, XMLBaseFormat and 
	XMLMoleculeFormat	abstract classes. 
	This subfolder may not be the best place for
	the format cpp files but are here for the moment because of
	possible conflict with the existing cml.cpp and cmlformat.cpp
	which they are intended to replace when their bugs have been
	reduced.  

2005-09-09  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/chiral.h, src/chiral.cpp: Updates from Nick England to
	compute chiral volume and track the atoms used.

	* tools/obchiral.cpp: New tool from Nick England to print
	chirality information on molecules.

	* src/formats/mdlformat.cpp, src/formats/smilesformat.cpp: Fixes
	from Nick to properly interconvert MDL and SMILES chirality
	flags. Solves PR#1257494.
	
	* src/generic.h, src/generic.cpp: New class OBChiralData
	contributed by Nick for above.
	Removed obDataType enum, replacing with namespace
	OBGenericDataType. Allows significantly larger range of "slots"
	with room for future expansion without breaking
	backwards-compatibility.

	* src/atom.cpp, src/bond.cpp, src/mol.cpp, src/mol.h,
	src/residue.cpp, src/ring.cpp, src/rotamer.h,
	src/formats/cacaoformat.cpp, src/formats/cml.cpp,
	src/formats/cssrformat.cpp, src/formats/dmolformat.cpp,
	src/formats/freefracformat.cpp, src/format/mdlformat.cpp,
	src/format/mol2format.cpp, src/formats/pdbformat.cpp,
	src/formats/reportformat.cpp, src/formats/smilesformat.cpp:
	Update to use new OBGenericDataType:: declarations.

	* src/formats/Makefile.am, src/formats/Makefile.in: Remove
	mm3format bits. Not correctly implemented.

2005-09-09  Chris Morley  <c.morley@gaseq.co.uk>

	* atom.cpp (operator=): _spinmultiplicity now copied

	* obconversion.cpp (SetOneObjectOnly): Set _IsLast

	* obmolecformat.h: Small comment change

2005-09-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Makefile.am: Add dist-hook to remove CVS directories from
	included windows/ subdir.

	* configure.in: Add test for libinchi -- compile InChI format if
	libinchi is already available. (Acceptable under both GPL and
	InChI terms.)

	* src/formats/Makefile.am: Compile InChI format *ONLY* if libinchi
	is available already.

	* doc/Makefile.am: Build man pages for all obtools, only if
	--enable-maintainer-mode was passed to configure.

	* scripts/Makefile.am: Build SWIG wrappers only if
	--enable-maintainer-mode was passed to configure.

	* src/Makefile.am: Ensure headers are installed into
	openbabel-2.0/openbabel directory and #include decl are re-written
	on install.

	* src/math/Makefile.am: Ditto.

	* aclocal.m4, configure, config.guess, install-sh, ltmain.sh,
	missing, mkinstalldirs, config.sub, */Makefile.in,
	src/config.h.in: Updated with libtool-1.5.20 and automake-1.9.6
	after above updates.

	* openbabel-2.0.pc.in: Update to reflect new include path.

	* scripts/openbabel.i: Wrap classes in data.h (OBElementTable,
	etc.) too.

	* scripts/*: Ditto. Renumber versions from 1.0 to separate from OB
	release version numbers. (Scripting wrappers will likely change
	more quickly.)

	* src/data.h, src/main.cpp, tools/obgrep.cpp, tools/obrotate.cpp,
	tools/obfit.cpp, tools/obprop.cpp: Documentation updates.

	* src/rand.cpp (OBRandom::TimeSeed): If sranddev() is available
	(i.e., BSD and Macintosh), use it -- higher quality results.

2005-09-05  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.cpp: Update documentation, perform more error checking
	for ParseLine() methods -- report to obErrorLog if needed. Fixes
	PR#1252607.

	* src/phmodel.cpp, src/typer.cpp (ParseLine): Ditto.

	* src/generic.h: Added additional types to enum obDataType, plus
	documentation.

	* src/bond.cpp: Switch IsDoubleBondGeometry to OBBond method.

	* src/mol.cpp, src/mol.h: Update OBMol documentation for OBConversion
	class. Add new PerceiveBondOrders() check for
	IsDoubleBondGeometry, using patch PR#1275166, contributed by Elmar.

	* src/residue.cpp: Update documentation on property namespaces.

	* src/parsmart.cpp: Fix matching explicit hydrogen count 'H'
	PR#1275176, contributed by Elmar.

2005-09-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/cacaoformat.cpp (SetHilderbrandt): Mark a todo to
	ensure this method is completely bulletproof -- still appears to
	dereference atoms without checking for NULLs.

	* src/fingerprint.h, src/fingerprint.cpp (SetBit): Change to take an
	unsigned int to prevent crash caused by "negative" parameter.

	* src/fingerprints/finger2.cpp (CalcHash): Ditto.
	
2005-09-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure: Bump version to 2.0b4-20050901 for
	snapshot. Add support for conditional compilation of source based
	on libxml2.

	* */Makefile.in: Ditto.

	* Doxyfile: Bump version to 2.0b4-20050901.

	* src/base.cpp: Remove reference to fixed version number in
	documentation.

	* src/obconversion.h: Remove extraneous OBConversion:: on
	OptionParamArray() decl, which confused doxygen.

	* src/formats/CSRformat.cpp: Attempt to fix crash encountered
	during roundtrip testing from writing audit message.

	* src/formats/cacaoformat.cpp (SetHilderbrandt): Prevent crashes
	caused by attempting to derference NULL pointers (i.e., small
	molecules without a full z-matrix).
	
	* src/formats/mmodformat.cpp: Test to be sure # atoms > 0. Fixes
	crash encountered with roundtrip testing on binary data.

	* src/formats/mdlformat.cpp: Test to be sure bond record refers to
	existing atoms (i.e., 0 < start <= NumAtoms()). Prevents crash
	encountered with intentionally invalid MDL files.

	* src/formats/zindoformat.cpp: Remove debugging string for
	non-standard elements.

	* src/chains.cpp (MatchConstraint): Ensure OBAtom parameters are
	non-NULL before proceeding. Fixes a bug encountered when
	roundtripping H2O.

	* src/generic.cpp, src/obutil.cpp, src/ring.cpp src/mol.cpp: Add
	identifiers for Blue Obelisk algorithm dictionary.

2005-08-31  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/element.txt, data/element.h: Updated with new data from the
	Blue Obelisk shared repository. Should be more consistent with
	other values (particularly covalent radii).

	* src/data.h, src/data.cpp (OBElement, OBElementTable): Add
	support for new data, including ionization potential, electron
	affinity, name, and visualization colors.

	* data/bondtyp.txt, data/bondtyp.txt: Changes contributed by Elmar
	for PR#1275146.

	* src/mol.h, src/mol.cpp: Add new method IsDoubleBondGeometry to
	assist with bond order assignment (PR#1275170). Fix bugs in
	PerceiveBondOrders with conjugated single/double bonds and biotin
	PR#1275151, PR#1275160.

	* scripts/*: Updated with current API changes. Added more
	examples, particularly for Python.

	* Doxyfile: Bump for 2.0b4 snapshot.

2005-08-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/bondtyp.txt, data/bondtyp.h: Add initial porphyrin / heme
	patterns. Probably still a bit buggy. Addresses PR#1259757.

	* src/bond.cpp (SetBO): Add calls to SetKSingle(), SetKDouble(),
	and SetKTriple() as appropriate. This mirrors expected behavior,
	IMHO.

	* src/bondtyper.cpp: Remove calls to SetKSingle() etc. since these
	are now covered above. All SetBO() calls are handled
	correctly. Thanks to Elmar Krieger for noticing this.

	* src/formats/freefracformat.cpp: New format for free-form
	fractional input (title, unit cell parameters, coordinates).

	* src/formats/Makefile.am, src/formats/Makefile.in: Compile it.

	* src/formats/xyzformat.cpp: Fix bug with setting title line.

2005-08-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/parsmart.cpp: Fix AL_CONST case (currently in non-compiled
	code) as suggested by Elmar Krieger. Fixes PR#1261285.

	* src/obutil.cpp (InternalToCartesian): Add a check to make sure
	pointers are valid before dereferencing. Fixes crash caused by
	Amber PREP reading random binary data in a roundtrip test.

	* src/formats/amberformat.cpp (ReadMolecule): Add a check to only
	call InternalToCartesian when some coordinates have been read,
	as above.

	* src/formats/viewmolformat.cpp: Prevent an infinite loop when
	reading random binary data. Even if no correct records are read,
	continue to read a new line to look for a new record.
	
	* src/formats/Makefile.am, src/formats/Makefile.in: For now,
	disable compilation of mm3format.cpp since it is incomplete and
	incorrect. Related to PR#125604, 1252510.

	* src/math/matrix3x3.h, src/math/matrix3x3.cpp: 
	Add some basic error checking to methods marked TODO.
	(FillOrth) Change to matrix specified in PDB documentation:
	http://www.rcsb.org/pdb/docs/format/pdbguide2.2/part_75.html
	
	* src/generic.cpp, src/generic.h (OBUnitCell): Simplify code and
	re-use matrix3x3::FillOrth() rather than duplicate code.
	(OBUnitCell::GetFractionalMatrix): New method to convert from
	Cartesian to fractional coordinates.

2005-08-17  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/obconversion.h, obconversion.cpp, main.cpp: Added code
	to register how many parameters an option takes(currently 0 or 1).
	Gives extra	flexibility to command line options, like position
	independence, parameter can start immediately or after a space.
	Cures bug	#1260540 see bug report.

	* src/formats/fingerprintformat.cpp, fastsearchformats.cpp,
	APIInterface.cpp, smilesformat.cpp, mdlformat.cpp:
	Option parameter registrations consequent on above.

	* src/obmolecformat.h: Added GetType() (returns typeid for OBMol).
	Option parameter registrations for -b -s input options and
	for API general options which relate to OBMol.

	* src/obconversion.h, obconversion.cpp: Added hook to extend
	OBConversion (initially for an XML reader). AuxConv is a pointer
	to an object derived from	OBConversion which is deleted in 
	the destructor.
	   
2005-08-16  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.h: Add obiter.h to standard included headers to allow
	STL-compatible iterators.

	* data/torlib.txt, data/torlib.h: Add nitro rotation pattern
	contributed via JOELib2.

	* data/phmodel.txt: Update comment on imidazole charge, transform
	patterns.

	* data/aromatic.txt, data/aromatic.h: Add "default" aromatic rules
	for carbon and nitrogen with a range of possible electrons
	(depending on specific bonds, formal charges, etc.) Solves
	PR#1257827.

	* test/smartsresults.txt: Regenerate after recent typing changes.

2005-08-15  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/bondtyp.txt, data/bondtyp.h: Add fix for carbonic acid bond
	typing bug (a.k.a. "multimatch") and carbon dioxide, both
	contributed by Elmar Krieger. Fixes PR#1253307 and #1257588.

	* src/parsmart.cpp (EvalAtomExpr): Add fixes for PR#1253301,
	contributed by Elmar Krieger. Solves problems with phosphates and
	phosphorous acid.

	* src/typer.cpp (CheckAromaticity): Add fix for multi-ring
	compounds like heme / porphyrins, where not all rings are properly
	typed as aromatic, contributed by Elmar. Fixes PR#1259786.

	* src/formats/mol2format.cpp: Updated Tripos Mol2 format
	specfication URL, as contributed by Nick England (PR#1257712).

	* src/formats/mdlformat.cpp: Ensure no "4" aromatic bond orders
	are used when writing MDL files. If a bond is detected to have
	BO == 5, re-run Kekulize() on the molecule. Fixes problems
	mentioned in e-mail discussions initiated by Rich Apodaca.

2005-08-12  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/mdlformat.cpp: Following Nick England's discussion,
	reversed clockwise/anticlockwise in V300 read. 
	Re-added IsUp() IsDown() in V3000 write. These were removed for some 
	reason on 31stJan 2005, but are needed for double bond isomers.

2005-08-11  Chris Morley  <c.morley@gaseq.co.uk>

	* src/molecformat.h: Move test for NULL pmol.

	* src/format/smilesformat.cpp: Molecules with zero atoms now accepted.

2005-08-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* doc/Makefile.am, doc/Makefile.in: Fix bug with rename of
	Doxyfile to Doxyfile-man. Handle man page updates.

	* doc/babel.1: Updated man page with doxygen (still needs many
	updates).

	* src/base.cpp: Documentation update.

	* src/kekulize.cpp: Fix compilation error under GCC caused by
	Chris' previous change.

	* src/mol.cpp: Remove cerr calls.

	* src/obconversion.cpp (OBconversion::Description): Remove space
	at end to properly balance spacing in main.cpp.

	* src/formats/*.cpp: Add audit entries for formats not derived
	from OBMoleculeFormat.

	* src/formats/Makefile.am, src/formats/Makefile.in: Add
	cmlppformat.cpp as an example.

2005-07-29  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/obmolecformat.h: Changed to allowed molecules with
	 zero atoms to be written, since they can have meaning CML. 
	 Replaced with a obInfo message.	I hope this
	doesn't cause problems with other formats. 

	* src/formats/cmlppformat.cpp: cmlpp version of cmlformat
	For general interest only.

	* src/util.cpp, kekulize.cpp: Make some loop variables VC6 compatible.
	Maybe it is the only compiler in the universe which uses the old
	scope rules for loop variables,	but it would be better if they
	were done like:
	unsigned i;
	for(i=0;....{}
	for(i=0;... {} another loop
	to avoid "re-initialisation" errors in VC6.

2005-07-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, */Makefile.in: Add
	--disable-dynamic-modules configure option for building static
	file formats library. Should solve temporary Cygwin build problems
	-- not sure why/how formats aren't installed properly.
	Partially fixes PR#1246761.

	* src/config.h.in, src/dlhandler_unix.cpp:
	Properly handle environments where .so isn't the extension
	for modules.

	* src/formats/mol2format.cpp: Fix typo PR#1246836.

2005-07-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/fingerprints/*: New directory for finger2.cpp and
	finger3.cpp. Place new fingerprint formats here.

	* src/Makefile.am, src/Makefile.in: Ditto.
	
	* Doxyfile, doc/Doxyfile-man: Updated for new snapshot.

	* configure.in, configure, Makefile.am, Makefile.in: Generate the
	scripts interfaces automatically if SWIG is installed.

	* scripts/Makefile.am, scripts/Makefile.in: Ditto.

	* src/config.h.in: Add check for libxml2.

	* scripts/perl/*: More documentation.

	* data/Makefile.am, data/Makefile.in: Add patterns.txt fingerprint
	data to ensure it's installed properly.

	* data/atomtyp.txt, data/atomtyp.h: Add + formal charges on carbon
	to IMPVAL rules, matching Chris's change below.

	* data/patterns.txt: Add descriptive header, explaining format and
	purpose of this file.

	* src/fingerprint.cpp, src/fingerprint.h, src/kekulize.cpp,
	src/obutil.cpp, src/patty.cpp, src/formats/fastsearchformat.cpp:
	Fix signed/unsigned integer warnings.

	* src/generic.cpp: Fix copy ctor compiler warnings (call base
	class ctor).

	* src/oberror.h, src/oberror.cpp: Move "level" into OBError class
	out of OBMessageHandler. Allows OBError to format the message
	output based on the type of message.

	* src/formats/Makefile.am, src/formats/Makefile.in: Add
	APIInterface to build list. Fixes problems passing flags via
	command-line.

	* src/formats/bgfformat.cpp: Fix bug discovered during
	roundtripping -- need to move istream to the end of the file, not
	the END record.

	* src/formats/cml.cpp: Temporarily demote CML errors to info
	messages -- currently too verbose.

	* test/unitcell.cpp: Fix compilation warning with vector3
	assignment.

	* test/roundtrip.cpp: Remove debug message left inadvertantly.

	* test/smartsresults.txt: Regenerate after atom typing changes.

2005-07-27  Chris Morley  <c.morley@gaseq.co.uk>
	
	* data/atomtyp.txt: Add line for C in isocyanide to correct 
	bug 1226846

	* src/atom.cpp (ImplicitHydrogenCount): undo the last correction
	which was making other case go wrong.

	* src/main.cpp: renamed the variable which has the result of
	OBConversion::FindFormat("obapi") because an existing variable was 
	being used.

2005-07-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/atom.cpp (ImplicitHydrogenCount): Add a fix for PR#1226846
	-- in methyl isocyanide, the carbanion is marked as an implicit
	valence of 1, but a multiplicity of 0. Now handles this case correctly.

	* src/obconversion.h, src/obconversion.cpp: Switch ReadString and
	ReadFile to non-template OBBase* arguments to facilitate scripting
	access. (Handling C++ templates in SWIG is touchy.)

	* scripts/* Updates to add OBConversion framework to scripting
	interfaces. Includes new perl tests.

	* src/formats/smilesformat.cpp: Add a tab delimiter between SMILES
	string and title rather than a space as suggested in
	PR#1241609. Seem to work OK on Daylight's DEPICT online form with
	tabs or spaces.

	* src/mol.h: Up BUFF_SIZE to 32768 from 1024 to handle larger line
	lengths in input.

	* src/data.cpp: Remove duplicate BUFF_SIZE declaration.

	* src/kekulize.cpp: Migrate to use OBMessageHandler error
	reporting.

	* src/fingerprint.h: Rewrite "<nCandidates>" bit, which was
	assumed to be an HTML tag by doxygen.

2005-07-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* test/roundtrip.cpp: Migrate OBMol::Clear() statements to more
	logical place -- right before a read.

	* src/formats/turbomoleformat.cpp, src/formats/hinformat.cpp,
	src/formats/dmolformat.cpp: Fix bugs found during roundtripping --
	ReadMolecule() would go into an infinite loop looking for the
	"next" molecule in a single-molecule file.

	* src/formats/cml.cpp: Migrate to OBMessageHandler framework and
	make sure to clear the molPtr when a <molecule> beginning record
	is encountered.

	* src/obmolecformat.h (ReadChemObject): Before attempting to read
	from the istream, check to see the status -- are we at the end of
	the stream?

	* src/obconversion.h src/obconversion.cpp: New methods ReadString,
	ReadFile, WriteString, and WriteFile for convenience access
	through scripting languages which do not have "stream" support.

2005-07-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* openbabel-2.0.pc.in: Rename pkg-config data to prevent conflicts
	with 1.x releases.

	* configure.in, configure, */Makefile.in: Ditto.

	* data/torlib.txt: Update documentation on torsion rules using
	SMARTS patterns.

	* src/Makefile.am, src/Makefile.in: Add finger3.cpp to compilation
	list, remove fastsearch.cpp.

	* src/dlhandler.h, src/fingerprint.h: Add OB_ prefix to
	#define/ifdef guards.

	* src/oberror.h, src/oberror.cpp: Add methods to turn off error
	logging and limit the size of the message queue.

	* src/fingerprint.cpp: Add temporary string to eliminate
	compilation errors with GCC.

	* src/formats/chem3dformat.cpp, src/formats/ghemicalformat.cpp,
	src/formats/viewmolformat.cpp: Fix translation errors -- formats
	are supposed to be subclasses of OBMoleculeFormat.

	* tools/Makefile.am, tools/Makefile.in: Temporarily disable
	compilation of obtanimoto -- fingerprint API has changed and this
	is not updated yet.

2005-07-19  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/main.cpp src/formats/APIInterface.cpp: API options are now
	like ---errorlevel (this was -w) and the name now appears
	only in APIInterface.cpp. Added a description and called it in
	help().
	
	* src/obmolecformat.h: Changed auditMsg in WriteChemObject to
	"...Write...);

	* src/fingerprint.h, fingerprint.cpp: Changed parameters of 
	FastSearchIndexer ctor. Replaced #include "config.h" by
	#include "babelconfig.h"
	This may solve David Hoekman's compilation difficulties.

	* src/transform.cpp: Made type conversion more explicit in 
	addtotitle handler. ditto

	* src.finger3.cpp: looks for data file first in env var and 
	BABEL_DATADIR 

2005-07-13  Chris Morley  <c.morley@gaseq.co.uk>

	* src/fingerprint.cpp, /srcfingerprint.h, src/finger2.cpp: 
	modified so that fingerprints are dynamic.
	Incorporated fastsearch into fingerprint.h and .cpp.
	
	* src/finger3.cpp: Added a SMARTS pattern matching fingerprint.
	Also an incomplete src/patterns.txt. Should probably be moved to
	data folder although code to allow this not yet included.

	* src/fastsearch.cpp, src/fastsearch.h: Deleted

	* src/main.cpp: changed -w handling to pseudo-format, obapi,
	to avoid having to #include oberror.h.
	Added two lines to exclude its display in format lists.
	Added -F option to display available fingerprints.

	* src/obconversion.h: small changes in documentation.

	* src/transform.cpp; added empty test for options and addtotitle
	option (mainly for use in fastsearch)
	
	* src/formats/APIInterface.cpp: Added pseudo format to transfer
	data from user interface to API.
	
	* src/formats/fingerprintformat.cpp, src/formats/fastsearchformat.cpp
	Modified to make fingerprints dynamic.

	* src/formats/mdlformat.cpp, src/formats/smilesformat.cpp Added
	extra lines in Description to improve GUI display.

2005-07-11  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/atom.cpp, src/bond.cpp, src/chiral.cpp, src,molchrg.cpp,
	src/obmolecformat.h, src/patty.cpp, src/phmodel.cpp, src/ring.cpp,
	src/rotor.cpp: Add obAuditMsg "audit log" messages for perception
	and "assignment" methods, including methods with "chemical
	intelligence" (e.g., OBAtom::HtoMethyl or OBAtom::SetHybAndGeom).

	* src/formats/pdbformat.cpp: Transition CONECT warnings to
	obErrorLog::ThrowError calls.

	* src/oberror.cpp: Turn off default "error wrapping" of cerr to
	OBError messages.

2005-07-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/atomtyp.txt, data/atomtyp.h: Change implicit valence rules
	to fix PR#1226444. N=C(N)C is properly interpreted.

	* tools/obprop.cpp: Add hydrogens for SMILES input (checked by
	.smi extension). Fixes PR#1222443.

	* test/roundtrip.cpp: Fix checks for BOX and SMILES extensions.

2005-07-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.h (OBElement): Reorder initialization to remove
	compiler warning. Documentation updates.

	* src/data.cpp (OBElementTable::ParseLine): Format declarations
	should be ignored for red, blue, green columns in sscanf call.

	* src/main.cpp: Add error log filtering back -- not handled in
	OBConversion.
	
	* src/chains.cpp, src/mol.cpp, src/obutil.cpp, src/ring.cpp,
	src/typer.cpp:
	Add obAuditMsg messages for methods substantially altering an OBMol.

	* src/matrix.cpp (convert_matrix_f): Partly unroll loop to
	increase performance. 

	* src/rotor.h, src/rotamer.cpp, src/obconversion.h: Documentation
	updates.

	* test/roundtrip.cpp: Loop over all molecules in files, checking
	to see if one file has more molecules than another.

	* src/formats/Makefile.am, src/formats/Makefile.in:
	Rename grosmos96format to gromos (correct name of program).

	* src/formats/*format.cpp: Add BeginModify() / EndModify() calls
	as appropriate (i.e. before and after major changes to OBMol,
	including ConnectTheDots or PerceiveBondOrders). 

2005-07-04  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.h: Move include "babelconfig.h" to the top of
	all #includes to ensure proper conditional compilation. Suggested
	by Jean Brefort.

	* src/mol.h: Ensure std:: is used on Trim() declaration.

	* src/generic.h: Call Trim() for OBCommentData().

	* src/formats/Makefile.in, src/formats/Makefile.am: Merge cml.cpp
	and cmlformat.cpp into a combined library for proper loading -- as
	reported by Jean.

2005-07-04  Chris Morley  <c.morley@gaseq.co.uk>

	Some of Jean Brefort's suggested patches.

	*src/obconversion.h, src/obconversion.cpp: 
	The base class OBFormat needs a virtual destructor,but then
	derived format classes don't need their own; the compiler 
	will generate one if needed.

	I've realized that OBConversion does not need an explicit 
	copy constructor and have removed it.

	*src/formats/bgfformat.cpp, cacaoformat.cpp, ccformat.cpp.
	chem3dformat.cpp, ckrformat.cpp, featformat.cpp, shelxformat.cpp:
	assigned the filename to OBMol title when reading.

	*src/formats/mdlformat.cpp, src/formats/rxnformat.cpp,
	src/formats/smilesformat.cpp: 

2005-07-02  Chris Morley  <c.morley@gaseq.co.uk>

	*src/tokenst.cpp: Added Trim(), decl in mol.h

	*src/mol.h, src/mol.cpp (OBMol::SetTitle): Moved definitions
	to mol.cpp and added trim(). Tidier, but also overcomes
	Windows(VC++6) problem with CR left at end after getline on
	stream in binary mode, which is need for unix file compatibilty.
	For consistency should also be done for OBCommentData::SetData()
	Would this be safe?
	 
	*src/dat.h, src/data.cpp (OBElementTable::GetNumberOfElements):
	Added initialization and moved definition to to cpp file.
	MOL2Format was getting uninitialized data. Lazy loading was
	too lazy.

2005-07-01  Geoffrey Hutchison  <ghutchis@Alumina.local>

	* src/formats/chemdrawformat.cpp, src/formats/crkformat.cpp,
	src/formats/fastsearchformat.cpp, src/formats/mdlformat.cpp,
	src/bondtyper.cpp, src/oberror.cpp:
	Fix comparisons between signed and unsigned int.

	* src/base.h (OBBase): Update DoTransformations for new format.
	(OBGraphBase): Call base class from copy ctor.

	* Doxyfile, doc/api-footer.html, doc/api-header.html: Update for
	generating website SHTML documentation. Still looks good as a
	local copy.

	* src/Makefile.am, src/Makefile.in, src/formats/Makefile.am,
	src/formats/Makefile.in: Update to fix errors from "make dist" for
	snapshot.

	* scripts/perl/openbabel_perl.cpp,
	scripts/python/openbabel_python.cpp: Updated for 2005-07-01 snapshot.

2005-06-30  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/formats/smilesformat.cpp(OBSmilesParser::ParseComplex():
	Change size of symbol[] in  to 7.	Was failing on iodine 
	isotope [123I]. Another deficiency found by David Hoekman.

2005-06-30  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure: Add a check for swig to allow scripting
	language wrappers to be rebuilt.

	* Makefile.am: Make sure scripts directory will be added to dist.
	
	* src/Makefile.am: Add back matrix.cpp, which was inadvertantly
	removed.

	* src/matrix.h: Remove unnecessary forward declaration of class Vector.

	* */Makefile.in: Rebuilt.

2005-06-30  Chris Morley  <c.morley@gaseq.co.uk>

	Major change to how options handled. Many files in
	/src, /src/formats, /windows altered. (Sorry I don't have a
	tool to list them all.)
	The options now stored internally in three std::maps for
	input, output and general options. These are set on the 
	command line like -a? -x? and -? respectively.  
	
	b and s formats recently added to many formats are now input
	options.
	Derived most remaining formats from OBMoleculeFormat.

2005-06-28  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* scripts/ New directory for perl and python scripting wrappers
	(and associated setup.py and Makefile.PL build scripts).

	* src/openbabel.i, src/openbabel_python.cpp,
	src/openbabel_perl.cpp, src/openbabel.py src/openbabel.pm: 
	Moved, as above.

	* src/main.cpp: Add -w# flag for filtering different error/warning
	levels with OBMessageHandler.

2005-06-27  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/torlib.txt, src/torlib.h: New files to implement torsional
	rules from rotor.cpp::OBRotorRules. Does not (yet) describe all
	features in OBRotorRules::ParseLine() code.

	* src/rotor.cpp: Use it (rather than declaring the data here).

	* data/Makefile.am, data/Makefile.in: Add rules for torlib.

	* src/phmodel.cpp, src/mol.h, src/oberror.h, src/bondtyper.cpp:
	Add documentation for global variables.

	* src/oberror.h, src/oberror.cpp: Add new class obLogBuf, a
	streambuf class to filter output going to cerr. Add new methods
	OBMessageHandler::StartErrorWrap and ::StopErrorWrap to turn on
	(default) and off wrapping of cerr.

2005-06-25  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/amberformat.cpp, src/formats/cacaoformat.cpp,
	src/formats/carformat.cpp, src/formats/cmlformat.cpp,
	src/formats/dmolformat.cpp, src/formats/gamessformat.cpp,
	src/formats/gaussformat.cpp, src/formats/grosmos96format.cpp,
	src/formats/jaguarformat.cpp, src/formats/mopacformat.cpp,
	src/formats/mpqcformat.cpp, src/formats/nwchemformat.cpp,
	src/formats/pdbformat.cpp, src/formats/qchemformat.cpp,
	src/formats/shelxformat.cpp, src/formats/turbomoleformat.cpp, 
	src/formats/unichemformat.cpp, src/formats/viewmolformat.cpp,
	src/formats/xyzformat.cpp:
	Add command-line options -xs to prevent PerceiveBondOrders from
	running (i.e., single bonds only) and -xb to prevent bonding via
	ConnectTheDots entirely.

	* src/formats/PQSformat.cpp, src/formats/alchemyformat.cpp,
	src/formats/balstformat.cpp, src/formats/bgfformat.cpp,
	src/formats/boxformat.cpp, src/formats/chem3dformat.cpp,
	src/formats/chemdrawformat.cpp, src/formats/crkformat.cpp,
	src/formats/featformat.cpp, src/formats/ghemicalformat.cpp,
	src/formats/hinformat.cpp, src/formats/mmodformat.cpp: 
	Update to use OBMoleculeFormat, eliminate redundant code.
	
2005-06-25  Chris Morley  <c.morley@gaseq.co.uk>

	* src/mol.cpp, src/mol.h, src/transform.cpp: Added
	OBMol::ConvertDativeBonds() (e.g. [N+]([O-])=O to N(=O)=O )
	and -b option to invoke it.

	* src/formats/fastsearchformat.cpp, 
	src/formats/fingerprintformat.cpp:
	Used ConvertDativeBonds and -b option so that searches are 
	the same with and with dative bond form	in data or target.

	* src/finger2.cpp (getFragments): Removed code which only
	partially does the above.

2005-06-24  Chris Morley  <c.morley@gaseq.co.uk>

	* src/finger2.cpp (DoRings) Add the non-ring form of all ring
	rotations to remedy some of faults found by David Hoekman.

2005-06-24  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* Doxyfile, doc/api-header.html, doc/api-footer.html,
	doc/api-style.css: Add custom documentation header, footer, and
	stylesheet.

	* src/generic.h, src/generic.cpp (OBConformerData): Initial
	framework for custom per-conformer data. Still need to add access
	to individual conformer "frames" and code to add/delete frames
	when adding new conformers to an OBMol.

2005-06-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/configure.in, src/configure: Generate babelconfig.h from
	config.h using AC_CONFIG_COMMANDS as recommended by Jean Brefort.

	* src/*.h src/*.cpp, src/openbabel.i: Convert back from config.h
	(which still conflicts with other packages on UNIX-ish systems) to
	babelconfig.h, as above.
	
	* src/formats/viewmolformat.cpp: Switch to OBMoleculeFormat.
	(Testing the difference in compiled code size. Not much.)

	* src/formats/smilesformat.cpp: Remove asserts. (Asserts should
	not be included in "production" code, IMHO.)

	* Doxyfile, */*.h */*.cpp: Documentation updates.

2005-06-23  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/math/vector3.h, src/math/vector3.cpp: Moved the initiallization
	of global variables VZero etc from vector3.h to vector3.cpp.
	This is recorded for 2005-04-15 but I must have forgotten to 
	commit it. Added OBAPIs for DLL build compatibility.
	
	* src/math/matrix3x3.h: Added OBAPIs.    

2005-06-22  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/kekulize.cpp: Update with Fabien's latest version, fixing
	PR#1214545 and adding doxygen documentation.

	* src/bondtyper.cpp (AssignFunctionalGroupBonds): Mark assigned
	bonds with KSingle, KDouble, KTriple for OBMol::Kekulize()
	routine. Fixes PR#1219611.

	* src/obmolecformat.h, src/Makefile.am, src/Makefile.in,
	src/formats/Makefile.am, src/formats/Makefile.in: Move
	obmolecformat.h to src/ from src/formats.

	* src/obifstream.h: Removed. Completely unused.

	* src/rotamer.h: Remove Read/WriteBinary declarations and
	OBBinaryDBase -- unused. We cannot ensure compatibility with
	OEBinary (which is now a proprietary format).

2005-06-20  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/mol2format.cpp (ReadMolecule, WriteMolecule):
	Contributions from Zhiguo Liu, notably to clean up bonding table,
	and to mark O.co2 bonds as "aromatic."

	* src/mol.h, src/atom.cpp: Add new methods IsHbondDonor(),
	IsHbondAcceptor(), IsHbondDonorH(), contributed by Zhiguo Liu.

	* src/vector3.h, src/vector3.cpp: Add new method Point2Plane() for
	calculating the distance between a point (vector3) and a point
	defined by three points (vector3), contributed by Zhiguo Liu.

2005-06-17  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/data.h, src/data.cpp (OBTypeTable): New methods GetToType
	and GetFromType -- primarily for debugging purposes.

	* src/formats/mol2format.cpp (WriteMolecule): Make sure
	OBTypeTable is always set to translate to SYB format -- would
	sometimes be reset to other formats. Fixes PR#1221324.

2005-06-16  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/generic.h, src/generic.cpp (OBSymmetryData): New class for
	storing point group and space group symmetry information.
	(OBUnitCell): Add support for storing translation vectors for
	cleaner roundtrip support from v1,v2,v3 ->a,b,c...->v1,v2,v3 and
	for origin offsets.

	* src/Makefile.am, src/Makefile.in: Add hints for perl module
	compilation.

	* src/openbabel.pm, src/openbabel_perl.cpp: Change Perl wrapper
	namespace to Chemistry::OpenBabel on advice of other perl users.

2005-06-14  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/mol.h: Remove (temporarily) un-implemented BeginConformer,
	NextConformer, and AssignResidueBonds methods. These block use of
	the SWIG python wrappers.

	* src/openbabel.py, src/openbabel_python.cpp: Regenerate. SWIG
	wrapper will now compile and import cleanly into Python.

	* src/bondtyper.cpp (AssignFunctionalGroupBonds): Make sure
	OBBondTyper data is initialized -- and ensure loop termination is
	handled correctly. Resolves part of PR#1219611.

	* src/openbabel.pm, src/openbabel_perl.cpp: New files from SWIG --
	wrappers for Perl.

2005-06-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure: Update scandir test with fix from Jean
	Brefort.

	* Makefile.am, Makefile.in: Make sure windows/ directory is
	included in distribution.

	* src/Makefile.am, src/Makefile.in: Include hints for SWIG wrapper
	generation. Make sure openbabel.i is included in dist.

	* src/mol.h, src/atom.cpp, src/data.cpp, src/main.cpp,
	src/obconversion.cpp, src/formats/alchemyformat.cpp,
	src/formats/balstformat.cpp, src/formats/pdbformat.cpp,
	test/roundtrip.cpp: Move declarations of rint, snprintf,
	strncasecmp (for platforms that require replacement functions) out
	of mol.h header and into source files that particularly use these
	functions. (Pointed out by Jean Brefort.)

	* src/openbabel.i, src/openbabel.py, src/openbabel_python.cpp:
	Updated SWIG development wrappers.

	* src/kekulize.cpp: Update with Fabien's latest version, should
	fix recent bug reports (no assigned PR for these). Bug fixed
	when huckel rule not satisfied + path search.

2005-06-07  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* tools/obgrep.cpp: Fixed mistake(?) in #elif define to compile
	cleanly on GCC.

2005-06-04  Chris Morley  <c.morley@gaseq.co.uk>

	* tools/obgrep.cpp: Correct bug 1213806 and modify to allow 
	Windows build

	* windows/: Add obgrep/ build files and XGetOpt.cpp and XGetOpt.h
	for Windows getopt port.

2005-06-03  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, src/config.h.in: Define SCANDIR_CONST
	for the matchFiles scandir() filter function. Should solve problem
	between BSD (which doesn't need const) and Linux (which does).

	* src/dlhandler_unix.cpp: Use it.

2005-06-02  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/dlhandler_unix.cpp: Fix cast bug reported and fixed by Jean
	Brefort.

	* configure.in, configure, src/Makefile.am, tools/Makefile.am,
	test/Makefile.am, src/config.h.in, Makefile.in, src/Makefile.in,
	data/Makefile.in, doc/Makefile.in, src/Makefile.in,
	src/formats/Makefile.in, src/math/Makefile.in, test/Makefile.in,
	test/cmltest/Makefile.in, tools/Makefile.in:
	Add test for scandir cast above. Add test for dlopen in libdl and
	add it to LDFLAGS if needed. Should fix bug reported by Jean
	Brefort.

2005-06-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* configure.in, configure, src/config.h.in: Bump version for
	2005-06-01 snapshot.

	* test/attype.00.smi: Add label for last test molecule.

	* test/smartsresults.txt: Regenerate using current atom type
	patterns.

	* test/smartstest.cpp: Make sure to set input and output formats
	-- otherwise dynamic loading does not find SMILES importer on UNIX.

	* test/unitcell.txt: Switch to ZnO unit cell for new unit cell
	tests.

	* test/unitcell.cpp: Added some debugging statements to test unit
	cell translation vectors. (Currently do not seem to "roundtrip"
	properly.)
	
	* tools/obgrep.cpp: Allow input from STDIN to address feature
	request PR# 1116202.

2005-05-27  Fabien Fontaine <fabfont@users.sourceforge.net>

	* src/kekulize.cpp: Fix bugs reported by Chris Morley and David
	Hoekman.

2005-05-26  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* acinclude.m4: Add CHECK_ZLIB macro for detection of zlib
	compression library.

	* configure.in, configure, src/config.h.in: Use it.
	
	* aclocal.m4, config.guess, config.sub, ltmain.sh: Update for libtool
	1.5.18.

	* src/Makefile.am, src/Makefile.in: Ignore kekulize.cpp and
	libinchi. Mark library as 1:0:0 version so that libopenbabel from
	1.100.x series can coexist.

	* src/formats/Makefile.am, src/formats/Makefile.in: Ignore InChI
	code until license issues can be resolved. Do not compile
	inchiformat.cpp.

	* src/bond.cpp: Use PerceiveKekuleBonds() instead of
	NewPerceiveKekuleBonds().

	* src/bondtyper.cpp, src/fastsearch.cpp, src/finger2.cpp,
	src/fingerprint.cpp, src/kekulize.cpp, src/obconversion.cpp,
	src/transform.cpp, tools/obfit.cpp, tools/obrotate.cpp:
	Standardize top comments.

	* src/openbabel.i: Initial SWIG file for scripting language
	wrappers. Modules currently build, but experiencing linking
	problems on Mac OS X.

	* src/mol.h: Declare replacement C library functions rint(),
	snprintf(), and strncasecmp() as namespace std:: to fix compile
	problems with SWIG.

2005-05-22  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.h, src/obconversion.cpp: Added IsFirstInput().

	* src/formats/obmolecformat.h: Implemented -j format to aggregate
	into a single output molecule.

	* src/transform.cpp (OBMol::ClassDescription): added -j option 
	
	* src/formats/mdlformat.cpp (ReadMolecule): Added offset 
	reading in a mdl sdf/mol file to a OBMol object which already has 
	atoms will now add a disconnected fragment.

2005-05-18  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* data/Makefile.am data/Makefile.in: Make sure that data files are
	included in a "make dist".

	* src/Makefile.am, src/Makefile.in: Build dlhandler_unix.cpp. Use
	dynamic OBFormat loading.

	* src/dlhandler_unix.cpp: Add initial support for dynamic loading
	file format modules using $(libdir)/openbabel/*.so
	paths. Currently this can cause problems when building/debugging
	before installation. I have a symlink from
	/usr/local/lib/openbabel -> $(top_builddir)/src/formats/.libs as a
	workaround.

	* src/formats/Makefile.am, src/formats/Makefile.in: Build each
	format as an independent shared-module.

	* src/*.h: Minor updates. Make sure to only #include config.h once
	per header. Add standard top comments (with description of each
	file and Open Babel URL, etc.) to all headers.

	* src/dlhandler_win32.cpp: Add file description to top comments.

2005-05-14  Chris Morley  <c.morley@gaseq.co.uk>

	* src/fingerprint.h, src/finger2.cpp: Yet more bug fixes following 
	comments by David Hoekman.

	* fingerprintformat.cpp: Added IsPossibleSubstructure() and the
	display of its result.

2005-05-13  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/base.cpp, src/base.h, src/bitvec.h, src/data.cpp,
	src/data.h, src/dlhandler.h, src/fastsearch.cpp, src/grid.h,
	src/kekulize.cpp, src/main.cpp, src/matrix.h, src/mol.h,
	src/obconversion.h, src/oberror.cpp, src/obifstream.h,
	src/obutil.cpp, src/obutil.h, src/patty.cpp, src/phmodel.cpp,
	src/residue.cpp, src/rotor.cpp, src/tokenst.cpp, src/typer.cpp,
	src/formats/PQSformat.cpp, src/formats/pdbformat.cpp,
	src/formats/povrayformat.cpp, test/matrixtest.cpp,
	test/ringtest.cpp, test/roundtrip.cpp, test/smartstest.cpp:
	Rename babelconfig.h to config.h and conditionally #include it
	based on the HAVE_CONFIG_H define (which on UNIX is passed by the
	Makefile). This solves PR#885828 in terms on installation and
	including the build-dependent babelconfig/config headers.

	* configure.in, configure, Makefile.in, doc/Makefile.in,
	src/Makefile.am, src/Makefile.in, src/math/Makefile.in,
	test/Makefile.in, test/cmltest/Makefile.in, tools/Makefile.in: Ditto.

	* data/Makefile.am, data/Makefile.in: Update for version-dependent
	data installation (e.g. /usr/local/share/openbabel/2.0.0/*).

	* src/formats/Makefile.am, src/formats/Makefile.in: Don't directly
	include libinchi (which is now installed separately). Set for
	installation of libobformats, which should be dynamically linked
	with libopenbabel.

	* src/formats/inchi/Makefile.am, src/formats/inchi/Makefile.in:
	Fix problems with case-sensitive filenames. (i.e., filenames
	changed case in InChI 1.0 release, but were already in CVS tree
	with lowercase.) Set for shared-library installation of libinchi.
	
2005-05-08  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats.inchiformat.cpp: remove incomplete code for reading
	InChi. Add URL. Post libinchi.lb abd libinchi.dll. More options have
	been documented, but are not yet implemented in OB.
	
	*src/base.h, src/base.cpp: The latest MS compiler is more picky, and
	(correctly) objects to an iterator being returned as NULL in
	OBGraphBase::BgnMatch() and EndMatch(). To work round this the whole
	of the code  for "substructure search functions" has been commented 
	out. These are virtual placeholder functions anyway and are not used
	internally in the real substructure routines. In the unlikely event 
	of them being found to be used in an external program we'll have to 
	find another fix. 

	* Removed OBConversion::GetDimension(),SetDimension(),SetTitle(),
	Redefined SetTitle() to return InFileName as a c_str.
	Made return type of strrchr() const char* (picky compiler). 
	
	* src/formats/CSRformat.cpp,PQSformat.cpp,alchemyformat.cpp,balstformat.cpp,
	bgfformat.cpp,boxformat.cpp,acaoformat.cpp,acheformat.cpp,
	chem3dformat.cpp,chemdrawformat.cpp,chemtoolformat.cpp,
	crkformat.cpp,cssrformat.cpp,dmolformat.cpp,featformat.cpp,
	fhformat.cpp,amessformat.cpp,gaussformat.cpp,ghemicalformat.cpp,
	grosmos96format.cpp,hinformat.cpp,jaguarformat.cpp,mm3format.cpp,
	mmodformat.cpp,mol2format.cpp,mopacformat.cpp,mpqcformat.cpp,
	nwchemformat.cpp,pdbformat.cpp,povrayformat.cpp,qchemformat.cpp,
	smilesformat.cpp,tinkerformat.cpp,unichemformat.cpp,viewmolformat.cpp,
	xedformat.cpp,xyzformat.cpp,zindoformat.cpp:
	Removed
	    const char *dimension = pConv->GetDimension();
	
	* src/formats/cmlformat.cpp, mdlformat.cpp, pqsformat.cpp: 
	changes to dimension handling (now an int not a string).
	
	* src/bitvec.h: replace EXTERN by OBAPI extern and tidied.
	
	* src/obiter.h: added several OBAPI.
	 
	* src/dlhandler.h, dlhandler_win32.h; Sleep() added.

	* src/main.cpp: Space after -i and -o now allowed (but not yet
	other options with text). I'm told it is more unix.
	Made return type of strchr() const char* (picky compiler).
	Commented out debug code to pause at end (better compiler).
	
	Some other files tidied - removal of unused variables.
	Somewhere else(?) changed a new loop variable name from i to j
	(rubbish old compiler). 

2005-05-06  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/formats/inchi: Updated with InChI v1.0 release code.

	* src/formats/inchiformat.cpp, src/formats/inchi_api.h: Ditto.
	
	* src/formats/inchi/Makefile.am, src/formats/inchi/Makefile.in,
	src/formats/Makefile.am, configure.in, configure:
	Update Makefiles for InChI code.

	* src/fingerprint.cpp, src/kekulize.cpp, src/obutil.cpp,
	src/patty.cpp, src/rotor.cpp: Change error reports 
	to go to cerr instead of cout. OBMessageHandler will soon grab
	cerr, but shouldn't block cout (since it's used for output through
	pipes).

	* src/main.cpp: Send conversion message to clog instead of cerr,
	avoiding problems with OBMessageHandler rerouting cerr.

	* src/mol.h, src/mol.cpp: New methods GetFormula() and
	SetFormula() to handle stoichiometric formulas.

	* src/formats/reportformat.cpp: Use it.

	* src/data.h: New method GetNumberOfElements() to return the
	number of elements in an OBElementTable.

	* src/generic.h: Change SetAttribute to take "const" string
	arguments. Ditto for SetData for OBCommentData and SetValue for
	OBPairData.
	
2005-04-24  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/obconversion.cpp, src/obconversion.h: 
	Change implementation of inputfile seek position, to prevent
	it being affected by newlines at the end of the file.
	Changed option to ignore errors to -e from -c which was already
	used for centre coordinates. Removed -z option.
	Remove some obsolete commented out code. 

	* src/main.cpp: Removed -z option for using previously stored 
	options. This was conflicting with use with Apache, and was 
	never of enormous benefit anyway.
	
	* src/finger2.cpp, src/fingerprint.h: fingerprint2 revised
	to properly use canonical hash values. Molecules were being missed.
	 
	* src/formats/fastsearchformat.cpp: Ensure datafile file 
	properly read when it is the specified input file.

	* windows/*.*: Updated Windows build files
	

2005-04-19  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* NEWS: Add notes for formats that were changed/deleted.
	
	* configure.in, configure, src/babelconfig.h.in: Update to #define
	OBAPI.

	* test/matrixtest.cpp: Include babelconfig.h.

	* src/bitvec.h: Make sure to define EXTERN if not otherwise
	defined.

	* src/obiter.cpp, src/obiter.h: STL-style iterators (and #define'd
	shorthand) for OBAtom, OBMol, OBBond and OBResidue.
	
	* src/Makefile.am, src/Makefile.in: Add fastsearch.cpp,
	finger2.cpp, obiter.cpp, fastsearch.h, obiter.h.

	* src/formats/Makefile.am, src/formats/Makefile.in: Add
	fastsearchformat.cpp.

	* src/finger2.cpp (RemoveDuplicates): Enforce "const"
	declaration.

	* src/fingerprint.h (fingerprint2): Enforce std:: namespace.
	
	* src/formats/smilesformat.cpp (SpecificationURL): Add pointer to
	Daylight webpage.
	
	* src/formats/mpqcformat.cpp: Add MPQC input format.
	
	* src/formats/qchemformat.cpp, src/formats/povrayformat.cpp,
	src/formats/nwchemformat.cpp, src/formats/CSRformat.cpp,
	src/formats/bgfformat.cpp, src/formats/cacaoformat.cpp,
	src/formats/cacheformat.cpp, src/formats/chemtoolformat.cpp,
	src/formats/hinformat.cpp: Minor fixes to descriptions.

2005-04-17  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/fastsearch.h, src/fastsearch.cpp,
	src//formats/fastsearchformat.cpp:
	Mod to keep fastsearch index in memory after it has 
	been loaded, to shorten subsequent queries.

2005-04-15  Chris Morley  <c.morley@gaseq.co.uk>
	
	* src/*.h, src/vector3.cpp, windows/OBDLL/OBDLL.dsp
	windows/OBDLL/OBDLL.mak :
	To assist DLL builds, added OBAPI macro to class declarations, 
	global functions and variables in API files. OBAPI needs to
	be set to nothing in babelconfig.h for non-DLL builds. 
	Had to moved the initiallization global variables VZero etc 
	from vector3.h to vector3.cpp, where it should have been anyway.
	OBDLL can now be built in a conventional way. The whole API 
	should be exported but I may have missed some items.

2005-04-13	Chris Morley  <c.morley@gaseq.co.uk>

	*src/fastsearch.cpp, src/formats/fastsearchformat.cpp:
	Separated format from API code.
	Default fingerprint length is now 32 words.
	 
2005-04-12  Chris Morley  <c.morley@gaseq.co.uk>

	* src/finger2.cpp src/fastsearch.h src/fastsearch.cpp:
	Added. (Fastsearch format really needs to be separated and put
	into src/formats.)

	* src/formats/fingerprintformat.cpp: Extensive revision to
	allow choice of fingerprint type and Tanimoto calculation.

	* src/obconversion.h, src/obconversion.cpp (Convert): 
	Changed implementation of OneObjectOnly
	Added capability for the write format to retrieve the seek position
	of the object in the input file: wInpos, GetInPos().
	Added READBINARY and WRITEBINARY options in format flags
	which are implemented when files are opened. Applicable for 
	binary formats (which there are currently none?) in non-unix systems.
	(FullConvert), (OpenAndSetFormat)For VC++6 in Windows, 
	opening all files in binary mode seems to	allow	unix text files 
	to be read. But in case this messes	up Macs or other Windows 
	implementations it is dependent on a macro ALL_READS_BINARY 
	being set in babelconfig.h.

	* src/fingerprint.h, src/fingerprint.cpp (HashFragments):
	Changed h and mod from long int to unsigned int to avoid
	memory corruption with molecules with heavy atoms. Added
	the declarations for fingerprint2 class and global
	GetFingerprint().  

	* src/bitvec.h: Comments to highlight resizing behaviour. 

	* src/format/smilesformat.cpp (OBSmilesParser::ParseSmiles):
	Mod to prevent unpaired ) causing program to hang.

	* windows: Updated build files

2005-04-06  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/inchi: added InChI 1.0 files from NIST.

2005-04-01  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.cpp: Change "Readonly" and "Writeonly" to
	"Read-only" and "Write-only" to match more typical computer
	documentation (e.g., Windows, UNIX and Mac generally use hyphens.)
	
	* src/formats/viewmolformat.cpp (ReadMolecule): Fix
	multiple-molecule support. Read loop would never hit an $end
	record and break, thus reading all molecules in a multi-molecule
	file as one.

	* src/formats/PQSformat.cpp (ReadMolecule): Replace rindex ->
	strrchr for ISO C/C++ compliance. (Fixes problems with compiling
	on MinGW/gcc.)

	* src/formats/inchiformat.cpp: Change for loop to while loop to
	fix compile problems with gcc (and make slightly more readable
	IMHO), change comment to remove "??/" interpreted as a Unicode
	trigraph by gcc, and fix mol.SetTitle() call to fix compilation
	problems with gcc/g++.

	* src/formats/gamessformat.cpp, src/formats/gaussformat.cpp,
	src/formats/nwchemformat.cpp, src/formats/qchemformat.cpp: Break
	read and write support into separate formats since output formats
	are read-only and input formats are write-only.
	
2005-04-01  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/inchiformat.cpp, src/formats.inchi_api.h,
	windows/InChI_DLL.dll and windows/InChI_DLL.lib
	my build of version 1.0RC from NIST : writes InChI; format
	is writeonly because reading code, although included is
	incomplete. I haven't put the source code for the DLL up,
	although it is cross-platform, because I want to check with
	NIST first. 
	 
	* src/data.cpp, src/data.h: OBElementTable::GetAtomicNum 
	Changed unsigned short int& to int&. More consistent with other 
	ints since have to use the exact int type when calling. 
	Now used in mdlformat.cpp.

	* src/formats/mdlformat.cpp: V2000 writes and reads isotope info
	(M ISO line),	V2000 V3000 reads D and T. Changes in V2000 
	writing M RAD	and header. Is #include <iomanip> a problem? 

2005-03-25  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.cpp, src/main.cpp, src/obconversion.h:
	Multiple input files can now be different formats
	
	* src/onconversion.h: Added virtual function 
	OBFormat::MakeNewInstance to meet possible future need for
	formats with member functions. (InChIFormat will.)

	* src/formats/smilesformat.cpp: Can now output isotope info and 
	input and output H and H2. Pharma might be able to do without 
	these but Combustion can't.
	
	* windows/OBGUI/ Several files: Mods to ease use with multiple 
	input files, but interface could still do with some work. 
	
2005-03-23  Geoffrey Hutchison  <babel@geoffhutchison.net>

	* AUTHORS, NEWS, README: Begin updating for a 2.0 release.

	* data/extable.txt: Mark as deprecated. (Should this be deleted?)

	* src/*.h, src/*.cpp, src/math/*.cpp, src/math/*.h,
	src/formats/*.cpp, tools/*.cpp, test/*.cpp: Update copyright
	statements to include 2005 and standardize text.

	* data/Makefile.am: Make sure to include *.h files in a distribution.

	* src/Makefile.am: Make sure to include dlhandler.h,
	obconversion.h, and reaction.h in a distribution.

	* src/formats/Makefile.am: Make sure to install obmolecformat.h
	and include in distribution.

	* data/Makefile.in, src/Makefile.in, src/formats/Makefile.in:
	Regenerated.
	
	* src/generic.h: Expand obDataType to include more typical
	chemical data and offer 16 custom data slots obData0 through
	obData15. In particular, adds obConformerData and obSymmetryData
	for future enhancements.

	* src/obutil.cpp, src/tokenst.cpp, src/typer.h: Added more doxygen
	documentation.

	* tools/obfit.cpp: Further improvements from Konrad -- now loops
	through multiple matches to fit the match with the smallest RMSD.

2005-03-07  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/formats/cml.cpp (endMolecule): Only call InternalToCartesian
	if required (i.e., only internal coords available, all cartesian
	coords are zero) and only call bonding methods (ConnectTheDots and
	PerceiveBondOrders) if needed. Provides a huge performance
	increase on most files.

	* tools/obfit.cpp: Modified to output an RMSD of the fit as
	contributed by Konrad Koehler. Addresses PR#1157440.

2005-03-02  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/parsmart.cpp (OBSSMatch::Match): Added check to prevent
	accessing atoms that do not exist -- appears in PR#1119970.

2005-03-02  Chris Morley  <c.morley@gaseq.co.uk>

	* src/mol.h, babelconfig.h Move some DLL-related #defines
	to babelconfig.h

	* src/oberror.h Declare global obErrorLog here to aid DLL builds.

	Update Windows build files

2005-02-27  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/atom.cpp (GetType): Call global OBTypeTable ttab rather than
	declaring a local version.

	* src/mol.cpp (RenumberAtoms): Add documentation and return
	without action if supplied vector is the wrong size.

2005-02-27  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.cpp: Removed ThrowError and #include mol.h
	Added -c option for continuing with next molecule after an error
	
2005-02-17  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/formats/ghemicalformat.cpp (ReadMolecule): Add some initial
	support for ghemical 1.5x files. Reported by Avell Diroll.

	* src/formats/mdlformat.cpp (ReadMolecule): Improve flexibility in
	handling non-standard SDFiles. Now handles "VAMP" output, thanks
	to an example file from Dr. James Smith, Erlangen.

	* src/data.h, src/data.cpp (OBElementTable::GetAtomicNum): Fix bug
	with isotope support as pointed out by Chris Morley -- need to
	pass a reference back to the isotope value. Added a
	backwards-compatible one-argument function which throws away the
	isotope value.

	* src/obconversion.cpp (Convert): Throw a debugging error if the
	ReadChemObject method returns false.

	* aclocal.m4, config.guess, config.sub, install-sh, ltmain.sh,
	missing, mkinstalldirs: Update with latest GNU versions from
	Automake 1.9.5 and libtool 1.5.14.

	* configure, */Makefile.in: Updated automatically from above.

2005-02-15  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/formats/mdlformat.cpp (ReadMolecule): Fix bug where long
	property lines would set ifs.fail() and consequently file appeared
	to be at EOF. Since property lines can be >1024 bytes, read
	using std::getline(ifs,string). Fixes PR#1120738, thanks to
	Dr. Christian Laggner for the bug report.

	* doc/Makefile.am: Fix bug in doxygen rule.

	* configure, configure.in, */Makefile.in: Regnerated.
	
	* src/data.cpp, src/data.h (CorrectedBondRad): Change to use
	covalent radii -- this is used internally in many places and
	cannot easily be removed. Add more doxygen documentation.

2005-02-10  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/mol.cpp (operator+): Fix PR#119352 to copy bond flag
	information when adding bonds. Thanks to Daen de Leon for the bug
	report and fix.

2005-02-09  Geoff Hutchison  <babel@geoffhutchison.net>

	* data/atomtyp.txt: Change implicit valence rules for acidic
	oxygens -- ensure default AddHydrogen() response is to add acidic
	protons, but correctForPH will not. Fixes PR # 1106706.

	* data/atomtyp.h: Update using bin2hex.pl.
	
	* doc/babel.1: Update for new options.

	* src/mol.h: Add oberror.h and update documentation and
	indentation. Add OB_POS_CHIRAL_ATOM and OB_NEG_CHIRAL_ATOM flags for
	marking + and - chiral volume and accessor methods.
	
	* src/chiral.cpp(GetChirality): Set + and - chiral volume for
	atoms using these methods.

	* src/main.cpp: Update to handle -imime and -omime flags to set
	format by supplied MIME type.

	* src/obconversion.cpp, src/obconversion.h: Update to handle MIME
	types with an additional format map with RegisterFormat(), rather
	than "polluting" the extension map.

	* src/formats/alchemyformat.cpp, src/formats/cmlformat.cpp,
	src/formats/crkformat.cpp, src/formats/mdlformat.cpp,
	src/formats/mmodformat.cpp, src/formats/mol2format.cpp,
	src/formats/mopacformat.cpp, src/pdbformat.cpp,
	src/smilesformat.cpp: Register MIME types with the new MIME map as
	above.

	* src/oberror.cpp: Add a global OBMessageHandler obErrorLog.

	* src/obutil.cpp (ThrowError): Update to use obErrorLog -- to
	migrate code to the new error logging OBMessageHandler class.
	
	* src/bitvec.cpp, src/mol.cpp, src/phmodel.cpp, src/rotor.cpp,
	src/formats/chem3dformat.cpp, src/xyzformat.cpp: Update
	ThrowError() calls to use obErrorLog as above.

	* configure.in: Add support to conditionally build documentation
	if doxygen is availale. Not currently used.

	* */Makefile.in: Update using automake for above.
	
2005-02-09  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.h, src/obconversion.h.cpp: Added
	OBFormat::SkipObjects and its use in Convert and SetStartAndEnd 
	
	* src/formats/mdlformat.cpp: Changed wording in option
	description. "Default" means something in Windows GUI!
	Added SkipObjects()
	Added output of wedge and hash in V2000 as suggested previously
	in a discuusion(?). But stereochemistry needs revisiting!   
	
	* src/formats/smilesformat.cpp: ReadMolecule erroneously always
	returned true, now corrected. Removed SMIFormat::SmiToMol()
	Added SkipObjects()
	Added support for input of radicals like[O.]  	

2005-01-31  Chris Morley  <c.morley@gaseq.co.uk>

	* src/obconversion.h, src/obconversion.h.cpp: rationalized
	SetInFormat, etc; Added GetInFile; corrected bug in IsOption  

	* src/main.cpp: added -? option as synonym of -H 
	Check for empty FileList;  
	In Windows moved saved options file from current folder to TEMP

2005-01-30  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/bondtyper.cpp (ParseLine): Make sure loop variable "i" is
	initialized, pointed out by Chris Morley.

	* data/element.txt: Add note about deprecated "bond order" radii.

	* src/base.h: Remove \defgroup documentation bits.

	* src/data.h (OBElementTable): Mark bond order radii methods as
	deprecated.

	* src/chiral.cpp: Add std:: namespace to match headers for
	documentation. Convert comments to doxygen docs.

	* src/data.cpp (OBGlobalDataBase): When searching for data files,
	check the environment variable directories, then the compiled-in
	directory path -- starting with a subdirectory for BABEL_VERSION,
	followed by the parent directory. Allows for versioning the data
	files.

	* src/main.cpp: Output "molecules converted" to cerr and use
	"molecule" converted if only one molecule was found.

	* src/mol.h: Add documentation about "up" and "down" bond flags
	vs. wedge and hash types.

	* src/obconversion.h, src/obconversion.cpp: Allow MIME types to be
	registered to match particular extensions/IDs.

	* src/oberror.h, src/oberror.cpp: New class OBMessageHandler to
	organize errors/messages and allow errors to go to cerr or another
	output stream. Allows filtering of error levels.

	* src/formats/carformat.cpp: Correct a variety of problems with
	reading multiple molecules in a CAR file and read in 3D unit cell
	information if supplied. Bugs reported by Jean Dessolin. Fixes PR#
	1060110.

	* src/smilesformat.cpp: Set OBMol dimension to 0.

	* src/mdlformat.cpp: Output v3000 files for >999 atoms or >999
	bonds, as suggested by MDL standard specification. Set OBMol
	dimension as needed.

	* src/crkformat.cpp (CRK2DFormat::ReadCRK): Fix bugs with
	wedge/hash and up/down bonds. Assign OBMol dimension to 2.

	* src/cml.cpp: Ditto.

	* src/chemdrawformat.cpp (ReadMolecule): Set OBMol dimension to 2.
	
	* src/formats/*.cpp: Ensure consistency of format description
	naming, particularly to match Open Babel 1.100.x and Babel 1.6.
	
2005-01-20  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/main.cpp: For non-Win32 platforms, use $HOME/.openbabel to
	store recent options -- keeping with standard UNIX practices.

	* src/rotamer.cpp, src/rotamer.h: Move OBRotamerList from
	now-defunct binary.* files to specific rotamer files -- binary
	format is now obsolete.

	* src/Makefile.am: Remove binary.* and rename to rotamer.*.

	* tools/obrotate.cpp: Rename binary.h to rotamer.h
	
	* src/data.cpp, src/data.h: Excise io_type and OBExtensionTable.

	* data/extable.h, data/extable.txt: Ditto.

	* data/Makefile.am: Ditto.

	* tools/*.cpp: Ditto.

	* src/formats/cml.cpp: Remove reference to GetInputType and
	GetOutputType.

	* src/mol.h, src/mol.cpp: Add OBMol:_dimension, along with
	accessor methods GetDimension() and SetDimension() for specifying
	the dimension of the OBMol coordinates. Default is 3 for now --
	conversion or user code must specify this! Among other PRs, fixed
	PR# 110671.

2005-01-19  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/bondtyper.h src/bondtyper.cpp: New method
	AssignFunctionalGroupBonds() to replace code in
	mol.cpp::PerceiveBondOrders() -- assigns generic SMARTS patterns
	and then angle/distance constrained SMARTS patterns (like
	carbonyl).

	* src/mol.cpp: Use the new OBBondTyper method above.

	* configure, aclocal.m4, config.guess, config.sub, ltmain.sh,
	 */Makefile.in: Update with latest automake/libtool/autoconf
	versions (automake-1.9.4, libtool-1.5.10 autoconf 2.59).

2005-01-13  Chris Morley  <c.morley@gaseq.co.uk>

	* src/formats/obmoleculeformat.h: Added. Class to reduce code duplication.  
	* src/formats/mdlformat.cpp: added V3000 support   
	* src/formats/smilesformat.cpp: added option for radical output as lc  
	* src/formats/fingerprintformat.cpp Added. 

2005-01-13  Chris Morley  <c.morley@gaseq.co.uk>

	Correct number of implicit hydrogens in radicals
	Previously used decremented implicit valency which sometimes was reset;
	now correct with _spinmultiplicity. 
	* src/atom.cpp (ImplicitHydrogenCount): add code   
	* src/mol.cpp (AddHydrogens): (2 routines) add code
	* src/mol.cpp (AssignSpinMultiplicity): remove code

2005-01-12  Chris Morley  <c.morley@gaseq.co.uk>

	* src/dlhandler.h: Add findFiles decl needed for Windows builds  

2005-01-09  Chris Morley  <c.morley@gaseq.co.uk>

	* windows/*.dsp, *.mak: Synchronize Windows build files to handle 
	changed file locations and extra source files
	* windows/OBDLL/map2def2.exe added  
	* windows/babelconfig.h updated  

2005-01-07  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/obconversion.h (GetMIMEType): New method for chemical MIME
	support.

	* src/formats/*.cpp: Update file extensions for formats for
	lower-case and previous Babel standards. Added MIME types where
	appropriate.

2005-01-06  Geoff Hutchison  <babel@geoffhutchison.net>

	* src/main.cpp, src/obconversion.cpp, src/obconversion.h: Updated
	files from Chris Morley.

2005-01-01  Geoff Hutchison  <babel@geoffhutchison.net>

	* tools/obfit.cpp, tools/obgrep.cpp, tools/obprop.cpp,
	tools/obrotate.cpp, tools/obtanimoto.cpp: Update to use the
	OBConversion framework.

	* src/formats/*.cpp: Clean out formats which don't currently have
	format specification URLs.

2004-12-23  Geoff Hutchison  <babel@geoffhutchison.net>

	* *.cpp, *.h: Reformat using astyle --style=ansi.

	* src/mol.cpp(PerceiveBondOrders): Fix thinko with abs() calls.

	* src/formats/Makefile.am: Fix typos preventing all format files
	from being compiled.

	* src/formats/cml.cpp: Pull iterator variables out of for()
	declarations to fix compilation problems.

	* src/formats/turbomoleformat.cpp: Remove call to strlwr() which
	is a non-ANSI (non-ISO) function call.

	* test/ringtest.cpp, test/smartstest.cpp, test/rountrip.cpp:
	Convert to using OBConversion from OBFileFormat.

2004-10-19  Geoff Hutchison  <babel@geoffhutchison.net>

	* Initial merging of Chris Morley's new file translation framework.
	Compiles and runs through "babel -H".

	* data/* : Move data files and headers to this directory to
	segregate from source code.

	* configure.in, Makefile.am, */Makefile.am: Build updates.

	* src/: Removed all file translation files. (Now in formats directory.)
	
	* src/formats/*: New files.

	* src/windows/*: Removed.
	
	* windows/*: New files.

2004-10-04  Michael Banck  <mbanck@gmx.net>

	* src/crk.cpp: Use sstream if present and strstream if not.
	
2004-28-30  Fabien Fontaine  <ffontaine@imim.es>

	* tools/obtanimoto.cpp : new tool
	* tools/README:      update
	* tools/makefile.am  update

2004-27-30  Fabien Fontaine  <ffontaine@imim.es>

	* src/fingerprint.cpp: New output format
	* src/fingerprint.h
	* src/Makefile.am (libopenbabel_la_SOURCES): Added fingerprint.cpp.
	* src/data.cpp (TextToType): Added FINGERPRINT typestring.
	* src/data.h (io_type): Added FINGERPRINT.
	* src/extable.txt: Added fingerprint entry for writing.
	* src/extable.h: Regenerated.
	* src/fileformat.cpp (ReadMolecule): Added fingerprint handler.
	(WriteMolecule): Likewise.
	* src/fileformat.h (WriteFingerprint): Declare it.
	
2004-09-10  Michael Banck  <mbanck@gmx.net>

	* src/turbomole.cpp: New file.
	* src/Makefile.am (libopenbabel_la_SOURCES): Added turbomole.cpp.
	* src/data.cpp (TextToType): Added TURBOMOLE typestring.
	* src/data.h (io_type): Added TURBOMOLE.
	* src/extable.txt: Added turbomole entry for reading and writing.
	* src/extable.h: Regenerated.
	* src/fileformat.cpp (ReadMolecule): Added Turbomole handler.
	(WriteMolecule): Likewise.
	* src/fileformat.h (ReadTurbomole): Declare it.
	(WriteTurbomole): Likewise.

2004-08-30  Fabien Fontaine  <ffontaine@imim.es>

	* src/mol.cpp bond.cpp kekulize.cpp: Kekulize function changed to
	what it was before. PerceiveBondOrders replaced by 
	NewPerceiveBondOrders. SetK* functions added to NewPerceiveBondOrders
	
2004-08-27  Michael Banck  <mbanck@gmx.net>

	* mol.h (tokenize): Initialize *delimstr to " \t\n" for the
	version of the function using strings as well.

2004-08-25  Fabien Fontaine  <ffontaine@imim.es>

	* src/mol.cpp: Kekulize is replaced by a new kekulize function
	situated in kekulize.cpp

	* src/mol.cpp (PerceiveBondOrders): New SMART pattern added
	some decision are taken according to the geometry of the bonds

2004-08-24  Fabien Fontaine  <ffontaine@imim.es>

	* src/mol.cpp (PerceiveBondOrders): Bug in calculation of 
	average torsion angles of cycles fixed.

	* src/atom.cpp: function AverageBondAngle added.
	
2004-08-19  Michael Banck  <mbanck@gmx.net>

	* src/data.cpp: Include mol.h.
	(tokenize): Removed declaration, already declared in mol.h.

	* src/mol.h [OBDLL_EXPORTS, USING_OBDLL]: redefine extern as
	'__declspec(dllexport) extern'. Update global definitions
	accordingly.
	
2004-08-17  Geoff Hutchison  <ghutchis@wso.williams.edu>

	* configure.in: Make the check for doxygen to be a typical
	AC_PATH_PROG -- it's not a critical dependency.
	
	* configure, aclocal.m4, config.guess, config.sub, ltmain.sh,
	 */Makefile.in: Update with latest automake/libtool/autoconf
	versions (automake-1.9.1, libtool-1.5.8 autoconf 2.59).

	* src/isotope-small.txt, src/isotope.txt: Update with latest data
	from 2003 canonical data. 

2004-07-20  Geoff Hutchison  <ghutchis@wso.williams.edu>

	* src/ghemical.cpp: Ignore multiple coordinate sets -- only read
	the first one currently, but don't bail if more than one exists.

	* src/cssr.cpp: Update with unit cell information and fixing bugs
	reported by Mathias Weigt when dealing with SOMFA package.

2004-07-02  Michael Banck  <mbanck@gmx.net>

	* src/obutil.cpp (InternalToCartesian): avec, bvec, cvec, dst, ang,
	tor: New short circuit variables. Start index at zero again. Fix
	torsion angle of the fourth atom. Thanks to Gerd Menche.

2004-03-13  Michael Banck  <mbanck@gmx.net>

	* test/unitcell.cpp (TestUnitCell): Use %lf instead of %f to read
	in the values from unitcell.txt.

2004-03-07  Geoff Hutchison  <ghutchis@wso.williams.edu>

	* src/chdrw.cpp (ReadChemDraw): Add support for reading ChemDraw
	CT files.

	* src/data.h, src/data.cpp: Change GAUSSIANZMAT to GAUSSIANOUT to
	allow support for reading G98 and G03 output.

	* src/extable.txt: Add ChemDraw reading and Gaussian 98/03 output
	to list.

	* src/fileformat.h, src/fileformat.cpp: Ditto.

	* src/extable.h: Regenerate.

	* src/gaussian.cpp: Add support for reading G98/G03 output and
	writing isotopes where applicable.

	* src/hin.cpp: Fix bug with more recent HIN formats with basis set
	information.

	* configure, Makefile.in, */Makefile.in: Update with latest
	autotools.

	* src/mol.cpp, src/mol.h: Backpedal slightly with Fabien's
	2003-12-17 changes. Use OB_TSPIN_MOL as used by 1.100.2 and
	revised AssignSpinMultiplicty to assign OBMol::_tspin.

2004-03-03  Michael Banck  <mbanck@gmx.net>

	Fixes to make InternalToCartesian() and ReadQChem() consistent
	with CartesianToInternal(), so that round-tripping between
	InternalToCartesian() and CartesianToInternal() is
	possible. Thanks to Gerd Menche for the fix.

	* src/obutil.cpp (InternalToCartesian): Initialize index as
	atom->GetIdx() rather than atom->GetIdx() - 1. Subsequently,
	increase the index checks for the first three atoms by one.
	Convert angles to radians before computing cartesian
	coordinates.

	* src/qchem.cpp (ReadQChem): Uncommented the z-matrix reading
	code. Generate one empty internal coordinate in advance.
	Replaced loop until end of block in input file with a for loop
	over the existing atoms. Do not generate new atoms in the loop,
	as they are already present. Do not convert angles to radians
	any more, this is now done in InternalToCartesian().

2004-02-29  Michael Banck  <mbanck@gmx.net>

	Merged changes from openbabel-1-100-x branch back into HEAD.

	* src/pqs.cpp: New file.
	* NEWS: Updated from 1.100.2 release.
	* ChangeLog: Fixed some tabs.