File: ChangeLog.1

package info (click to toggle)
eb 4.3.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,888 kB
  • ctags: 1,600
  • sloc: ansic: 22,373; sh: 8,858; perl: 1,114; makefile: 693
file content (2222 lines) | stat: -rw-r--r-- 88,760 bytes parent folder | download | duplicates (11)
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
2001-06-03  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0.

	* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.0.

	* eb/error.h (EB_ERR_FAIL_OPEN_LANG, EB_ERR_FAIL_READ_LANG,
	EB_ERR_FAIL_SEEK_LANG, EB_ERR_UNEXP_LANG, EB_ERR_NO_LANG,
	EB_ERR_NO_MSG, EB_ERR_NO_CUR_LANG, EB_ERR_NO_SUCH_LANG,
	EB_ERR_NO_SUCH_MSG): Removed.
	* eb/error.c (error_messages): Ditto.

	* eb/book.c (eb_initialize_language): Not to return a value.

2001-05-19  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/book.c: Function declaration of eb_initialize_catalog() is
	duplicated.  Fixed.
	* eb/book.c: 
	* eb/language.c, eb/message.c: Removed.
	All functions in the files except for eb_initialize_languages()
	are removed.
	eb_initialize_languages() is renamed to eb_initialize_languages()
	and it is now placed in eb/book.c.
	* eb/defs.h (EB_MAX_LANGUAGE_NAME_LENGTH, EB_MAX_MESSAGE_LENGTH,
	EB_MAX_LANGUAGES, EB_MAX_MESSAGES): Deleted.
	* eb/defs.h (EB_Language_Code, EB_Message_Code, EB_Language_Struct):
	Removed.
	* eb/defs.h (EB_Book_Struct): Delete `language_file_name', 
	`language_zio', `language_count', `languages', `language_current',
	and `messages' from the structure.
	* eb/zipbook.c (eb_zip_book_eb): Find LANGUAGE file by itself.
	* eb/unzipbook.c (eb_unzip_book_eb): Ditto.
	* eb/zipinfobook.c (eb_zipinfo_book_eb): Ditto.

2001-05-11  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0beta1.

	* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.0beta1.

	* eb/Makefile, libebutils/Makefile, ebfont/Makefile, ebinfo/Makefile,
	ebrefile/Makefile, ebzip/Makefile: Delete dependencies between *.c
	and *.o.

2001-05-09  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* m4/eb3.m4 (eb_LIB_EB3): Avoid other AC_TRY_LINK and CK_TRY_RUN
	checks linking libeb.* to test program.

2001-05-08  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Makefile.am (ACLOCAL_AMFLAGS): Set the variable to `-I m4', not
	`-I $(srcdir)/m4'.

2001-05-02  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/zipbook.c (ebzip_zip_book_epwing): Fix a bug that ebzip
	doesn't compress gaiji files.

	* eb/narwfont.c (eb_initialize_narrow_font): Canonicalize font file
	name before fix.
	* eb/filename.c (eb_canonicalize_font_file_name): New function.

	* po-ebutils/Makefile.in (POTFILES): Updated.
	Delete ebzip/filename.c and add ebrefile/ebrefile.c.

	* ebrefile/Makefile.am: Revised.  Now ebrefile is written in C.
	* ebrefile/ebrefile.c: New file.
	* ebrefile/ebrefile.in: Deleted.

2001-04-28  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/filename.c, eb/filename.c: fix_path_name_suffix() is
	renamed to eb_fix_path_name_suffix() and its definition is moved
	from ebzip/filename.c to eb/filename.c.
	* ebzip/filename.c: Removed.
	* ebzip/Makefile.am (ebzip_SOURCES): Delete `filename.c'.

	* ebfont/Makefile.am (ebfont_LDADD): Fix the order of library to
	be linked.
	* ebinfo/Makefile.am (ebinfo_LDADD): Ditto.
	* ebzip/Makefile.am (ebzip_LDADD): Ditto.

2001-04-24  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/setword.c (eb_fix_word): Fix word if the given word is for
	keyword search or multi-search without candidates.  Reported by
	Kenichi Suto.

2001-04-23  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in: Renamed to `configure.ac'.

2001-04-13  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/narwfont.c (eb_initialize_narrow_font): Fix a bug in reopen
	a font file, reported by HASEGAWA Masafumi.

2001-04-12  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/subbook.c (eb_initialize_indexes): Fix calcuration of end
	page number of an index.

	* m4/gettext.m4 (eb_GNU_GETTEXT): Ignore arguments.
	* configure.in (eb_GNU_GETTEXT): Don't pass arguments to the macro.

	* eb/po: Move the directory to po-eb.
	* po-eb/Makefile.in (top_builddir, subdir): Updated.
	* po: Move the directory to po-ebutils.
	* po-ebutils/Makefile.in (subdir): Updated.

	* configure.in (AC_OUTPUT): Delete `po/Makefile' and `eb/po/Makefile',
	and add `po-eb/Makefile' and `po-ebutils/Makefile' instead.
	* Makefile.am (SUBDIRS): Delete `po' and add `po-eb' and `po-ebutils'
	instead.
	* eb/Makefile.am (SUBDIRS): Deleted.

2001-04-10  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0beta0.

	* ebzip/Makefile.am (noinst_HEADERS): Add `ebzip.h'.

	* gttest.po: Add header.

2001-04-08  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Search_Struct): Add `index_id'.
	* eb/subbook.c (eb_initialize_indexies): Also set index ID.
	* eb/multi.c (eb_initialize_multi_search): Likewise.
	* eb/setword.c (eb_fix_word): Copy `canonicalized_word' to `word'
	if as-is or alphabet search.  Don't modify `word' otherwise.
	Don't modify `word' nor `canonicalized_word' if keyword or
	candidate search.
	* eb/setword.c (eb_set_multiword): Pass entry's search information
	to `eb_fix_word', not to pass method's search information.

	* configure.in (AC_ARG_ENABLE): Use `[[' and `]]' in a help string.

	* Makefile.am (SUBDIRS): Delete `intl'.
	* configure.in (AC_OUTPUT): Delete `intl/Makefile'.
	* m4/gettext.m4 (AM_GNU_GETTEXT_HACKED): Renamed to `eb_GNU_GETTEXT',
	and revised to support GNU gettext 0.10.36.  Now, we inspect not only
	libintl but also libiconv.  Instead, we never use included libintl
	sources.

	* configure.in (AM_INIT_AUTOMAKE): Set version to `3.0beta0'.

2001-04-07  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/zipbook.c (zip_book.c): Change type of the argument
	`subbook_name_list'.
	* ebzip/unzipbook.c (unzip_book.c): Ditto.
	* ebzip/zipinfobook.c (zipinfo_book.c): Ditto.

2001-04-06  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/internal.h.in (EB_TEXT_OPTINAL_TEXT): Defined.
	* eb/defs.h.in (EB_Search_Struct): add `end_page'.  Rename
	`index_page' to `start_page'.
	* eb/subbook.c (eb_initialize_indexes): Also initialize and set
	end pages of search methods.
	* eb/text.c (eb_read_text): Set text mode to EB_TEXT_OPTINAL_TEXT
	if the current position points to menu or copyright text.

2001-04-05  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* po/Makefile.in (POTFILES): Add `ebzip/copyfile.c',
	`ebzip/filename.c', `ebzip/unzipbook.c', `ebzip/unzipfile.c',
	`ebzip/zipbook.c', `ebzip/zipfile.c', `ebzip/zipinfobook.c',
	`ebzip/zipinfofile.c'.  Delete `ebzip/ebzip1.c'.

	* eb/text.h (EB_HOOK_BEGIN_BITMAP, EB_HOOK_END_BITMAP): Renamed to
	EB_HOOK_BEGIN_MONO_GRAPHIC and EB_HOOK_END_MONO_GRAPHIC.
	* eb/text.h (EB_HOOK_BEGIN_BMP, EB_HOOK_END_BMP): Renamed to 
	EB_HOOK_BEGIN_COLOR_BMP and EB_HOOK_END_COLOR_BMP.
	* eb/text.h (EB_HOOK_BEGIN_JPEG, EB_HOOK_END_JPEG): 
	EB_HOOK_BEGIN_COLOR_JPEG and EB_HOOK_END_COLOR_JPEG.
	* eb/text.h (EB_HOOK_BEGIN_IN_JPEG, EB_HOOK_END_IN_JPEG): 
	EB_HOOK_BEGIN_IN_COLOR_JPEG and EB_HOOK_END_IN_COLOR_JPEG.
	* eb/text.h (EB_HOOK_BEGIN_GRAY_GRAPHIC, EB_HOOK_END_GRAY_GRAPHIC): 
	Defined.

	* eb/internal.h.in (EB_BINARY_MONO_GRAPHIC, EB_BINARY_COLOR_GRAPHIC,
	EB_BINARY_WAVE, EB_BINARY_MPEG, EB_BINARY_GRAY_GRAPHIC, 
	EB_BINARY_INVALID): Defined.
	* eb/ebconfig.h (EB_Binary_Code): Defined.
	* eb/defs.h (EB_SIZE_BINARY_CACHE_BUFFER): Change the value to 128.
	* eb/defs.h (EB_Binary_Context_Struct): Add `code' and `width'.
	* eb/binary.c (eb_set_binary_mono_graphic, eb_set_binary_gray_graphic,
	eb_read_binary_mono_graphic): New functions.

2001-03-25  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/libintl_r.c, eb/libintl_r.h: Removed.
	* eb/Makefile.am (libeb_la_SOURCES): Remove `libintl_r.c'.
	* eb/Makefile.am (pkginclude_HEADERS): Remove `libintl_r.h'.

	* eb/error.h (EB_MAX_ERROR_MESSAGE_LENGTH): Deleted.
	* eb/error.c (eb_error_message_r): Deleted.

2001-03-20  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* m4/gettext.m4 (AM_GNU_GETTEXT_HACKED): Quote $INCLUDED_GETTEXT
	and $ENABLE_NLS.

2001-03-18  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/zio.c (zio_reopen): Return -1 if `zio' context cannot be
	re-used.

	* eb/book.c (eb_initialize_book): `book->language_zio' was not
	initialized.  Fixed.

	* eb/defs.h (EB_Font_Struct): Fix the length of the array `file_name'.

	* eb/narwfont.c (eb_initialize_narrow_font): Fix a bug that it cannot
	open a font file correctly.

	* eb/zio.c (eb_reopen): Check strictly whehter the zio context is
	ready to reopen.

	* eb/zio.h (ZIO_REOPEN, ZIO_EBZIP1, ZIO_EPWING, ZIO_EPWING6,
	ZIO_SEBXA): Renumbered.

	* ebfont/ebfont.c: Don't include <fakelog.h>.
	* ebinfo/ebinfo.c: Ditto.
	* ebfont/ebfont.c (main): Don't call set_fakelog_name(), 
	set_fakelog_mode() nor set_fakelog_level().
	* ebinfo/ebinfo.c (main): Ditto.

	* libebutils/ebutils.c (output_try_help): Add the argument
	`invoked_name'.
	* libebutils/ebutils.c (output_version): Add the arguments
	`program_name' and `program_version'. 
	* libebutils/ebutils.c (parse_subbook_name_argument): Add the
	argument `invoked_name'.
	* libebutils/ebutils.c: Delete definition of `program_name',
	`program_version' and `invoked_name'.
	* ebfont/ebfont.c: Define `program_name', `program_version' and
	`invoked_name'.
	* ebinfo/ebinfo.c: Ditto.
	* ebfont/ebfont. (main): Don't initialize `program_name'.
	* ebinfo/ebinfo.c (main): Ditto.

	* ebfont/ebfont.c (subbook_list, subbook_count):
	Changed to `static' variables.
	* ebfont/ebfont.c (font_list, fount_count): Ditto.
	* ebfont/ebfont.c (image_list, image_count): Ditto.

	* ebfont/ebfont.c (parse_image_argument): The order of arguments
	is changed.
	* ebfont/ebfont.c (parse_font_argument): Ditto.

	* libebtuils/ebutils.c (find_subbook): Fix a bug.  The function
	returns invalid error code if an error has occured.

	* ebzip/copyfile.c: Include "eb.h", "error.h" and "internal.h".

	* ebzip/copyfile.c (copy_file): Don't `stat' the input file.

	* ebzip/copyfile.c (copy_files_in_directory): Don't output an error
	message if input directory doesn't exists.
	* ebzip/copyfile.c (copy_files_in_directory): Output an error message
	if failed to open the input directory.
	* ebzip/copyfile.c (copy_files_in_directory): Skip a file entry
	if it is not regular file.

	* ebzip/ebzip.c: Add `-s' and `--skip-content' options.
	* ebzip/ebzip.c (ebzip_skip_flag_font, ebzip_skip_flag_graphic,
	ebzip_skip_flag_movie, ebzip_skip_flag_sound): New variables.
	* ebzip/ebzip.h (EBZIP_DEFAULT_SKIP_FONT, EBZIP_DEFAULT_SKIP_GRAPHIC,
	EBZIP_DEFAULT_SKIP_MOVIE, EBZIP_DEFAULT_SKIP_SOUND): New cpp macros.
	* ebzip/ebzip.c (parse_skip_content_argument): New function.

	* ebzip/ebzip.h (EBZIP_SUFFIX_NONE, EBZIP_SUFFIX_EBZ,
	EBZIP_SUFFIX_ORG): New cpp macros.

	* ebzip/filename.c (compose_unfixed_path_name): Renamed to 
	fix_path_name_suffix() and revised.
	* ebzip/filename.c (compose_unfixed_path_name2,
	compose_unfixed_path_name3, compose_fixed_path_name,
	compose_fixed_path_name2, compose_fixed_path_name3): Deleted.

	* ebzip/zipbook.c (ebzip_zipbook): In order to compose a file name,
	use eb_find_file_name(), eb_compose_file_name(),
	eb_compose_file_name2(), eb_compose_file_name3() and
	fix_path_name_suffix().
	* ebzip/unzipbook.c (ebzip_unzip_book): Ditto.
	* ebzip/zipinfobook.c (ebzip_zipinfo_book): Ditto.

	* ebzip/zipbook.c (ebzip_zip_book): Support movie files.
	* ebzip/unzipbook.c (ebzip_unzip_book): Ditto.

