1
2003-03-05 Motoyuki Kasahara <m-kasahr@sra.co.jp>
5
* configure.ac (LIBEB_VERSION_INFO): Change LIBEB_VERSION_INFO from
6
7:0:2 to 7:2:1. The previous version 7:0:2 is wrong.
8
* configure.ac (AC_INIT): Set version to 3.3.2.
10
* eb/book.c (misleaded_book_table): Add `Nichi-Ei-Futsu Jiten'
13
2003-03-01 Motoyuki Kasahara <m-kasahr@sra.co.jp>
17
* configure.ac (LIBEB_VERSION_INFO): Change LIBEB_VERSION_INFO from
19
* configure.ac (AC_INIT): Set version to 3.3.1.
21
2003-02-28 Motoyuki Kasahara <m-kasahr@sra.co.jp>
23
* eb/match.c (eb_match_canonicalized_word,
24
eb_exact_match_canonicalized_word): If first `length' characters
25
of `canonicalized_word' and `pattern' are equivalent, the functions
26
return 0. This change is for EPWING Genius Eiwa Daijiten.
28
2003-02-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
30
* eb/readtext.c (eb_read_text, eb_read_heading, eb_read_text_internal,
31
eb_forward_text, eb_backward_text): Fix bugs in call of LOG().
33
2003-02-11 Motoyuki Kasahara <m-kasahr@sra.co.jp>
35
* eb/multi.c (eb_initialize_multi_searches): Fix a bug that it
36
doesn't initialize multi search entries correctly.
38
2003-02-07 Motoyuki Kasahara <m-kasahr@sra.co.jp>
42
* configure.ac (AC_INIT): Set VERSION to 3.3.
44
2003-02-01 Motoyuki Kasahara <m-kasahr@sra.co.jp>
46
* eb/binary.c (eb_read_binary_generic): Fix a bug that it cannot
47
read an MPEG file correctly.
49
2003-01-12 Motoyuki Kasahara <m-kasahr@sra.co.jp>
53
* doc-ja/Makefile.am (eb-ver.texi, stamp-eb): Add missing targets.
54
* doc-ja/Makefile.am (EXTRA_DIST): Add `stamp-eb'.
56
* eb/multi.c (eb_load_multi_searches): Set index style flags.
58
* configure.ac (AC_INIT): Set version to `3.3beta3'.
60
2002-10-30 Motoyuki Kasahara <m-kasahr@sra.co.jp>
64
* configure.ac (AC_INIT): Set version to 3.3beta2.
66
* eb/bitmap.c (eb_narrow_font_xbm_size, eb_narrow_font_xpm_size,
67
eb_narrow_font_gif_size, eb_narrow_font_bmp_size,
68
eb_wide_font_xbm_size, eb_wide_font_xpm_size,
69
eb_wide_font_gif_size, eb_wide_font_bmp_size): Fix bugs that
70
those functions always return EB_ERR_NO_SUCH_FONT, reported by
73
* m4/Makefile.am: Install `eb3.m4' in `$(datadir)/aclocal',
74
rathar than `$(pkgdatadir)', suggested by Takashi NEMOTO.
76
* eb/book.c (eb_load_catalog_epwing): Fix minor bugs, reported
79
2002-10-08 Motoyuki Kasahara <m-kasahr@sra.co.jp>
81
* eb/subbook.c (eb_load_subbook_indexes): Get index location
82
using `subbook->index_page'.
84
2002-10-07 Motoyuki Kasahara <m-kasahr@sra.co.jp>
86
* eb/appsub.c (eb_set_appendix_subbook, eb_set_appendix_subbook_eb,
87
eb_set_appendix_subbook_epwing): Fix error recovery codes.
88
* eb/subbook.c (eb_set_subbook, eb_set_subbook_eb,
89
eb_set_subbook_epwing): Ditto.
90
* eb/narwfont.c (eb_load_narrow_font): Ditto.
91
* eb/font.c (eb_set_font): Ditto.
93
2002-10-06 Motoyuki Kasahara <m-kasahr@sra.co.jp>
95
* eb/defs.h.in (EB_Subbook_Struct): add the `initialized' member.
96
* eb/font.c (eb_initialize_fonts): Reset `font->initialized'.
97
* eb/font.c (eb_load_fonts): New internal function.
98
* eb/narwfont.c (eb_load_narrow_font): Don't complain if it cannot
99
open a font file. Set `font->initialized' upon success.
100
* eb/subbook.c (eb_set_subbook): Call eb_load_fonts().
102
* eb/subbook.c (eb_set_subbook, eb_load_subbook): Set
103
`subbook->initialized' by eb_set_subbook().
105
2002-09-28 Motoyuki Kasahara <m-kasahr@sra.co.jp>
109
* eb/book.c (eb_load_catalog_epwing): Don't complain when it fails
110
to read extended information block.
112
* configure.ac (AC_INIT): Set version to `3.3beta1'.
114
2002-09-26 Motoyuki Kasahara <m-kasahr@sra.co.jp>
116
* configure.ac (AM_CONFIG_HEADER): Use `AC_CONFIG_HEADER' instead.
117
* configure.ac (AC_CYGWIN, AC_MINGW32): Removed.
118
* configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Package name and version
119
are set with AC_INIT, not AM_INIT_AUTOMAKE.
121
2002-09-08 Motoyuki Kasahara <m-kasahr@sra.co.jp>
123
* eb/defs.h.in (EB_Text_Context): Rename `text_end_flag' to
125
* eb/defs.h.in (EB_Text_Status_Code): Define the type and its
127
* eb/readtext.c (eb_forward_text): Fix a bug that eb_forward_text()
128
doesn't return EB_ERR_END_OF_CONTENT when the current file pointer
131
2002-09-05 Motoyuki Kasahara <m-kasahr@sra.co.jp>
133
* eb/appsub.c (eb_load_appendix_subbook): Fix a bug that the function
134
resets alt-text data for local characters if the appendix doesn't
137
2002-08-30 Motoyuki Kasahara <m-kasahr@sra.co.jp>
139
* eb/multi.c (eb_multi_label): Generate labels written in ASCII
140
if the book is written in ISO 8859-1.
142
2002-08-24 Motoyuki Kasahara <m-kasahr@sra.co.jp>
146
* configure.ac (AM_INIT_AUTOMAKE): Set version to `3.3beta0'.
147
* configure.ac (EB_VERSION_MINOR): Set to 3.
148
* configure.ac (LIBEB_VERSION_INFO): Set to 7:0:1.
150
* samples/font.c: New sample program.
151
* samples/Makefile.am (noinst_PROGRAMS): Add `font'.
152
* doc-ja/Makefile.am (eb_ja_TEXINFOS): add `font-c.texi'.
154
2002-08-23 Motoyuki Kasahara <m-kasahr@sra.co.jp>
156
* decomp, install-sh, mkinstalldirs, missing: Imported from
159
* eb/text.h: add EB_HOOK_BEGIN_IN_COLOR_BMP and
160
EB_HOOK_BEGIN_IN_COLOR_JPEG.
161
* eb/text.c: support those hooks for handling of inline color graphic.
163
2002-08-21 Motoyuki Kasahara <m-kasahr@sra.co.jp>
165
* eb/refile.c (refile_catalog): Fix a bug that extended information
166
blocks of eliminated subbooks are copied to `catalogs.new'.
168
2002-08-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
169
* eb/binary.c (eb_set_binary_mono_graphic, eb_set_binary_gray_graphic):
170
Don't read data from `honmong', but `honmon' or `honmon2' when
173
* eb/defs.h.in (EB_SIZE_EBZIP_HEADER): Removed.
175
2002-08-17 Motoyuki Kasahara <m-kasahr@sra.co.jp>
177
* eb/defs.h.in (EB_Book_Struct): Delete `version'.
178
* eb/defs.h.in (EB_Subook_Struct): Add `text_hint_zio_code',
179
`graphic_hint_zio_code' and `sound_hint_zio_code'.
181
* eb/book.c (eb_load_catalog): Revised.
182
Get text, graphic and sound file names from the `catalogs' file,
183
if the book is EPWING.
184
* eb/subbook.c (eb_set_subbook_epwing): Likewise.
185
* eb/filename.c (eb_find_file_name): `target_file_name' can be
186
equal to `found_file_name'.
188
* eb/build-post.h.in (EB_FILE_NAME_START, EB_FILE_NAME_HONMON,
189
EB_FILE_NAME_APPENDIX, EB_FILE_NAME_FUROKU): Defined.
190
* eb/defs.h.in (EB_SIZE_EB_CATALOG, EB_SIZE_EPWING_CATALOG):
191
Moved to `eb/built-post.h.in'.
193
* eb/build-post.h.in (EB_MAX_SEARCH_TITLES): Defined.
194
* eb/defs.h.in (EB_MAX_MULTI_SEARCHES): Change the value from 8
196
* eb/defs.h.in (EB_MAX_MULTI_TITLE_LENGTH): Defined.
197
* eb/defs.h.in (EB_Subbook_Struct): Add `search_title_page'.
198
* eb/defs.h.in (EB_Multi_Search_Struct): Add `title'.
199
* eb/multi.c (eb_load_multi_titles, eb_multi_title): New functions.
200
* eb/ebinfo.c (output_multi_information): Also output search titles.
202
2002-08-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
206
* eb/subbook.c (eb_set_subbook_epwing): Open `honmon2' for
207
sound or graphic file if `honmong' or `honmons' doesn't exist.
1
2006-08-31 Motoyuki Kasahara <m-kasahr@sra.co.jp>
5
* configure.ac (LIBEB_VERSION_INFO): Set it to 12:4:0.
6
* configure.ac (AC_INIT): Set version to 4.3.0.
7
* configure.ac (EB_VERSION_MINOR): Set it to 3.
9
* eb/subbook.c (eb_load_subbook_indexes): Support for image menu,
10
contributed by Kazuhiro Ito.
11
* eb/readtext.c (eb_read_text_internal): Ditto.
12
* eb/readtext.c (EB_MAX_ARGV): Change the value from 6 to 7.
13
* eb/text.h (EB_HOOK_BEGIN_IMAGE_PAGE, EB_HOOK_END_IMAGE_PAGE,
14
EB_HOOK_BEGIN_CLICKABLE_AREA, EB_HOOK_END_CLICKABLE_AREA):
16
* eb/menu.c (eb_have_image_menu, eb_image_menu): New functions.
17
* eb/defs.h (EB_NUMBER_OF_HOOKS): Change the value from 45 to 49.
18
* eb/defs.h (EB_Subbook_Struct): Add the member `image_menu'.
19
* ebinfo/ebinfo.c (output_information): Also display "image-menu".
21
2006-06-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
23
* Makefile.am (EXTRA_DIST): Add `ChangeLog.2'.
25
* ebappendix/ebappendix.in: Use `File::Basename' module.
26
* ebappendix/ebappendix.in: Specify `my' modifier to local variables.
27
* ebappendix/ebappendix.in: Use reference (\$var, \@array and \%hash)
28
instead of alias (*name).
30
* ebzip/ebunzip.c (ebzip_unzip_book_eb): Fix a bug that `ebunzip
31
--test' rewrites START files.
33
* eb/zio.c (zio_unzip_slice_sebxa): Fix a bug in the uncompression
36
2006-06-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
38
* eb/subbook.c (eb_set_subbook_epwing): Fix a bug that EB
39
cannot initialize a book if a subbook has stream data only
40
and the subbook shares `data' sub-directory with another
43
* libebutils/strlist.c, libebutils/strlist.h: New file.
44
* libebutils/Makefile.am (libebutils_a_SOURCES): Add strlist.c.
45
* libebutils/Makefile.am (dist_noinst_HEADERS): Add strlist.h.
46
* ebzip/zipbook.c (ebzip_zip_book_eb, ebzip_zip_book_epwing):
47
Use `String_List' to avoid compressing a file twice.
48
* ebzip/unzipbook.c (ebzip_unzip_book_eb, ebzip_unzip_book_epwing):
51
2006-05-15 Motoyuki Kasahara <m-kasahr@sra.co.jp>
53
* ebappendix/ebappendix.in: Fix a bug that ebappendix creates
54
an appendix in EB style even when it reads `catalogs.app'.
56
2005-11-26 Motoyuki Kasahara <m-kasahr@sra.co.jp>
60
* ltmain.sh, config.sub, config.guess, depcomp, install-sh:
61
Imported from libtool-1.5.20 and Automake-1.9.6.
63
* m4/lcmessage.m4, m4/gettext.m4, m4/sockaddrin6.m4, m4/in6addr.m4,
64
m4/sockinttypes.m4, configure.ac: Substitute AC_TRY_COMPILE,
65
AC_TRY_LINK and AC_TRY_RUN with AC_COMPILE_IFELSE, AC_LINK_IFELSE
68
2005-11-21 Motoyuki Kasahara <m-kasahr@sra.co.jp>
70
* m4/gettext.m4: Check for existance of libintl and libiconv even
71
when `--with-gettext-libraries' or `--with-iconv-libraries' option
73
* m4/gettext.m4: Do not perform AC_TRY_RUN to check for gettext().
74
We perform AC_TRY_LINK instead. On Debian Linux, the test program
75
doesn't succeed though gettext() is available. The test program
76
called setlocale(LC_ALL, "en_US") but it didn't change the locale
77
to `en' or `en_US' since "en_US" is not acceptable locale name on
79
* gttest.po, gttest.mo: Deleted.
80
* Makefile.am (EXTRA_DIST): Likewise.
82
2005-11-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
84
* eb/binary.c (eb_set_binary_wave): Fix a bug that it set wrong
85
wave data size to `context'.
86
* eb/binary.c (eb_set_binary_wave): Fix a bug that it generated
87
wrong RIFF header when the CD-ROM book provided fmt block of the
90
* eb/multiplex.c (ebnet_get_addresses): Retry getnameinfo()
91
without the NI_WITHSCOPEID flag if getnameinfo() with that flag
94
2005-10-25 Motoyuki Kasahara <m-kasahr@sra.co.jp>
96
* eb.conf.in (EBCONF_ENABLE_NLS): Fix a bug that Makefile filled
98
* Makefile.am (eb.conf): Likewise.
100
* eb/book.c (eb_load_catalog_epwing): When EPWING version is 1,
101
the function never read an extra information block.
103
2005-09-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
105
* eb/book.c (eb_load_catalog_epwing): Fix a bug that it sometimes
106
raises an error when the catalog file doesn't have extra information
109
2005-09-08 Motoyuki Kasahara <m-kasahr@sra.co.jp>
111
* eb/search.c (eb_and_hit_lists): Fix a bug that it outputs
112
a wrong debug mesasge at the end of the function.
114
2005-08-14 Motoyuki Kasahara <m-kasahr@sra.co.jp>
118
* eb/book.c (eb_load_catalog_epwing): Fix a bug that EB Library
119
sets wrong graphic and sound file names if target subbook contains
120
graphic and/or sound data in a text file.
122
* eb/book.c (eb_load_catalog_epwing): Correct a debug message
123
that shows EB_ERR_FAIL_READ_CAT error.
125
2005-05-29 Motoyuki Kasahara <m-kasahr@sra.co.jp>
129
* eb/book.c (eb_load_catalog_epwing): Fix a bug that EB Library
130
sets wrong graphic and sound file names if target subbook has
208
133
* eb/binary.c (eb_set_binary_wave): Fix a bug that the function
209
composes broken WAVE header.
211
* eb/text.h, eb/readtext.c: Define `EB_HOOK_BEGIN_DECORATION' and
212
`EB_HOOK_END_DECORATION', requested from Kenichi SUTO.
214
2002-06-10 Motoyuki Kasahara <m-kasahr@sra.co.jp>
218
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.2.2.
219
* configure.ac (LIBEB_VERSION_INFO): Change the version info from
222
* eb/appsub.c (eb_load_appendix_subbook): Fix a bug that EB Library
223
complains about absenseof alternation text definition.
225
* missing, install-sh, mkinstalldirs, depcomp, doc/mdate-sh,
226
doc-ja/mdate-sh: Imported from automake-1.6.1.
228
* libebutils/ebutils.c (output_version): Shorten the version info
231
2002-03-21 Motoyuki Kasahara <m-kasahr@sra.co.jp>
233
* ebzip/copyfile.c (ebzip_copy_file): fix type of the variable
236
2002-03-13 Motoyuki Kasahara <m-kasahr@sra.co.jp>
242
* eb/readtext.c (eb_is_stop_code): Fix a bug that it cannot
243
find stop-code when using appendix.
245
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.2.1.
246
* configure.ac (LIBEB_VERSION_INFO): Change it from 6:0:0 to 6:1:0.
248
2002-02-09 Motoyuki Kasahara <m-kasahr@sra.co.jp>
252
* configure.ac(AM_INIT_AUTOMAKE): Set version to 3.2.
254
2002-01-23 Motoyuki Kasahara <m-kasahr@sra.co.jp>
258
* po-eb/Makefile.in, po-ebutil/Makefile.in (DESTDIR):
259
Don't set DESTDIR in those files.
261
* eb/filename.c (eb_find_file_name): Return a filename with highest
264
* eb/zio.h (ZIO_P): Defined.
265
* eb/zio.c (LOG): Generate log codes if EB_BUILD_LIBRARY is defined.
267
* eb/bitmap.c, eb/binary.c, eb/readtest.c: Supress warnings by
270
2002-01-22 Motoyuki Kasahara <m-kasahr@sra.co.jp>
272
* m4/eb3.m4 (AC_REQUIRE): Also AC_FUNC_VPRINTF is required.
274
* eb/memmove.c (memmove): The function name should be eb_memmove().
275
* eb/strcasecmp.c (eb_strcasecmp, eb_strncasecmp): Revised.
276
* libebutils/strcasecmp.c (strcasecmp, strncasecmp): Revised.
278
* eb/build-post.h.in, eb/eb.h: Move declation of eb_enable_log()
279
and eb_disable_log() from `eb/build-post.h.in' to `eb/eb.h'.
280
* eb/log.c (eb_log_stderr): Do noting if the system doesn't have
281
vprintf() or dopront().
282
* eb/log.c (eb_initialize_log): New function.
283
Definition of the EB_DEBUG environment variable is checked here.
284
* eb/log.c (eb_set_log_function, eb_enable_log, eb_disable_log):
285
Call eb_initialize_log() if not initialized yet.
287
* config.guess: Use "2002-01-02".
288
* config.sub: Use "2002-01-10".
289
* depcomp, missing, mkinstalldirs: Import from Automake-1.5b.
291
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.2beta3.
293
* filename.c (eb_canonicalze_path_name): Delete "./" and "."
294
at the beginning of a given path name.
296
2002-01-19 Motoyuki Kasahara <m-kasahr@sra.co.jp>
298
* libebutils/getopt.c, libebutils/getopt.h: Delete `optreset' support
299
that is local extension to POSIX2.
303
* ebfont/ebfont.c (main): Stop parsing command line options when
304
getopt_long() returns -1 not EOF.
305
* ebinfo/ebinfo.c (main): Ditto.
306
* ebrefile/ebrefile.c (main): Ditto.
307
* ebzip/ebzip.c (main): Ditto.
308
* libebutils/getopt.c, libebutils/getopt.h, libebutils/getopt1.c:
309
Use getopt_long() taken from NetBSD, not from GLIBC.
310
* libebutils/Makefile.am (libebutils_a_SOURCES): Delete getopt1.c.
312
* eb/hook.c, eb/search.c, eb/subbook.c, eb/zio.c, ebrefile/ebrefile.c,
313
ebzip/sebxa.c, ebzip/unzipfile.c, ebzip/zipfile.c,
314
libebutils/getumask.c: Supress warnings by "gcc -Wconversion".
316
2002-01-18 Motoyuki Kasahara <m-kasahr@sra.co.jp>
319
* configure.ac (AM_INIT_AUTOMAKE): Set version to "3.2beta2".
321
* eb/zio.c (zio_unzip_slice_ebzip1): Fix a decompression bug.
323
* eb/defs.h (EB_MULTI_ENTRY_INVALID): Deleted.
325
* configure.ac (EB_VERSION_MAJOR, EB_VERSION_MINOR): AC_SUBST
327
* eb/Makefile.am (nodist_pkginclude_HEADERS): Add defs.h.
328
* eb/Makefile.am (pkginclude_HEADERS): use dist_pkginclude_HEADERS
330
* eb/defs.h: Now this file is generated from eb/defs.h.in by Makefile.
331
* eb/defs.h.in: New file.
332
* eb/Makefile.am (BUILT_SOURCES): Add defs.h.
333
* eb/Makefile.am (EXTRA_DIST): Add defs.h.in.
334
* eb/Makefile.am (CLEANFILES): Add stamp-defs-h and defs.h.
335
* eb/Makefile.am (defs.h, stamp-defs-h): New targets.
337
* eb/Makefile.am (nodist_libeb_la_SOURCES): Add widealt.c and
339
* eb/Makefile.am (libeb_la_SOURCES): use dist_libeb_la_SOURCES instead.
341
* eb/Makefile.am (dist_noinst_HEADERS): Add ebutils.h.
342
* eb/Makefile.am (noinst_HEADERS): use nodist_noinst_HEADERS instead.
344
* configure.ac (AC_ARG_ENABLE): Delete --enable-debug option.
345
* eb/build-post.h.in (LOG): Revised.
346
* eb/build-post.h.in (eb_log_flag): New global variable.
347
* eb/log.c (eb_enable_log, eb_disable_log): New functions.
348
* eb/log.c (eb_set_log_function): Also set zio log function.
349
* eb/log.c (eb_log, eb_log_stderr): Mutx lock with `log_mutex' is
350
done by eb_log_stderr(), not eb_log().
351
* eb/zio.c (zio_log_function, zio_log_flag): New variables.
352
* eb/zio.c (zio_enable_log, zio_disable_log, zio_set_log_function,
353
* eb/zio.c (LOG): Revised.
354
zio_log): New functions.
356
* eb/hook.c (eb_set_hooks): Log debug messages if `eb_log_flag'
358
* eb/keyword.c (eb_search_keyword): Ditto.
359
* eb/multi.c (eb_search_multi): Ditto.
361
* eb/eb.c (eb_initialize_library): Enable debug mode if the
362
EB_DEBUG environment variable is defined.
364
2002-01-01 Motoyuki Kasahara <m-kasahr@sra.co.jp>
368
* po-eb/Makefile.in, po-ebutils/Makefile.in (CATALOGS): Renamed
370
* po-eb/Makefile.in, po-ebutils/Makefile.in (POFILES): Added.
371
* po-eb/Makefile.in, po-ebutils/Makefile.in (DISTFILES): Add POFILES.
373
* eb/text.h (EB_HOOK_BEGIN_IN_COLOR_BMP, EB_HOOK_BEGIN_IN_COLOR_JPEG,
374
EB_HOOK_END_IN_COLOR_GRAPHIC): Removed.
375
* eb/text.h (EB_HOOK_BEGIN_GRAPHIC_REFERENCE,
376
EB_HOOK_END_GRAPHIC_REFERENCE, EB_HOOK_GRAPHIC_REFERENCE): Added.
377
* eb/readtext.c (eb_read_text_internal): Add handling of 1f4c and 1f6c
380
* eb/zio.c (eb_read_ebzip, eb_unzip_slice_ebzip): Uncompress data
382
* eb/zio.h (ZIO_MAX_EBZIP_LEVEL): Changed from 3 to 5.
384
2001-12-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
386
* eb/zio.c (zio_unzip_slice_ebzip1): Fix a memory leak bug.
388
2001-11-25 Motoyuki Kasahara <m-kasahr@sra.co.jp>
390
* eb/readtext.c (eb_read_rawtext): Fix a bug in handling of context
391
code, reported by Takashi NEMOTO.
393
* eb/bitmap.c (eb_narrow_font_bmp_size, eb_wide_font_bmp_size,
394
eb_bitmap_to_bmp): New functions.
396
* eb/font.c (main): `error_code' was used uninitialized. Fixed.
398
2001-11-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
400
* eb/ebzip1.c (ebzip1_slice): We must call deflateEnd() even when
401
deflate() doesn't succeed.
402
* eb/subbook.c (eb_set_subbook_epwing): We assume that "honmons"
403
in EPWING6 CD-ROM has been compressed, not plain.
405
2001-11-11 Motoyuki Kasahara <m-kasahr@sra.co.jp>
407
* eb/ebzip.c (eb_unzip_slice_epwing6): Fix a bug that it cannot
408
uncompress a page of compression_type != 0, reported by ISHIKAWA
411
2001-11-05 Motoyuki Kasahara <m-kasahr@sra.co.jp>
413
* eb/binary.c (eb_unset_binary): Fix typo in a log message.
414
* eb/subbook.c (eb_unset_subbook): Ditto.
416
* eb/subbook.c (eb_set_subbook): Fix a bug that the library
417
opens a directory with open() if there isn't "honmons" but "honmon2".
418
This problem is reported by Yamagata san.
420
2001-11-01 Motoyuki Kasahara <m-kasahr@sra.co.jp>
422
* eb/binary.c (eb_set_binary_mono_graphic): For Kanjigen (EB),
423
allow the 0x1f31 escape sequence with arguments of 8 bytes,
424
reported by Yamagata san.
426
2001-10-27 Motoyuki Kasahara <m-kasahr@sra.co.jp>
430
* doc-ja/Makefile.am (info_TEXINFOS): List in one line to avoid
431
a bug of GNU automake-1.5.
433
* configure.ac (AC_ARG_ENABLE): Add `--enable-samples'.
434
* Makefile.am (SAMPLES_SUBDIR): New variable.
435
* Makefile.am (SUBDIRS): Add $(SAMPLES_SUBDIR).
436
* samples/Makefile.am, samples/disctype.c, samples/subbook.c,
437
samples/word.c: Revised.
438
* samples/initexit.c, samples/text.c: New files.
440
* configure.ac (LIBEB_VERSION_INFO): Set to `6:0:0'.
442
2001-10-26 Motoyuki Kasahara <m-kasahr@sra.co.jp>
444
* m4/libtool.m4, ltmain.sh: Import libtool-1.4.2.
446
2001-10-25 Motoyuki Kasahara <m-kasahr@sra.co.jp>
448
* eb/error.h (EB_ERR_TEXT_END): Renamed to `EB_ERR_END_OF_CONTENT'.
450
* doc-ja/Makefile.am (info_TEXINFOS): Add `eb-ja.texi'.
451
* doc-ja/Makefile.am (eb_ja_TEXINFOS): Defined.
452
* doc-ja/Makefile.am (C2TEXI): Defined.
453
* doc-ja/eb-ja.texi: Added.
454
* doc-ja/Makefile.am (EXTRA_DIST): Add `c2texi'.
456
* doc-ja/c2texi: Delete copyright notice, #ifdef and #endif lines.
458
2001-10-23 Motoyuki Kasahara <m-kasahr@sra.co.jp>
460
* eb/build-post.h.in (EB_TEXT_NONE): Renamed to EB_TEXT_SEEKED.
461
* eb/error.h (EB_ERR_NO_PREV_SEEK): New error code.
462
* eb/readtext.c (eb_read_text, eb_read_heading, eb_read_rawtext,
463
eb_forward_text, eb_backward_text): If text_context code is
464
EB_TEXT_INVALID, return EB_ERR_NO_PREV_SEEK.
466
* eb/readtext.c (eb_backward_text): Fix a bug that it misses
467
detecting the backward location.
469
2001-10-22 Motoyuki Kasahara <m-kasahr@sra.co.jp>
471
* eb/defs.h (EB_Appendix_Subbook_Struct): Rename `stop0' to
472
`stop_code0', and `stop1' to `stop_code1' respectively.
474
* eb/text.c, eb/readtext.c: Rename text.c to readtext.c, and
475
create text.c, again.
476
* eb/Makefile.am (libeb_la_SOURCES): Add `readtext.c'.
478
* eb/readtext.c (eb_backward_text): New function.
480
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.2beta0.
482
2001-10-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
484
* eb/text.h (EB_HOOK_STOP_CODE): Removed.
485
* eb/error.h (EB_ERR_STOP_CODE): Removed.
486
* eb/hook.c: (eb_hook_stop_code): Removed.
487
* eb/text.c (eb_is_stop_code): New function.
488
* eb/text.c (eb_reset_text_context): Don't reset `location'.
489
* eb/text.c (eb_seek_text, eb_read_text, eb_read_heading,
490
eb_read_rawtext, eb_forward_text, eb_forward_heading): Use
491
eb_reset_text_context().
492
* eb/error.h (EB_ERR_STOP_CODE): Removed.
493
* eb/error.h (EB_ERR_TEXT_END): New error code.
495
* eb/text.c (eb_read_text_internal): Add the `forward_only' argument.
496
* eb/text.c (eb_forward_text): Remove the `hookset' argument.
497
* eb/text.c (eb_forward_text, eb_forward_heading): Revised.
498
* eb/defs.h (EB_Text_Context_Struct): Delete `in_step'.
500
* eb/search.c (eb_reset_search_context): Fix log format.
501
* eb/search.c (eb_initialize_default_hookset): Ditto.
503
2001-10-11 Motoyuki Kasahara <m-kasahr@sra.co.jp>
505
* eb/narwfont.c (eb_load_narrow_font): Check range of character
507
* eb/appsub.c (eb_load_appendix_subbook): Likewise.
509
* eb/narwfont.c (eb_load_narrow_font): Close a font file if the
510
number of local character is 0.
512
2001-10-05 Motoyuki Kasahara <m-kasahr@sra.co.jp>
514
* eb/text.c (eb_is_text_stopped): New function.
516
2001-10-03 Motoyuki Kasahara <m-kasahr@sra.co.jp>
518
* m4/Makefile.am (EXTRA_DIST, pkgdata_DATA): Remove `ssizet.m4'.
520
* eb/filename.c (eb_path_name_zio_code): Fix a bug in path name
523
* eb/hook.c (eb_hook_newline): Use `EB_SUCCESS', not `0'.
525
* eb/narwfont.c (eb_load_narrow_font): Log on exit.
527
2001-10-01 Motoyuki Kasahara <m-kasahr@sra.co.jp>
529
* eb/log.c (eb_log): Add missing va_end() call.
531
* eb/defs.h (EB_MAX_KEYWORDS, EB_NUMBER_OF_SEARCH_CONTEXTS): They
532
are now aliases of EB_MAX_MULTI_ENTRIES.
534
2001-09-27 Motoyuki Kasahara <m-kasahr@sra.co.jp>
536
* m4/eb3.m4 (AC_REQUIRE): Don't request `AC_TYPE_SSIZE_T'.
537
Check with AC_CHECK_TYPE(ssize_t, int), instead.
538
* m4/ssizet.m4: Removed.
539
* configure.ac (AC_TYPE_SSIZE_T): Removed. Use AC_CHECK_TYPE instead.
541
2001-09-24 Motoyuki Kasahara <m-kasahr@sra.co.jp>
543
* eb/subbook.c (eb_load_all_subbooks): Upon return, unset subbook.
545
* eb/defs.h: Include <limits.h>.
546
* eb/defs.h (EB_MAX_PATH_LENGTH): New macro.
547
* eb/build-pre.h (PATH_MAX): Removed. Use EB_MAX_PATH_LENGTH instead.
549
* m4/eb3.m4 (AC_CHECK_HEADERS): Defined. Check `limits.h'.
551
* eb/multi.c (eb_multi_entry_count): New function.
552
* eb/multi.c (eb_multi_entry_list): Revised.
553
New implementation is based on eb_multi_entry_count().
554
* ebinfo/ebinfo.c (output_multi_information):
555
Use eb_multi_entry_count() instead of eb_multi_entry_list().
557
2001-09-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
559
* ebfont/ebfont.c, ebinfo/ebinfo.c, ebrefile/ebrefile.c,
560
ebzip/ebzip.c (main): Check return value of eb_initialize_library().
562
2001-09-08 Motoyuki Kasahara <m-kasahr@sra.co.jp>
564
* ebzip/copyfile.c, ebzip/sebxa.c, ebzip/unzipbook.c,
134
appends "fmt " to the wave data mistakenly.
136
2005-04-18 Motoyuki Kasahara <m-kasahr@sra.co.jp>
138
* ltmain.sh, config.guess, config.sub, install-sh, m4/libtool.m4:
139
Import from libtool 1.5.18.
141
2005-04-10 Motoyuki Kasahara <m-kasahr@sra.co.jp>
143
* eb/build-post.h.in (EB_TEXT_TEXT): Renamed to EB_TEXT_MAIN_TEXT.
144
* eb/ebinfo.c: Support `Cross Search'.
146
* eb/multiplex.c (ebnet_create_new_connection): Set stream socket
147
to non-blocking I/O mode.
149
2005-03-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
151
* eb/binary.c (eb_read_binary_mono_graphic,
152
eb_read_binary_gray_graphic): Fix the 2nd argument to zio_lseek().
153
`line_length * -2' must be `(off_t)line_length * -2' since
154
`line_length' is `size_t' which is usually unsigned integral type.
156
2005-02-05 Motoyuki Kasahara <m-kasahr@sra.co.jp>
158
* eb/multi.c (eb_initialize_multi_searches,
159
eb_finalize_multi_searches): Remove the internal functions.
161
* eb/defs.h (EB_Subbook_Struct): Add the member `cross'.
162
* eb/defs.h (EB_MAX_CROSS_ENTRIES): Defined.
163
* eb/build-post.h.in (EB_SEARCH_CROSS): Defined.
164
* eb/Makefile.am (libeb_la_SOURCES): Add `cross.c'.
165
* eb/cross.c: New file.
166
* eb/search.c (eb_initialize_searches, eb_hit_list): Support for
168
* eb/subbook.c (eb_load_subbook_indexes): Ditto.
170
* eb/filename.c (eb_compose_movie_path_name): New function.
172
* configure.ac (AC_CONFIG_SUBDIRS): Remove `zlib'.
173
* Makefile.am (SUBDIRS): Remove $(ZLIB_SUBDIR).
175
2005-01-29 Motoyuki Kasahara <m-kasahr@sra.co.jp>
177
* ebrefile/ebrefile.c (copy_file, refile_book): `ebrefile'
178
preserves an original catalog file in an output directory as
179
"catalogs.old" and then it overwrites the original catalog file.
181
2004-12-05 Motoyuki Kasahara <m-kasahr@sra.co.jp>
185
* po-eb/Makefile.in, po-ebutils/Makefile.in (mkinstalldirs):
186
Defined as `$(install_sh) -d'.
187
* po-eb/Makefile.in, po-ebutils/Makefile.in (install_sh):
188
Defined as `@install_sh@'.
190
* configure.ac (LIBEB_VERSION_INFO): Set it to 9:1:0.
191
* configure.ac (AC_INIT): Set version to 4.1.3.
193
2004-11-28 Motoyuki Kasahara <m-kasahr@sra.co.jp>
197
* ebzip/ebzip.c (main): Also recognize `\' as a path separator when
198
DOS_FILE_PATH is defined.
200
* po-eb/Makefile.in, po-ebutils/Makefile.in (mkinstalldirs):
201
Defined as `$(SHELL) $(top_srcdir)/mkinstalldirs'.
202
It was defined as `$(mkdir_p)', but it causes cycric reference
203
on FreeBSD-5.3-RELEASE.
205
* eb/readtext.c (eb_seek_text): Accept position whose offset is
206
greater than or equal to EB_SIZE_PAGE.
207
* eb/binary.c (eb_set_binary_mono_graphic, eb_set_binary_gray_graphic,
208
eb_set_binary_wave, eb_set_binary_color_graphic, eb_set_binary_mpeg):
209
Don't accept position whose offset is less than 0.
211
2004-11-22 Motoyuki Kasahara <m-kasahr@sra.co.jp>
213
* eb/search.c (eb_hit_list_word, eb_hit_list_keyword,
214
eb_hit_list_multi): Fix a historical bug that EB Library cannot
215
find matched entries in particular books.
217
* eb/eb.c (eb_initialize_library): In debug mode, EB Library
218
displays its version number.
220
* eb/searh.c (eb_presearch_word, eb_hit_list_word,
221
eb_hit_list_keyword, eb_hit_list_multi): The debug messages also
222
outputs index page number.
224
2004-10-24 Motoyuki Kasahara <m-kasahr@sra.co.jp>
228
* libebutils/getopt.c: Fix a bug in getopt_long().
229
It may abort when it outputs the message "option `--xxx' requires
232
* eb/readtext.c (eb_write_text_byte2): Fix a bug that the function
233
writes incorrect data on the text buffer.
235
2004-07-03 Motoyuki Kasahara <m-kasahr@sra.co.jp>
239
* doc/Makefile.am (uninstall-hook): Defined.
240
* doc/Makefile.am: Fix bugs that `make all' fails when $(srcdir)
243
2004-06-23 Motoyuki Kasahara <m-kasahr@sra.co.jp>
245
* doc/Makefile.am (pkgdoc_DATA): Do not use meta characters to
246
specify splitted HTML files. Use `install-data-hook' instead.
248
2004-05-27 Motoyuki Kasahara <m-kasahr@sra.co.jp>
250
* README-ja, INSTALL-ja: Removed.
251
* README, INSTALL: These documents are now written in Japanese.
253
* doc-ja: Directory removed.
254
* doc: The documents under the directory are now written in Japanese
255
and with HTML format.
257
* Makefile.am (SUBDIRS): Delete `doc-ja'.
258
* configure.ac (AC_CONFIG_FILES): Ditto.
260
* configure.ac (AC_ARG_WITH): Add `--with-pkgdocdir' option.
262
* move-if-change: Rewrite it from scratch.
264
2004-05-22 Motoyuki Kasahara <m-kasahr@sra.co.jp>
266
* EB Library now adopts BSD License.
268
* ebzip/zipfile.c (ebzip_zip_file_internal),
269
ebzip/zipbook.c (ebzip_zip_book_eb, ebzip_zip_book_epwing):
270
Support for partial compression.
271
* ebzip/speedup.c: New file.
272
* ebzip/Makefile.am (ebzip_SOURCES): Add `ebzip/speedup.c'.
273
* po-ebutils/Makefile.in (POTFILES): Ditto.
275
2004-05-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
277
* ebzip/sebxa.c (fix_sebxa_start): Renamed to rewrite_sebxa_start().
278
* ebzip/sebxa.c (fix_sebxa_start): Fix a bug that ebzip outputs
279
`completed' message even when quiet flag is enabled.
281
2004-05-09 Motoyuki Kasahara <m-kasahr@sra.co.jp>
283
* ebzip/zipfile.c (ebzip_zip_file_internal): Output compression
284
result even when input is an empty file.
286
2004-05-08 Motoyuki Kasahara <m-kasahr@sra.co.jp>
288
* configure.ac (AC_CHECK_HEADERS): Delete `utime.h' and `sys/utime.h'.
289
Add `mbstring.h' instead.
290
* ebzip/ebzip.h (EBZIP_OVERWRITE_QUERY): Renamed to
291
EBZIP_OVERWRITE_CONFIRM.
293
* ebzip/ebzip.c: Add `--overwrite' (-w) option.
295
* ebzip/zipfile.c (ebzip_zip_file_internal): Don't abort when ebzip
296
fails to delete an original file. Delete an original file even when
297
ebzip outputs "already exists, skip the file" message.
298
ebzip/unzipfile.c (ebzip_unzip_file_internal): Ditto.
299
ebzip/copyfile.c (ebzip_copy_file): Ditto.
301
2004-05-07 Motoyuki Kasahara <m-kasahr@sra.co.jp>
303
* Use Automake-1.8.4 and Libtool-1.5.6.
305
* configure.ac (AC_TYPE_SIGNAL, AC_STRUCT_UTIMBUF): Removed.
306
* configure.ac (AC_CHECK_FUNCS): Remove dup2() and utime().
307
* m4/herrno.m4, m4/utimbuf,m4, m4/voidpointer.m4: Removed.
309
2004-04-29 Motoyuki Kasahara <m-kasahr@sra.co.jp>
311
* eb/bitmap.c (eb_bitmap_to_png): New function.
312
* eb/bitmap.c (eb_bitmap_to_xbm, eb_bitmap_to_xpm, eb_bitmap_to_gif,
313
eb_bitmap_to_bmp, eb_bitmap_to_png): They return EB_Error_Code.
314
* ebfont/ebfont.c: `ebfont' supports PNG format images.
316
* eb/zio.c: Enlarge cache buffer, contributed by Takashi NEMOTO.
318
* eb/setword.c (eb_convert_euc_jp): Fix argument order.
320
* configure.ac (AC_INIT): Set version to 4.1.
321
* configure.ac (EB_VERSION_MINOR): Set minor version to 1.
322
* configure.ac (LIBEB_VERSION_INFO): Set version to 9:0:0.
324
* configure.ac (AC_C_CONST, AC_C_PROTOTYPES, AC_C_VOID_POINTER,
325
AC_HEADER_STDC, AC_HEADER_STAT, AC_HEADER_TIME, AC_HEADER_DIRENT,
326
AC_FUNC_VPRINTF, AC_TYPE_OFF_T, AC_TYPE_SIZE_T): Removed.
327
* configure.ac (AC_CHECK_HEADERS): Remove checks for fcntl.h,
328
limits.h, memory.h, stdlib.h and unistd.h.
330
* configure.ac (AC_CHECK_FUNCS): Remove checks for getcwd(), memcpy(),
331
memmove() and strchr().
332
* configure.ac (AC_REPLACE_FUNCS): Remove checks for memset() and
335
* eb/appendix.c, eb/appendix.h, eb/appsub.c, eb/bcd.c, eb/binary.c,
336
eb/binary.h, eb/bitmap.c, eb/book.c, eb/booklist.c, eb/booklist.h,
337
eb/build-post.h.in, eb/build-pre.h, eb/copyright.c, eb/defs.h,
338
eb/eb.c, eb/eb.h, eb/ebnet.c, eb/ebnet.h, eb/endword.c, eb/error.c,
339
eb/error.h, eb/exactword.c, eb/filename.c, eb/font.c, eb/font.h,
340
eb/getaddrinfo.c, eb/getaddrinfo.h, eb/hook.c, eb/jacode.c,
341
eb/keyword.c, eb/linebuf.c, eb/linebuf.h, eb/lock.c, eb/log.c,
342
eb/makeproto, eb/match.c, eb/menu.c, eb/multi.c, eb/multiplex.c,
343
eb/narwalt.c, eb/narwfont.c, eb/readtext.c, eb/search.c, eb/setword.c,
344
eb/stopcode.c, eb/strcasecmp.c, eb/subbook.c, eb/text.c, eb/text.h,
345
eb/urlparts.c, eb/urlparts.h, eb/word.c, eb/zio.c, eb/zio.h,
346
ebfont/ebfont.c, ebinfo/ebinfo.c, ebrefile/ebrefile.c,
347
ebstopcode/ebstopcode.c, ebzip/copyfile.c, ebzip/ebzip.c,
348
ebzip/ebzip.h, ebzip/ebzip1.c, ebzip/sebxa.c, ebzip/unzipbook.c,
565
349
ebzip/unzipfile.c, ebzip/zipbook.c, ebzip/zipfile.c,
566
ebzip/zipinfobook.c, ebzip/zipinfofile.c: Don't include "eb.h",
567
"error.h", "font.h" nor "build-post.h", reported by satomii.
568
* ebzip/ebzip.h: Include "build-post.h", reported by satomii.
570
* ebrefile/ebrefile.c (main): Fix the bug of the order of
571
arguments passed to refile_book(), reported by satomii.
573
* ebzip/ebzip1.c, eb/defs.h: Don't use `EB_SIZE_EBZIP_MARGIN'.
575
* eb/binary.h: Delete declaration of eb_initialize_binary(), reported
577
* eb/log.c: Include <stdarg.h> instead of <varargs.h> if `WIN32' is
578
defined, requested by satomii.
579
* eb/zio.h: In function declaration, describe types of arguments if
580
`WIN32' is defined, requested by satomii.
582
* libebutils/ebutils.c (canonicalize_path): Add DOS version.
584
2001-08-30 Motoyuki Kasahara <m-kasahr@sra.co.jp>
588
* configure.ac (AC_INIT): Don't pass unique file as an argument.
589
Use AC_CONFIG_SRCDIR instead.
590
* configure.ac (AC_PREREQ): Set to 2.52.
592
2001-08-29 Motoyuki Kasahara <m-kasahr@sra.co.jp>
594
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.1.
596
* eb/zio.c (zio_open_plain): Set `slice_size'.
597
* eb/zio.c (zio_unzip_slice_sebxa): If copy offset is out of range,
600
* po-ebutils/Makefile.am (POTFILES): Add `ebzip/sebxa.c'.
601
* ebzip/Makefile.am (ebzip_SOURCES): Add `sebxa.c'.
602
* ebzip/sebxa.c: New file.
604
* ebzip/copyfile.c: Include "eb.h", "error.h" and "build-post.h".
605
* ebzip/unzipbook.c (ebzip_unzip_book_eb): Fix START file after
608
* ebzip/unzipfile.c (ebzip_unzip_file): Splited into
609
ebzip_unzip_file() ebzip_unzip_start_file() and
610
ebzip_unzip_file_internal().
611
* ebzip/zipfile.c (ebzip_zip_file): Splited into
612
ebzip_zip_file() ebzip_zip_start_file() and
613
ebzip_zip_file_internal().
614
* ebzip/zipinfofile.c (ebzip_zipinfo_file): Splited into
615
ebzip_zipinfo_file() ebzip_zipinfo_start_file() and
616
ebzip_zipinfo_file_internal().
618
* ebzip/zipinfobook.c (ebzip_zipinfo_book_eb):
619
Call ebzip_zipinfo_start_file() rather than ebzip_zipinfo_file() to
621
* ebzip/zipbook.c (ebzip_zip_book_eb):
622
Call ebzip_zip_start_file() rather than ebzip_zip_file() to
624
* ebzip/unzipbook.c (ebzip_unzip_book_eb):
625
Call ebzip_unzip_start_file() rather than ebzip_unzip_file()
626
to uncompress START file.
628
2001-08-28 Motoyuki Kasahara <m-kasahr@sra.co.jp>
630
* eb/zio.c (zio_unzip_slice_sebxa): Fix a critical bug that any
631
uncompression requests cannot be performed correctly.
633
2001-08-14 Motoyuki Kasahara <m-kasahr@sra.co.jp>
635
* eb/match.c (eb_match_word_latin, eb_exact_match_word_latin):
636
The function names ware exchanged by mistake, reported by
637
HASEGAWA Masafumi. Fixed.
638
* eb/appendix.h (eb_load_all_appendix_subbooks): Add missing
639
function declaration, reported by HASEGAWA Masafumi.
640
* eb/defs.h (EB_VERSION_MINOR): Set the macro to `1', reported
641
by HASEGAWA Masafumi.
643
* configure.ac (AC_ARG_ENABLE, AC_ARG_WITH): Use AC_HELP_STRING.
644
* m4/gettext.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Likewise.
645
* m4/eb3.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Likewise.
646
* configure.ac (AC_OUTPUT): Use AC_CONFIG_FILES to specify
647
configuration file names. Call AC_OUTPUT with no argument.
649
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.1beta2.
651
2001-08-13 Motoyuki Kasahara <m-kasahr@sra.co.jp>
653
* eb/configure.ac (AC_ARG_ENABLE): Disable `--enable-debug' by
654
default, reported by Kazu TAKAGI.
656
2001-08-07 Motoyuki Kasahara <m-kasahr@sra.co.jp>
660
* eb/configure.ac (LIBEB_VERSION_INFO): Set the varaible to 5:0:0.
662
* eb/ebconfig.h: Renamed to `eb/build-pre.h'.
663
* eb/internal.h.in: Renamed to `eb/build-post.h'.
665
* ebrefile/ebrefile.c: Include "*.h" not "eb/*.h".
666
* ebrefile/Makefile.am (INCLUDES): Delete `-I$(top_srcdir)' and
667
add `-I../eb -I$(top_srcdir)/eb' instead.
669
2001-08-06 Motoyuki Kasahara <m-kasahr@sra.co.jp>
671
* missing: Import from Automake 1.4j.
673
* eb/defs.h (EB_Lock_Struct, EB_Lock): Define the types
674
if ENABLE_PTHREAD or EBCONF_ENABLE_PTHREAD is defined.
676
2001-08-04 Motoyuki Kasahara <m-kasahr@sra.co.jp>
678
* ebzip/common.c, ebzip/copyfile.c, ebzip/ebzip.c,
679
ebzip/unzipbook.c, ebzip/unzipfile.c, ebzip/zipbook.c,
680
ebzip/zipfile.c, ebzip/zipinfobook.c, ebzip/zipinfofile.c,
681
ebzip/ebzip.h: Inclusions of header files and definitions of missing
682
macros in *.c are moved to `ebzip/ebzip.h'.
684
* configure.ac (AC_CHECK_HEADERS): Add `pthread.h'.
686
2001-08-03 Motoyuki Kasahara <m-kasahr@sra.co.jp>
688
* eb/ebconfig.h, eb/memmove.c, eb/zio.c, libebutils/memset.c:
689
lib/memset.c: Don't define VOID if it has been defined.
690
* eb/ebconfig.h, eb/defs.h: Don't define EB_P if WIN32 is defined.
691
* configure.ac (AC_CHECK_HEADERS): Add `sys/utime.h'.
692
* win32/config.h, win32/dirent.h, win32/dirent.c, win32/funcname.h,
693
win32/unistd.h, win32/zconfig.h: Add new directory `win32' and put
694
new files on the directory.
696
* eb/ebconfig.h (F_): Delete the macro.
697
* eb/filename.c (eb_canonicalize_path_name): In DOS version, replace
698
all '/' in the given path with `\\'.
699
* eb/filename.c (eb_canonicalize_path_name): Use strchr() to check
700
if the given path name represents root.
701
* eb/filename.c (eb_compose_path_name, eb_compose_path_name2,
702
eb_compose_path_name3): Revised.
704
2001-08-01 Motoyuki Kasahara <m-kasahr@sra.co.jp>
706
* eb/search.c (eb_initialize_search, eb_finalize_search):
707
Delete the first argument `EB_Book *'.
709
* eb/bitmap.c, eb/narwalt.c, eb/font.c. eb/narwfont.c, eb/setword.c,
710
eb/subbook.c, eb/text.c:
713
* eb/book.c (eb_bind): Assign a book code at first.
714
* eb/appendix (eb_bind_appendix): Likewise.
716
* eb/multi.c (eb_finalie_multi_searches): Revised.
718
* eb/narwfont.c (eb_narrow_font_size2): Fix a bug. Add missing
721
* eb/log.c (log_mutex): New variable.
722
* eb/log.c (eb_log): Lock `log_mutex' at invoking log function.
724
* eb/text.c (eb_invalidate_text_context): New function.
725
* eb/text.c (eb_read_text, eb_read_heading, eb_read_rawtext,
726
eb_forward_text, eb_forward_heading): Call eb_invalidate_text_context()
729
2001-07-31 Motoyuki Kasahara <m-kasahr@sra.co.jp>
731
* eb/binary.c (eb_set_binary_mpeg): Fix a critical bug in file name
734
* eb/book.c (eb_finalize_book): Revised.
736
* eb/binary.c, eb/book.c, eb/copyright.c, eb/eb.c eb/endword.c,
737
eb/exactword.c, eb/hook.c, eb/keyword.c, eb/menu.c, eb/multi.c,
738
eb/stopcode.c, eb/subbook.c, eb/word.c: Add debug codes.
740
* eb/subbook.c: Include "binary.h".
742
* eb/zio.c (ZIO_ID_NONE): Defined.
743
* eb/zio.c (cache_file): Renamed to `cache_zio_id'.
744
* eb/zio.c (cache_mutex): Renamed to `zio_mutex'.
745
* eb/zio.c (zio_open): Initialize `zio' again if file descriptor
746
the given `zio' holds is active.
747
* eb/zio.c (zio_open_plain, zio_open_ebzip, zio_open_epwing,
748
zio_open_epwing6): Assign ID to `zio'.
750
2001-07-30 Motoyuki Kasahara <m-kasahr@sra.co.jp>
752
* eb/appendix.c (eb_initialize_appendix_catalog): Renamed to
753
eb_load_appendix_catalog().
754
* eb/appendix.c (eb_initialize_alt_cache): Renamed to
755
eb_initialize_alt_caches().
756
* eb/appendix.c (eb_initialize_appendix): Initialize all members
758
* eb/appendix.c (eb_finalize_appendix): Revised.
760
* eb/appendix.h (eb_initialize_all_appendix_subbooks): Define the
761
macro for backward compatibility.
763
* eb/appsub.c (eb_initialize_appendix_subbook): Renamed to
764
eb_load_appendix_subbook().
765
* eb/appsub.c (eb_finalize_appendix_subbooks): New function.
766
* eb/appsub.c (eb_initialize_appendix_subbooks): New function.
767
* eb/appsub.c (eb_load_all_appendix_subbooks): New function.
769
* eb/binary.c (eb_initialize_binary): Renamed to
770
eb_initialize_binary_context(). Initialize all members in
772
* eb/binary.c (eb_finalize_binary_context): New function.
773
* eb/binary.c (eb_reset_binary_context): New function.
775
* eb/book.c (eb_initialize_catalog): Renamed to eb_load_catalog().
776
* eb/book.c (eb_initialize_language): Renamed to eb_load_language().
777
* eb/book.c (eb_initialize_book): Initialize all members to EB_Book.
778
* eb/book.c (eb_finalize_book): Revised.
780
* eb/book.h (eb_initialize_all_subbooks): Define the macro for
781
backward compatibility.
783
* eb/font.c (eb_initialize_fonts): New function.
784
* eb/font.c (eb_finalize_fonts): New function.
786
* eb/hook.c (eb_finalize_hookset): Reset all the hooks.
788
* eb/internal.h.in (EB_ARRANGE_INVALID): New macro.
790
* eb/multi.c (eb_initialize_multi_searches): New function.
791
* eb/multi.c (eb_finalize_multi_searches): New function.
792
* eb/multi.c (eb_initialize_multi_search): Renamed to
793
eb_load_multi_search().
795
* eb/narwfont.c (eb_initialize_narrow_font): Renamed to
796
eb_load_narrow_font().
798
* eb/search.c (eb_initialize_search): Renamed to
799
eb_initialize_search_contexts(). Initialize all members in
801
* eb/search.c (eb_finalize_search_contexts): New function.
802
* eb/search.c (eb_reset_search_contexts): New function.
803
* eb/search.c (eb_initialize_search): New function.
804
* eb/search.c (eb_finalize_search): New function.
805
* eb/search.c (eb_initialize_searches): New function.
806
* eb/search.c (eb_finalize_searches): New function.
808
* eb/subbook.c (eb_initialize_subbook): Renamed to eb_load_subbook().
809
* eb/subbook.c (eb_initialize_indexes): Renamed to
810
eb_load_subbook_indexes().
811
* eb/subbook.c (eb_load_subbook_indexes): Call eb_initialize_search()
812
to initialize EB_Search.
814
* eb/text.c (eb_initialize_text): Renamed to
815
eb_initialize_text_context(). Initialize all members in
817
* eb/text.c (eb_finalize_text_context): New function.
818
* eb/text.c (eb_reset_text_context): New function.
820
* eb/appendix.c, eb/appsub.c: Add debug codes.
821
* eb/defs.h (EB_Appendix_Struct): Add member `code'.
822
* eb/appendix.c (appendix_counter): New static variable.
824
* eb/log.c: Include "internal.h".
826
2001-07-25 Motoyuki Kasahara <m-kasahr@sra.co.jp>
828
* eb/search.c (eb_presearch_word): Don't set `context->entry_length'
829
to 0 at successful return.
831
2001-07-24 Motoyuki Kasahara <m-kasahr@sra.co.jp>
833
* eb/zio.h (Zio_Struct): Add `id'.
834
* eb/zio.c (zio_counter): New static variable.
835
* eb/zio.c (zio_initialize): manage zio_counter, and assign the
836
counter value to `zio->id'.
837
* eb/zio.c (LOG): Defile this macro if ENABLE_DEBUG.
839
* eb/log.c (eb_quoted_string): Prepare multiple static buffers.
840
* eb/log.c (eb_quoted_string): Accept NULL pattern.
841
* eb/log.c (eb_quoted_string): Encode '=' character as `=3D'.
843
2001-07-22 Motoyuki Kasahara <m-kasahr@sra.co.jp>
845
* eb/Makefile.am (libeb_la_SOURCES): Add `log.c'.
846
* eb/eb.h: Include <stdarg.h> if __STDC__ is defined.
847
* eb/error.c (error_strings): New static variable.
848
* eb/error.c (eb_error_string): New function.
849
* eb/error.c (unknown): Deleted.
850
* eb/internal.h.in (LOG): New macro.
851
* eb/match.c, eb/search.c: Output log messages.
853
2001-07-18 Motoyuki Kasahara <m-kasahr@sra.co.jp>
855
* ebzip/zipfile.c (ebzip_zip_file): Don't call utime() if
856
HAVE_STRUCT_UTIMBUF is not defined.
857
* ebzip/unzipfile.c (ebzip_unzip_file): Ditto.
858
* ebzip/copyfile.c (ebzip_copy_file): Ditto.
859
* ebzip/ebzip.c (parse_skip_content_argument): Defined as `static'
861
* ebzip/copyfile.c (ebzip_copy_files_in_directory): Fix a bug that
862
the function always returns -1.
864
2001-07-17 Motoyuki Kasahara <m-kasahr@sra.co.jp>
868
* eb/text.c (eb_read_text_internal): Suppose that area of user
869
defined characters in EPWING and EB* is 0xa121 ... 0xfe7f.
871
* eb/configure.ac (LIBEB_VERSION_INFO): Set the varaible to 4:2:0.
872
* eb/configure.ac (AM_INIT_AUTOMAKE): Set version to 3.1.0beta0.
874
* Makefile.am (EXTRA_DIST): Add `ChangeLog.1'.
876
2001-07-16 Motoyuki Kasahara <m-kasahr@sra.co.jp>
878
* eb/filename.c (eb_canonicalize_font_file_name): Renamed to
879
eb_canonicalize_file_name().
881
* eb/zio.h (ZIO_NONE): Renamed to ZIO_PLAIN.
882
* eb/zio.c (zio_open_none): Renamed to zio_open_plain().
884
2001-07-13 Motoyuki Kasahara <m-kasahr@sra.co.jp>
886
* eb/match.c (eb_match_word, eb_match_exactword):
887
Renamed to eb_match_canonicalized_word() and
888
eb_exact_match_canonicalized_word().
889
* eb/match.c (eb_match_word_latin, eb_match_word_jis,
890
eb_exact_match_word_latin, eb_exact_match_word_jis): New functions.
891
* eb/defs.h (EB_Search_Context_Struct): split `compare' into
892
`compare_pre' and `compare_hit'.
893
* eb/word.c (eb_search_word): Change policy of choosing search
895
* eb/exactword.c (eb_search_exactword): Ditto.
896
* eb/endword.c (eb_search_endword): Ditto.
897
* eb/keyword.c (eb_search_keyword): Ditto.
898
* eb/multi.c (eb_search_multi): Ditto.
900
2001-07-12 Motoyuki Kasahara <m-kasahr@sra.co.jp>
902
* eb/defs.h (EB_Subbook_Struct): Add the member `text'.
903
* eb/subbook.c (eb_initialize_indexes): Revise S-EBXA compression
905
* eb/zio.c (zio_set_sebxa_mode): New function.
906
* eb/zio.c (zio_read_sebxa, zio_unzip_slice_sebxa): Revised and
908
* eb/zio.c (zio_read): Enable S-EBXA support code.
910
2001-07-09 Motoyuki Kasahara <m-kasahr@sra.co.jp>
912
* eb/filename.c (eb_find_file_name, eb_find_file_name2,
913
eb_find_file_name3): Change API of the internal functions.
914
* eb/filename.c (eb_path_name_zio_code): New function.
916
* eb/appendix.c (EB_HINT_INDEX_CATALOG, EB_HINT_INDEX_CATALOGS,
917
catalog_hint_list): Deleted.
918
* eb/appsub.c (EB_HINT_INDEX_APPENDIX, EB_HINT_INDEX_APPENDIX_EBZ,
919
appendix_hint_list, EB_HINT_INDEX_FUROKU, EB_HINT_INDEX_FUROKU_EBZ,
920
furoku_hint_list): Deleted.
921
* eb/book.c (EB_HINT_INDEX_CATALOG, EB_HINT_INDEX_CATALOGS,
922
catalog_hint_list, EB_HINT_INDEX_LANGUAGE, EB_HINT_INDEX_LANGUAGE_EBZ,
923
language_hint_list): Deleted.
924
* eb/subbook.c (EB_HINT_INDEX_START, EB_HINT_INDEX_START_EBZ,
925
start_hint_list): Deleted.
926
* eb/subbook.c (EB_HINT_INDEX_HONMON_EBZ, EB_HINT_INDEX_HONMON2,
927
EB_HINT_INDEX_HONMON2_EBZ, EB_HINT_INDEX_HONMON2_ORG,
928
honmon_hint_list, EB_HINT_INDEX_HONMONG, EB_HINT_INDEX_HONMONG_EBZ,
929
EB_HINT_INDEX_HONMONG_ORG, honmong_hint_list, EB_HINT_INDEX_HONMONS,
930
EB_HINT_INDEX_HONMONS_EBZ, EB_HINT_INDEX_HONMONS_ORG,
931
honmons_hint_list): Deleted.
933
* ebrefile/ebrefile.c (HINT_INDEX_CATALOG, HINT_INDEX_CATALOGS,
934
catalog_hint_list): Deleted.
936
* ebzip/unzipbook.c (catalog_hint_list, language_hint_list,
937
catalogs_hint_list): Deleted.
938
* ebzip/zipbook.c (catalog_hint_list, language_hint_list,
939
catalogs_hint_list): Deleted.
940
* ebzip/zipinfobook.c (catalog_hint_list, language_hint_list,
941
catalogs_hint_list): Deleted.
943
2001-06-25 Motoyuki Kasahara <m-kasahr@sra.co.jp>
947
* configure.ac (LIBEB_VERSION_INFO): Set version to 4:1:0.
949
2001-06-22 Motoyuki Kasahara <m-kasahr@sra.co.jp>
951
* configure.ac (AM_INIT_AUTOMAKE): Set version to 3.0.1.
953
* eb/text.c (eb_read_text_internal): Fix a bug of handling BG 2312
955
* eb/text.c (eb_read_text_internal): Add code to process escape
958
2001-06-12 Motoyuki Kasahara <m-kasahr@sra.co.jp>
960
* eb/book.c (eb_initialize_language): Don't return a value, since
961
this is `void' function.
963
* ebrefile/ebrefile.c: Don't include <zlib.h>.
964
* ebrefile/ebrefile.c: Fix definition of `_' and `N_' macros.
966
2001-06-11 Motoyuki Kasahara <m-kasahr@sra.co.jp>
968
* libebutils/memset.c: Internally convert the 2nd argument (copy
969
value) to unsigned char, as ISO/IEC 9899:1990 says.
350
ebzip/zipinfobook.c, ebzip/zipinfofile.c, libebutils/ebutils.c,
351
libebutils/ebutils.h.in, libebutils/getopt.c, libebutils/getopt.h,
352
libebutils/getumask.c, libebutils/getumask.h, libebutils/makedir.c,
353
libebutils/makedir.h, libebutils/puts_eucjp.c, libebutils/samefile.c,
354
libebutils/samefile.h, libebutils/strcasecmp.c, libebutils/yesno.c,
355
libebutils/yesno.h, samples/appendix.c, samples/booklist.c,
356
samples/disctype.c, samples/font.c, samples/initexit.c,
357
samples/subbook.c, samples/text.c, samples/word.c:
358
EB Library now assumes POSIX.1-1990 systems and requires ANSI C89
361
2004-03-20 Motoyuki Kasahara <m-kasahr@sra.co.jp>
365
* ebzip/zipfile.c, ebzip/unzipfile.c, ebzip/copyfile.c, ebzip/sebxa.c:
366
Output progress messages to stderr, not stdout.
368
* ebzip/zipbook.c (ebzip_zip_book, ebzip_zip_book_eb,
369
ebzip_zip_book_epwing): Abort if ebzip_zip_file() fails.
370
* ebzip/unzipbook.c (ebzip_unzip_book, ebzip_unzip_book_eb,
371
ebzip_unzip_book_epwing): Abort if ebzip_unzip_file() or
372
ebzip_unzip_start_file() fails.
374
2004-02-29 Motoyuki Kasahara <m-kasahr@sra.co.jp>
376
* ebzip/zipinfobook.c (ebzip_zipinfo_book_epwing): Also display
379
2004-01-30 Motoyuki Kasahara <m-kasahr@sra.co.jp>
381
* eb/build-pre.h, eb/defs.h, ebzip/ebzip.h (EB_P): Fix typo in
382
the definition of EB_P.
383
* eb/zio.h (ZIO_P): Likewise.