2001-03-12  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in (AC_PROG_CC, AC_AIX, AC_MINIX, AC_PROG_LIBTOOL):
	Check AC_PROG_CC, (AC_AIX + AC_MINIX) and AC_PROG_LIBTOOL in that
	order.

	* eb/filename.c (eb_fix_file_name, eb_fix_file_name2,
	eb_fix_file_name3): Removed.
	* eb/filename.c (eb_find_file_name, eb_find_file_name2,
	eb_find_file_name3): Added.
	* eb/filename.c (eb_compose_path_name, eb_compose_path_name2,
	eb_compose_path_name3): Revised.
	* eb/internal.h.in (EB_FILE_NAME_START, EB_FILE_NAME_SOUND,
	EB_FILE_NAME_CATALOG, EB_FILE_NAME_LANGUAGE, EB_FILE_NAME_VTOC,
	EB_FILE_NAME_WELCOME, EB_FILE_NAME_CATALOGS, EB_FILE_NAME_HONMON,
	EB_FILE_NAME_HONMON2, EB_FILE_NAME_HONMONG, EB_FILE_NAME_HONMONS,
	EB_FILE_NAME_APPENDIX, EB_FILE_NAME_FUROKU): Deleted.
	* eb/internal.h.in (EB_SUFFIX_NONE, EB_SUFFIX_EBZ, EB_SUFFIX_ORG):
	Deleted.

	* eb/appendix.c (eb_initialize_appendix_catalog):
	Use eb_find_file_name() to find a file to open.
	* eb/appsub.c (eb_set_appendix_subbook_eb): Ditto.
	* eb/appsub.c (eb_set_appendix_subbook_epwing): Ditto.
	* eb/binary.c (eb_set_binary_mpeg): Ditto.
	* eb/book.c (eb_initialize_catalog): Ditto.
	* eb/language.c (eb_initialize_languages, eb_set_language): Ditto.
	* eb/message.c (eb_initialize_messages): Ditto.
	* eb/narwfont.c (eb_initialize_narrow_font): Ditto.
	* eb/subbook.c (eb_set_subbook_eb, eb_set_subbook_epwing): Ditto.

	* eb/defs.h (EB_Font_Struct): Delete unused member `available'.
	* eb/defs.h (EB_Book_Struct): Add the member `language_file_name'.
	* eb/defs.h (EB_Book_Struct): Add `language_file_name' and
	`language_zio'.

2001-02-26  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/appsub.c (eb_initialize_appendix_subbook,
	eb_set_appendix_subbook): fix `data' sub-dirtory name in 
	eb_set_appendix_subbook(), reported by HASEGAWA Masafumi.

2001-02-25  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* m4/eb3.m4 (AC_ARG_WITH): Fix typo.

	* m4/utimbuf.m4: Rename variable prefix from `ax_cv' to `ac_cv'.

2001-02-20  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* check gettext() in libintl , and then in libc.

2001-02-19  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/filename.c (compose_unfixed_path_name2): Enclose "%s/%s"
	with F_().

2001-02-18  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/filename.c (compose_out_path_name, compose_out_path_name2,
	compose_out_path_name3): Rename prefix from `compose_out_' to 
	`compose_unfixed_'.

	* ebzip/filename.c (compose_existent_path_name,
	compose_existent_path_name2, compose_existent_path_name3): Rename
	prefix from `compose_exisntent_' to  `compose_fixed_'.

	* lib/text.c (eb_read_text_internal): Fix ISO 8859-1 code point range,
	reported by HASEGAWA Masafumi.

2001-02-12  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/ebzip.c: Split the file into 9 files; eb/copyfile.c,
	eb/ebzip.c, eb/ebzip.h, eb/unzipbook.c, eb/unzipfile.c, eb/zipbook.c,
	eb/zipfile.c, eb/zipinfobook.c and eb/zipinfofile.c.

	* ebzip/zipbook.c (zip_book, zip_book_eb, zip_book_epwing):
	Add the prefix `ebzip_', and revised.
	* ebzip/zipfile.c (zip_file): Ditto.
	* ebzip/unzipbook.c (unzip_book, unzip_book_eb, unzip_book_epwing):
	Ditto.
	* ebzip/unzipfile.c (unzip_file): Ditto.
	* ebzip/zipinfobook.c (zipinfo_book, unzip_book_eb,
	unzip_book_epwing): Ditto.
	* ebzip/zipinfofile.c (zipinfo_file): Ditto.

	* ebzip/ebzip.h (zip_level, keep_flag, quiet_flag, test_flag, 
	overwirte_mode): Add the prefx `ebzip_'.

	* libebutils/Makefile.am (INCLUDES): Remove `-DUSE_FAKELOG'.
	* libebutils/Makefile.am (noinst_HEADERS): Remove `fakelog.h'.
	* libebutils/Makefile.am (libebutils_a_SOURCES): Remove `fakelog.c'.
	* libebutils/fakelog.c, libebutils/fakelog.h: Removed.
	* libebutils/makedir.c: Don't use fakelog.

	* libebutils/makedir.c (make_missing_directory_chaing): Removed.

2001-02-11  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* m4/gettext.m4 (AM_GNU_GETTEXT_HACKED): Find gettext() in libc.

	* eb/search.c (eb_hit_list_keyword, eb_hit_list_multi): Comparison
	Group entry with `context->word', not `context->canonicalized_word'.
	Pill Book 2001 needs this fix.

	* eb/configure.in (AM_INIT_AUTOMAKE): Set version to `3.0alpha5'.

2001-02-09  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/filename.c (eb_canonicalize_path_name): Fix typo, reported
	by Satomi Igi.

	* eb/internal.h.in (EB_SUFFIX_ORG): Defined.
	* eb/subbook.c (eb_set_subbook_epwing): Try to open `HONMON2.ORG'.
	* eb/subbook.c (eb_set_subbook_epwing): Assume HONMON(.EBZ) file
	has graphic and sound data regardless of EPWING version.
	* ebzip/ebzip.c (zip_book, unzip_book, zipinfo_book): Support
	`HONMONS', `HONMONG' and `HONMON2.ORG' files.
	* ebzip/ebzip.c (zip_book): When compress HONMON2, output the result
	to HONMON2.EBZ, not `HONMON.EBZ'.
	* ebzip/ebzip.c (unzip_book): When uncompress HONMON2.EBZ, output the
	result to `HONMON2.ORG', not `HONMON2' or `HONMON'.

2001-02-06  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* zlib/Makefile.am (AC_CHECK_FUNCS): Fix typo (vnsprintf -> vsnprintf). 
	Reported by Takashi NEMOTO.
	* m4/gettext.m4: When tests, use the locale name `en_US' instead of
	`en'.  Reported by Takashi NEMOTO.
	* libebutils/Makefile.am (INCLUDES): Use @INTLINCS@, not `-I../intl'
	Reported by Takashi NEMOTO.
	* intl/libgettext.h: Added again.  Since `intl/bindtextdomain.c'
	includes the file.  Reported by Takashi NEMOTO.

2001-02-03  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0alpha4.

	* po/Makefile.in, eb/po/Makefile (DISTFILES): Distribute
	`Makefile.in', not `Makefile.in.in'.  Add `$(CATALOGS)'.
	* po/Makefile.in, eb/po/Makefile (distclean): Don't delete `Makefil.in'
	itself.
	* eb/text.c (eb_read_text_internal): Dispatch the BEGIN_WAVE hook.

2001-01-31  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Appendix_Subbook_Struct): Rename `appendix_zio' to
	`zio'.
	* eb/defs.h (EB_Font_Struct): Rename `font_zio' to `zio'.

	* eb/graphic.c: Removed.
	* eb/Makefile.am (libeb_la_SOURCES): Remove `eb/graphic.c'.
	* eb/defs.h (EB_Subbook_Struct): The member `graphic' is removed.
	* eb/ebinfo.c (output_information): Delete `graphic search'
	information.

	* eb/defs.h (EB_Subbook_Struct): The member `sound' is added.
	* eb/subbook.c (eb_initialize_indexes): Recognize 0xd8 as sound data.

	* eb/defs.h (EB_Binary_Context_Struct): Add the members;
	`cache_buffer', `cache_length' and `cache_offset'.
	* eb/binary.c (eb_set_binary_wave): Add the argument `type'.
	* eb/binary.c (eb_est_binary_wave, eb_set_binary_color_graphic,
	eb_set_binary_mpeg, eb_read_binary, eb_unset_binary): Update cache
	data.

	* eb/Makefile.am (pkginclude_HEADERS): Add `zio.h'.

2001-01-28  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebfont/ebfont.c (make_subbook_size_image_fonts): Fix typo.

	* eb/uint.c: Renamed to `eb/bcd.c'.
	* eb/uint.c: Delete definition of eb_uint1(), eb_uint2(), eb_uint4()
	and eb_uint4_le().

	* eb/zio.h: New file.
	* eb/defs.h (EB_Zip_Code ,EB_Huffman_Node): Move declaration of 
	these types to `eb/zio.h'.
	* eb/defs.h (EB_SIZE_EBZIP_HEADER, EB_SIZE_EBZIP_MARGIN, 
	EB_MAX_EBZIP_LEVEL, EB_HUFFMAN_NODE_INTERMEDIATE,
	EB_HUFFMAN_NODE_EOF, EB_HUFFMAN_NODE_LEAF8, EB_HUFFMAN_NODE_LEAF16,
	EB_HUFFMAN_NODE_LEAF32, EB_ZIO_NONE, EB_ZIO_EBZIP1, EB_ZIO_EPWING,
	EB_ZIO_EPWING6, EB_ZIO_SEBXA, EB_ZIO_INVALID): Move definition of
	these cpp macros to `eb/zio.h'.
	* eb/zio.c: Include `eb/zio.h'.
	* eb/defs.h: Include `eb/zio.h'.
	
	* eb/zio.h (EB_Zip): Renamed to `Zio'.
	* eb/zio.h (EB_Zip_Code): Renamed to `Zio_Code'.
	* eb/defs.h (EB_SIZE_EBZIP_HEADER): Renamed to `ZIO_SIZE_EBZIP_HEADER'.
	* eb/defs.h (EB_SIZE_EBZIP_MARGIN): Renamed to `ZIO_SIZE_EBZIP_MARGIN'.
	* eb/defs.h (EB_MAX_EBZIP_LEVEL): Renamed to `ZIO_MAX_EBZIP_LEVEL'.
	* eb/defs.h (EB_HUFFMAN_NODE_INTERMEDIATE): Renamed to
	`ZIO_HUFFMAN_NODE_INTERMEDIATE'.
	* eb/defs.h (EB_HUFFMAN_NODE_EOF): Renamed to `ZIO_HUFFMAN_NODE_EOF'.
	* eb/defs.h (EB_HUFFMAN_NODE_LEAF8): Renamed to
	`ZIO_HUFFMAN_NODE_LEAF8'.
	* eb/defs.h (EB_HUFFMAN_NODE_LEAF16): Renamed to
	`ZIO_HUFFMAN_NODE_LEAF16'.
	* eb/defs.h (EB_HUFFMAN_NODE_LEAF32): Renamed to
	`ZIO_HUFFMAN_NODE_LEAF32'.
	* eb/defs.h (EB_ZIO_NONE): Renamed to `ZIO_NONE'.
	* eb/defs.h (EB_ZIO_EBZIP1): Renamed to `ZIO_EBZIP1'.
	* eb/defs.h (EB_ZIO_EPWING): Renamed to `ZIO_EPWING'.
	* eb/defs.h (EB_ZIO_EPWING6): Renamed to `ZIO_EPWING6'.
	* eb/defs.h (EB_ZIO_SEBXA): Renamed to `ZIO_SEBXA'.
	* eb/defs.h (EB_ZIO_INVALID): Renamed to `ZIO_INVALID'.

	* eb/unebzip.c, eb/unzepwng.c, eb/unzsebxa.c: Removed.
	The contents of those files are moved to `eb/zio.c'.

	* eb/defs.h (EB_Appendix_Subbook_Struct): Rename `appendix_zip' to
	`appendix_zio'.
	* eb/defs.h (EB_Appendix_Subbook_Struct): Remove `appendix_file'.
	* eb/defs.h (EB_Font_Struct): Rename `font_zip' to `font_zio'.
	* eb/defs.h (EB_Font_Struct): Delete `font_file'.
	* eb/defs.h (EB_Subbook_Struct): Rename `text_zip' to `text_zio'.
	* eb/defs.h (EB_Subbook_Struct): Delete `text_file'.
	* eb/defs.h (EB_Subbook_Struct): Rename `graphic_zip' to `graphic_zio'.
	* eb/defs.h (EB_Subbook_Struct): Delete `graphic_file'.
	* eb/defs.h (EB_Subbook_Struct): Rename `sound_zip' to `sound_zio'.
	* eb/defs.h (EB_Subbook_Struct): Delete `sound_file'.
	* eb/defs.h (EB_Subbook_Struct): Add `movie_zip'.
	* eb/defs.h (EB_Binary_Context_Struct): Delete `file'.
	* eb/defs.h (EB_Binary_Context_Struct): Rename `zip' to `zio'.

	* eb/zio.c: Don't include `ebconfig.h', `errorh.h' nor `internal.h'.
	* eb/zio.c (eb_zinitialize): Renamed to `zio_initialize_library'.
	* eb/zio.c (eb_zfinalize): Renamed to `zio_finalize_library'.
	* eb/zio.c (eb_zopen): Renamed to `zio_open'.
	* eb/zio.c (eb_zopen_none): Renamed to `zio_open_none'.
	* eb/zio.c (eb_zopen_ebzip): Renamed to `zio_open_ebzip'.
	* eb/zio.c (eb_zopen_epwing): Renamed to `zio_open_epwing'.
	* eb/zio.c (eb_zopen_epwing6): Renamed to `zio_open_epwing6'.
	* eb/zio.c (eb_zopen_sebxa): Renamed to `zio_open_sebxa'.
	* eb/zio.c (eb_zclose): Renamed to `zio_close'.
	* eb/zio.c (eb_zlseek): Renamed to `zio_lseek'.
	* eb/zio.c (eb_zread): Renamed to `zio_read'.
	* eb/zio.c (eb_zread_ebzip): Renamed to `zio_read_ebzip'.
	* eb/zio.c (eb_zread_epwing): Renamed to `zio_epwing'.
	* eb/zio.c (eb_make_epwing_huffman_tree): Renamed to
	`zio_make_epwing_huffman_tree'.
	* eb/zio.c (eb_unzip_slice_ebzip1): Renamed to
	`zio_unzip_slice_ebzip1'.
	* eb/zio.c (eb_unzip_slice_epwing): Renamed to
	`zio_unzip_slice_epwing'.
	* eb/zio.c (eb_unzip_slice_epwing6): Renamed to
	`zio_unzip_slice_epwing6'.
	* eb/zio.c (eb_initialize, eb_finalize, eb_reopen, eb_file):
	New functions.
	* eb/zio.c (eb_read_all): Renamed to `zio_read_raw'.

	* eb/zio.c (Zio): Add the member `file'.

	* eb/zio.c (zio_close, zio_lseek, zio_read, zio_read_ebzip,
	eb_zread_epwing, eb_zread_sebxa): Delete 2nd argument `file'.

	* eb/zio.c (zio_uint1, zio_uint2, zio_uint4): Defined.
	Don't use eb_uint1, eb_uint2 or zio_uint4.

	* eb/appendix.c (eb_finalize_appendix): Finalize `appendix_zio'
	in all subbooks.
	* eb/book.c (eb_finalize_book): Ditto.

	* eb/appendix.c (eb_initialize_appendix_catalog): Use zio to
	open a catalog file.
	* eb/book.c (eb_initialize_catalog): Ditto.

	* eb/book.c (eb_fix_misleaded_book): New function.
	* eb/book.c (eb_initialize_catalog): Fix chachacter-code information
	by calling eb_fix_misleaded_book().

	* eb/appendix.c (eb_initialize_catalog): Initialize `appendix_zio' in
	an EB_Appendix_Subbook Object.
	* eb/book.c (eb_initialize_catalog): Initialize `text_zio', 
	`graphic_zio', `sound_zio and movie_zio' in an EB_Book_Subbook object.

2001-01-27  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/error.h: Rivse error codes.
	* eb/error.c (error_messages): Revised.
	* eb/binary.c (eb_set_binary_mpeg): Fix a bug in initialization of
	binary context.
	* eb/filename.c (eb_decompose_movie_file_name): New function.
	* eb/filename.c (eb_compose_movie_file_name): Don't believe file name
	consists of 8 characters.
	
	* eb/text.c (SIZE_FEW_REST): Change the value from 40 to 48.
	* eb/text.c (eb_read_text_internal): BEGIN_MPEG hook was not called
	correctly. Fixed.

	* eb/subbook.c (eb_set_subbook_epwing): Don't suppose graphic or
	sound data are in HONMON file if EPWING version is 5 or later.

2001-01-23  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/error.h (EB_ERR_BAD_FILE_NAME, EB_ERR_BAD_DIR_NAME): Add these
	error codes.

	* eb/filename.c (eb_fix_directory_name, eb_fix_directory_name2,
	eb_fix_file_name, eb_fix_file_name2, eb_fix_file_name3, 
	eb_compose_path_name, eb_compose_path_name2, eb_compose_path_name3): 
	eb_compose_movie_file_name): Return EB_Error_Code, not {0 or -1}.
	
2001-01-21  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/error.h, eb/error.c (EB_ERR_FAIL_OPEN_BIANRY,
	EB_ERR_FAIL_READ_BINARY, EB_ERR_FAIL_SEEK_BINARY, EB_ERR_UNEXP_BINARY,
	EB_ERR_NO_CUR_BINARY, EB_ERR_NO_SUCH_BINARY): Add these error codes.

	* eb/binary.h: New file.
	* eb/Makefile.am (pkginclude_HEADERS): Add binary.h.

	* eb/text.h, eb/internal.h.in: Move function declaration of
	eb_uint1(), eb_uint2(), eb_uint4(), eb_bcd2(), eb_bcd4() and eb_bcd6()
	from eb/text.h to eb/internal.h.in.

2001-01-20  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in, m4/gettext.m4 (AM_GNU_GETTEXT): renamed to
	AM_GNU_GETTEXT_HACKED.
	* m4/gettext.m4: Use the language `en' instead of `fr' in the test
	program.

	* eb/defs.h (EB_Subbook_Struct): Fix array length of `text_file_name',
	`graphic_file_name' and `sound_file_name'.

	* eb/internal.h.in: Declare eb_intialize_binary().
	* eb/binary.c: Added.
	* eb/subbook.c: Call eb_initialize_binary() to initialize a binary
	context.

	* eb/Makefile.am (libeb_la_SOURCES): Add `binary.c'.

2001-01-17  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (EB_MAX_ARGV): Change the value from 4 to 6.

	* eb/filename.c (eb_compose_movie_file_name): Defined.

	* ebzip/ebzip.c (zip_eb_book): Renamed to zip_book_eb().
	* ebzip/ebzip.c (zip_epwing_book): Renamed to zip_book_epwing().
	* ebzip/ebzip.c (unzip_eb_book): Renamed to unzip_book_eb().
	* ebzip/ebzip.c (unzip_epwing_book): Renamed to unzip_book_epwing().
	* ebzip/ebzip.c (zipinfo_eb_book): Renamed to zipinfo_book_eb().
	* ebzip/ebzip.c (zipinfo_epwing_book): Renamed to
	zipinfo_book_epwing().

	* eb/defs.h (EB_Subbook_Struct): Add the following members;
	`graphic_file', `graphic_zip', `sound_file' and `sound_zip'.
	* eb/internal.h.in (EB_FILE_NAME_HONMONG, EB_FILE_NAME_HONMONS):
	Defined.
	* eb/subbook.c (eb_set_subbook): Split this function into
	eb_set_subbook(), eb_set_subbook_eb() and eb_set_subbook_epwing().
	* eb/subook.c (eb_set_subbook_epwing): Try opening graphic and sound
	files.

	* eb/uint.c, eb/internal.h.in (eb_uint4_le): Defined.

	* eb/defs.h (EB_Binary_Context_Struct, EB_Binary_Context): Defined.
	* eb/defs.h (EB_Book_Struct): Add the member `binary_context'.

	* eb/text.h: (EB_HOOK_BEGIN_BITMAP, EB_HOOK_END_BITMAP,
	EB_HOOK_BEGIN_BMP, EB_HOOK_BEGIN_JPEG, EB_HOOK_END_COLOR_GRAPHIC,
	EB_HOOK_BEGIN_IN_BMP, EB_HOOK_BEGIN_IN_JPEG,
	EB_HOOK_END_IN_COLOR_GRAPHIC, EB_HOOK_BEGIN_WAVE, EB_HOOK_END_WAVE,
	EB_HOOK_BEGIN_MPEG, EB_HOOK_END_MPEG): Defined.
	* eb/defs.h (EB_NUMBER_OF_HOOKS): Updated.

	* eb/zio.c (zio_reopen): become `static' function.
	* eb/zio.h (ZIO_REOPEN): Added.
	* eb/zio.c (zio_open): Recognize the compression mode `ZIO_REOPEN'.
	* eb/zio.c (zio_mode): New function.

	* eb/book.c (eb_filenalize_book): Don't call zio_finalize() for
	`movie_zio'.  Call zio_finalize() for `language_zio'.

2001-01-16  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/internal.h (EB_Subbook_Struct): Remove the member
	`stream_directory_name'.
	* eb/subbook.c (eb_set_subbook): Don't initialize
	`subbook->stream_directory_name'.

	* eb/text.h (EB_HOOK_STOP_CODE, EB_HOOK_BEGIN_BITMAP,
	EB_HOOK_END_BITMAP, EB_HOOK_BEGIN_BMP, EB_HOOK_BEGIN_JPEG,
	EB_HOOK_END_IMAGE, EB_HOOK_BEGIN_IN_BMP, EB_HOOK_BEGIN_IN_JPEG,
	EB_HOOK_END_IN_IMAGE, EB_HOOK_BEGIN_WAVE, EB_HOOK_END_WAVE,
	EB_HOOK_BEGIN_MPEG, EB_HOOK_END_MPEG): Define new text hooks.

	* eb/text.c (SIZE_FEW_REST): Change the value from 16 to 40.

2001-01-14  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Binary_Context_Struct, EB_Binary_Context,
	EB_Binary_Code): Defined.

2001-01-11  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* m4/gettext.m4 (AM_GNU_GETTEXT): Set LC_ALL to `fr', and set LANGUAGE
	to empty string.

	* ebzip/ebzip.c (zip_epwing_book, unzip_epwing_book,
	zipinfo_epwing_book): Fix filenames in error messages.

2001-01-03  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* lib/strcasecmp.c (strncasecmp): Fix a bug that the function returns
	wrong result when comparison length is 0.
	* libebutils/strcasecmp.c (strncasecmp): Ditto.

	* eb/Makefile.am (SUBDIRS): Don't use @POSUB@.

2001-01-02  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in (AC_ARG_WITH): Fix a bug that configure cannot
	recognize --with-included-zlib option.  Reported by Kazuhiko.

2001-01-01  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* po/Makefile.in.in, eb/po/Makefile.in.in: Use `ENABLE_NLS', not
	`USE_NLS'.

	* eb/Makefile.am (SUBDIRS): Set to `po', not `@POSUB@'.

2000-12-31  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* intl/Makefile.am (noinst_HEADERS): Remove `libgettext.h'.  Add 
	`libintl.h' instead.
	* intl/Makefile.am (BUILT_SOURCES): Remove libintl.h.
	* intl/Makefile.am (DISTCLEANFILES): Remove libintl.h.

	* po/Makefile.in.in, eb/po/Makefile.in.in (ja_JP.SJIS): Remove the
	target.

	* gttest.po, gttest.mo: New files.
	* Makefile.am (EXTRA_DIST): Add `gttest.mo' and `gttest.po'.
	* Makefile.am (gttest.mo): New target.
	* m4/gettext.m4: Fully revised.
	* configure.in (AC_OUTPUT): Fix an output file name.

2000-12-30  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* libebutils/Makefile.am (EXTRA_DIST): Delete `memset.c', `strerror.c'
	and `strcasecmp.c'.  Automake recognizes them as distirbution files.

2000-12-29  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Makefile.am (ACLOCAL_AMFLAGS): Defined.

	* m4/ssizet.m4 (AX_TYPE_SSIZE_T): Renamed to `AC_TYPE_SSIZE_T'.
	* m4/utimbuf.m4 (AX_HAVE_STRUCT_UTIMBUF): Renamed to
	`AC_STRUCT_UTIMBUF'.
	* configure.in: Use new macro names described above.

	* m4/libtool.m4: New file.
	(This file will be removed when a bug in libtool.m4 distributed
	with Libtool is fixed.)
	* m4/Makefile.am (EXTRA_DIST): Add `libtool.m4'.

2000-12-23  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Use autoconf 2.49b, automake 1.4b, and libtool 1.3c (checkout
	2000-12-18).
	* depcomp: New file.

	* configure.in: Call `AX_TYPE_SSIZE_T' instead of
	`AC_CHECK_TYPE(ssize_t, int)'.

	* lib/fakelog.c (fakelog): Use memcpy() instead of strcpy() to
	expand `%m'.

	* m4/Makefile.am, m4/eb3.m4, m4/gettext.m4, m4/lcmessage.m4,
	m4/ssize_t.m4, m4/utimbuf.m4: New files.
	* configure.in (AC_OUTPUT): Add `m4/Makefile.in'.
	* Makefile.am (SUBDIRS): Add `m4'.

	* acconfig.h, acinclude.m4: Removed.

	* intl/Makefile.am, eb/Makefile.am, libebutils/Makefile.am,
	ebfont/Makefile.am, ebinfo/Makefile.am, ebzip/Makefile.am,
	doc/Makefile.am, doc-ja/Makefile.am:
	Remove @MAKE_SET@.
	
2000-12-06  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0alpha3.

	* ebzip/Makefile.am (INCLUDES): Delete `-I$(top_srcdir)'.
	* ebzip/Makefile.am (INCLUDES): Add `-I../eb' and `-I$(top_srcdir)/eb'.
	* ebzip/ebzip.c: Include `*.h' in the `../eb' directory, not `eb/*.h'. 

2000-11-28  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/subbook.c (eb_subbook_directory, eb_subbook_directory2):
	All letters in a directory name are converted to lower letters
	that were converted to upper letters.
	* libebutils/ebutils.c (parse_subbook_name_argument): Ditto.

2000-11-23  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* intl/Makefile.am: Don't make a symbolc link `libintl.h'.

	* eb/font.c (eb_set_font): Set font files to -1.
	* eb/font.c (eb_unset_font): Check file descriptor before close
	the file.

2000-11-18  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in (AC_OUTPUT_COMMANDS): Copy `intl/libgettext.h' to
	`intl/libintl.h'.

	* eb/filename.c, ebzip/filename.c, ebfont/ebfont.c: Define the macro
	`F_' to resolve path notation problem between UNIX and DOS.

	* ebconfig.h: New file.
	* appendix.c, appsub.c, bitmap.c, book.c, copyright.c, eb.c, 
	endword.c, error.c, exactword.c, filename.c, font.c, graphic.c, 
	hook.c, jacode.c, keyword.c, language.c, lock.c, match.c, menu.c, 
	message.c, multi.c, narwalt.c, narwfont.c, search.c, setword.c, 
	stopcode.c, subbook.c, text.c, uint.c, unzebzip.c, unzepwing.c, 
	unzsebxa.c, widefont.c, word.c, zio.c:
	Include `ebconfig.h'.
	Dont' include public headers nor define public macros.
	* Makefile.am (noinst_HEADERS): Add `ebconfig.h'.

	* eb/search.c (eb_and_hit_lists): In its prototype declaration,
	type of the 4th argument is changed from (EB_Hit [N1][]) to
	(EB_Hit [][N2]).

2000-11-14  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Makefile.am (CLEANFILES): Add stamp-widealt-h, stamp-widefont-h,
	widealt.c and widefont.c.
	* Makefile.am (BUILT_SOURCES): Add widealt.c and widefont.c.
	* Makefile.am (widealt.c, stamp-widealt-h): Add the targets.
	* Makefile.am (widefont.c, stamp-widefont-h): Add the targets.
	* widealt.c, widefont.c: Generated from narwalt.c and narwfont.c.

2000-11-08  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (eb_read_text_internal): 
	* eb/text.h (EB_HOOK_END_CANDIDATE): Split this hook into
	EB_HOOK_END_CANDIDATE_GROUP and EB_HOOK_END_CANDIDATE_LEAF.
	* eb/text.h (EB_HOOK_BEGIN_SOUND, EB_HOOK_END_SOUND,
	EB_HOOK_BEGIN_PICTURE, EB_HOOK_END_PICTURE): Removed temporary.
	* eb/defs.h (EB_NUMBER_OF_HOOKS): Updated.

	* eb/defs.h (EB_Text_Context): Add the members `candidate' and
	`is_candidate'.
	* eb/text.c (eb_current_candidate): New function.

	* eb/text.c (eb_read_internal): Manage the current candidate.
	* eb/text.c (eb_seek_text, eb_read_text, eb_read_heading):
	Clear the current candidate.
	
	* eb/text.c (eb_seek_text): Complain if the given position is not
	valid.

2000-11-07  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/hook.c (euc_a1_to_ascii_table, euc_a1_to_ascii_table):
	The tables start with the character 0xa0 and end with 0xff.
	* eb/hook.c (EUC_TO_ASCII_TABLE_START, EUC_TO_ASCII_TABLE_END):
	Defined
	* eb/hook.c (eb_hook_euc_to_ascii): Use new convertion tables.

	* eb/multi.c (eb_multi_entry_candidates): Return EB_ERR_NO_CANDIDATES
	not EB_ERR_NO_SUCH_SEARCH if the multi entry doesn't have candidates.

	* eb/error.c (EB_ERR_STOP_CODE): Defined.
	* eb/error.c (EB_ERR_HOOK_WORKSPACE): Removed.
	* eb/hook.c (eb_hook_stop_code): Return EB_ERR_STOP_CODE when the
	stop code is found.
	* eb/text.c (eb_read_text_internal): Return only when STOP_CODE hook
	function returns EB_ERR_STOP_CODE.

2000-11-06  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (eb_read_text_internal): `argv' must be `unsigned int []'.
	* eb/text.c (eb_read_text_internal): Set MSB of argv[0] passed to
	NARROW_JISX0208, WIDE_JISX0208, GB2312 hooks.

2000-11-04  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c: Include <stdlib.h>.

2000-11-03  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Text_Context_Strcut): 
	The member `work_buffer', `work_length' and `work_step' are removed.
	The member `out', `out_rest_length', `unprocessed', `in_step',
	`out_step' and `unprocessed_size' are added.
	* eb/text.c (eb_read_text_internal): `text_p' and `text_rest_length'
	are now recorded in `book->text_context.out' and
	`book->text_context.out_rest_length'.
	* eb/defs.h (EB_MAX_WORK_LENGTH): Removed.

	* eb/text.c (eb_read_text_internal): Don't write `\0' on the tail
	of text buffer.

	* eb/text.c (eb_write_text_byte1, eb_write_text_byte2,
	eb_write_text_string, eb_write_text): New functions.
	* eb/text.c (eb_read_text_internal): Use eb_write_text*() functions
	to write characters to a text buffer.  Don't write directly.

	* eb/defs.h (EB_Hook_Struct): The type of `argv' is changed from
	`const int *' to `const unsigned int *'.

	* eb/defs.h (EB_Hook_Struct): Add the new argument `container'
	and remove `workbuf'.
	* eb/hook.c (eb_hook_euc_to_ascii, eb_hook_stop_code, 
	eb_hook_narrow_character_text, eb_hook_wide_character_text,
	eb_hook_empty): Ditto.
	* eb/text.c (eb_read_text, eb_read_heading): Add the new argument
	`container'.

	* eb/hook.c (eb_hook_newline): New function.
	* eb/hook.c (eb_initialize_hookset): Set EB_HOOK_NEWLINE of the
	default hookset.

2000-10-31  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebinfo/ebinfo.c (output_information): In the font-size and 
	font-range paramter lines, output a newline character even
	when an error occurs.

2000-10-30  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/hook.c (eb_hook_stop_code): Return EB_ERR_HOOK_WORKSPACE
	not -1 when a stop code is found.

	* eb/text.c (eb_read_text, eb_read_heading, eb_read_text_internal):
	give up formatting text when a hook function returns any other value
	than EB_SUCCESS.

2000-10-27  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/filename.c (compose_exisitent_path_name,
	compose_exisitent_path_name2, compose_exisitent_path_name3):
	New functions.
	* ebzip/ebzip.c (zip_eb_book, zip_epwing_book, unzip_eb_book,
	unzip_epwing_book, zipinfo_eb_book, zipinfo_epwing_book): Use
	compose_exisitent_path_name*() functions instead of sprintf().

	* eb/filename.c (eb_canonicalize_path_name): Don't expand `/./'
	and `/../' in the given path name.

2000-10-26  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/subbook.c (eb_set_subbook): Set `book->subbook_current->text_file'
	to 1 when no text file exists.

2000-10-21  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (eb_read_text_internal): Cache controll bug was still
	remained.  Fix the bug.

	* doc-ja/ebinfo-ja.texi: Include `ebinfo-ver.texi', not `version.texi'.

2000-10-20  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0alpha2.

	* doc-ja/Makefile.am (EXTRA_DIST): Remove `stamp-eb'.
	* doc-ja/Makefile.am (stamp-eb): Remove the target.

	* eb/text.c (eb_read_text_internal): Fix a cache controll bug.
	Reported by Rei.

2000-10-17  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/ebzip.c (zip_epwing_book): Fix a bug that it tries to compress
	non-existant font files.
	* eb/text.c (eb_read_text_internal): Check text-end-flag,
	cache buffer, and unprocessed data in the text context, in
	this order.

2000-09-30  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/zio.c (eb_zopen_epwing): Add missing initialization code for
	the variable `read_length'.

2000-09-24  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Language_Struct): the member `offset' is renamed to
	`location'.
	* eb/defs.h (EB_Zip_Struct): likewise.

	* eb/appsub.c (eb_initialize_appendix_subbook): value passed to
	eb_zlseek() must be off_t.
	* eb/font.c (eb_initialize_font): Likewise.
	* eb/language.c (eb_set_language): Likewise.
	* eb/multi.c (eb_initialize_multi_search): Likewise.
	* eb/narwalt.c (eb_narrow_character_text_jis): Likewise.
	* eb/narwalt.c (eb_narrow_character_text_latin): Likewise.
	* eb/narwfont.c (eb_initialize_narrow_font): Likewise.
	* eb/narwfont.c (eb_narrow_character_bitmap_jis): Likewise.
	* eb/narwfont.c (eb_narrow_character_bitmap_latin): Likewise.
	* eb/search.c (eb_presearch_word): Likewise.
	* eb/search.c (eb_hit_list_word): Likewise.
	* eb/search.c (eb_hit_list_keyword): Likewise.
	* eb/search.c (eb_hit_list_multi): Likewise.
	* eb/subbook.c (eb_initialize_subbook): Likewise.
	* eb/widealt.c (eb_wide_character_text_jis): Likewise.
	* eb/widealt.c (eb_wide_character_text_latin): Likewise.
	* eb/widefont.c (eb_initialize_wide_font): Likewise.
	* eb/widefont.c (eb_wide_character_bitmap_jis): Likewise.
	* eb/widefont.c (eb_wide_character_bitmap_latin): Likewise.
	* eb/text.c (eb_initialize_text): `book->text_context.location'
	must be calculated with `off_t' values.

	* po/POTFILES.in: Add `libebutils/getopt.c'.

	* eb/zio.c (eb_zopen_none): Get file size, reported by Takashi NEMOTO.
	
2000-09-09  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Subbook_Struct): Add the member `cross'.
	* eb/subbook.c (eb_initialize_subbook): Also initialize the member
	`cross'.
	* eb/subbook.c (eb_initialize_indexes): Recognize index code
	0x81 as Cross-Index.

2000-09-07  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/setword.c (eb_fix_word_latin): Renamed to `eb_convert_latin'.
	* eb/setword.c (eb_fix_word_jis): Renamed to `eb_convert_euc_jp'.

	* eb/setword.c (eb_fix_word): New static function.
	* eb/setword.c (eb_set_word, eb_set_endword, eb_set_keyword): 
	Call `eb_fix_word' to fix `word' and `canonicalized_word' according
	with index page style.
	* eb/setword.c (eb_set_endword): Get index page style from endword
	search indexes, not from word search.
	* eb/setword.c (eb_set_keyword): Get index page style from keyword
	search indexes, not from word search.

	* eb/libintl_r.c: New file.
	* eb/error.c (gettext_mutex): Moved to `libintl_r.c'.
	* eb/error.c (eb_error_message): Do not lock.
	* eb/error.c (eb_error_message_r): New function.

	* eb/lock.c (eb_pthread_enabled): New function.
	* eb/eb.c (eb_nls_enabled): New function.

	* eb/Makefile.am (pkginclude_HEADERS): Add `libintl_r.h'.
	* eb/Makefile.am (libintl_la_SOURCES): Add `libintl_r.c'.

	* eb/subbook.c (eb_set_subbook): Don't return an error code when
	no text file exists.

	* eb/setword.c (eb_convert_euc_jp): Accept local character
	0xa121 ... 0xfe7e.

	* eb/subbook.c (eb_initialize_subbook): Becomes static function.
	* eb/appsub.c (eb_initialize_appendix_subbook): Likewise.

	* eb/text.c (eb_read_text, eb_read_heading, eb_forward_text,
	eb_read_text_internal): Discard `const' of the argument `hookset'.

	* eb/subbook.c (eb_set_subbook): Add missing call of eb_unlock().

	* eb/text.c (eb_fowrard_text): Don't unlock `cache_mutex'.
	* eb/text.c (eb_fowrard_heading): Likewise.

	* eb/zio.c (eb_zread_ebzip, eb_zread_epwing, eb_zread_sebxa): Don't
	lock or unkock `cache_mutex'.
	* eb/zio.c (eb_zread): Lock and unkock `cache_mutex'.

	* eb/internal.h.in (EB_ZIP_INVALID): Defined.
	* eb/zip.c (eb_zopen_none, eb_zopen_ebzip, eb_zopen_epwing, 
	eb_zopen_epwing6): Now they are static functions.
	* eb/zip.c (eb_zopen): New function.

	* eb/appsub.c (eb_set_subbook): Call eb_zopen(), instead of 
	eb_zopen_ZIPTYPE() functions.
	* eb/font.c (eb_set_font): Likewise.
	* eb/language.c (eb_initialize_language): Likewise.
	* eb/language.c (eb_set_language): Likewise.
	* eb/subbook.c (eb_set_subbook): Likewise.
	* ebzip/ebzip.c (zip_eb_book, zip_epwing_book, unzip_eb_book,
	unzip_epwing_book, zipinfo_eb_book, zipinfo_epwing_book): Likewise.
	* ebzip/ebzip.c (zip_file, unzip_file, zipinfo_file): The argument
	`in_open_function' is replaced to `in_zip_code'.

	* ebzip/ebzip.c (zipinfo_file): Call `stat' before open a file.

	* ebzip/ebzip.c (zipinfo_epwing_book): Skip font entires whose
	code is EB_FONT_INVALID.

2000-09-05  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/internal.h.in, libebutils/ebutils.c, ebfont/ebfont.c,
	ebinfo/ebinfo.c, ebzip/ebzip.c: Define `_' and `N_' macros even
	when ENABLE_NLS is not defined.

2000-08-11  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebfont/ebfont.c (make_subbook_size_image_fonts): Fixed bugs
	that use old API.  Reported by Takashi NEMOTO.
	* eb/book.c (eb_initialize_catalog): Fix a bug that wrong font code
	is set to EB_Font struct.  Reported by Takashi NEMOTO.

	* eb/internal.h.in (EB_INDEX_STYLE_REVERSED_CONVERT): Defined.
	Super Tougou Jisho 2000 sets 2 to the katakana index style parameter.
	* eb/setword.c (eb_convert_hiragana_jis): New function.
	Convert all hiragana characters in a string to katakana.
	* eb/setword.c (eb_set_word): If the katakana index style parameter
	is EB_INDEX_STYLE_REVERSED_CONVERT, call eb_convert_hiragana_jis().

2000-08-04  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/internal.h.in (eb_initialize_lock, eb_finalize_lock, eb_lock,
	eb_unlock): Add function declarations.
	* eb/font.c (eb_set_font): Set the variable `subbook' after
	lock the book.
	* eb/font.c (eb_set_font, eb_font_list, eb_have_font): Set the
	variable `subbook' after lock the book.

	* eb/Makefile.am (libeb_la_SOURCES): Add lock.c.

2000-07-21  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0alpha1.

	* eb/defs.h (EB_Huffman_Node_Struct): The type of the member `value'
	is changed to `unsigned int'.

	* eb/epwunzip.c (eb_unzip_slice_epwing6): New function.

	* libebutils/ebutils.c (fix_file_name, parse_case_argument,
	parse_suffix_argument): Removed.

	* eb/internal.h.in: Include `config.h'.
	* eb/internal.h.in: Always includes `defs.h'.
	* eb/internal.h: Delete extern declaration of `eb_option'.

	* eb/font.c, eb/message.c, eb/search.c, eb/text.c: Remove cpp macro
	definition of `memmove'.
	* eb/internal.h.in: Add cpp macro definition of `memmove'.
	* eb/filename.c: Remove cpp macro definition of `strcasecmp' and
	`strncasecmp'.
	* eb/internal.h.in: Add cpp macro definition of `strcasecmp' and
	`strncasecmp'.

	* ebzip/ebzip.c (short_options, long_options): Delete `--suffix'
	and `--case' options.

2000-07-20  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/filename.c (eb_fix_file_name2, eb_fix_file_name3): New functions.
	* ebzip/filename.c (compose_out_file_name, compose_out_file_name2, 
	compose_out_file_name3): New functions, New file.
	* eb/Makefile.am (ebzip_SOURCES): Add `filename.c'.
	* ebzip/ebzip.c (zip_book, unzip_book, zipinfo_book): Rewritten.
	* ebzip/ebzip.c: Delete `--case' and `--suffix' options.

	* eb/defs.h (EB_ZIP_EPWING): Assign the value `100'.
	* eb/defs.h (EB_ZIP_EPWING6, EB_ZIP_SEBXA): New macros.

	* eb/internal.h.in (EB_HUFFMAN_NODE_EOF, EB_HUFFMAN_NODE_LEAF8,
	EB_HUFFMAN_NODE_LEAF16): Assign new values.
	* eb/internal.h.in (EB_HUFFMAN_NODE_LEAF32): Defined.

	* eb/zio.c (eb_zread_ebzipped): Renamed to eb_zread_ebzip().
	* eb/zio.c (eb_zread_epwzipped): Renamed to eb_zread_epwing().
	* eb/ebunzip1.c (eb_ebunzip1_slice): Renamed to
	eb_unzip_slice_ebzip1()..
	* eb/epwunzip.c (eb_epwunzip_slice): Renamed to
	eb_unzip_slice_epwing().

	* eb/ebunzip1.c: Renamed to eb/unzebzip.c.
	* eb/epwunzip.c: Renamed to eb/unzepwing.c.
	* eb/unzsebxa.c: New file.

2000-07-16  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/subbook.c (eb_initialize_all_subbooks): Also set each font.
	* eb/subbook.c (eb_initialize_all_subbooks): Call eb_unset_subbook()
	if an error occurs.

	* ebzip/Makefile.am (ebzip_SOURCES): Remove `filelist.c'.
	* ebzip/ebzip.c: Remove function declarations of
	initialize_file_name_list(), finalize_file_name_list() and
	add_file_name_list().

2000-07-09  Motoyuki Kasahara  <m-kasahr@sra.eco.jp>

	* eb/narwfont.c (eb_narrow_font_file_name, eb_narrow_font_file_name2):
	Removed.
	* eb/widefont.c (eb_wide_font_file_name, eb_wide_font_file_name2):
	Removed.

	* eb/font.c (eb_initialize_fonts, eb_initialize_eb_fonts,
	eb_initialize_epwing_fonts): Removed.
	* eb/font.c (eb_initialize_font): New function.
	* eb/narwfont.c (eb_initialize_narrow_font): New function.
	* eb/widefont.c (eb_initialize_wide_font): New function.
	* eb/appendix.c (eb_initialize_appendix_catalog): Adapt to new
	file name composition rule.
	* eb/appsub.c (eb_set_subbook): Likewise.
	* eb/book.c (eb_initialize_catalog): Likewise.
	* eb/font.c (eb_set_font): Likewise.
	* eb/language.c (eb_initialize_language): Likewise.
	* eb/language.c (eb_set_language): Likewise.
	* eb/subbook.c (eb_set_subbook): Likewise.

	* eb/zio.c (eb_zopen, eb_zopen2): Removed.
	* eb/zio.c (eb_zopen_none): New function.
	* eb/zio.c (eb_zopen_ebzipped): Renamed to `eb_zopen_ebzip' and
	changed to non-static.
	* eb/zio.c (eb_zopen_epwing): Renamed to `eb_zopen_epwing' and
	changed to non-static.

	* eb/appendix.c (eb_initialize_appendix_catalog): Adjuts subbook
	directory names.
	* eb/book.c (eb_initialize_catalog): Likewise.
	* eb/appsub.c (eb_initialize_appendix_subbook): Adjust data directory
	name.
	* eb/subbook.c (eb_initialize_subbook): Adjust date, gaiji, stream
	and movie directory names.

	* configure.in (AC_HEADER_DIRENT): Added.

	* eb/subbook.c (eb_initialize_subbook): Don't call
	eb_initialize_fonts().

	* eb/defs.h (EB_CASE_UNCHANGE, EB_CASE_UPPER, EB_CASE_LOWER): Deleted.
	* eb/defs.h (EB_SUFFIX_UNCHANGE, EB_SUFFIX_NONE, EB_SUFFIX_DOT,
	EB_SUFFIX_PERIOD, EB_SUFFIX_VERSION, EB_SUFFIX_BOTH): Deleted.
	* eb/ebzip.c (CASE_UNCHANGE, CASE_UPPER, CASE_LOWER): Defined.
	* eb/ebzip.c (SUFFIX_UNCHANGE, SUFFIX_NONE, SUFFIX_DOT, 
	SUFFIX_VERSION, SUFFIX_BOTH): Defined.

	* eb/defs.h (EB_FILE_NAME_START, EB_FILE_NAME_SOUND,
	EB_FILE_NAME_CATALOG, EB_FILE_NAME_LANGUAGE, EB_FILE_NAME_WELCOME,
	EB_FILE_NAME_CATALOGS, EB_FILE_NAME_HONMON, EB_FILE_NAME_HONMON2,
	EB_FILE_NAME_APPENDIX, EB_FILE_NAME_FUROKU, EB_DIRECTORY_NAME_DATA,
	EB_DIRECTORY_NAME_GAIJI, EB_DIRECTORY_NAME_STREAM,
	EB_DIRECTORY_NAME_MOVIE): Move these definitions to `eb/internal.h.in'
	and convert their values to lower cases.
	* eb/internal.h.in (EB_SUFFIX_EBZ): Defined.
	* eb/internal.h.in (EB_SUFFIX_NONE): Defined.
	* eb/internal.h.in (EB_FILE_NAME_HONMONS): Defined.
	* eb/internal.h.in (EB_FILE_NAME_HONMONG): Defined.
	* eb/internal.h.in (EB_FILE_NAME_VTOC): Removed.

	* eb/ebinfo.c (output_information): Adapt to new EB_FONT_* macro
	values.  They were 16, 24, 30, 48, but now they are 0, 1, 2, 3.
	
2000-07-08  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_MAX_BASE_NAME_LENGTH): Renamed to
	EB_MAX_DIRECTORY_NAME_LENGTH.
	* eb/defs.h (EB_MAX_FILE_NAME_LENGTH): Defined.

	* eb/defs.h (EB_Subbook_Struct): Add the member `version'.
	* eb/book.c (eb_initialize_catalog): Set format version.

        * eb/zio.c (eb_zopen_epwzipped): Check if least frequent node
        is found or not after scanning a node list.

	* eb/strcasecmp.c: New file.
	* eb/Makefile.am (libeb_la_SOURCES): Add `strcasecmp.c'.

	* libebutil/strcasecmp.c: Include `sys/type.h'.

	* eb/defs.h (EB_Subbook_Struct): Rename the member `directory' to
	`directory_name',
	* eb/defs.h (EB_Subbook_Struct): Add the member `data_directory_name',
	`gaiji_directory_name', `movie_directory_name',
	`stream_directory_name', `text_file_name', `graphic_file_name',
	and `sound_file_name'.
	* eb/defs.h (EB_Book_Struct): Remove the member `case_code' and
	`suffix_code'.
	* eb/defs.h (EB_Appendix_Struct): Add the member `data_directory_name',
	and `appendix_file_name'.
	* eb/defs.h (EB_Appendix_Subbook_Struct): Rename the member
	`directory' to `directory_name',
	* eb/defs.h (EB_APpendix_Subbook_Struct): Remove the member
	`case_code' and `suffix_code'.

	* eb/filename.c (eb_catalog_file_name): Removed.
	* eb/filename.c (eb_appendix_catalog_file_name): Removed.
	* eb/filename.c (eb_canonicalize_appendix_file_name): Removed.
	* eb/filename.c (eb_canonicalize_file_name_internal): Renamed to 
	`eb_canonicalize_file_name'.  The original `eb_canonicalize_file_name'
	is overwritten.
	* eb/filename.c (eb_fix_file_name): Removed.
	* eb/filename.c (eb_fix_appendix_file_name): Removed.
	* eb/filename.c (eb_fix_file_name_internal): Removed.
	* eb/filename.c (eb_fix_directory_name, eb_fix_sub_directory_name):
	New functions.
	* eb/filename.c (eb_fix_file_name, eb_compose_file_name,
	eb_compose_file_name2, eb_compose_file_name3): New functions.

	* eb/defs.h (EB_DIRECTORY_NAME_DATA, EB_DIRECTORY_NAME_GAIJI,
	EB_DIRECTORY_NAME_STREAM): Moved to eb/internal.h.in.
	* eb/internal.h.in (EB_DIRECTORY_NAME_STREAM, 
	EB_DIRECTORY_NAME_MOVIE): Defined.

	* eb/font.h (EB_FONT_16, EB_FONT_24, EB_FONT_30, EB_FONT_48):
	Change their integer values.

	* eb/defs.h (EB_Font_Struct): Remove the memeber `width' and `height'.
	* eb/defs.h (EB_Font_Struct): Add the memeber `available' and
	`font_code'.
	* eb/defs.h (EB_Subbook_Struct): Remove the memeber `font_count'.
	* eb/defs.h (EB_Subbook_Struct): Split the memeber `fonts' into
	`narrow_fonts' and `wide_fonts'.
	* eb/book.c (eb_initialize_catalog): Assume that the order of font
	names is always wide-16, -24, -30, -48, narrow-16, -24, -30, -48.

	* eb/font.c (eb_initialize_eb_fonts, eb_initialize_epwing_fonts,
	eb_font, eb_set_font, eb_unset_font, eb_font_list, eb_have_font):
	Catch up with new EB_Font_Struct.
	* eb/narwfont.c (eb_have_narrow_font, eb_narrow_font_width,
	eb_narrow_font_width2, eb_narrow_font_size, eb_narrow_font_size2,
	eb_narrow_font_file_name, eb_narrow_font_file_name2,
	eb_narrow_font_start, eb_narrow_font_end,
	eb_narrow_character_bitmap_jis, eb_narrow_character_bitmap_latin):
	Likewise.
	* eb/widefont.c (eb_have_wide_font, eb_wide_font_width,
	eb_wide_font_width2, eb_wide_font_size, eb_wide_font_size2,
	eb_wide_font_file_name, eb_wide_font_file_name2,
	eb_wide_font_start, eb_wide_font_end,
	eb_wide_character_bitmap_jis, eb_wide_character_bitmap_latin):
	Likewise.
	* eb/subbook.c (eb_initialize_indexes): Likewise.

	* eb/font.c (eb_font_height, eb_font_height2): New functions.
	* eb/font.h (EB_HEIGHT_FONT_16, EB_HEIGHT_FONT_24, EB_HEIGHT_FONT_30,
	EB_HEIGHT_FONT_48): Defined.
	
	* eb/defs.h (EB_Subbook_Struct): Rename the member `zip' to
	`text_zip'.
	* eb/defs.h (EB_Appendix_Subbook_Struct): Rename the member `zip' to
	`appendix_zip'.

2000-06-24  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/subbook.c (eb_initialize_subbook): Fix bugs that EB 2.x API
	are remained.

	* eb/setword.c (eb_fix_word_jis): Initialize `c1' and `c2' to
	avoid GCC warning `might be used uninitialized...'.

	* eb/search.c (eb_presearch_word): Return EB_ERR_FAIL_SEEK_TEXT
	when eb_zlseek() failed, and EB_ERR_FAIL_READ_TEXT when eb_zread().

	* eb/exactword.c (eb_search_exactword): Return EB_ERR_NO_SUCH_FONT
	when invalid font height is given.

	* eb/bitmap.c (eb_narrow_font_xbm_size): Return EB_ERR_NO_SUCH_FONT
	when invalid font height is given.
	* eb/bitmap.c (eb_narrow_font_xpm_size): Likewise.
	* eb/bitmap.c (eb_narrow_font_gif_size): Likewise.
	* eb/bitmap.c (eb_wide_font_xbm_size): Likewise.
	* eb/bitmap.c (eb_wide_font_xpm_size): Likewise.
	* eb/bitmap.c (eb_wide_font_gif_size): Likewise.

	* eb/appendix.c (eb_initialize_appendix_catalog): Return
	EB_ERR_FAIL_OPEN_CATAPP when failed to open the catalog file.
	* eb/book.c (eb_initialize_catalog): Return EB_ERR_FAIL_OPEN_CAT when
	failed to open the catalog file.

	* eb/hook.c: Include appendix.h.

	* configure.in (AC_OUTPUT_COMMANDS): Remove `libintl.h', linked
	from `libgettext.h' by gettext.m4.
	* intl/Makefile.am: Make a symlink from `libgettext.h' to `libintl.h'.

	* eb/zio.c (eb_zopen, eb_zopen2): Support DOS style path, reported
	by Kazuhiro Ito.

	* Makefile.am (SUBDIRS): Don't use ${INTL_SUBDIR} for `intl'
	because automake complains.
	* intl/Makefile.am (INCLUDED_LIBINTL): Use this conditional
	to determine whether we build `libintl.la' or not.
	* Makefile.am (intl/lib_LTLIBRARIES): Set to $(INTL_LTLIB).

2000-06-17  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebrefile/ebrefile.in: Fix a bug that ebrefile fills the reserved-1
	with 0x00, reported by Takashi NEMOTO.

2000-06-13  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/keyword.c (eb_search_keyword): Type of 2nd argument is changed
	from `const *[]' to `const * const []'.
	* eb/multi.c (eb_search_multi): Likewise.

	* configure.in (ZLIBLIBS): Fixed a bug that this variable was not
	set when zlib was built from included sources,reported by Kazuhiro
	Ito.
	* eb/filename.c (eb_canonicalize_file_name_internal for DOS):
	EB Library 2.x API code was remained, reported by Kazuhiro Ito.
	Fixed.

2000-06-11  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/ebzip.c (zip_file): Type of 2nd argument is changed from
	`const char **' to `const char * const *'.
	* ebzip/ebzip.c (unzip_file): Likewise
	* ebzip/ebzip.c (zip_finfo): Likewise.

	* libebutils/ebutils.c (parse_case_argument): Control reached end of
	non-void function.  Fixed.
	* libebutils/ebzip.c (parse_suffix_argument): Likewise.
	* libebutils/getumask.c: Include `sys/stat.h'.

	* eb/book.c (misleaded_book_table): Type is changed from
	`const char *[]' to `const char * const[]'.
	* eb/error.c (error_messages): Likewise.

2000-05-27  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* Version 3.0alpha0.

	* configure.in: Add `--enable-pthread', `--with-pthread-cppflags',
	`--with-pthread-cflags' and ``--with-pthread-ldflags'.
	* configure.in (AC_TRY_LINK): Add a test program that checks Pthread.

	* configure.in (WITH_ZLIB): Renamed to `INCLUDED_ZLIB'.

	* configure.in: Add `--with-gettext-includes' and
	`--with-gettext-libraries' options.

	* configure.in (EBCONF_ZLIBINCS, EBCONF_ZLIBLIBS, PTHREAD_CPPFLAGS,
	PTHREAD_CFLAGS, PTHREAD_LDFLAGS, EBCONF_INTLINCS, EBCONF_INTLLIBS,
	EBCONF_EBINCS, EBCONF_EBLIBS): Substitute these variables, for
	generating eb.conf.
	* Makefile.am (sysconf_DATA): Add `eb.conf'.
	* Makefile.am (CLEANFILES): Add `eb.conf'.
	* Makefile.am (EXTRA_DIST): Add `eb.conf.in'.
	* Makefile.am (eb.conf): New target.

2000-05-22  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in: Remove the `--enable-ja-doc' option.
	* Makefile.am (ENABLE_JA_DOC): Remvoe the condition.
	* Makefile.am (SUBDIRS): Remove $(JA_DOC_SUBDIR).

	* configure.in (AC_OUTPUT): Add `eb_r/Makefile'.
	* Makefile.am (ENABLE_PTHREAD): Add the condition.
	* Makefile.am (SUBDIRS): Add $(EB_R_SUBDIR).
	* eb_r/Makefile.am: New file.

	* eb/defs.h (EB_Text_Context_Struct): Add `auto_stop_code'.
	* eb/text.c (eb_seek_text): Initialize `auto_stop_code' of the
	text context in `book'.
	* eb/text.c (eb_read_text_internal): Update `auto_stop_code'
	when the control sequence 0x41 is seen.
	* eb/hook.c (eb_hook_stop_code): Don't assume the control sequence
	0x09 as the stop code.

	* eb/text.h (EB_HOOK_STOPCODE): Renamed to EB_HOOK_STOP_CODE.

2000-05-21  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/Makefile.am (install-data-hook): Removed.

2000-05-20  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* libebtuils/Makefile.am (libebutils_a_SOURCES): Add `ebtuils.c'.
	* libebtuils/Makefile.am (INCLUDES): Add `-I$(top_srcdir)/intl'.
	* libebtuils/ebtuils.c: New file.
	* libebtuils/ebtuils.c (output_try_help, output_version,
	parse_case_argument, parse_suffix_argument, 
	parse_subbook_name_argument, find_subbook, fix_file_name,
	canonicalize_path): Define these functions.
	* libebtuils/ebtuils.c (program_name, program_version, invoked_name):
	Define these global variables.
	* ebfont/ebfont.c (program_name, program_version, invoked_name):
	these global variables are removed.
	* ebinfo/ebinfo.c (program_name, program_version, invoked_name):
	Likewise.
	* ebzip/ebzip.c (program_name, program_version, invoked_name):
	Likewise.
	* ebfont/ebfont.c (parse_subbook_name_argument, find_subbook,
	output_version, output_try_help, canonicalize_path):
	these global functions are removed.
	* ebinfo/ebinfo.c (output_version, output_try_help):
	Likewise.
	* ebzip/ebzip.c (output_version, output_try_help,
	parse_subbook_name_argument, find_subbook, fix_file_name,
	canonicalize_path):
	Likewise.

2000-05-18  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/Makefile.am (EXTRA_DIST): Add `internal.h.in'.
	* eb/Makefile.am (CLEANFILES): Defined and add
	`stamp-defs-h` and `internal.h' to this macro.
	* eb/Makefile.am (BUILT_SOURCES): Defined as `internal.h'.
	* eb/Makefile.am (noinst_HEADERS): Add `internal.h'.
	* eb/Makefile.am (internal.h, stamp-internal-h): New targets.

2000-05-14  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* move-if-change: New script.
	* Makfile.am (EXTRA_DIST): Add `move-if-change'.
	* libebutils/Makefile.am (EXTRA_DIST): Add `ebutils.h.in'.
	* libebutils/Makefile.am (CLEANFILES): Defined and add
	`stamp-defs-h` and `ebutils.h' to this macro.
	* libebutils/Makefile.am (BUILT_SOURCES): Defined as `ebutils.h'.
	* libebutils/Makefile.am (noinst_HEADERS): Add `ebutils.h'.
	* libebutils/Makefile.am (ebutils.h, stamp-ebutils-h): New targets.

	* eb/error.c, ebfont/ebfont.c, ebinfo/ebinfo.c, ebzip/ebzip.c,
	ebzip/filelist.c: Support gettext.
	* ebfont/ebfont.c, ebinfo/ebinfo.c, ebzip/ebzip.c: Include 
	locale.h, libintil.h and ebutils.h.
	* ebfont/ebfont.c, ebinfo/ebinfo.c, ebzip/ebzip.c (main): Call
	setlocale(), bindtextdomain() and textdomain() when NLS is enabled.

	* ebfont/Makefile.am, ebinfo/Makefile.am, ebzip/Makefile.am
	(INCLUDES): Add `-I$(srcdir)/../intl'.
	* ebfont/Makefile.am (ebfont_LDADD): Add @INTLLIBS@.
	* ebinfo/Makefile.am (ebinfo_LDADD): Likewise.
	* ebzip/Makefile.am (ebzip_LDADD): Likewise.
	* ebfont/Makefile.am (ebfont_DEPENDENCIES): Add @INTLDEPS@.
	* ebinfo/Makefile.am (ebinfo_DEPENDENCIES): Likewise.
	* ebzip/Makefile.am (ebzip_DEPENDENCIES): Likewise.

	* po/Makefile.in.in, eb/po/Makefile.in.in: Support DESTDIR.
	* po/Makefile.in.in, eb/po/Makefile.in.in (TEXTDOMAIN, top_builddir,
	subdir): Defined.
	* po/Makefile.in.in, eb/po/Makefile.in.in: Don't use $PACKAGE for
	text domain name.  Use $TEXTDOMAIN, instead.
	* po/Makefile.in.in, eb/po/Makefile.in.in: Don't use `basename'.
	* po/Makefile.in.in, eb/po/Makefile.in.in: Use `$(top_builddir)' not
	'..'.  Use `$(top_srcdir) not `$(srcdir)/.'
	* po/Makefile.in.in, eb/po/Makefile.in.in: Use `$(top_builddir)/intl'
	not `../intl'.  Use `$(top_srcdir)/../intl' not `$(srcdir)/../intl'.
	* po/Makefile.in.in, eb/po/Makefile.in.in: Set @localedir@ to
	$localedir.
	* po/Makefile.in.in, eb/po/Makefile.in.in: Use `$(subdir)' not `po'.

2000-05-13  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/po: New directory.
	* eb/Makefile.am (SUBDIRS): Add `po'.
	* configure.in (AC_OUTPUT): Add `eb/po/Makefile.in'.
	* configure.in (AC_OUTPUT_COMMANDS): Generate `Makefile' from
	`Makefile.in'.
	* configuer.in: Subst `localedir'.
	* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
	HAVE_STPCPY): Defined.
	
	* configure.in (DEPENDENCIES_FOR_LIBZ): Renamed to `ZLIBDEPS'.
	* configure.in (LDADD_FOR_LIBZ): Renamed to `ZLIBLIBS'.
	* configure.in (INCLUDES_FOR_LIBZ): Renamed to `ZLIBINCS'.

2000-05-11  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in (--with-zlib): Renamed to `--with-included-zlib'.
	* Invoke gettexize.
	* configure.in (ALL_LINGUAS, AM_GNU_GETTEXT): Added.
	* Makefile.am (SUBDIRS): Add `intl' and `po'.
	* configure.in (AC_OUTPUT): Add `intl/Makefile' and `po/Makefile'.

2000-05-05  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* acconfig.h (USE_FAKELOG, EB_BUILD_LIBRARY): Remove the definitions.
	* eb/Makefile.am (INCLUDES): Add `-DEB_BUILD_LIBRARY'.
	* libebutils/Makefile.am (INCLUDES): Defined as `-DUSE_FAKELOG'.

2000-05-03  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/error.h (EB_ERR_NO_CANDIDATES): Added.

	* eb/language.h (EB_LANG_ENGLISH, EB_LANG_FRENCH, EB_LANG_GERMAN,
	EB_LANG_ITALIAN, EB_LANG_SPANISH, EB_LANG_JAPANESE, EB_LANG_DANISH,
	EB_LANG_FINNISH, EB_LANG_SWEDISH, EB_LANG_NORWEGIAN, EB_LANG_DUTCH,
	EB_LANG_POLISH): Rename _LANG_ to _LANGUAGE_.
	* eb/language.h (EB_MSG_WORD_SEARCH, EB_MSG_END_SEARCH, 
	EB_MSG_KEY_SEARCH, EB_MSG_MENU_SEARCH, EB_MSG_MULTI_SEARCH,
	EB_MSG_GRAPHIC_SEARCH, EB_MSG_BOOK_CONTAIN, EB_MSG_ENTER_WORD,
	EB_MSG_ENTER_WORDS, EB_MSG_SUCCESSFUL, EB_MSG_ENTRY, EB_MSG_ENTRIES,
	EB_MSG_SEARCH_FAIL, EB_MSG_PUSH_NO, EB_MSG_INSERT_DISC,
	EB_MSG_CANT_READ, EB_MSG_REINSERT_DISC, EB_MSG_CLEAN_DISC,
	EB_MSG_NOT_EB_DISC, EB_MSG_SEARCHING, EB_MSG_CHANGING_BATT,
	EB_MSG_DRY_BATT, EB_MSG_CHARGE_END, EB_MSG_BATT_EMPTY,
	EB_MSG_BATT_CHANGE, EB_MSG_CANT_CHANGE_BATT, EB_MSG_SELECT_LANGUAGE,
	EB_MSG_MENU): Rename _MSG_ to _MESSAGE_.

	* eb/language.h (EB_MESSAGE_INVALID): Defined.
	* eb/language.h (EB_LANG_ERROR): Renamed to EB_LANGUAGE_INVALID.
	* eb/defs.h (EB_MULTI_INVALID, EB_MULTI_ENTRY_INVALID): Defined.

	* eb/defs.h (EB_CHARCODE_ERROR): Renamed to EB_CHARCODE_INVALID.
	* eb/defs.h (EB_WORD_ERROR): Renamed to EB_WORD_INVALID.
	* eb/defs.h (EB_TEXT_ERROR): Renamed to EB_TEXT_INVALID.
	* eb/defs.h (EB_DISC_ERROR): Renamed to EB_DISC_INVALID.
	* eb/defs.h (EB_SUBBOOK_ERROR): Renamed to EB_SUBBOOK_INVALID.
	* eb/defs.h (EB_MULTI_ERROR): Renamed to EB_MULTI_INVALID.
	* eb/defs.h (EB_MULTI_ENTRY_ERROR): Renamed to
	EB_MULTI_ENTRY_INVALID.
	* eb/font.h (EB_FONT_ERROR): Renamed to EB_FONT_INVALID.

2000-03-29  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebinfo/ebinfo.c (output_multi_information): Fix the length of
	an entry label buffer.

	* eb/stopcode.c (eb_have_stopcode): Renamed to eb_have_stop_code().
	* eb/stopcode.c (eb_stopcode): Renamed to eb_stop_code().
	* eb/hook.c (eb_hook_stopcode): Renamed to eb_hook_stop_code().

	* eb/defs.h (EB_Appendix_Subbook_Struct): the members `narw_start'
	`narw_end' and `narw_page' are renamed to `narrow_start', `narrow_end'
	and `narrow_page'.
	* eb/def.sh (EB_Appendix_Struct): the member `narw_cache' is renamed
	to `narrow_cache'.
	* eb/defs.h (EB_Subbook_Struct): the member `narw_current' is
	renamed to `narrow_current'.
	* eb/defs.h (EB_Text_Context_Struct): the member `narw_flag' is
	renamed to `narrow_flag'.

	* eb/defs.h (EB_Alternation_Cache_Struct): the memeber `char_no' is
	renamed to `character_number'.
	* eb/defs.h (EB_Appendix_Subbook_Struct): the memeber `char_code' is
	renamed to `character_code'.
	* eb/defs.h (EB_Subbook_Struct): Likewise.

	* eb/error.h (EB_NUM_ERRORS): Renamed to EB_NUMBER_OF_ERRORS.
	* eb/def.s (EB_NUM_HOOKS): Renamed to EB_NUMBER_OF_HOOKS.
	* eb/def.s (EB_NUM_SEARCH_CONTEXTS): Renamed to
	EB_NUMBER_OF_SEARCH_CONTEXTS.

2000-03-27  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebzip/ebzip.c: Don't include `ctype.h'.  Define compatible
	character test and letter conversion macros.
	* ebinfo/ebinfo.c: Likewise.

	* eb/defs.h (EB_EB_MAXLEN_WORD): Renamed to EB_MAX_WORD_LENGTH.
	* eb/defs.h (EB_MAXLEN_EB_TITLE): Renamed to EB_MAX_EB_TITLE_LENGTH.
	* eb/defs.h (EB_MAXLEN_EPWING_TITLE): Renamed to
	EB_MAX_EPWING_TITLE_LENGTH.
	* eb/defs.h (EB_MAXLEN_TITLE): Renamed to EB_MAX_TITLE_LENGTH.
	* eb/defs.h (EB_MAXLEN_BASENAME): Renamed to EB_MAX_BASE_NAME_LENGTH.
	* eb/defs.h (EB_MAXLEN_LANGNAME): Renamed to
	EB_MAX_LANGUAGE_NAME_LENGTH.
	* eb/defs.h (EB_MAXLEN_MESSAGE): Renamed to EB_MAX_MESSAGE_LENGTH.
	* eb/defs.h (EB_MAXLEN_MULTI_LABEL): Renamed to
	EB_MAX_MULTI_LABEL_LENGTH.
	* eb/defs.h (EB_MAXLEN_ALTERNATION_TEXT): Renamed to
	EB_MAX_ALTERNATION_TEXT_LENGTH.
	* eb/error.h (EB_MAXLEN_ERROR_MESSAGE): Renamed to 
	EB_MAX_ERROR_MESSAGE_LENGTH.

	* eb/defs.h (EB_FILENAME_START): Renamed to EB_FILE_NAME_START.
	* eb/defs.h (EB_FILENAME_SOUND): Renamed to EB_FILE_NAME_SOUND.
	* eb/defs.h (EB_FILENAME_CATALOG): Renamed to EB_FILE_NAME_CATALOG.
	* eb/defs.h (EB_FILENAME_LANGUAGE): Renamed to EB_FILE_NAME_LANGUAGE.
	* eb/defs.h (EB_FILENAME_VTOC): Renamed to EB_FILE_NAME_VTOC.
	* eb/defs.h (EB_FILENAME_WELCOME): Renamed to EB_FILE_NAME_WELCOME.
	* eb/defs.h (EB_FILENAME_CATALOGS): Renamed to EB_FILE_NAME_CATALOGS.
	* eb/defs.h (EB_FILENAME_HONMON): Renamed to EB_FILE_NAME_HONMON.
	* eb/defs.h (EB_FILENAME_HONMON2): Renamed to EB_FILE_NAME_HONMON2.
	* eb/defs.h (EB_FILENAME_APPENDIX): Renamed to EB_FILE_NAME_APPENDIX.
	* eb/defs.h (EB_FILENAME_FUROKU): Renamed to EB_FILE_NAME_FUROKU.

	* eb/defs.h (EB_DIRNAME_DATA): Renamed to EB_DIRECTORY_NAME_DATA.
	* eb/defs.h (EB_DIRNAME_GAIJI): Renamed to EB_DIRECTORY_NAME_GAIJI.

	* eb/defs.h (EB_Font_Struct): Rename the member `filename' to
	`file_name'.

	* eb/font.h (EB_ERR_EMPTY_FILENAME): Renamed to EB_ERR_EMPTY_FILE_NAME.
	* eb/font.h (EB_ERR_TOO_LONG_FILENAME): Renamed to 
	EB_ERR_TOO_LONG_FILENAME.

	* eb/error.h (EB_ERR_EMPTY_FILENAME): EB_ERR_EMPTY_FILE_NAME.
	* eb/error.h (EB_ERR_TOO_LONG_FILENAME): EB_ERR_TOO_LONG_FILE_NAME.

2000-02-27  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Search_Context): Add the member `keyword_heading'
	for keyword search.
	
	* eb/text.c, eb/text.h (eb_seek, eb_tell): Renamed to eb_seek_text()
	and eb_tell_text().

2000-02-10  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/zio.c (eb_zopen_epwzipped): Fix offset passed to lseek().
	Reported by Takashi NEMOTO.

2000-01-23  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* configure.in (--with-zlib): zlib is detected automatically.

	* acconfig.h (MAILING_ADDRESS, PACKAGE, VERSION, RETSIGTYPE_VOID,
	HAVE_STRUCT_UTIMBUF, WITH_SYMBOL_UNDERSCORE, DOS_FILE_PATH,
	EXEEXT_EXE): Removed.
	* acinclude.m4 (HAVE_STRUCT_UTIMBUF): Specify the third argument
	of AC_DEFINE.
	* cofigure.in (RETSIGTYPE_VOID): Likewise.
	* cofigure.in (EXEEXT_EXE): Likewise.

	* configure.in: Delete the `--enable-samples' option.
	* Makefile.am (ENABLE_SAMPLES): Remove the condition variable.

	* doc/Makfile.am (info_TEXINFOS): Remove eb.texi.
	* doc/Makfile.am (eb_TEXINFOS): Removed.
	* doc/Makfile.am (EXTRA_DIST): Remove `stamp-eb'.
	* doc/Makfile.am (eb-ver.texi, stamp-eb): Delete the targets.

	* eb/filename.c: Don't use ctype.h.

	* eb/text.c, eb/text.h (eb_forward_text): New function.
	* eb/text.c, eb/eb.h (eb_forward_heading): New function.
	* eb/search.c (eb_hit_list_keyword): Use eb_forward_heading()
	to get heading position.

2000-01-22  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* ebfont/ebfont.c (canonicalize_path): New function, copied
	from eb/ebzip.c.
	* ebzip/ebzip.c (main): Don't call eb_canoncalize_filename() to
	canonicalize `out_path'.  Use canonicalize_path() instead.
	* ebfont/ebfont.c (make_book_fonts): Check whether `book_path'
	is "/".

	* eb/setword.c (eb_convert_lower_latin): Also convert alphaet
	with an accent mark to the corresponding upper letter.

	* eb/font.c, eb/font.h (eb_font_count): Removed.
	* eb/subbook.c, eb/eb.h (eb_subbook_count): Removed.
	* eb/appsub.c, eb/eb.h (eb_appendix_subbook_count): Removed.
	* eb/language.c, eb/language.h (eb_language_count): Removed.
	* eb/message.c, eb/language.h (eb_message_count): Removed.
	* eb/multi.c, eb/eb.h (eb_multi_search_count): Removed.
	* eb/multi.c, eb/eb.h (eb_multi_entry_count): Removed.

2000-01-18  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/hook.c (euc2ascii_table_a1, euc2ascii_table_a3): Renamed
	to `euc_a1_to_ascii_table' and `euc_a3_to_ascii_table'.

	* eb/defs.h (EB_TEXT_ERROR): Defined.
	* eb/text.c (eb_read_text, eb_heading, eb_rawtext): If it returns
	with an error, set context mode to `EB_TEXT_ERROR'.

	* ebappendix/ebappendix.in ($copyright): Defined and use it
	when `ebappendix --version'.
	* ebrefile/ebrefile.in ($copyright): Likewise.
	
2000-01-16  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (eb_text, eb_heading, eb_rawtext): Renamed to
	eb_read_text(), eb_read_heading(), eb_read_rawtext().

	* eb/defs.h (EB_CASE_UNCHANGE, EB_SUFFIX_UNCHANGE): Define the cpp
	macros.

	* ebinfo/ebinfo.c (output_error_message): New static function.
	* ebinfo/ebinfo.c: Use output_error_message() to output an error
	messge.

	* ebzip/ebzip.c (find_subbook): Oputput an error message when
	an errorr occurs.
	* ebzip/ebzip.c: Return EB_SUBBOOK_ERROR rather than -1 if
	the target subbook is not found.

2000-01-15  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/match.c (eb_match_exactword): Also ignores NULs in the
	tail of a pattern.

	* eb/search.c (eb_presearch_word, eb_hit_list_word,
	eb_hit_list_keyword, eb_hit_list_multi): Support DUDEN, which
	has leaf index pages of fixed length entires.  

	* eb/defs.h (Text_Context_Struct): Remove the membsers
	`modifier_hook' and `reference_hook'.
	* eb/text.c (eb_read_internal): Delete operations to `modifier_hook'
	and `reference_hook'.
	* eb/text.h (EB_HOOK_NARROW, EB_HOOK_SUBSCRIPT, EB_HOOK_SUPERSCRIPT,
	EB_HOOK_EMPHASIS, EB_HOOK_PICTURE, EB_HOOK_MENU, EB_HOOK_SOUND,
	EB_HOOK_REFERENCE, EB_HOOK_KEYWORD): Remove these hook codes.
	* eb/defs.h (EB_NUM_HOOKS): Updated.
	
2000-01-13  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Hook_Struct): The member `function' is pointer
	to a function that returns `EB_Error_Code', not `int'.

	* eb/error.h (EB_NO_ERR): Renamed to `EB_SUCCESS'.

	* eb/search.c (EB_PAGE_ID_LEAF, EB_PAGE_ID_START, EB_PAGE_ID_END,
	EB_PAGE_ID_HAVE_GROUP): Define these cpp macros.
	* eb/search.c (eb_presearch_word, eb_hit_list_word,
	eb_hit_list_keyword, eb_hit_list_multi): Use EB_PAGE_ID_* macros
	to check page id.

2000-01-10  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (eb_read_internal): Discard cache data when read error
	occurs.
	* eb/search.c (eb_hit_list_word, eb_hit_list_keyword,
	eb_hit_list_multi): Likewise.

	* eb/search.c (cache_rest_length): Declare as an auto variable
	in eb_read_internal(), not static variable in this file.
	* eb/search.c (cache_location, cache_length): New static variables.
	* eb/text.c (eb_read_internal): Check cache status before processing
	text.
	
	* eb/eb.c, eb/book.c: All the functions defined in eb/eb.c
	are moved to `eb/book.c'.
	* eb/eb.c, eb/eb.h (eb_initialize_library, eb_finalize_library):
	New functions.
	* eb/book.c (eb_initialize, eb_clear): Renamed to
	`eb_initialize_book' and `eb_finalize_book'.
	* eb/appendix.c (eb_clear_appendix): Renamed to `eb_finalize_appendix'.

	* eb/book.c (eb_finalize_book): Don't call eb_initialize_book().
	Reset variables by itself.
	* eb/appendix.c (eb_finalize_appendix): Don't call
	eb_finalize_appendix().  Reset variables by itself.

	* ebzip/ebzip.c (canonicalize_path): New function.
	* ebzip/ebzip.c (main): Don't call eb_canoncalize_filename() to
	canonicalize `out_path'.  Use canonicalize_path() instead.
	* ebzip/ebzip.c (main): Define `book_path' as an array of char,
	rather than a pointer to char.  Copy a book's path to it, and
	call canonicalize_path() to canonicalize it.
	* ebzip/ebzip.c (zip_book, unzip_book, zipinfo_book): Also takes
	`book_path' as an argument.  Refer it rather than `book->path'.
	* ebzip/ebzip.c (zip_book, unzip_book, zipinfo_book): Check whether
	`book_path' and/or `out_path' is "/".

2000-01-09  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/zio.c (eb_zclaer): dispose `cache_buffer' only when it is not
	NULL.
	* eb/zio.c (eb_zclaer): Renamed to eb_zfinalize().
	* eb/zio.c (eb_zinitialize): Add the new function.
	* eb/zio.c (eb_zinitialize, eb_zread_ebzipped, eb_zread_epwzipped):
	Allocate memory to `cache_buffer' in the new function eb_zinitialize()
	rather than eb_zread_ebzipped() or eb_zread_epwzipped().
	
	* eb/text.c (eb_text, eb_heading): Don't initialize `default_hookset'.
	* eb/text.c (default_hookset): Move to `hook.c' and renamed to
	`eb_default_hookset'.
	* eb/internal.h (eb_default_hookset): Declare as an external variable.
	* eb/hook.c, eb/internal.h (eb_initialize_default_hookset):
	Add the function.

	* ebzip/ebzip.c (main): Go to `die' when eb_subbook_list() fails,
	or when an unknown subbook is specified.
	* eb/ebzip.c (main): Call eb_clear() at the end of the routine.

	* eb/search.c (eb_hit_list): Fully re-written to support
	keyword and multi search.

	* eb/search.c (eb_initialize_search): Initialize also
	`search_contexts[0].code' in a book.
	* eb/search.c (eb_presearch_word, eb_hit_list_word,
	eb_hit_list_keyword, eb_hit_list_multi): Take a search context
	as a second argument to record search parameters.
	* eb/search.c (eb_search_word_internal): Use search context 
	in a target book.
	* eb/search.c (eb_hit_list): Likewise.
	* eb/search.c (eb_hit_list_internal): Likewise.
	* eb/exactword.c (eb_search_exactword): Likewise.
	* eb/word.c (eb_search_word): Likewise.
	* eb/endword.c (eb_search_endword): Likewise.

2000-01-08  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_BOOK_NONE): Define the cpp macro.
	* eb/text.c (eb_initialize_text, eb_read_internal): Use EB_BOOK_NONE 
	rather than -1, to represent no cache data is buffered.
	* eb/search.c (eb_initialize_search, eb_presearch_word): Likewise.
	
	* eb/appsub.c (eb_initialize_appendix_subbook,
	eb_set_appendix_subbook): Define the `succeeded' label, and
	go to there when there is nothing to be done in the latter of the
	function.
	* eb/font.c (eb_set_font) Likewise.
	* eb/language.c (eb_set_language): Likewise.
	* eb/narwalt.c (eb_narrow_character_text_jis,
	eb_narrow_character_text_latin): Likewise.
	* eb/narwfont.c (eb_have_narrow_font): Likewise.
	eb/search.c (eb_presearch_word, eb_hit_list_word, eb_hit_list_keyword,
	eb_hit_list_multi): Likewise.
	* eb/subbook.c (eb_initialize_subbook, eb_set_subbook): Likewise.
	* eb/widealt.c (eb_wide_character_text_jis,
	eb_wide_character_text_latin): Likewise.
	* eb/widefont.c (eb_have_wide_font): Likewise.
	
	* eb/appendix.c, eb/appsub.c, eb/copyright.c, eb/eb.c, 
	eb/exactword.c, eb/filename.c, eb/font.c, eb/graphic.c, eb/hook.c,
	eb/keyword.c, eb/language.c, eb/menu.c, eb/message.c, eb/multi.c,
	eb/narwalt.c, eb/narwfont.c, eb/search.c, eb/setword.c, eb/stopcode.c,
	eb/subbook.c, eb/text.c, eb/widealt.c, eb/widefont.c, eb/word.c:
	Define the `failed' label in most functions.  Go to there
	if error.

	* eb/defs.h (EB_SUBBOOK_ERROR): Define the cpp macro.
	* eb/appsub.c (eb_appendix_subbook): Return EB_SUBBOOK_ERROR
	rather than -1 if error.
	* eb/subbook.c (eb_subbook): Likewise.

	* eb/defs.h (EB_DISC_ERROR): Define the cpp macro.
	* eb/eb.c (eb_disc_type): Return EB_DISC_ERROR rather than -1
	if error.
	* eb/defs.h (EB_CHARCODE_ERROR): Define the cpp macro.
	* eb/eb.c (eb_character_code): Return EB_CHARCODE_ERROR rather than
	-1 if error.

	* eb/font.h (EB_FONT_ERROR): Define the cpp macro.
	* eb/eb.c (eb_font): Return EB_FONT_ERROR rather than -1 if error.

	* eb/language.h (EB_LANG_ERROR): Define the cpp macro.
	* eb/setword.c (eb_language): Return EB_LANG_ERROR rather than
	-1 if error.

	* eb/setword.c (eb_reverse_word_latin): Don't check whether
	`word_length' is 0.  This is not needed.
	* eb/setword.c (eb_reverse_word_jis): Don't check whether
	`word_length' is less than 2.  This is not needed.

	* eb/messages.c (eb_initialize_messages): Return 0 or -1.

	* eb/narwalt.c (eb_narrow_alt_start, eb_narrow_alt_end): 
	Return -1 if an error occurs.
	* eb/widealt.c (eb_wide_alt_start, eb_wide_alt_end): Likewise.
	
2000-01-07  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Appendix_Struct, EB_Book_Struct, EB_Hookset_Struct):
	Add a member named `error'.
	* eb/appendix.c (eb_initialize_appendix): Initialize `error' to 0.
	* eb/eb.c (eb_initialize): Initialize `error' to 0.
	* eb/hook.c (eb_initialize_hookset): Initialize `error' to 0.

	* eb/setword.c (eb_fix_word_latin, eb_fix_word_jis): 
	Takes the argument `book' as the first argument.

	* eb/appendix.c, eb/appsub.c, eb/hook.c, eb/narwalt.c, eb/widealt.c:
	Set `appendix->error' instead of `eb_error', if an error occurs.
	* eb/copyright.c, eb/eb.c, eb/error.c, eb/font.c, eb/graphic.c,
	eb/keyword.c, eb/language.c, eb/match.c, eb/menu.c, eb/message.c,
	eb/multi.c, eb/narwfont.c, eb/search.c, eb/setword.c, eb/stopcode.c,
	eb/subbook.c, eb/text.c, eb/uint.c, eb/widefont.c: Set `book->error'
	instead of `eb_error', if an error occurs.
	* eb/hookset.c: Set `hookset->error' instead of `eb_error',
	if an error occurs.

	* eb/filename.c (eb_canonicalize_filename,
	eb_canonicalize_filename_internal, eb_canonicalize_appendix_filename):
	Rename the original `eb_canonicalize_filename()' to `...internal()',
	and add the argument `error'.
	Add the new function `eb_canonicalize_filename()' and
	`eb_canonicalize_appendix_filename()'.
	* filename.c (eb_catalog_filename_internal, 
	eb_fix_filename_internal): Call `eb_canonicalize_filename_internal()',
	instead of `eb_canonicalize_filename'.
	* eb/eb.c (eb_bind): Call `eb_canonicalize_appendix_filename()',
	instead of `eb_canonicalize_filename'.

	* eb/error.c, eb/error.h (eb_error): Removed.
	* eb/error.c, eb/error.h (eb_error, eb_appendix_error,
	eb_hookset_error): Add these functions.
	* eb/error.c, eb/error.h (eb_error_message, eb_error_message2):
	The original eb_error_message2() is renamed to eb_error_message().
	The original eb_error_message() is overwritten.
	
	* eb/narwfont.c (eb_narrow_font_width2, eb_narrow_font_size2):
	Don't set `eb_error'.
	* eb/widefont.c (eb_wide_font_width2, eb_wide_font_size2):
	Likewise.
	* eb/bitmap.c (eb_narrow_font_xbm_size, eb_narrow_font_xpm_size,
	eb_narrow_font_gif_size, eb_wide_font_xbm_size,
	eb_wide_font_xpm_size, eb_wide_font_gif_size):
	Likewise.
	
	* eb/text.c, eb/text.h (eb_initialize_hookset, eb_set_hook,
	eb_set_hooks): Move to `eb/hook.c'.
	* eb/hook.c, eb/text/h (eb_hook_stopcode_dummy,
	eb_hook_stopcode_mixed): Removed.

	* Makefile.am (EXTRA_DIST): Add `ChangeLog.0'.

	* eb/font.c (eb_font_count): Return -1 if an error occurs.

	* eb/appendix.c (eb_bind_appendix): Don't call 
	eb_initialize_appendix(), but eb_clear_appendix().

2000-01-06  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_Subbook): Rename the member `multi' to `multis'.

	* eb/font.c (eb_initialize_eb_fonts, eb_initialize_epwing_fonts):
	Use memmove(), not memcpy().
	* eb/message.c (eb_initialize_messages): Likewise.
	* eb/text.c (eb_read_internal): Likewise.
	* eb/font.c, eb/message.c, eb/text.c: Check for HAVE_MEMMOVE.
	* eb/memmove.c: New file.
	* eb/internal.h: Declare eb_memmove().
	* eb/Makefile.am (libeb_la_SOURCES): Add `memmove.c'.
	* configure.in (AC_CHECK_FUNCS): Add `memmove'.
	
	* eb/search.c: Include string.h, and check HAVE_MEMCPY and
	MEMMOVE.

	* libebutils/memset.c (memset): Type of return value is `VOID *',
	not `void *'.

2000-01-05  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/defs.h (EB_SEARCH_EXACTWORD, EB_SEARCH_WORD, EB_SEARCH_ENDWORD,
	EB_SEARCH_KEYWORD, EB_SEARCH_MULTI,EB_SEARCH_NONE): Defined.
	* eb/defs.h (EB_Search_Code, EB_Text_Code): Defined.
	* eb/defs.h (EB_Multi_Search_Struct, EB_Search): Defined.
	* eb/defs.h (EB_Search_Context_Struct, EB_Search_Context): Defined.
	* eb/defs.h (EB_Multi_Entry_Struct, EB_Multi_Entry): Merged to
	`EB_Search_Struct' and `EB_Search'.
	* eb/defs.h (EB_Search_Context_Struct): Add the member `label' and
	`candidates_page', and rename `page' to `index_page'.
	* eb/defs.h (EB_Multi_Search_Struct): Add the member `search', and
	change the type of `entries' from `EB_Multi_Entry' to `EB_Search'.
	* eb/defs.h (EB_Subbook_STruct): Change the type of `multi' from
	`EB_Search[]' to `EB_Multi_Search[]'.

	* eb/eb.h: Declaration of functions defined in eb/filename.c
	are moved to `eb/internal.h'.

	* eb/search.c: Move eb_have_word_search() and eb_search_word()
	to the new file eb/word.c.
	* eb/search.c: Move eb_have_endword_search() and eb_search_endword()
	to eb/endword.c, new file.
	* eb/search.c: Move eb_have_endword_search() and eb_search_endword()
	to the new file eb/endword.c.
	* eb/search.c: Move eb_have_exactword_search() and
	eb_search_exactword() to the new file eb/exactword.c.

	* eb/multi.c, eb/eb.h (eb_multi_entry_have_exactword_search,
	eb_multi_entry_have_word_search, eb_multi_entry_have_endword_search,
	eb_multi_entry_have_keyword_search): Removed.
	* eb/multi.c, eb/eb.h (eb_multi_entry_have_candidates,
	eb_multi_entry_candidates): Added these functions.
	* eb/multi.c, eb/eb.h (eb_search_multi): Added these functions.

	* eb/error.h (EB_ERR_DIFF_SUBBOOK, EB_ERR_DIFF_BOOK,
	EB_ERR_NO_PREV_SEARCH, EB_ERR_NO_PREV_CONTENT,
	EB_ERR_NO_SUCH_MULTI_ID, EB_ERR_NO_SUCH_ENTRY_ID): Removed.
	* eb/error.h (EB_ERR_FAIL_OPEN_START, EB_ERR_FAIL_READ_START,
	EB_ERR_FAIL_SEEK_START, EB_ERR_UNEXP_START, EB_ERR_NO_START):
	Removed these obsolete error code names that are remained for
	backword compatibility.

	* eb/error.h (EB_ERR_TOO_MANY_WORDS, EB_ERR_NO_WORD): Add these
	to the error code list.

	* eb/hook.c (euc2ascii_table_a1, euc2ascii_table_a3) Declared
	as `const'.

	* eb/keyword.c: Define `eb_search_keyword()'.

	* eb/setword.c, eb/internal.h (eb_set_keyword, eb_set_multiword):
	Added these functions.

	* eb/subbook.c (eb_initialize_indexes): Initialize `label' and
	`candidates_page', the struct members in `EB_Search'.

	* eb/search.c (comparison_result, word, canonicalized_word, page,
	offset, page_id, entry_count, entry_index): These static variables
	are moved to struct members of `EB_Search_Context'.
	* eb/search.c (subbook_code): The static variable are removed.
	* eb/search.c (book_code, page_buffer, bufp): These static variables
	are renamed to `cache_book_code', `cache_buffer' and `cachep'.
	* eb/search.c (cache_page): New static variable.

	* eb/search.c (eb_search_word_internal): Renamed to
	`eb_presearch_word'.
	* eb/search.c (eb_hit_list_internal): Renamed to `eb_hit_list_word'.
	* eb/search.c (eb_hit_list_word): Read a page at the beginning of
	the loop, instead of the tail.
	* eb/search.c (eb_hit_list_keyword, eb_hit_list_multi): New functions.
	* eb/defs.h (EB_Book_Struct): Add the member `search_contexts'.
	* eb/defs.h (EB_Search_Context_Struct): Defined.

	* eb/ebinfo.c (output_multi_information): Output `with candidates'
	instead of `search methods'.
	
2000-01-03  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/setword.c (jisx0208_table, jisx0201_table, long_vowel_table,
	voiced_consonant_table): Declared as `const'.
	* eb/hook.c (euc2ascii_table_a1, euc2ascii_table_a3): Likewise.

	* eb/defs.h, eb/internal.h: All functions defined in `eb/filename.h'
	are declared in `eb/internal.h', not `eb/defs.h'.

	* eb/text.h: Use `EB_UINT_FUNCTION', not `EB_UINT_FUNC'.

1999-12-28  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/bitmap.c (gif_preamble): Renamed to `gif_default_preamble'.
	* eb/bitmap.c (eb_bitmap_to_gif): Don't modify `gif_default_preamble'.

1999-12-26  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/text.c (eb_read_internal): Discard cache buffered in 
	`cache_buffer' if different book's data are cached.
	* eb/text.c (eb_read_internal): Update `book->text_context.location'
	when the pointed character is prossessed.
	
	* eb/text.c (eb_initialize_text): Rewritten.

	* eb/text.c (eb_text): Don't check for EB_ERR_NO_PREV_CONTENT,
	EB_ERR_DIFF_BOOK or EB_ERR_DIFF_SUBBOOK error.
	* eb/text.c (eb_heading): Likewise.

	* eb/text.c, eb_text.h (eb_tell): Add this function.

	* eb/text.c (eb_set_hook): Don't test whether `hook->code' is 
	EB_HOOK_NULL.

	* eb/text.c (bookcode, pagebuf, pagebufp, pagerest): Renamed to
	`cache_book_code`, `cache_buffer`, `cachep` and `cache_rest_length'.
	* eb/text.c (callcount, subcode, location, workbuf, worklen,
	modhook, refhook, narwflag, charapp, bookeof, textend, skipcode):
	Remove these static variables.
	* eb/defs.h (EB_Book_Struct): Add the member `text_context'.
	* eb/defs.h (EB_Text_Context_Struct): Defined.

	* eb/bitmap.c, eb/copyright.c, eb/ebunzip1.c, eb/error.c, 
	eb/filename.c, eb/graphic.c, eb/hook.c, eb/menu.c, eb/setword.c, 
	eb/stopcode.c, eb/uint.c: Include `internal.h'.
	* eb/uint.c: Undefine the cpp macros eb_uint1, eb_uint2, eb_uint3
	and eb_uint4.

	* eb/defs.h, eb/appendix.h, eb/eb.h, eb/error.h, eb/font.h,
	eb/internal.h, eb/language.h, eb/text.h (EB_P): 
	Defined in eb/defs.h only.

	* eb/appsub.c, eb/appendix.h (eb_appendix_subbook2): Removed.

	* eb/defs.h, eb/text.h (EB_Hook, EB_Hookset): Move definitions
	from eb/text.h to eb/defs.h,
	* eb/defs.h (EB_Book_Struct): Rename the member `sub_count' to
	`subbook_count', `sub_current' to `subbook_current', `lang_count'
	to `language_count' and `lang_current' to `language_current'.
	* eb/defs.h (EB_Subbook_Struct): Rename the member `sub_file' to
	`text_file', `word_alpha' to `word_alphabet' and `endword_alpha'
	to `endword_alphabet'.
	* eb/defs.h (EB_Language_Struct): Rename the member `msg_count' to
	`message_count'.
	* eb/defs.h (EB_Appendix_Struct): Rename the member `sub_count' to
	`subbook_count', and `sub_current' to `subbook_current'.
	* eb/defs.h (EB_Alternation_Cache_Struct): Rename the member
	`charno' to `char_no'.
	* eb/defs.h (EB_Huffman_Node_Struct): Change the type of the members
	`left` and `right` to `EB_Huffman_Node'.
	* eb/defs.h (EB_Huffman_Node, EB_Zip, EB_Alternation_Cache,
	EB_Appendix_Subbook, EB_Appendix, EB_Font, EB_Language,
	EB_Multi_Entry, EB_Search, EB_Subbook, EB_Text_Context, EB_Book,
	EB_Position, EB_Hit, EB_Hook, EB_Hookset): Typedef'ed first,
	and then define their conrete structs.
	* eb/defs.h, eb/error.h (EB_Error_Code): 
	Move definition from eb/error.h to eb/defs.h.
	* eb/defs.h, eb/text.c (EB_MAXLEN_TEXT_WORK, EB_NUM_HOOKS):
	Move definitions from eb/text.c to eb/defs.h.
	* eb/defs.h, eb/text.c (CONTENT_TEXT, CONTENT_HEADING,
	CONTENT_RAWTEXT): Move definitions from eb/text.c to eb/defs.h,
	and renamed to EB_TEXT_TEXT, EB_TEXT_HEADING and EB_TEXT_RAWTEXT.
	Add the new content type macro `EB_TEXT_NONE'.
	* eb/defs.h (EB_WORD_ALPHA): Renamed to `EB_WORD_ALPHABET'.

	* eb/error.c (messages): Add the `const' modifier.

1999-12-13  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/error.h: Rename the error code
	EB_ERR_FAIL_OPEN_START to EB_ERR_FAIL_OPEN_TEXT,
	EB_ERR_FAIL_READ_START to EB_ERR_FAIL_READ_TEXT,
	EB_ERR_FAIL_SEEK_START to EB_ERR_FAIL_SEEK_TEXT,
	EB_ERR_UNEXP_START to EB_ERR_UNEXP_TEXT,
	and EB_ERR_NO_START to EB_ERR_NO_TEXT.
	The old error code names are obsoleted, but still available.

	* eb/defs.h (EB_WORD_ALPHA): Renamed to `EB_WORD_ALPHABET'.
	* eb/defs.h (EB_Alternation_Cache): Rename the structure member
	`charno' to `char_no'.
	* eb/defs.h (EB_Appendix): Rename the structure member
	`sub_file' to `appendix_file',
	`sub_count' to `subbook_count'
	and `sub_current' to `subbook_current'.
	* eb/defs.h (EB_Language): Rename the structure member
	`msg_count' to `message_count'.
	* eb/defs.h (EB_Book): Rename the structure member
	`sub_file' to `text_file',
	`word_alpha' to `word_alphabet',
	`endword_alpha' to `endword_alphabet',
	`sub_count' to `subbook_count',
	`sub_current' to `subbook_current'.
	`sub_count' to `subbook_count',
	and `lang_current' to `language_current'.

1999-12-12  Motoyuki Kasahara  <m-kasahr@sra.co.jp>

	* eb/error.c (messages): Modify the error message of the error
	code 39 (EB_ERR_NO_START).

	* eb/text.c, eb/internal.h (eb_initialize_text): Add an argument
	`book'.  Initialize variables only when a code of `book' is
	equal to `bookcode'.
	* eb/seaarch.c, eb/internal.h (eb_initialize_search): Likewise.

	* eb/text.c (eb_text, eb_heading, eb_rawtext): Check `bookcode'
	for the EB_ERR_NO_PREV_CONTENT error when `callcount' is 0.

	* eb/text.c (eb_tell): Add a new function.

	* eb/text.c (eb_text_internal): Don't go to `at_end' when
	no enough space is left on the text buffer.