ChangeLog 202 KB
Newer Older
1
2019-04-24  Sergey Poznyakoff  <gray@gnu.org>
2

3
	Version 2.9
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

2019-03-29  Sergey Poznyakoff  <gray@gnu.org>

	Use AC_SYS_LARGEFILE to detect large file support status

	Previously, that was done implicitly by gnulib. After 4da4ddea3a,
	it is necessary to do so explicitly, to avoid make sure library
	and apps use off_t of the same width.

	* configure.boot: Use AC_SYS_LARGEFILE

2019-03-10  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.8.90

2019-03-06  Sergey Poznyakoff  <gray@gnu.org>

	New configure variable: DEFAULT_PIDFILE_NAME

	Allows the user to override the default pidfile location for dicod
	Suggested in https://puszcza.gnu.org.ua/bugs/?419

	* configure.boot (DEFAULT_PIDFILE_NAME): New variable
	* dicod/Makefile.am (AM_CPPFLAGS): Define DEFAULT_PIDFILE_NAME
	* dicod/main.c (pidfile_name): Change initialization

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
2019-02-26  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.8

2019-02-22  Sergey Poznyakoff  <gray@gnu.org>

	Avoid introducing gnulib dependencies to libdico

	After pulling updates from gnulib, it was discovered that it had added
	an unwanted dependency to the libdico. The dependency was added b
	redefining fseek to rpl_fseek in the config.h. Of course, that's quite
	OK for user programs and in fact that's one of the purposes of gnulib,
	so it's doing its job all right. However, this kind of depedencies is
	not acceptable in installable libraries, such as libdico.

	There are two ways of fixing this: (1) by including libgnu to the
	libdico, or (2) by creating pristine (i.e. stripped of any gnulib
	stuff) version of config.h and using it in the library sources.

	The first approach was used in mailutils for the libmu_aux convenience
	library. However, in dico I wouldn't like to introduce additional
	dependencies to the installable libraries and modules, therefore
	second approach has been chosen.

	Two separare configuration headers are introduced:

	include/prog/config.h
	  Configuration header with gnulib dependencies. It is used by
	  libxdico, and user-space programs: dico, dicod, idxgcide and
	  some test programs.

	include/lib/config.h
	  Pristine header, free from any gnulib additions. It is used by all
	  installable libraries, including dicod modules.

	In order to create pristine header, bootstrap uses specially prepared
	temporary edition of configure.ac, which is stripped off any gl_.*
	statements.

	This approach introduces additional difficulties. The two header files
	are of course listed in the AC_CONFIG_HEADERS statement in
	configure.ac. Autotools give precedence to the first one. It is the
	only file for which autoheader creates the .h.in template. Further,
	automake creates in each Makefile.am the DEFAULT_INCLUDES statement,
	which lists the directory part of the first header, and this value is
	used in the compiler command line. This means that to include the
	pristine header, its path prefix needs to be specified.

	To avoid this, the nostdinc option is passed to AM_INIT_AUTOMAKE.
	As a side effect, it makes it impossible to build libltdl in the
	recursive mode (although its Makefile.am pretends otherwise). Thus,
	libltdl is built in nonrecursive mode from the main Makefile.am.

	Similar problem occurs with the gnulib itself, although in this case
	its bootstrapping tool provides sufficient mechanisms to help overcome
	it. Gnulib is built as a sub-library of libxdico. As a side effect,
	the libextra library is no longer needed.

	Another side effect is that the rewritten bootstrap script made it
	possible to use gnulib-tool directly, instead of using
	gnulib/build-aux/bootstrap wrapper.

	Following bugs are fixed by this change:

	  https://puszcza.gnu.org.ua/bugs/?416
	  https://puszcza.gnu.org.ua/bugs/?417
	  https://puszcza.gnu.org.ua/bugs/?418

	Almost all files in the project are affected by this change. However,
	some changes are pure bugfixes. These are:

	* lib/mergesort.c (mergesort): Rename to dico_mergesort to avoid name
	clash on Free and OpenBSD.
	* lib/stream.c (dico_stream_getdelim): Fix memory reallocation
	algorithm.
	* lib/utf8.c (utf8_wc_strstr): Reset errno to 0.
	* lib/libi18n.c: Don't depend on gnu/configmake.h
	* modules/wordnet/module.ac: Move definition of WORDNET_COND out of
	conditional context. This fixes the functionality of the
	configure --without-wordnet option.

	Some obsolete and unused files have been removed. These are:

	* include/gjdict.xbm
	* lib/bushu.dat
	* lib/bushu.h
	* lib/cursor.xbm
	* lib/jiscvt.c
	* makedict/

	Main set of changes is:

	* bootstrap: Mostly rewritten as described above.
	* GNUmakefile: New file for the ease of maintenance.
	* maint/bootstrap.mk: New file.
	* gnulib.modules: Moved to maint/
	* maint/printflike: New file. Lists printf-like functions for gettext.

	* configure.boot: Use AC_CONFIG_HEADERS with two header files.
	Use nostdinc option to AM_INIT_AUTOMAKE.
	(LTDL_INIT): Use nonrecursive option.
	(DICO_PROG_CONFIG,DICO_LIB_CONFIG)
	(DICO_PROG_INCLUDES,DICO_MODULE_INCLUDES): New substitution variables.
	(GRECS_HOST_PROJECT_INCLUDES): Fix value.
	(COND_LIBDICOSASL): New conditional.
	* Makefile.am: Build libltdl.
	* lib/Makefile.am: Move convenience libraries to another
	directory. Build only libdico.
	* dico/Makefile.am: Fix LDADD and includes.
	* dicod/Makefile.am: Likewise.
	* dicod/tests/Makefile.am: Likewise.
	* lib/tests/Makefile.am: Likewise.
	* modules/*/Makefile.am: Likewise.

	The directory struture is reorganized and the sources of convenience
	libraries moved to a separate directory:

	* xdico/Makefile.am: New file
	* xdico/appi18n.c
	* xdico/gsaslstr.c
	* xdico/iputil.c
	* xdico/timer.c
	* xdico/userprivs.c
	* xdico/xalloc-die.c
	* xdico/xhostname.c
	* xdico/xscript.c
	* xdico/xstream.c
	* xdico/xtkn.c
	* xdico/xutil.c: All moved from lib

	* xdico/gnu/Makefile.am: New file.
	* xdico/gnu: Gnulib sources imported to this directory.

2019-02-19  Sergey Poznyakoff  <gray@gnu.org>

	Fix the definition of GRECS_HOST_PROJECT_LDADD

	Version 2.7.90

2019-02-18  Sergey Poznyakoff  <gray@gnu.org>

	Make sure gnulib dependencies are satisfied when linking grecs testsuite

	* configure.boot (GRECS_HOST_PROJECT_LDADD): Define new variable.
	* grecs: Upgrade.

	Modify utf8 iterator to correctly handle non-zero-terminated strings.

	* include/dico/utf8.h (utf8_iterator): New fields: length, err, end.
	(utf8_iter_err_p,utf8_iter_init): New prototype.
	* lib/utf8.c (utf8_iter0): Add boundary checking. Set end and error
	flags as appropriate.
	(utf8_iter_err_p): Rewrite.
	(utf8_iter_err_p): New function.
	(utf8_iter_init): New function.
	(utf8_iter_first): Rewrite using utf8_iter_init.
	(utf8_iter_next): Update length.
	* lib/linetrimstr.c (_linetrimstr_find_end): Don't assume zero-terminated
	string.
	* modules/dict.org/dictorg.c (revert_word): Likewise.
	* modules/outline/outline.c (revert_word): Likewise.

	Fix out-of-boundary memory access in metaphone2 encoder.

	* modules/metaphone2/metaphone2.c (looking_at,ISVOWEL): Implement
	additional boundary checking.
	All uses changed.

2019-02-17  Sergey Poznyakoff  <gray@gnu.org>

	Fix attempted access to deallocated memory

	* lib/list.c (_dico_list_remove_item): Free entry after accessing
	its fields.

2018-11-15  Sergey Poznyakoff  <gray@gnu.org>

	Upgrade grecs

	In particular, this fixes the test 71 (now 72), which incorrectly
	pulled a variable from the environment, instead of from the command
	line.

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
2018-09-25  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.7

	Include customized version of pp-setup

	Minor fixes

	* configure.boot: Move check for libz to the proper file.
	* modules/dict.org/Makefile.am (dictorg_la_LIBADD): Link with -lz
	unconditionally.
	* modules/dict.org/dictorg.h: Use libz unconditionally.
	* modules/dict.org/dictstr.c: Likewise.
	* modules/dict.org/module.ac: Require libz and zlib.h
	* modules/guile/guile.c: Remove unused variable.

	Update docs

	dictorg: preserve leading whitespace in index entries

2018-09-24  Sergey Poznyakoff  <gray@gnu.org>

	Minor change

	* modules/dict.org/tests/db/GNUmakefile: Rename to dict.mk

	dicod: report markup types on startup only if the "markup" capability is requested

2018-09-22  Sergey Poznyakoff  <gray@gnu.org>

	Fix spurious memory deallocation in guile module; upgrade grecs

2018-09-19  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.6.95

2018-09-18  Sergey Poznyakoff  <gray@gnu.org>

	Bugfixes. Add testsuite for the dictorg module

	* lib/bsearch.c (dico_bsearch): Bugfix.
	* modules/dict.org/Makefile.am (SUBDIRS): Add tests
	* modules/dict.org/dictorg.c (suffix_match): Bugfixes.
	* modules/dict.org/module.ac: Build tests/db/Makefile.

	New files:
	* modules/dict.org/tests/.gitignore
	* modules/dict.org/tests/Makefile.am
	* modules/dict.org/tests/allchars.at
	* modules/dict.org/tests/alnum.at
	* modules/dict.org/tests/atlocal.in
	* modules/dict.org/tests/db/deaccent.awk
	* modules/dict.org/tests/db/ell-num.dict
	* modules/dict.org/tests/db/ell-num.index
	* modules/dict.org/tests/db/ell-num.lst
	* modules/dict.org/tests/db/ell-num_mime.dict
	* modules/dict.org/tests/db/ell-num_mime.index
	* modules/dict.org/tests/db/eng-num.dict
	* modules/dict.org/tests/db/eng-num.index
	* modules/dict.org/tests/db/eng-num.lst
	* modules/dict.org/tests/db/eng-num_allchars.dict
	* modules/dict.org/tests/db/eng-num_allchars.index
	* modules/dict.org/tests/db/x-num.awk
	* modules/dict.org/tests/define.at
	* modules/dict.org/tests/prefix.at
	* modules/dict.org/tests/showdb.at
	* modules/dict.org/tests/showinfo.at
	* modules/dict.org/tests/suffix.at
	* modules/dict.org/tests/testsuite.at
	* modules/dict.org/tests/word.at
	* modules/dict.org/tests/db/eng-num.txt
	* modules/dict.org/tests/db/num-ell.dict
	* modules/dict.org/tests/db/num-ell.index
	* modules/dict.org/tests/db/num-ell.info
	* modules/dict.org/tests/db/num-ell.txt
	* modules/dict.org/tests/db/num-eng.dict
	* modules/dict.org/tests/db/num-eng.index
	* modules/dict.org/tests/db/num-eng.info
	* modules/dict.org/tests/db/num-eng.txt
	* modules/dict.org/tests/db/num-x.awk
	* modules/dict.org/tests/exact.at
	* modules/dict.org/tests/ovdefmime.at
	* modules/dict.org/tests/ovdefnomime.at
	* modules/dict.org/tests/ovexact.at
	* modules/dict.org/tests/ovshowdb.at
	* modules/dict.org/tests/vdefine.at
	* modules/dict.org/tests/vexact.at
	* modules/dict.org/tests/vshowdb.at
	* modules/dict.org/tests/db/GNUmakefile
	* modules/dict.org/tests/db/Makefile.am
	* modules/dict.org/tests/db/ell-num.info
	* modules/dict.org/tests/db/ell-num.txt
	* modules/dict.org/tests/db/eng-num.info

2018-09-17  Sergey Poznyakoff  <gray@gnu.org>

	dictorg: bugfix

	* modules/dict.org/dictorg.c (uniq_comp): Fix comparison.
	(common_match): Give the third argument to compare.

	* modules/dict.org/Makefile.am (dictorg_la_SOURCES): Remove data.c
	* modules/dict.org/data.c: Remove unused file.

2018-09-16  Sergey Poznyakoff  <gray@gnu.org>

	utf8_compare: new general-purpose comparator function

	* lib/utf8.c (utf8_strcmp_cc)
	(utf8_strcmp_alnumspace_cc,utf8_strcmp_alnumspace)
	(utf8_strcasecmp_alnumspace): Remove
	(utf8_compare): New function.
	(utf8_strcmp,utf8_strcasecmp)
	(utf8_strncasecmp): Rewrite as a wrapper over utf8_compare
	* include/dico/utf8.h: Update protos.
	* modules/dict.org/dictorg.c: Use new utf comparators.

2018-09-15  Sergey Poznyakoff  <gray@gnu.org>

	Uniform error reporting.

	Provide own binary search and sort functions.

	* lib/bsearch.c: New file.
	* lib/mergesort.c: New file.
	* include/dico/list.h (dico_list_comp_t): Change signature.
	(dico_list_set_comparator)
	(dico_list_intersect, dico_list_intersect_p)
	(_dico_list_locate, _dico_list_remove): Change signature.
	(dico_list_set_comparator_data)
	(dico_list_get_comparator_data): New protos.
	* lib/list.c (dico_list)<comp_data>: New member.
	(dico_list_set_comparator)
	(dico_list_intersect, dico_list_intersect_p)
	(_dico_list_locate, _dico_list_remove): Change signature.
	(dico_list_set_comparator_data)
	(dico_list_get_comparator_data): New functions.
	* lib/Makefile.am: Raise library version number.

	* dico/saslauth.c: Reflect the above changes.
	* dicod/acl.c: Likewise.
	* dicod/alias.c: Likewise.
	* dicod/capa.c: Likewise.
	* dicod/commands.c: Likewise.
	* dicod/gsasl.c: Likewise.
	* dicod/lang.c: Likewise.
	* dicod/main.c: Likewise.
	* dicod/virtual.c: Likewise.
	* include/dico/strat.h: Likewise.
	* include/dico/util.h: Likewise.
	* lib/assoc.c: Likewise.
	* lib/markup.c: Likewise.
	* lib/strat.c: Likewise.
	* lib/tests/listop.c: Likewise.
	* lib/udb.c: Likewise.
	* modules/gcide/gcide.c: Likewise.
	* modules/wordnet/wordnet.c: Likewise.

	* modules/dict.org/dictorg.c: Use appropriate comparisons in uniq_comp
	and compare_entry_ptr.

	dictorg: Fix unique headword selection

	* modules/dict.org/dictorg.c (uniq_comp): New function.
	(common_match,suffix_match): Use uniq_comp to select headwords.
	(exact_match): Disable unique selector.

2018-09-13  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.6.94

	dictorg: select comparison algorithm depending on the database settings

	* include/dico/list.h (dico_list_head, dico_list_tail): New protos.
	* include/dico/utf8.h (utf8_strcmp_cc)
	(utf8_strcmp)
	(utf8_strcmp_alnumspace_cc)
	(utf8_strcmp_alnumspace)
	(utf8_strcasecmp_alnumspace)
	(utf8_table_check)
	(utf8_wc_is_alnum, utf8_wc_is_space): New protos.

	* lib/utf8_is_alnum.c: New file.
	* lib/utf8_is_space.c: New file.
	* lib/Makefile.am: Add new files.
	* lib/list.c (dico_list_head, dico_list_tail): New functions.
	* lib/utf8.c (utf8_strcmp_cc)
	(utf8_strcmp)
	(utf8_strcmp_alnumspace_cc)
	(utf8_strcmp_alnumspace)
	(utf8_strcasecmp_alnumspace)
	(utf8_table_check)
	(utf8_wc_is_alnum, utf8_wc_is_space): New functions.
	* modules/dict.org/dictorg.c: Revert 84e5fa19.
	(mod_init_db): Initialize database flags.
	(all): Select comparator depending on the flag_allchars and
	flag_casesensitive flag.

2018-09-12  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.6.93

	Redo the virtual database support.

	* include/dico/types.h (dicod_database_t): New typedef.
	(DICO_CAPA_OUTPUT_ALL): Remove flag.
	(dico_result_output_all): Remove method.
	(dico_result_db): New method.
	* include/dico/types.h (dicod_database_t): New typedef.
	(DICO_CAPA_OUTPUT_ALL): Remove flag.
	(dico_result_output_all): Remove method.
	(dico_result_db): New method.
	* dicod/result.c: New file.
	* dicod/Makefile.am (dicod_SOURCES): Add result.c
	* dicod/database.c (dicod_database_match)
	(dicod_database_define): Return dicod_db_result_t *
	(dicod_database_result_count)
	(dicod_database_compare_count)
	(dicod_database_result_free)
	(dicod_database_result_output)
	(dicod_database_mime_header): Remove. Use the corresponding
	dicod_db_result_ family functions instead.
	* dicod/dicod.h (dicod_db_result_t): New data type.
	(dicod_db_result_alloc,dicod_db_result_free)
	(dicod_db_result_count,dicod_db_result_compare_count)
	(dicod_db_result_output)
	(dicod_db_result_mime_header)
	(dicod_db_result_db): New protos.
	(dicod_database_match)
	(dicod_database_define): Return dicod_db_result_t *
	* dicod/loader.c: Use new functions.
	* dicod/virtual.c: Rewrite.

	* dicod/tests/Makefile.am: Add new tests.
	* dicod/tests/echo.c: New open keyword "prefix".
	* dicod/tests/testsuite.at: Add new tests.
	* dicod/tests/virt01.at: New file.
	* dicod/tests/virt02.at: New file.
	* dicod/tests/virt03.at: New file.
	* dicod/tests/virt04.at: New file.

2018-09-11  Sergey Poznyakoff  <gray@gnu.org>

	Update NEWS

	Fix eventual memory leak introduced by the previous change

	virtual db: implement dico_db_info and dico_db_descr methods

	Support for old dictord special index keywords (prefixed with "00database")

	* NEWS: Version 2.6.92
	* configure.boot: Version 2.6.92
	* modules/dict.org/dictorg.c (parse_index_entry): Translate old
	special entries (00database prefix) into new ones (00-database- prefix).
	* modules/dict.org/dictorg.h (DICTORG_ALT_ENTRY_PREFIX)
	(DICTORG_ALT_ENTRY_PREFIX_LEN): New define.

2018-09-10  Sergey Poznyakoff  <gray@gnu.org>

	Improve 07a88216

	Output appropriate MIME headers after each 151 reply. Report
	actual db name, if the database is invisible, and the name of
	the virtual db otherwise.

	* dicod/dicod.h (dicod_database_print_definitions): New proto.
	* dicod/loader.c (module_init); Check for dico_result_output_all.
	(dicod_database_print_definitions): New function.
	(print_definitions): Rewrite using it or the dico_result_output_all
	module method, if DICO_CAPA_OUTPUT_ALL is set.
	* dicod/virtual.c (virtual_output_result): Remove.
	(virtual_output): New method.
	(virtual_result_headers): Remove.
	* include/dico/types.h (DICO_CAPA_OUTPUT_ALL): New capability.
	(dico_database_module) <dico_result_output_all>: New method.

	Version 2.6.91

	Correctly display MIME headers read from the underlying db in virtual db

	* NEWS: Update.
	* doc/libdico.texi: Update.
	* dicod/database.c (dicod_database_mime_header): Use temporary storage
	to preserve original header in case of failure.
	* dicod/virtual.c (dico_result_headers): Implement function.
	* include/dico/assoc.h (dico_assoc_count): New function.
	* lib/assoc.c (dico_assoc_count): New function.

2018-09-07  Sergey Poznyakoff  <gray@gnu.org>

	Improve backward compatibility (follow-up to 954d267b)

	Restore the signature of dico_init_db. Provide an extended initialization
	function dico_init_db_ext.

	* include/dico/types.h (DICO_CAPA_INIT_EXT): New capability.
	(dico_database_module) <dico_init_db>: Restore the signature.
	<dico_init_db_ext>: New method.
	* dicod/database.c (dicod_database_init): Call extended init method
	of DICO_CAPA_INIT_EXT capability is set.
	* dicod/loader.c (module_init): Ensure dico_init_db_ext is defined if
	DICO_CAPA_INIT_EXT capability is set.
	* dicod/virtual.c (dico_init_db_ext): Use this method.
	* dicod/main.c (set_database): Remove the now unnecessary assertion.
	* dicod/tests/echo.c: Revert 1c5682ae
	* modules/dict.org/dictorg.c: Likewise.
	* modules/gcide/gcide.c: Likewise.
	* modules/guile/guile.c: Likewise.
	* modules/outline/outline.c: Likewise.
	* modules/python/python.c: Likewise.
	* modules/python/python2.c: Likewise.
	* modules/template/module.c: Likewise.
	* modules/wordnet/wordnet.c: Likewise.

	Exclude virtual databases from * and ! lookups

	* include/dico/types.h (DICO_DBF_DEFAULT)
	(DICO_DBF_VIRTUAL): New defines.
	(dico_database_module)<dico_db_flags>: New member.
	* dicod/database.c (dicod_database_flags): New function.
	* dicod/dicod.c (open_databases): Set database flags after successful
	open.
	* dicod/dicod.h (database_is_virtual): New function.
	* dicod/loader.c (dicod_word_first)
	(dicod_word_all): Exclude virtual databases.
	* dicod/virtual.c: Implement dico_db_flags

2018-09-06  Sergey Poznyakoff  <gray@gnu.org>

	Graceful handling of unsupported response content types in dicoweb

	* NEWS: Document changes
	* dicoweb/settings-sample.py (ONERROR): New setting.
	* dicoweb/views.py: Handle unsupported content types depending on
	ONERROR['UNHANDLED_CONTENT_TYPE']

2018-09-05  Sergey Poznyakoff  <gray@gnu.org>

	Minor fix

	Support for building with WordNet on debian-based systems

	* NEWS: Document the --with-libWN option.
	* doc/dico.texi: Likewise.
	* modules/wordnet/module.ac: New option --with-libWN
	* modules/wordnet/Makefile.am: Use @WORDNET_LIB@ substitution instead
	of the hardcoded "WN".
	* modules/wordnet/wordnet.c: Minor changes.
	* modules/gcide/gcide.c: Minord changes.

	Fix init_db decalaration in all modules

	Implement virtual databases.

	* dicod/virtual.c: New file.
	* dicod/Makefile.am (dicod_SOURCES): Add virtual.c
	* dicod/database.c (dicod_database_init): Pass db->extra to
	dico_init_db method.
	* dicod/dicod.h (option_mime): New extern.
	(dicod_builtin_module_init)
	(database_session_visibility): New protos.
	(virtual_builtin_module): New extern.
	* dicod/loader.c (dicod_builtin_module_init): New function.
	* dicod/main.c: New database configuration setting: "database".
	Configures component database for virtual databases.
	* dicod/ostream.c (option_mime): Remove extern. Now defined in dicod.h
	* dicod/tests/echo.c (echo_init_db): Change signature.
	* include/dico/types.h (dico_init_db): Change signature. Takes an extra
	argument now.
	* modules/template/module.c: Update.

	* doc/dico.texi: Document new features.

	* NEWS: Version 2.6.90. Document changes.
	* configure.boot: Version 2.6.90

2018-09-04  Sergey Poznyakoff  <gray@gnu.org>

	Re-organize the set of database function calls.

2018-09-03  Sergey Poznyakoff  <gray@gnu.org>

	New option to administratively define the visibility of a database.

	* dicod/dicod.h (dicod_database) <session_visible>: New member.
	(database_visible_p): Remove macro.
	(database_is_visible): New function.
	* dicod/loader.c: Update.
	* dicod/main.c (set_database): Initialize .visible.
	(kwd_database): New statement "visible".
	(check_db_visibility): Set session_visible.

	Minor stylistic change

	Fix misplaced AM_CONDITIONAL

	* modules/python/module.ac: Move PYTHON3_COND out of the
	conditional context

	Read MIME headers from the database, if possible.

	* dicod/loader.c (dicod_open_database): Load mime headers from the
	database, if available.
	* include/dico/types.h (DICO_MODULE_VERSION): Raise to 3
	(dico_database_module) <dico_mime_header>: New member,
	* modules/dict.org/dictorg.c: Define mod_mime_header function.
	* modules/dict.org/dictorg.h (DICTORG_ENTRY_MIME_HEADER): New define.
	* modules/gcide/gcide.c (gcide_result_headers): Remove.
	* modules/guile/guile.c: Implement dico_db_mime_header.
	Fix checks for proper lists.
	* modules/outline/outline.c: Likewise.
	* modules/python/python.c: Likewise.
	* modules/python/python2.c: Likewise.
	* modules/template.py (db_mime_header): New method.
	* modules/template.scm (db-mime-header): New defun.

	* examples/Makefile.am (EXTRA_DIST): Remove textdict2.py
	* examples/textdict.py: Rewrite for both Python 2.7 and 3.x
	* examples/textdict2.py: Remove.
	* examples/devdict.out: Add MIME section.
	* examples/listdict.scm: Support MIME section in the input file.
	Make sure all ports work in UTF-8.
	(result-headers): Force quoted-printable encoding if the article
	contains non-ASCII characters.
	* examples/numerals-cz.txt: Add mime section
	* examples/numerals-pl.ldb: Add mime section

	* modules/guile/tests/Makefile.am (TESTSUITE_AT): Add mime.at and mime2.at
	* modules/guile/tests/dicod.cfin: Require mime capability.
	* modules/guile/tests/mime.at: New file.
	* modules/guile/tests/mime2.at: New file.
	* modules/guile/tests/showinfo.at: Minor fix
	* modules/guile/tests/testsuite.at: Include new tests.

	* modules/outline/tests/Makefile.am: Add new tests.
	* modules/outline/tests/dicod.cfin: Require mime capability.
	* modules/outline/tests/mime.at: New file.
	* modules/outline/tests/testsuite.at: Inlcude new tests.

	* modules/python/tests/Makefile.am: Add new tests.
	* modules/python/tests/dicod.cfin: Require mime capability.
	* modules/python/tests/mime.at: New file.
	* modules/python/tests/testsuite.at: Include new tests.

2018-09-02  Sergey Poznyakoff  <gray@gnu.org>

	docs: describe mime-headers.

2018-09-01  Sergey Poznyakoff  <gray@gnu.org>

	dicoweb: Fix handling of text/html content type.

	* app/python/mediawiki.py: Fix python 3 compatibility.
	* dicoweb/views.py (index): set format_html to true if Content-Type
	is text/html

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
2018-08-27  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.6

	* NEWS: Update.
	* configure.boot: Raise version number.
	* DISTFILES: New file.
	* Makefile.am (dist-hook): Add only files explicitly listed in DISTFILES.
	* app/python/.gitignore: New file.
	* app/python/DISTFILES: New file.
	* app/python/README: New file.
	* app/python/dicod.conf.in: New file.
	* app/python/mediawiki.py: Fix the initial comment
	* app/python/requirements.txt: New file.
	* dicoweb/requirements.txt: Require wikitrans 1.2 or later.

2018-08-26  Sergey Poznyakoff  <gray@gnu.org>

	Rewrite mediawiki.py to work with both Python versions

	* app/python/mediawiki.py: Rewritten to work with Python 2.7 and 3.x
	* app/python/mediawiki2.py: Remove

	Minor fix

2018-08-20  Sergey Poznyakoff  <gray@gnu.org>

	Minor fixes in manpages

	Minor fixes

	dicoweb: Fix Python 3 compatibility

	Remove the phased-out "wit" submodule. Use wikitrans instead.

	* .gitmodules: Remove the wit submodule
	* app/python/wit: Delete

	* app/python/mediawiki.py: Use wikitrans.
	* app/python/mediawiki2.py: Use wikitrans.
	* dicoweb/INSTALL: Update.
	* dicoweb/dicoclient/dicoclient.py: Use wikitrans.
	Fix python 3 compatibility.
	* dicoweb/dicoclient/__init__.py: Fix python 3 compatibility.
	* dicoweb/requirements.txt: Rewrite.
	* dicoweb/templates/base.html: Likewise.
	* dicoweb/templates/index.html: Likewise.
	* dicoweb/views.py: Likewise.
	* dicoweb/wsgi.virtualenv.py: Remove
	* dicoweb/settings-sample.py: Remove deprecated statements.

2018-08-13  Sergey Poznyakoff  <gray@gnu.org>

	Bugfix in python configuration code

	* modules/python/module.ac: Use $PYTHON_CONFIG instead of hardcoding
	python-config name.

2018-08-05  Sergey Poznyakoff  <gray@gnu.org>

	Upgrade gint

2018-07-30  Sergey Poznyakoff  <gray@gnu.org>

	Rewrite mediawiki.py for Python 3

	* app/python/mediawiki.py: Rewrite for Python 3
	* app/python/mediawiki2.py: Copy of the Python 2 implementation

	Upgrade wit

741 742
2018-07-25  Sergey Poznyakoff  <gray@gnu.org>

743 744
	Minor improvement in bootstrap

745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
	Version 2.5.90

	Support for Python 3

	* examples/Makefile.am (EXTRA_DIST): Add textdict2.py
	* examples/textdict2.py: Renamed from textdict.py
	* examples/textdict.py: Rewrite for Python 3
	* modules/python/Makefile.am (python_la_SOURCES): Add python.c or
	python2.c, depending on Python version.
	* modules/python/module.ac (PYTHON3_COND): New conditional.
	* modules/python/python2.c: Renamed from old python.c (for Python 2)
	* modules/python/python.c: Rewrite for Python 3
	* modules/python/tests/Makefile.am (PY2_SUF): New variable.
	(.cfin.conf): Replace ~py2~
	* modules/python/tests/dicod.cfin: Use textdict~py2~ as init-script

2018-06-03  Sergey Poznyakoff  <gray@gnu.org>

	Support for Guile 2.2.0; drop support for earlier Guile versions

765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785
2018-01-28  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.5

2018-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.4.90

	dictorg: add support for four-column index files.

	* modules/dict.org/dictorg.h (index_entry): New member: orig.
	* modules/dict.org/dictorg.c (parse_index_entry): Accept four-column
	input.
	(free_index_entry): Free the orig value.

	Update copyright years

2017-01-02  Sergey Poznyakoff  <gray@gnu.org>

	Happy GNU Year

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
2016-11-21  Sergey Poznyakoff  <gray@gnu.org>

	Version 2.4

	Fix some warnings

	* grecs: Upgrade
	* dicod/main.c (set_supp_group): Avoid casting gid_t to void*
	* lib/userprivs.c (switch_to_privs): Change accordingly
	* dicod/lev.c: Avoid casting int to void*

	Update documentation re WordNet

2016-11-15  Sergey Poznyakoff  <gray@gnu.org>

	Fix typo in doc/Makefile.am

2016-11-12  Sergey Poznyakoff  <gray@gnu.org>

	WordNet-related changes.

	* README: Document how to rebuild WordNet to produce position-independent
	code, suitable for linking with Dico.
	* modules/wordnet/wordnet.c: Trivial patch.

2016-11-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	dico: accept UNIX socket as argument to open

	* dico/connect.c (dict_connect): Accept UNIX socket pathname as
	argument.  Improve error checking.
	* dico/func.c (ds_open): If one argument given, it can be a socket
	pathname.
	* doc/dico.texi: Document changes to the "open" command.

2016-10-29  Sergey Poznyakoff  <gray@gnu.org>

	Bugfix

	* include/dico/markup.h (dico_markup_type): Fix declaration.
	* THANKS: Update

	Fix coredump in gcide.

	The coredump occurred when the requested headword matched the
	entry at the start of the index page.

	* modules/gcide/idx.c (gcide_idx_locate): Fix improper dereference.
	* modules/gcide/tests/Makefile.am: Add def06.at
	* modules/gcide/tests/testsuite.at: Include def06.at

2016-08-12  Sergey Poznyakoff  <gray@gnu.org>

	I18n-related fixes

	Reported by Rafael Fontenelle

	* dicod/acl.c: Fix mistyped translators marker.
	* po/POTFILES.in: Add files from grecs
	* THANKS: Updated.

Ritesh Sarraf's avatar
Ritesh Sarraf committed
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
2016-08-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.3

	* NEWS: Raise the version number.
	* configure.boot: Likewise.

	Minor fixes

	* dicod/cmdline.opt: Remove stray dot from docstring.
	* lib/jiscvt.c (convert): Add missing typecast.
	* modules/guile/guile.c (scm_dico_strat_select_p): Fix
	eventual use of uninitialized variable (if key is a plain
	string).
	* modules/python/python.c: Minor changes

2016-08-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes

	Improve module unit testing

	* grecs: Update.
	* dico/cmdline.opt: fix the style of option descriptions
	* dicod/cmdline.opt (--test option): Rename to --runtest (-r).
	Stop further processing after this option.
	* dicod/loader.c (dicod_module_test): Fix comment.
	* dicod/main.c: Ignore configuration file if in unit testing
	mode.

	* doc/dico.texi: Document unit testing mode.
	* doc/dicod.8in: Likewise.

	* modules/metaphone2/tests/build.at: Fix dicod arguments.
	* modules/metaphone2/tests/comp01.at: Likewise.
	* modules/metaphone2/tests/comp02.at: Likewise.
	* modules/metaphone2/tests/encode.at: Likewise.

	Fix metaphone2/tests/build.at

	Bugfixes

	* bootstrap (run): Properly capture stderr

	* dicod/main.c (keywords): Mark string values as GRECS_CONST.

	* modules/metaphone2/tests/testsuite.at (DICOD_TEST): New macro.
	* modules/metaphone2/tests/comp00.at: Use DICOD_TEST. Ignore
	config file, if present.
	* modules/metaphone2/tests/comp01.at: Likewise.
	* modules/metaphone2/tests/comp02.at: Likewise.
	* modules/metaphone2/tests/encode.at: Likewise.

2016-08-05  Sergey Poznyakoff  <gray@gnu.org>

	Update copyright years

2016-08-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	Implement Double Metaphone matching strategy

	* dicod/loader.c (dicod_module_test): Revert order of arguments:
	unit test arguments go first, optionally followed by -- and module
	initialization parameters.

	* modules/metaphone2/Makefile.am: New file.
	* modules/metaphone2/metaphone2.c: New file.
	* modules/metaphone2/tests/Makefile.am: New file.
	* modules/metaphone2/tests/dicod.cfin: New file.
	* modules/metaphone2/tests/comp00.at: New file.
	* modules/metaphone2/tests/comp01.at: New file.
	* modules/metaphone2/tests/comp02.at: New file.
	* modules/metaphone2/tests/encode.at: New file.
	* modules/metaphone2/tests/match00.at: New file.
	* modules/metaphone2/tests/testsuite.at: New file.

	* NEWS: Update.
	* doc/dico.texi: Update.

	Improve creation of new module framework by bootstrap

	* bootstrap: Read the list of files that form a module from
	modules/template/README.
	* modules/.gitignore: Don't ignore all Makefile.am's
	* modules/stub.am (EXTRA_DIST): Add template/README and <TEMPLATE>.
	* modules/template.am: Rename to modules/template/Makefile.am
	* modules/template/README: New file.
	* modules/template.c: Rename to modules/template/module.c
	* modules/template/tests/Makefile.am: New file.
	* modules/template/tests/atlocal.in: New file.
	* modules/template/tests/testsuite.at: New file.

2016-08-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improve modules/template.c

2016-08-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	New operation mode: module test

	* dicod/cmdline.opt: New options: --test and --load-dir
	* dicod/dicod.h (MODE_TEST): New mode.
	(get_options): Change signature.
	* dicod/loader.c (dicod_module_test): New function.
	* dicod/main.c (config_parse): In test mode, allow
	for non-existing configuration file.
	(main): Handle test mode.
	* include/dico/types.h (DICO_MODULE_VERSION): Raise to 2.
	(dico_database_module) <dico_run_test>: New member.
	* modules/substr/substr.c: Support module test

	Determine the highest-numbered open file descriptor.

	* dicod/dicod.h (getmaxfd): Remove macro.
	* dicod/server.c (getmaxfd): New function.

2016-08-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Document UTF-8 functions.

	* doc/libdico.texi: Document UTF-8 and related functions.
	* lib/utf8.c: Set consistent error codes.

	Fix soundex implementation.

	* lib/soundex.c: Use American Soundex.
	* lib/tests/soundex.c: New test program.
	* modules/outline/tests/soundex.at: Fix expected output.
	* lib/tests/soundex.at: New testcase.
	* lib/tests/Makefile.am: Add new testcase.
	* lib/tests/testsuite.at: Likewise.

	Improve substring search function

	* lib/utf8.c (utf8_wc_strpat): Remove.
	(utf8_wc_strstr): If unable to allocate KMP border table
	fall back to brute force algorithm.
	* include/dico/utf8.h (utf8_wc_strpat): Remove.
	* doc/libdico.texi: Remove utf8_wc_strpat
	* lib/tests/wcstrstr.at: Check corner cases.
	* modules/substr/substr.c" Use utf8_wc_strstr (reverts
	b9a48eae).

2016-07-31  Sergey Poznyakoff  <gray@gnu.org>

	Rename modinc to bootstrap.

	* modinc: Rename to bootstrap.
	* bootstrap: Add generic bootstrapping code.
	* stub.ac: Rename to configure.boot.
	* Makefile.am: Fix EXTRA_DIST
	* README-hacking: Document bootstrap.

2016-07-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix

	* modules/pcre/module.ac: Fix DICO_CHECK_LIB arguments
	(cda4f4b9 added : in wrong place).

	Upgrade grecs

	* grecs: Pull latest commit.
	* dicod/main.c (config_init): Set GRECS_OPTION_QUOTED_STRING_CONCAT
	option.

	* dicod/accesslog.c: Use %td specifier to print ptrdiff_t values.
	* dicod/server.c (handle_connection): Return meaningful status
	in single_process mode.

	* modules/gcide/idxgcide.l: Set option noinput.
	* modules/gcide/markup.l: Likewise.

	Use Knuth-Morris-Pratt algorithm for substing look-ups

	* include/dico/utf8.h (utf8_wc_strpat): New proto.
	* lib/utf8.c (utf8_wc_strpat): New function.
	(utf8_wc_strstr): Rewrite as a wrapper over utf8_wc_strpat.
	* lib/tests/utf8.c: Use %td specifier to print ptrdiff_t values.
	* doc/libdico.texi: Document string-matching functions.
	* lib/tests/wcstrstr.at: Add more tests.
	* modules/substr/substr.c (substr_sel): Use utf8_wc_strpat.

	Improve modinc

	* modinc: Provide explicit construct for multiline expansion.
	* modules/stub.am: Use the new construct for HEADING expansion.
	* stub.ac: Likewise.

2016-07-31  Sergey Poznyakoff  <gray@gnu.org>

	Minor fixes

	* dicod/tests/echo.c: Avoid pointer-to-integer conversions.
	* modinc: Fix docs.
	* modules/pcre/module.ac: Make sure -lpcre is not added to LIBS.

2016-07-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix doc generation.

	Default Config file applied to all output formats, which is wrong.
	Use a dedicated configuration file for html output formats, and
	defaults for the rest.

	* doc/Makefile.am (GENDOCS): Add html-specific configuration file.
	* doc/Config: Rename to doc/html.init (with changes).
	* doc/gendocs.sh: New option --no-copy-images

	Minor fixes

	Minor changes

	Use Texinfo 5 for building documentation

	* doc/Config: Rewrite for texi2any
	* doc/Makefile.am: Use Makeinfo 5 instead of texi2html
	* doc/dico.texi: Minor changes.
	* doc/gendocs.sh: New file.
	* doc/gendocs_template: Ps is not built
	* imprimatur: Upgrade.
	* modinc: Minor change.

2016-07-31  Sergey Poznyakoff  <gray@gnu.org>

	Bugfix

	* lib/utf8.c (utf8_wc_to_mbstr): Fix stack overflow

2016-07-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	Add libgnu as a submodule

	* gnulib: New module.
	* .gitignore: Update.
	* bootstrap: Rewrite from scratch.
	* gnulib.modules: Remove deprecated modules.
	* bootstrap.conf: Rename to gnulibinit.conf
	* modules/.gitignore: New file.
	* dico/Makefile.am: Link to libgnu.la, instead of libgnu.a
	* dicod/Makefile.am: Likewise.
	* dicod/tests/Makefile.am: Likewise.
	* makedict/Makefile.am: Likewise.
	* modules/gcide/Makefile.am: Likewise.
	* stub.ac: Minor change.

2016-07-31  Sergey Poznyakoff  <gray@gnu.org>

	Update

	* modules/stub.am: (EXTRA_DIST): Add template.am

2016-07-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	Provide a utility for adding module into autoconf structure.

	* .gitignore: Add configure.ac
	* Makefile.am (EXTRA_DIST): Add stub.ac and modinc
	* bootstrap: Obtain package name from stub.ac
	* bootstrap.conf: Call modinc
	* configure.ac: Remove.
	* stub.ac: New file.
	* modinc: New file.
	* modules/dict.org/Makefile.am (EXTRA_DIST): add module.ac
	* modules/dict.org/module.ac: New file.
	* modules/guile/Makefile.am (EXTRA_DIST): add module.ac
	* modules/guile/module.ac: New file.
	* modules/ldap/Makefile.am (EXTRA_DIST): add module.ac
	* modules/ldap/module.ac: New file.
	* modules/pam/Makefile.am (EXTRA_DIST): add module.ac
	* modules/pam/module.ac: New file.
	* modules/pcre/Makefile.am (EXTRA_DIST): add module.ac
	* modules/pcre/module.ac: New file.
	* modules/python/Makefile.am (EXTRA_DIST): add module.ac
	* modules/python/module.ac: New file.
	* modules/wordnet/Makefile.am (EXTRA_DIST): add module.ac
	* modules/wordnet/module.ac: New file.

	* modules/Makefile.am: Remove.
	* modules/stub.am: New file.
	* modules/template.am: New file.
	* modules/template.c: Use modinc macro variable to create
	struct dico_database_module.

2016-07-28  Sergey Poznyakoff  <gray@gnu.org>

	Bugfix

	* modules/gcide/idxgcide.l (main): Initialize ipg_header.

	Minor fixes.

	* configure.ac: Make sure -lpcre is not added to LIBS.
	* dicod/tests/echo.c: Avoid pointer-to-integer conversions.

2015-09-29  Sergey Poznyakoff  <gray@gnu.org>

	Fix default port in dico client

	* dico/connect.c (dict_connect): Select default port if url->port
	is not set.

2015-03-15  Wojciech Polak  <polak@gnu.org>

	Add Python 3 support via Six.

2014-10-19  Wojciech Polak  <polak@gnu.org>

	Update Dicoweb for Django 1.5+

2014-10-04  Sergey Poznyakoff  <gray@gnu.org>

	Update NEWS

2014-10-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix compatibility with guile 1.8

	* examples/listdict.scm: Use (ice-9 syncase) if Guile major
	version is 1.
	* modules/guile/Makefile.am (EXTRA_DIST): Remove guile.x. Always
	create it during the build. Add it to CLEANFILES.

2014-09-30  Wojciech Polak  <polak@gnu.org>

	Add wsgi.virtualenv.py

2014-09-28  Sergey Poznyakoff  <gray@gnu.org>

	Add manpages.

	* configure.ac (DEFAULT_INCLUDE_DIR)
	(DEFAULT_VERSION_INCLUDE_DIR): New variables.
	* dicod/Makefile.am (AM_CPPFLAGS): Use new variables.
	* dicod/cmdline.opt: Fix argument name for the --debug option.
	* dicod/main.c (set_user): Treat +NUM as UID number.
	(set_supp_group): Treat +NUM as GID number.
	* doc/.gitignore: Add new generated files.
	* doc/Makefile.am: Add manpages.
	* doc/dico.texi: Update.
	* doc/dico.1: New file.
	* doc/dicod.8in: New file.
	* doc/dicod.conf.5in: New file.

2014-09-26  Sergey Poznyakoff  <gray@gnu.org>

	Document IPv6 support.

	* NEWS: Updated.
	* doc/dico.texi: Document all ways of specifying sockets
	to listen on.

2014-09-25  Sergey Poznyakoff  <gray@gnu.org>

	Fix VPATH builds

	* grecs: Upgrade

	Various fixes.

	* dico/shell.c (_command_completion): Fix type of the first parameter.
	(shell_init): Remove typecast.
	* lib/tests/utf8.c: Fix format specifiers.
	* modules/dict.org/dictorg.c (init_suffix_index): Redo freeing loop.
	* modules/gcide/Makefile.am: Refer to libgcide.la without leading ./,
	to fix compilation with BSD Make.
	* modules/gcide/gcide.c (gcide_init_db): Avoid using old-style GNU
	member specification.
	* modules/gcide/idx.c (_cache_promote): Fix type of the counter.
	* modules/outline/outline.c (init_suffix_index): Redo freeing loop.

	IPv6 support.

	* grecs: Upgrade.
	* configure.ac (GRECS_SETUP): Request sockaddr-list.

	* include/dico/types.h (DICO_DICT_PORT_STR): New constant.
	(dico_url) <port>: Change type to char *. All uses changed.
	* include/dico/url.h (ip_hostname, get_ipaddr)
	(str2port): Remove obsolete functions and data types.
	* include/appi18n.h (appi18n_init): New proto.

	* dicod/accesslog.c: Add typecasts to struct sockaddr*. Fix
	format string conversions.
	* dicod/acl.c (acl_value): New union.
	(acl_entry) <sockaddrs>: Rename to values. Holds acl_value entries now.
	(_parse_sockaddr): Remove.
	(_parse_acl_value): New function.  Use grecs CIDRs to represent ACL entries.
	(_check_sockaddr): Replace with _check_value. All uses updated.
	* dicod/alias.c (alias_hasher): Fix signature.
	* dicod/dicod.c: Add typecasts to struct sockaddr*.
	* dicod/dicod.h (client_addr): Change type to sockaddr_storage.
	* dicod/ident.c (query_ident_name): Remove unused variable.
	* dicod/loader.c: Minor fix.
	* dicod/main.c (cb_dico_sockaddr_list): Use grecs sockaddr-list support.
	* dicod/server.c (address_family_to_domain): Add IPv6 support.
	(client_addr): Change type to struct sockaddr_storage. All uses changed.

	* dico/cmdline.opt: Update.
	* dico/connect.c (dict_connect): Rewrite using getaddrinfo.
	* dico/dico-priv.h (source_addr): Change type to char*.
	(shell_banner): New proto.
	* dico/dico.c (source_addr): Change type to char*.
	(fixup_url): dico_url.port member is char *.
	* dico/func.c: dico_url.port member is char *.

	* lib/iputil.c (ip_hostname, get_ipaddr)
	(str2port): Remove obsolete functions.
	(sockaddr_to_str): Add IPv6 support.
	* lib/url.c (url_get_host): Allocate memory for url.port
	(dico_url_destroy): Free port.

	* lib/logstream.c: Minor fixes.
	* lib/qp.c: Likewise.
	* modules/gcide/markup.l: Likewise.

2014-09-21  Sergey Poznyakoff  <gray@gnu.org>

	Fix Guile deprecation mesages; modify guile module testsuite for Guile 2.x

	* modules/guile/guile.c (guile_safe_exec)
	(guile_call_proc): Use scm_c_with_throw_handler for Guile 2.0 and newer.
	* examples/listdict.scm: (ice-9 syncase) no longer needed.
	* include/testsuite.inc (DICOD_RUN): Take stderr filter as an
	optional second argument.
	* modules/guile/tests/define.at: Filter out Guile compiler messages from
	stderr.
	* modules/guile/tests/exact.at: Likewise.
	* modules/guile/tests/lev.at: Likewise.
	* modules/guile/tests/prefix.at: Likewise.
	* modules/guile/tests/showdb.at: Likewise.
	* modules/guile/tests/showinfo.at: Likewise.
	* modules/guile/tests/showlang.at: Likewise.
	* modules/guile/tests/suffix.at: Likewise.

	Minor fixes.

	* configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects
	* dicod/acl.c (acl_hasher): Fix argument types.
	* lib/timer.c (timer_hasher): Likewise.

2014-09-18  Wojciech Polak  <polak@gnu.org>

	Minor Dicoweb updates.

2014-01-11  Wojciech Polak  <polak@gnu.org>

	Minor Dicoweb changes.

2013-12-19  Sergey Poznyakoff  <gray@gnu.org>

	Fix dico/ in accordance with c1f6dc71

2013-12-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.2.90

	Update .gitignore files

	Update submodules and build system

	* bootstrap (gnulib_extra_files): Remove "missing".
	* configure.ac: Require libtool 2.4 and gettext 0.18
	* dicod/cmdline.opt: Use the program_version option.
	* dicod/dicod.h (program_version): New extern.
	* gint: Upgrade.
	* grecs: Upgrade.
	* lib/levenshtein.c (dico_levenshtein_distance): Avoid
	assigning dist at each iteration.
	* dico/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
	* dicod/Makefile.am: Likewise.
	* dicod/tests/Makefile.am: Likewise.
	* lib/Makefile.am: Likewise.
	* lib/tests/Makefile.am: Likewise.
	* makedict/Makefile.am: Likewise.
	* modules/dict.org/Makefile.am: Likewise.
	* modules/gcide/Makefile.am: Likewise.
	* modules/gcide/tests/Makefile.am: Likewise.
	* modules/guile/Makefile.am: Likewise.
	* modules/ldap/Makefile.am: Likewise.
	* modules/nprefix/Makefile.am: Likewise.
	* modules/outline/Makefile.am: Likewise.
	* modules/pam/Makefile.am: Likewise.
	* modules/pcre/Makefile.am: Likewise.
	* modules/python/Makefile.am: Likewise.
	* modules/stratall/Makefile.am: Likewise.
	* modules/substr/Makefile.am: Likewise.
	* modules/word/Makefile.am: Likewise.
	* modules/wordnet/Makefile.am: Likewise.

2013-04-09  Wojciech Polak  <polak@gnu.org>

	Support Django 1.5.

2013-03-08  Wojciech Polak  <polak@gnu.org>

	PEP8 code formatting changes.

	Update Dicoweb for Django 1.4+
	Add requirements.txt file for PIP.

2013-03-02  Wojciech Polak  <polak@gnu.org>

	Dicoweb: Add CSS for mobile devices.

2012-07-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Upgrade imprimatur.

1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491
2012-03-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	Implement info/descr for gcide.

	* NEWS: Update.
	* doc/dico.texi: Update.
	* include/dico/util.h (dico_string_trim): Add missing proto.
	* modules/gcide/gcide.c (gcide_info, gcide_descr): Implement
	info and description methods.
	* modules/gcide/tests/dict/INFO: New file.
	* modules/gcide/tests/Makefile.am (TESTSUITE_AT): Add descr.at and
	info.at.
	* modules/gcide/tests/testsuite.at: Include descr.at and info.at
	* modules/gcide/tests/dicod.cfin: Remove description.
	* modules/gcide/tests/descr.at: New test case.
	* modules/gcide/tests/info.at: New test case.
	* modules/gcide/tests/def00.at: Update.
	* modules/gcide/tests/def01.at: Update.
	* modules/gcide/tests/def02.at: Update.
	* modules/gcide/tests/def03.at: Update.
	* modules/gcide/tests/def04.at: Update.
	* modules/gcide/tests/def05.at: Update.

	* scripts/Makefile.am: Exempt gcider from standard options check.

2012-03-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.2

	* NEWS: Update.
	* configure.ac: Version 2.2
	Remove DBM autodetection.
	* doc/dico.texi: Update.
	* doc/gendocs_template: Update.
	* scripts/gcider: Update.
	* grecs: Upgrade.
	* lib/tests/Makefile.am (LDADD): Add $(LIBINTL).
	* lib/utf8.c [!ENODATA]: Define ENODATA.
	* modules/gcide/Makefile.am (gcide_la_LIBADD): Add @LTLIBINTL@.
	(idxgcide_LDADD): Add @LIBINTL@
	(INCLUDES): Add gnu
	* modules/gcide/gcide.c" Include signal.h
	* modules/gcide/tests/Makefile.am (degcide_LDADD)
	(greek_LDADD): Add @LIBINTL@
	* modules/nprefix/tests/dict.out: Use only lowercase headwords.

	Improve SASL authentication.

	* dico/saslauth.c: Make sure authentication is attempted
	only if the server offers SASL.
	(authctx): New struct.
	(match_capa,getauthcontext)
	(freeauthcontext): New functions.
	(saslauth0): Change signature: take authctx as 3rd arg.
	(saslauth): Return AUTH_CONT if SASL is not available or
	none of its methods matches those implemented on the client
	side.
	* dicod/main.c (user_db_config): Fix the source location copy.
	(init_user_db): Clear sasl_enable if no user database is configured.
	(main): Call register_sasl after init_user_db so that the above
	change takes effect.
	* dicod/server.c (dicod_server): Don't try to remove pidfile
	in foreground mode.
	* doc/proto.texi: Minor fix.

2012-03-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update docs.

	Improve the documentation.

2012-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor changes

	* README: Update.
	* examples/numerals-cz.txt: Change initial comment.
	* examples/numerals-pl.ldb: Likewise.
	* scripts/gcider: Handle broken pipe and partial reads graciously.

	gcide: recreate index if any of the corpus files change.

	* modules/gcide/gcide.c (gcide_db) <latest_change>: New member.
	(gcide_check_files): Fill in db->latest_change.
	(gcide_access_idx): New function. Check index file availability
	and timestamp.
	(gcide_open_idx): Use gcide_access_idx to determine whether to
	create the index.

2012-02-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update docs. Fix a bug in python.

	* doc/dico.texi: Finish main part.
	* modules/python/python.c (strat_select_method): Fix docstring.
	(dico_register_strat): Bugfix: reversed sense of a conditional.
	(mod_init_db): Declare DICO_SELECT_* constants.
	(mod_match): Fix memory leaks. Remove useless call to strat->sel,
	which is called by dico_key_deinit implicitly.

	Minor bugfixes in gcide.

	* modules/gcide/ent.c: Add missing entities (dagger, dag, para, etc.)
	* modules/gcide/gcide.c (GCIDE_DBGLEX): New flag.
	(gcide_init_db): New flag debug-lex.
	(output_def): If GCIDE_DBGLEX is set, enable lexer debugging.
	* modules/gcide/gcide.h (TAG_HAS_NAME): New macro.
	(gcide_markup_debug): Remove extern.
	(gcide_markup_parse): Takes three arguments.
	* modules/gcide/idxgcide.l: Tags and entities can contain uppercase
	letters.
	* modules/gcide/markup.l: Likewise.
	Define more yy* symbols.
	(pop_tag): Fix coredump on encountering improperly nested tag.
	(gcide_markup_debug): Remove.
	(gcide_markup_parse): Take three arguments. All uses updated.

	Improve docs.

	* doc/strat.texi: New file. Describes available match strategies.
	* doc/Makefile.am: Add strat.texi
	* doc/dico.texi: New appendix "Available Strategies".

2012-02-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.

	* dicod/accesslog.c (access_log_status): If "last" begins with a
	dot, advance 2 characters (complements 61ed04af).
	* scripts/gcider: Don't clear the tearOff option.
	(setupvisual): Add hotkeys to menu. Fix column configuration
	(saveconf): Save geometry. Don't save non-existing variables.
	(main): Restore main window geometry.

	Minor cleanup

	* configure.ac: New option --with-tk. Do not "build" gcider
	if Tcl/Tk is not available.
	* scripts/Makefile.am: Likewise.
	* scripts/gcider (setupvisual): Add necessary rowconfigures.

2012-02-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Upgrade grecs

	gcide: fix search in index page

	* modules/gcide/idx.c (gcide_idx_locate): Revamp the backtracking
	loop.

	gcide: support --help and --version command line options.

2012-02-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor changes

	* NEWS: Document gcider.
	* scripts/gcider (helpbox): Bind scrolling actions to kbd.
	(about): Bind CR and ESC keys.
	(gcide_configure): Add "help" button.

2012-02-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	More changes in gcider.

	* scripts/gcider: Create GCIDE.IDX in the configuration directory
	by default, but provide an option to change this. Close current
	connection before opening new one.

	gcider: fix semantics of prev/next

	Document gcider.

	Improve gcider interface.

	Provide buttons for moving within input history; clear selection
	in entry parts of comboboxes when selecting a prior value into
	them.

2012-02-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcider: limit the history size; other minor changes.

	Bugfix in the gcide module.

	* modules/gcide/idx.c (gcide_idx_locate): Fix backtracking.

	Improve gcider interface.

	* scripts/gcider: Provide a documentation (manual) window.
	Add status line.
	Use short strategy names in the strategy combobox, except for the
	".", which is rendered as "Default".  When hovering over the
	strategy popdown, print full description of a higlighted strategy
	in the status line.
	* doc/dico.texi: Update.

2012-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcider: add window titles.

	Add gcider to distribution

2012-02-12  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcider: configure appearance, save its settings to the config

2012-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcider: implement input widget popup menu.

2012-02-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcider: improve article presentation.

	* scripts/gcider (readdefns): Remove curly braces surrounding
	cross references.

	Implement CR<=>CRLF translation stream.

	* lib/stream.c (_stream_flush_buffer): Fix full buffering.
	(dico_stream_read): Break from the loop if level remains zero
	after filling the buffer.
	(dico_stream_writeln): Write a single \n at end of line.

	* TODO: Update.

	* dicod/dicod.c: End lines with a single \n.  The \r is added
	automatically by the transport stream.
	(dicod_inetd): Use dicod_iostream to create transport stream.
	(dicod_iostream): New function.
	* dicod/dicod.h (dicod_iostream): New proto.
	* dicod/ostream.c (print_headers): End lines with a single \n.
	The \r is added automatically by the transport stream.
	Install dico_linetrim_stream here.
	* dicod/server.c (handle_connection): Use dicod_iostream to create
	transport stream. End lines with a single \n.
	* include/dico/stream.h (dico_crlf_stream): New proto.

	* dicod/auth.c: End lines with a single \n.  The \r is added
	automatically by the transport stream.
	* dicod/commands.c: Likewise.
	* dicod/gsasl.c: Likewise
	* dicod/lang.c: Likewise
	* dicod/lev.c: Likewise
	* dicod/loader.c: Likewise
	* dicod/markup.c: Likewise
	* dicod/mime.c: Likewise
	* dicod/xidle.c: Likewise
	* dicod/xversion.c: Likewise
	* lib/fltstream.c: Likewise

	* lib/Makefile.am (libdico_la_SOURCES): Add crlfstr.c
	* lib/crlfstr.c: New file.

	* lib/tests/Makefile.am (noinst_PROGRAMS): Add crlftool
	(TESTSUITE_AT): Add crlf tests.
	* lib/tests/crlftool.c: New file.
	* lib/tests/crlf00.at: New test case.
	* lib/tests/crlf01.at: New test case.
	* lib/tests/crlf02.at: New test case.
	* lib/tests/crlf03.at: New test case.
	* lib/tests/crlf04.at: New test case.
	* lib/tests/crlf05.at: New test case.
	* lib/tests/testsuite.at: Include crlf tests.

	dicod: make sure output lines are no longer than 1024 UTF-8 characters.

	* dicod/ostream.c (dicod_ostream_create): Use linetrim stream as
	transport.
	* include/dico/stream.h (DICO_IOCTL_SET_LINELEN)
	(DICO_IOCTL_GET_LINELEN): New ioctls.
	(dico_linetrim_stream): New function.
	* lib/Makefile.am (libdico_la_SOURCES): Add linetrimstr.c
	* lib/linetrimstr.c: New file. Implementation of "line triming" stream.
	* lib/tests/Makefile.am:  Add new tests.
	* lib/tests/linetrim.c: New file.
	* lib/tests/lntrim00.at: New file.
	* lib/tests/lntrim01.at: New file.
	* lib/tests/lntrim02.at: New file.
	* lib/tests/lntrim03.at: New file.
	* lib/tests/testsuite.at: Include new tests.

2012-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcider: add text tags

	Minor changes in gcider.

	Implement a standalone Tk-based viewer for GCIDE

	* scripts/gcider: New file.

2012-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Implement PAM authentication.

	* configure.ac: Check for PAM libraries and headers.
	Build modules/pam/Makefile.
	* dicod/gsasl.c (cb_validate): Call dico_udb_check_password first,
	and dico_udb_get_password if it is not implemented.
	* include/dico/udb.h (dico_udb_def)<_db_check_password>: New
	member.
	(dico_udb_check_password): New function.
	* lib/udb.c (dico_udb) <_db_check_password>: New member.
	(dico_udb_check_password): New function.
	(dico_udb_get_password): Initialize _db_check_password.
	* modules/Makefile.am [PAM_COND]: Define PAM_DIR
	(SUBDIRS): Add $PAM_DIR.
	* modules/pam/Makefile.am: New file.
	* modules/pam/pam.c: New file.

	* NEWS: Update.
	* README: Update.
	* doc/dico.texi: Document PAM.

	Bugfixes.

	* dicod/main.c (user_db_config): Allocate copies of file name
	for cfg->locus.beg.file and cfg->locus.end.file.
	* modules/nprefix/nprefix.c: Include string.h

	* dicod/server.c (dicod_server): Ignore user/group settings if not
	running as root.

2012-02-04  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update docs.

2012-02-03  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcide: Minor changes.

	* modules/gcide/idxgcide.l: Count initial double vertical bar as
	start of entry.
	Index <conf> and <conjf> entries.
	* modules/gcide/tests/def02.at: Reflect the recent changes.

	gcide: Fix some UTF-8 entities.

2012-02-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	New dicod option -D (define symbol).

	* dicod/cmdline.opt: Handle the -D (--define) option.
	* doc/dico.texi: Document it.

	gcide: further improvements.

	* modules/gcide/ent.c: Add new entities.
	* modules/gcide/idxgcide.l: Index <decf> entries.

2012-01-31  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix in word module.

	* modules/word/word.c (first_sel,last_sel): Return 0 if the
	dictionary word is empty.

	Implement the nprefix strategy.

	* configure.ac: Configure the nprefix module.
	* NEWS: Document nprefix.
	* doc/dico.texi: Likewise.
	* modules/Makefile.am (SUBDIRS): Add nprefix.
	* modules/nprefix/Makefile.am: New file.
	* modules/nprefix/nprefix.c: New file.
	* modules/nprefix/tests/Makefile.am: New file.
	* modules/nprefix/tests/atlocal.in: New file.
	* modules/nprefix/tests/dicod.cfin: New file.
	* modules/nprefix/tests/dict.out: New file.
	* modules/nprefix/tests/np00.at: New file.
	* modules/nprefix/tests/np01.at: New file.
	* modules/nprefix/tests/np02.at: New file.
	* modules/nprefix/tests/np03.at: New file.
	* modules/nprefix/tests/np04.at: New file.
	* modules/nprefix/tests/testsuite.at: New file.
	* modules/nprefix/tests/.gitignore: New file.

	Implement "first" and "last" matching strategies.

	* modules/word/word.c: Implement new strategies.
	* NEWS: Document new strategies.
	* doc/dico.texi: Likewise.
	* modules/word/tests/dicod.cfin: Load dict.out
	* modules/word/tests/dict.out: New file.
	* modules/word/tests/first.at: New file.
	* modules/word/tests/last.at: New file.
	* modules/word/tests/word.at: New file.
	* modules/word/tests/Makefile.am: Add new files. Change ~dictdir~.
	* modules/word/tests/testsuite.at: Include new files.

	Document the pcre module.

	Accept CLIENT command without arguments.

	Update the docs.

	Bugfix

	* dicod/commands.c (dicod_client): The CLIENT command takes any
	number of arguments.

2012-01-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update for gcide 0.51

	* modules/gcide/ent.c: Handle <oacute/, <ldquo/ and <rdquo/.
	* modules/gcide/idxgcide.l: <ent> tag triggers flush_headwords.

2012-01-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Test the basic dicod functionality.

	* configure.ac: Define LIBDICOSASL to absolute path.
	Initialize tests in dicod.
	* dicod/Makefile.am (SUBDIRS): Add tests.
	* include/testsuite.inc (AT_SKIP_TEST,DICO_VERSION)
	(DICOD_RUN): New defines.
	* dicod/tests/Makefile.am: New file.
	* dicod/tests/atlocal.in: New file.
	* dicod/tests/group: New file.
	* dicod/tests/passwd: New file.
	* dicod/tests/startup.at: New file.
	* dicod/tests/alias.at: New file.
	* dicod/tests/apop.at: New file.
	* dicod/tests/apopauth.c: New file.
	* dicod/tests/def.at: New file.
	* dicod/tests/descr.at: New file.
	* dicod/tests/echo.c: New file.
	* dicod/tests/help00.at: New file.
	* dicod/tests/help01.at: New file.
	* dicod/tests/help02.at: New file.
	* dicod/tests/help03.at: New file.
	* dicod/tests/info.at: New file.
	* dicod/tests/match.at: New file.
	* dicod/tests/nodef.at: New file.
	* dicod/tests/nomatch.at: New file.
	* dicod/tests/showdb.at: New file.
	* dicod/tests/showstrat.at: New file.
	* dicod/tests/testsuite.at: New file.
	* dicod/tests/vis00.at: New file.
	* dicod/tests/vis01.at: New file.
	* dicod/tests/vis02.at: New file.

	Upgrate grecs.

	Minor fixes in dicod.

	* dicod/acl.c (acl_entry) <dflt>: New member.
	(_acl_check): Handle dflt specially.
	(dicod_acl_create,parse_acl_line): allocate a copy of member
	field in loci.
	(_parse_from): Accept the traditional "from any" clause.
	* dicod/commands.c (dicod_show_server): Dont print timing if
	timing_option is not set.

	Fix the docs.

	* dico/cmdline.opt: Use the gnupackage option to include web
	URL into the help output.
	* dicod/cmdline.opt: Likewise.
	* doc/dico.texi: Improve some wording.

2012-01-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Document wordnet module.

	Minor changes.

	* modules/gcide/gcide.c (run_idxgcide): Fix error diagnostics.
	(gcide_open_idx): don't try to open the index file if idxgcide
	has failed.

2012-01-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix handling of double vertical bar (\'d8) in GCIDE database.

	* modules/gcide/idxgcide.l: Allow for \'d8 between <p> and <hw>.
	Ignore it elsewhere.
	* modules/gcide/tests/Makefile.am: Add new tests.
	* modules/gcide/tests/def02.at: New file.
	* modules/gcide/tests/def03.at: New file.
	* modules/gcide/tests/def04.at: New file.
	* modules/gcide/tests/def05.at: New file.
	* modules/gcide/tests/dict/CIDE.A: Add double bar to a headword.
	* modules/gcide/tests/testsuite.at: Include new tests.

2012-01-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update .gitignore.

	Remove a stray file.

	Add Emacs mode markers and keywords to test cases.

	Fixes in gcide indexing algorithm. Add module tests.

	* modules/gcide/gcide.c (run_idxgcide): Fix idxgcide invocation.
	* modules/gcide/idx.c (gcide_idx_file_close): Avoid coredump on
	NULL argument.
	* modules/gcide/idxgcide.l (i): Rename to letno. All uses updated.
	(flush_headwords): Update headword_position even if headword is empty.
	(yywrap): Call flush_headwords; reset headword_position to 0.
	(main): Remove unnecessary call to flush_headwords, now that is handled
	by yywrap.
	* modules/gcide/tests/Makefile.am: Add new tests.
	* modules/gcide/tests/atlocal.in (PATH): Update.
	(DICTDIR,IDXDIR): New variables.
	* modules/gcide/tests/all.at: New testcase.
	* modules/gcide/tests/autoidx.at: New testcase.
	* modules/gcide/tests/def00.at: New testcase.
	* modules/gcide/tests/def01.at: New testcase.
	* modules/gcide/tests/define.at: New testcase.
	* modules/gcide/tests/exact.at: New testcase.
	* modules/gcide/tests/idx.at: New testcase.
	* modules/gcide/tests/prefix.at: New testcase.
	* modules/gcide/tests/testsuite.at: Include new tests.
	* modules/gcide/tests/dicod.cfin: New file.
	* modules/gcide/tests/dict/CIDE.A: New file.
	* modules/gcide/tests/dict/CIDE.B: New file.
	* modules/gcide/tests/dict/CIDE.C: New file.
	* modules/gcide/tests/dict/CIDE.D: New file.
	* modules/gcide/tests/dict/CIDE.E: New file.
	* modules/gcide/tests/dict/CIDE.F: New file.
	* modules/gcide/tests/dict/CIDE.G: New file.
	* modules/gcide/tests/dict/CIDE.H: New file.
	* modules/gcide/tests/dict/CIDE.I: New file.
	* modules/gcide/tests/dict/CIDE.J: New file.
	* modules/gcide/tests/dict/CIDE.K: New file.
	* modules/gcide/tests/dict/CIDE.L: New file.
	* modules/gcide/tests/dict/CIDE.M: New file.
	* modules/gcide/tests/dict/CIDE.N: New file.
	* modules/gcide/tests/dict/CIDE.O: New file.
	* modules/gcide/tests/dict/CIDE.P: New file.
	* modules/gcide/tests/dict/CIDE.Q: New file.
	* modules/gcide/tests/dict/CIDE.R: New file.
	* modules/gcide/tests/dict/CIDE.S: New file.
	* modules/gcide/tests/dict/CIDE.T: New file.
	* modules/gcide/tests/dict/CIDE.U: New file.
	* modules/gcide/tests/dict/CIDE.V: New file.
	* modules/gcide/tests/dict/CIDE.W: New file.
	* modules/gcide/tests/dict/CIDE.X: New file.
	* modules/gcide/tests/dict/CIDE.Y: New file.
	* modules/gcide/tests/dict/CIDE.Z: New file.

	* dicod/gsasl.c (callback): Comment out spurious diagnostics.

	Test gcide markup and Greek transliteration.

	* configure.ac: Configure gcide tests.
	* modules/gcide/tests/.gitignore: Update.
	* modules/gcide/tests/Makefile.am: Add test cases.
	* modules/gcide/tests/atlocal.in: New file.
	* modules/gcide/tests/degcide.c: Change command line handling.
	Use the same output algorithm as in gcide.c
	* modules/gcide/tests/greek.at: New file.
	* modules/gcide/tests/markup.at: New file.
	* modules/gcide/tests/nopr.at: New file.
	* modules/gcide/tests/testsuite.at: New file.
	* dicod/cmdline.opt: Minor change.

2012-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcide: add an option to suppress <pr> blocks.

	* modules/gcide/ent.c: Recognize <and/ and <or/
	* modules/gcide/gcide.c GCIDE_NOPR): New define.
	(gcide_db)<flags>: New member.
	(gcide_init_db): New option "suppress-pr"
	(GOF_IGNORE): New flag.
	(GOF_AS): Change constant.
	(print_text): Suppress text output if GOF_IGNORE is set.
	Set it if <pr> is encountered and GCIDE_NOPR flag is set.
	(output_def): Initialize clos.flags with the value from db->flags.
	* doc/dico.texi: Update.

	Minor fix.

	Update NEWS.

	Update the docs.

	Test built-in strategies.

	* modules/outline/tests/Makefile.am (TESTSUITE_AT): Add new test files.
	* modules/outline/tests/testsuite.at: Inlcude new tests.
	* modules/outline/tests/dlev.at: New file.
	* modules/outline/tests/dnlev.at: New file.
	* modules/outline/tests/nlev.at: New file.
	* modules/outline/tests/re.at: New file.
	* modules/outline/tests/regexp.at: New file.
	* modules/outline/tests/soundex.at: New file.

	Add tests for the strategies "word", "substr" and "all".

	Update auxiliary files.

	Remove top-level tests dir.

	* Makefile.am: Remove tests.
	* configure.ac: Likewise.
	* examples/Makefile.am: Add glossary.scm
	* tests/glossary.scm: Move to examples
	* tests/.gitignore: Remove.
	* tests/Makefile.am: Remove.
	* tests/dicod.cfin: Remove.

	Add python module test.

	* configure.ac: Configure python testdir.
	* examples/Makefile.am: Add new files.
	* tests/example.text: Move to examples/numerals-cz.txt
	* tests/example.py: Move to examples/textdict.py
	* modules/python/Makefile.am (SUBDIRS): Add tests.
	* modules/python/tests/Makefile.am: New file.
	* modules/python/tests/atlocal.in: New file.
	* modules/python/tests/define.at: New file.
	* modules/python/tests/dicod.cfin: New file.
	* modules/python/tests/exact.at: New file.
	* modules/python/tests/lev.at: New file.
	* modules/python/tests/prefix.at: New file.
	* modules/python/tests/showdb.at: New file.
	* modules/python/tests/showinfo.at: New file.
	* modules/python/tests/showlang.at: New file.
	* modules/python/tests/testsuite.at: New file.

	Add Levenshtein strategy tests.

	* modules/guile/tests/Makefile.am: Add lev.at
	* modules/guile/tests/lev.at: New file.
	* modules/guile/tests/testsuite.at: Include lev.at
	* modules/outline/tests/Makefile.am: Add lev.at
	* modules/outline/tests/lev.at: New file.
	* modules/outline/tests/testsuite.at: Add lev.at

	Add guile tests.

	* configure.ac: Configure guile tests.
	* examples/listdict.scm: Minor change.
	* modules/guile/Makefile.am (SUBDIR): Add tests.
	* modules/guile/tests/.gitignore: New file.
	* modules/guile/tests/Makefile.am: New file.
	* modules/guile/tests/define.at: New file.
	* modules/guile/tests/dicod.cfin: New file.
	* modules/guile/tests/exact.at: New file.
	* modules/guile/tests/prefix.at: New file.
	* modules/guile/tests/showdb.at: New file.
	* modules/guile/tests/showinfo.at: New file.
	* modules/guile/tests/showlang.at: New file.
	* modules/guile/tests/suffix.at: New file.
	* modules/guile/tests/testsuite.at: New file.

	Add outline tests.

	* Makefile.am (SUBDIRS): Add examples.
	* am/testdir.m4: New file.
	* configure.ac: Configure examples/Makefile.am and outline test dir.
	* tests/devils.out: Move to examples/devdict.out.
	* tests/example.scm: Move to examples/listdict.scm.
	* tests/example.db: Move to examples/numerals-pl.ldb
	* examples/Makefile.am: New file.
	* include/Makefile.am (noinst_HEADERS): Add testsuite.inc
	* include/testsuite.inc: New file.
	* lib/tests/Makefile.am: Minor change.
	* lib/tests/atlocal.in: Likewise.
	* modules/outline/Makefile.am (SUBDIRS): Add tests.
	* modules/outline/tests/.gitignore: New file.
	* modules/outline/tests/Makefile.am: New file.
	* modules/outline/tests/atlocal.in: New file.
	* modules/outline/tests/define.at: New file.
	* modules/outline/tests/dicod.cfin: New file.
	* modules/outline/tests/exact.at: New file.
	* modules/outline/tests/prefix.at: New file.
	* modules/outline/tests/showdb.at: New file.
	* modules/outline/tests/showinfo.at: New file.
	* modules/outline/tests/showlang.at: New file.
	* modules/outline/tests/testsuite.at: New file.

	Add tests for list operations.

	* include/dico/list.h (dico_list_push): Push to the list tail.
	* lib/list.c (dico_list_pop): Pop from the tail.
	* lib/tests/.gitignore: Update.
	* lib/tests/Makefile.am (noinst_PROGRAMS): Add listop.
	(TESTSUITE_AT): Add list.at
	* lib/tests/itrsh.c: New file.
	* lib/tests/itrsh.h: New file.
	* lib/tests/list.at: New file.
	* lib/tests/listop.c: New file.
	* lib/tests/testsuite.at: Inlcude list.at

2012-01-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Improvements in gcide and wordnet modules.

	* modules/gcide/gcide.c (print_text): Translate <er> tag to {...}.
	* modules/wordnet/wordnet.c (WNDB_MERGE_DEFS): New define.
	(wndb) <flags>: New member.
	(wn_option) <printer>: Change signature.
	(wn_init_db): New boolean option merge-defs instructs module to
	merge all available definitions into one.
	(wn_output_result,wn_result_count): Handle WNDB_MERGE_DEFS flag.

	Bugfix

	* lib/list.c (dico_list_pop): Fix return from uninitialized variable.

	Cleanup in wordnet code.

2012-01-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Start writing a testsuite.

	* configure.ac: Add lib/tests.
	* include/dico/utf8.h (utf8_toupper,utf8_tolower): Change signature.
	* lib/Makefile.am (SUBDIRS): New variable.
	* lib/utf8.c (utf8_strncasecmp): Fix boundary control.
	(utf8_wc_strncmp,utf8_wc_strncasecmp): Likewise.
	(utf8_toupper,utf8_tolower): Change signature.
	* lib/tests/.gitignore: New file.
	* lib/tests/Makefile.am: New file.
	* lib/tests/atlocal.in: New file.
	* lib/tests/strcasecmp.at: New file.
	* lib/tests/strlen.at: New file.
	* lib/tests/strncasecmp.at: New file.
	* lib/tests/testsuite.at: New file.
	* lib/tests/tolower.at: New file.
	* lib/tests/toupper.at: New file.
	* lib/tests/utf8.c: New file.
	* lib/tests/wcstrcasecmp.at: New file.
	* lib/tests/wcstrchr.at: New file.
	* lib/tests/wcstrcmp.at: New file.
	* lib/tests/wcstrncasecmp.at: New file.
	* lib/tests/wcstrncmp.at: New file.
	* lib/tests/wcstrstr.at: New file.

	* tests/levtest.c: move to lib/tests/levtest.c

	* lib/tests/dlev00.at: New file.
	* lib/tests/dlev01.at: New file.
	* lib/tests/lev00.at: New file.
	* lib/tests/lev01.at: New file.

	Add new utf8 functions.

	* lib/utf8.c (utf8_wc_strncmp,utf8_wc_strncasecmp): New functions.
	* include/dico/utf8.h: Update.

	Provide default selectors for "exact", "prefix" and "suffix" strategies

	* dicod/dicod.c: Provide default selectors for "exact","prefix"
	and "suffix" strategies.
	* modules/dict.org/dictorg.c (_match_simple): Take matcher as
	argument.
	(mod_match): Use default strategy mapper only if the module does not
	provide such strategy.
	* modules/outline/outline.c: Likewise.
	* modules/wordnet/wordnet.c: Likewise.

2012-01-22  Sergey Poznyakoff  <gray@gnu.org.ua>

	wordnet: change processing of defines.

	* modules/wordnet/wordnet.c (wndb) <search>: Remove.
	<optc,optv>: New members.
	(wn_free_db): Free wndb->optv.
	(wn_option): New struct.
	(wn_optlist): New variable.
	(wn_init_db): Change option parsing.
	(defn): New struct.
	(result): Rewrite. All uses changed.
	(wn_create_match_result): Take a pointer to struct wndb as argument.
	(wn_is_defined): New function.
	(wn_foreach_db): Rewrite. Change signature. All uses changed.
	(wn_define): Rewrite.
	(format_defn): New function.
	(format_synset): Remove.
	(wn_output_result): Rewrite result_define part.

	Improve dico_list API.

	* include/dico/list.h (dico_iterator_remove_current): void.
	* lib/list.c (dico_iterator_remove_current): Change return type.
	Call _dico_list_remove_item to do the job.
	(_dico_list_remove_item): New static.
	(_dico_list_remove): Call _dico_list_remove_item.

2012-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>

	Add wordnet module.

	* configure.ac: New option --with-wordnet.
	* modules/Makefile.am [WORDNET_COND] (WORDNET_DIR): New variable.
	(SUBDIRS): Add WORDNET_DIR.
	* modules/wordnet/Makefile.am: New file.
	* modules/wordnet/wordnet.c: New file.

	Fix dico_list_insert_sorted.

	* lib/list.c (_dico_list_insert_sorted): Fix coredump.
	If flags are set and the matching item is already in the list, return
	EEXIST.

2012-01-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	gcide: support <xtil> tags.

2012-01-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update the docs.

	Assorted fixes.

	* dicod/main.c (main): Call dicod_log_setup after config_parse, so that
	configuration settings take effect.
	* modules/gcide/idxgcide-cli.opt: --dry-run implies --verbose.

2012-01-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.

	* dicod/Makefile.am: Restore incdir.
	* dicod/server.c (open_sockets): Fix default sockaddr initialization.

	gcide: Fix umlauts, remove CRs.

	* modules/gcide/ent.c: Fix umlauts ("xum", not "xuml")
	* modules/gcide/markup.l: Remove CRs.

	Bugfix

	* modules/gcide/gcide.c (gcide_output_result): Fix match output.

	Improve idxgcide command line interface.

	* modules/gcide/.gitignore: Update.
	* modules/gcide/Makefile.am (idxgcide_SOURCES): Add idxgcide-cli.h
	Build it from idxgcide-cli.opt.
	(idxgcide_LDADD): Add libgnu and libxdico.
	* modules/gcide/idxgcide-cli.opt: New file.
	* modules/gcide/idxgcide.l: Include idxgcide-cli.h, use
	get_options for command line parsing.

	* po/POTFILES.in: Add files from modules/gcide.

	Improve greek transliterator.

	* configure.ac: Build modules/gcide/tests/Makefile.
	* modules/gcide/Makefile.am (SUBDIRS): Add tests.
	* modules/gcide/ent.c: Add digamma.
	* modules/gcide/gcide.c (print_text): Fix output of quotes.
	* modules/gcide/grk.c: Add more sequences.
	* modules/gcide/markup.l: Fix handling of comments.
	* modules/gcide/degcide.c: Move to tests.
	* modules/gcide/greek.c: Likewise.
	* modules/gcide/tests/exgrk.c: New file.

	Convert Greek transliteration back to Greek. Remove markup when printing definitions.

	* modules/gcide/Makefile.am (libgcide_la_SOURCES): Add grk.c
	(noinst_PROGRAMS): Add greek.
	* modules/gcide/ent.c: Fix a typo.
	* modules/gcide/gcide.c (output_def): Convert markup to plain text.
	* modules/gcide/gcide.h (gcide_grk_to_utf8): New proto.
	* modules/gcide/grk.c: New file.
	* modules/gcide/greek.c: New file.
	* modules/gcide/markup.l: Preserve ["*'] in <grk> tags.

	Implement GCIDE markup parser.

	* lib/list.c (dico_list_pop): Return NULL if the list is empty.
	* modules/gcide/Makefile.am (libgcide_la_SOURCES): Add markup.l
	* modules/gcide/degcide.c: New file.
	* modules/gcide/markup.l: New file.
	* modules/gcide/gcide.h: Include dico.h
	(gcide_content_type): New enum.
	(gcide_tag,gcide_parse_tree): New structs.
	(gcide_markup_debug): New extern.
	(gcide_markup_parse,gcide_parse_tree_free)
	(gcide_parse_tree_inorder): New functions.

2012-01-17  Sergey Poznyakoff  <gray@gnu.org.ua>

	Allow simple-statement form for load-module.

	* dicod/main.c (load_module_cb): Accept simple statement form with
	string or list as argument.
	* NEWS: Document new usage.
	* doc/dico.texi: Likewise.
	* tests/dicod.cfin: Use new syntax.
	* README: Update.

	gcide: handle entities in headwords.

	* modules/gcide/ent.c: Bugfixes.
	* modules/gcide/idxgcide.l: Handle <../ entities in headwords.
	Report unknown entities.

	gcide: support alternative headwords.

	* modules/gcide/idxgcide.l (endtag): New variable.
	(headword): Remove global.
	(flush_headwords): Initialize headword.
	(BEGIN_HEADWORD): New macro.
	<lex rules>: Handle asp and altname tags.
	(main): Call flush_headwords unconditionally.

2012-01-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Add GCIDE support.

	* configure.ac (AC_CONFIG_FILES): Add modules/gcide/Makefile.
	* modules/Makefile.am (SUBDIRS): Add gcide.
	* modules/gcide/.gitignore: New file.
	* modules/gcide/Makefile.am: New file.
	* modules/gcide/gcide.c: New file.
	* modules/gcide/gcide.h: New file.
	* modules/gcide/idx.c: New file.
	* modules/gcide/idxgcide.l: New file.
	* modules/gcide/webchr.c: New file.
	* modules/gcide/ent.c: New file.

	* modules/template.c: Bugfixes.

2012-01-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Updates.

	* THANKS: Update.
	* modules/template.c: Add result_headers method.
	* modules/template.scm: Likewise.

2012-01-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	Assorted fixes.

	* modules/ldap/ldap.c (_dico_ldap_expand_user): Use wordsplit.
	* grecs: Upgrade.
	* doc/dico.texi: Update.

2012-01-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor change.

	* dicod/main.c (config_parse): Exit if grecs_error_count is gt 0.

	Minor change

	Raise version number to 2.1.90; Other housekeeping.

	* NEWS: Raise version number.
	* configure.ac: Likewise.
	* doc/Makefile.am (check-options): Fix second regexp.
	* doc/dico.texi: Use @WRITEME to mark empty nodes.
	* doc/rendition.texi: Delete (complements 50c7e46c).

	Use wordsplit instead of dico_argcv.

	* dico/autologin.c (parse_autologin): Rewrite using wordsplit.
	* dico/dico-priv.h: Include wordsplit.h
	* dicod/dicod.h: Likewise.
	* dico/saslauth.c (get_implemented_mechs): Use wordsplit.
	* dico/shell.c (_command_completion): Likewise.
	* dicod/gsasl.c (register_sasl): Likewise.
	* dicod/loader.c (dicod_load_module): Likewise.
	* dicod/main.c (set_dict_handler): Likewise.
	* modules/guile/guile.c (guile_load): Likewise.
	* modules/ldap/ldap.c (db_open): Likewise.
	* modules/guile/Makefile.am (INCLUDES): Add @GRECS_INCLUDES@
	* modules/ldap/Makefile.am: Likewise.
	* modules/outline/Makefile.am: Likewise.
	* modules/outline/outline.c (outline_lang): Likewise.

	Incorporate Grecs into libdico.

	* grecs: Update.
	* configure.ac (GRECS_SETUP): Use the "shared" option.
	* lib/Makefile.am (libdico_la_LIBADD): Incorporate libgrecs
	* dico/Makefile.am (LDADD): Remove @GRECS_LDADD@.
	* dicod/Makefile.am: Likewise.

	Minor changes.

	* grecs: Update.
	* po/POTFILES.in: Update.

	Install pp-setup from Grecs.

	* configure.ac (GRECS_SETUP): Use std-pp-setup option.
	* dicod/Makefile.am: Remove pp-setup.
	* dicod/pp-setup: Remove.

2012-01-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Use Grecs instead of the built-in configuration parser.

	Grecs is a convenience library for parsing sructured configuration files.
	It derived from the dicod and wydawca parsers in 2009. It has already
	reached stable status and is now used by quite a few other projects.

	* .gitmodules: Add Grecs
	* Makefile.am: Likewise.
	* configure.ac: Likewise.
	* dico/Makefile.am (LDADD,INCLUDES): Add Grecs.
	* dico/cmdline.opt (OPTIONS_BEGIN): Rewrite.
	* dicod/Makefile.am (dicod_SOURCES): Remove pp.c, config-format.c,
	config-gram.y and config-lex.l. Add lint.c
	* dicod/acl.c: Use Grecs.
	* dicod/alias.c (alias)<kw>: Remove const.
	<locus>: Change type.
	(alias_install): Allocate kw.
	* dicod/cmdline.opt (OPTIONS_BEGIN): Rewrite.
	* dicod/config-format.c: Remove.
	* dicod/config-gram.y: Remove.
	* dicod/config-lex.l: Remove.
	* dicod/lint.c: New file.
	* dicod/dicod.h: Remove configuration parser types and definitions.
	* dicod/gsasl.c (cmp_names): List contains now pointers to strings.
	* dicod/loader.c (_add_load_dir): Likewise.
	* dicod/main.c: Rewrite configuration parser using Grecs.
	* dicod/server.c (open_sockets): Operate on grecs_sockaddr structs.
	* gnulib.modules (gitlog-to-changelog): Remove.
	* include/appi18n.h: Redefine _ and N_ only if necessary.
	* utils/Makefile.am (EXTRA_DIST): Remove getopt.m4
	* utils/getopt.m4: Remove.
	* README-hacking: Update.

	Implement "word" matching strategy.

	* configure.ac: Build modules/word/Makefile.
	* modules/Makefile.am (SUBDIRS): Add word.
	* modules/word/Makefile.am: New file.
	* modules/word/word.c: New file.
	* doc/dico.texi: Document new module.

	Move UTF-8 tokenizer to libdico.

	* lib/tokenize.c: Rewrite.
	* lib/xtkn.c: New file.
	* lib/Makefile.am (libdico_la_SOURCES): Add tokenize.c
	(libxdico_a_SOURCES): Remove tokenize.c, add xtkn.c.

	* include/dico.h: Include dico/tokenize.h
	* include/dico/tokenize.h: New file.
	* include/dico/Makefile.am (pkginclude_HEADERS): Add tokenize.h
	* include/xdico.h: Remove xdico tokenizer interface.
	(xdico_tokenize_string): New proto.

	* dico/connect.c (_result_parse_def): Use new tokenizer.
	* dico/shell.c (parse_script_file): Likewise.
	* dicod/dicod.c (dicod_loop): Likewise.
	* dicod/config-lex.l (unescape_to_obstack): Use dico_unquote_char.

	Happy GNU Year

2011-10-08  Sergey Poznyakoff  <gray@gnu.org.ua>

	Use Imprimatur to check the docs.

	* .gitmodules: Add imprimatur.
	* Makefile.am (ACLOCAL_AMFLAGS,SUBDIRS): Add imprimatur.
	* configure.ac: Call IMPRIMATUR_INIT.
	* doc/Makefile.am: Use imprimatur. Drop files that are
	no longer necessary.
	* doc/check-docs.sh: Delete.
	* doc/mastermenu.el: Delete.
	* doc/untabify.el: Delete

	* doc/dico.texi: Fix sentence spacing, use @: where appropriate.
	* doc/strftime.texi: Likewise.

2011-02-15  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.

	* configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and socket.h.
	* dicod/Makefile.am: Add $(AM_V_GEN) where needed.
	* tests/Makefile.am: Likewise.
	* dicod/main.c (main): Flush capabilities after loading all modules and
	configuring authentication database.  Take care not to switch to syslog
	if --lint was given.

2010-11-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor changes.

	New strategy: pcre (perl-compatible regex).

	* am/lib.m4: New file
	* configure.ac: Check for libpcre.
	* modules/pcre/Makefile.am: New file.
	* modules/pcre/pcre.c: New file.
	* modules/Makefile.am [PCRE_COND] (PCRE_DIR): Initialize to pcre.
	(SUBDIRS): Add $(PCRE_DIR).

2010-11-13  Wojciech Polak  <polak@gnu.org>

	Switch to Django's cache framework (from direct Memcached).

	* dicoweb/dicoclient/dicoclient.py: Minor code changes.
	* dicoweb/dicoclient/dicoshell.py: Likewise.
	* dicoweb/settings-sample.py: Add sample CACHE_BACKEND.
	* dicoweb/views.py: Use Django's cache framework.

2010-11-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.

	* dicod/regex.c (basic_flags): Remove REG_EXTENDED.

2010-08-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Partially revert commit c4db582a8c.

	As reported by Ahmed, it actually broke the previous solution.
	See http://mail.gnu.org.ua/mailman/listarchive/bug-dico/last/msg00000.html,
	for details.

2010-08-01  Wojciech Polak  <polak@gnu.org>

	Add "robots" meta value depending on the context.

	* dicoweb/templates/base.html: Add page.robots.
	* dicoweb/views.py: Set "robots" value.

2010-07-10  Wojciech Polak  <polak@gnu.org>

	Minor changes in mediawiki.py.

2010-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.

	* app/python/mediawiki.py: Enforce utf-8 encoding.

2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527
2010-07-07  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.1

	* NEWS, README, THANKS: Update.
	* configure.ac: Raise version number.
	* lib/Makefile.am (libdico_la_LDFLAGS): Update.

	Minor change

	* modules/python/python.c: Fix indentation.

	Improve mediawiki matching.

	* app/python/mediawiki.py (match_word): Use strat selector,
	if it is available. Return sorted results. Make sure the
	[0] of the result is 'match' (to avoid misinterpreting
	eventual match results for the word 'define').

	Minor changes

	* NEWS: Update.
	* modules/template.scm (match-word): Fix definition.
	* po/POTFILES.in: Add new files.
	* tests/Makefile.am (EXTRA_DIST): Add example.py

2010-07-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.0.92

	* configure.ac, NEWS: Version 2.0.92
	* doc/dico.texi: Document LDAP.
	* dicod/main.c: Minor fix.

	Fix typos in debugging messages.

2528
	Use encrypted passwords for authentication, if the underlying GSASL mechanism allows that.
2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613

	* configure.ac: Cjeck for crypt.h and -lcrypt.
	* dicod/ckpass.c: New file.
	* dicod/Makefile.am (dicod_SOURCES): Add ckpass.c
	* dicod/dicod.h (dicod_check_password): New proto.
	* dicod/gsasl.c (cb_validate): Use dicod_check_password
	instead of comparing plaintext passwords.

	* dicod/ident.c (decode64_buf): Remove.
	(ident_decrypt): Use dico_base64_decode.
	* dicod/main.c (user_db_config): Don't attempt to
	open uninitialized database.

	* gnulib.modules: Add crypto/sha1

	* include/dico/filter.h (dico_base64_decode)
	(dico_base64_encode, dico_base64_input): Change signature.
	(dico_qp_decode, dico_qp_encode): Remove.
	* lib/base64.c (dico_base64_input): Rewrite.
	(dico_base64_decode): Rename to static _flt_base64_decode.
	(dico_base64_encode): Rename to static _flt_base64_encode.
	(dico_base64_decode,dico_base64_encode): New functions.
	* lib/qp.c (dico_qp_decode, dico_qp_encode): Static.

2010-07-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix

	* modules/ldap/ldap.c (db_get_groups): Fix typo.

	Implement LDAP user database.

	* configure.ac: Check for openldap.
	* dicod/Makefile.am (dicod_SOURCES): Remove udb.c
	* dicod/udb.c: Move to lib (with changes).
	* dicod/auth.c: Update calls to dico_udb_ * functions.
	* dicod/gsasl.c: Likewise.
	* dicod/dbtext.c (dbtext_open): Add 3rd parameter.
	(text_udb_def): Change type.
	* dicod/dicod.h (udb_def): Remove struct.
	(dicod_user_db_t)
	(user_db, udb_init, udb_create, udb_open)
	(udb_close, udb_get_password, udb_get_groups)
	(udp_define): Remove. See dico/udb.h

	* dicod/loader.c (dicod_load_module): Minor fix.
	* dicod/main.c (user_db): Change data type.
	(kwd_user_db): New keyword "options".
	(user_db_config): Do not create user database at
	once, wait untill the modules have been loaded.
	(init_user_db): New function.
	(main): Call init_user_db.
	* dicod/ostream.c (ostream_write): Remove unused
	variable.

	* include/dico.h: Include udb.h
	* include/dico/Makefile.am (pkginclude_HEADERS): Add udb.h
	* lib/Makefile.am (libdico_la_SOURCES): Add udb.c.

	* modules/Makefile.am [LDAP_COND] (LDAP_DIR): New variable.
	(SUBDIRS): Add LDAP_DIR

	* modules/ldap/ldap.c: New file.
	* modules/ldap/Makefile.am: New file.

2010-06-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Allow the use of an external strategy as the default one.

	* dicod/main.c (default_strategy_name): New variable.
	(set_defstrat): Remove.
	(keywords): Change handling of the default-strategy statement.
	(main): Set default strategy after all modules have been loaded,
	to allow for using external strategies.

2010-06-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update docs.

2010-06-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.

	* am/gsasl.m4: Use AC_CACHE_VAL instead of AC_CACHE_CHECK.

2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650
2010-06-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	* configure.ac: Distribute bz2 and xz tarballs.

	Improve the previous commit.

	* include/dico/strat.h (dico_key): New struct.
	(dico_key_deinit, dico_key_init)
	(dico_key_match): New proto.
	* include/dico/types.h (dico_select_key): Moved to
	strat.h as dico_key, with edits.
	(dico_select_t): Change signature.

	* lib/key.c: New file.
	* lib/Makefile.am (libdico_la_SOURCES): Add key.c

	* modules/dict.org/dictorg.c: Reflect recent changes.
	Use dico_key_* functions.
	* modules/guile/guile.c: Likewise.
	(dico-key?, dico-key->word, dico-make-key): New functions.
	* modules/outline/outline.c: Reflect recent changes.
	Use dico_key_* functions.
	* modules/python/python.c: Reflect recent changes.
	Use dico_key_* functions.

	* dicod/dicod.c (soundex_sel): Reflect recent changes.
	* dicod/lev.c (lev_sel): Likewise.
	* dicod/regex.c (regex_sel): Likewise.
	* modules/stratall/stratall.c: Likewise.
	* modules/substr/substr.c: Likewise.
	* app/python/mediawiki.py (match_word): Likewise.
	* tests/example.scm: Likewise.

	* tests/dicod.cfin: Load stratall and substr.

	Change strategy selector calling convention.

2651 2652
	Strategy selectors often need to keep selection specific data, i.e.
	such data that remain in effect (although not necessarily invariant)
2653
	between DICO_SELECT_BEGIN and DICO_SELECT_END calls. These data do
2654
	not belong to the strategy itself, therefore it is necessary to introduce
2655 2656
	a specific data type for them.

2657
	An example of a strategy that uses this approach is regexp, which needs to
2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676
	store the compiled expression somewhere.

	* dicod/dicod.c (soundex_sel): Change signature. Use
	key->call_data to keep call-specific data.
	* dicod/lev.c (lev_sel): Likewise.
	* dicod/regex.c (regex_sel): Likewise.
	* include/dico/types.h (dico_select_key): New struct.
	(dico_select_t): Change signature. Take struct dico_select_key *
	as 2nd arg.
	* modules/dict.org/dictorg.c (_match_all): Rewrite to use new
	calling sequence.
	* modules/guile/guile.c (_guile_select_key_tag): New tag.
	(dico_scm_from_select_key): New function.
	(_guile_select_key_free, _guile_select_key_print): New methods.
	(_guile_init_select_key): New function.
	(dico-select-key?, dico-select-key-word): New functions.
	(dico-strat-select?): Key is either a string or a selection key.
	(_guile_selector): Rewrite to use new calling sequence.
	(mod_match): Likewise.
2677
	* modules/outline/outline.c (outline_match_all): Rewrite to use new
2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721
	calling sequence.
	* modules/python/python.c (PySelectionKey): New object.
	(strat_select_method): Rewrite to use new
	calling sequence.
	(_python_selector): Likewise.
	(mod_match): Likewise.
	* modules/stratall/stratall.c (all_sel): Rewrite to use new
	calling sequence.
	* modules/substr/substr.c (substr_sel): Likewise.

	* tests/example.py (match_word): 3rd arg is a selection key.
	* tests/example.scm (match-selector): 3rd arg is a selection key.
	(match-word): Update.

	Move Guile support to gint.

	* am/guile.m4: Remove
	* gint: New module.
	* bootstrap.conf: Unconditionally call git submodules.
	* Makefile.am: Use gint.
	* configure.ac: Likewise.
	* modules/guile/Makefile.am: Likewise.
	* modules/guile/guile.c: Use SCM_DEFINE_PUBLIC everywhere.
	(_guile_init_funcs): Include guile.x instead of declaring the
	stuff manually.
	(all functions): Use lowercase parameter names. Refer to them
	in docstrings using @var.
	* modules/guile/.gitignore: New file.

	Bugfixes.

	* include/dico/utf8.h (utf8_wc_strchr)
	(utf8_wc_strchr_ci, utf8_wc_strstr): Fix return types.
	* lib/utf8.c: Likewise.

	Improve conditional module builds.

	* configure.ac (GUILE_COND,PYTHON_COND): New conditionals.
	(BUILD_DICO_GUILE_MODULES)
	(BUILD_DICO_PYTHON_MODULES): Remove.
	* modules/Makefile.am [GUILE_COND]: Define GUILE_DIR.
	[PYTHON_COND]: Define PYTHON_DIR.
	(SUBDIRS): add $(GUILE_DIR) and $(PYTHON_DIR) instead
	of the literal dirs.
2722
	* modules/guile/Makefile.am: Define mod_LTLIBRARIES unconditionally.
2723 2724
	* modules/python/Makefile.am: Likewise.

2725
	Implement `substr' strategy. Re-implement the `all' strategy as a module.
2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827

	* configure.ac: Version 2.0.91
	(AC_CONFIG_FILES): Add Makefiles in modules/stratall/
	and modules/substr.
	* NEWS: Version 2.0.91
	* dicod/dicod.c: Remove the built-in `all' strategy.
	* dicod/loader.c (dicod_load_module0): If DICO_CAPA_NODB
	capability is set, the module must have only the dico_init
	method.
	(dicod_init_database): Prohibit the use of DICO_CAPA_NODB
	modules.
	* include/dico/types.h (DICO_CAPA_NODB): New capability.
	* include/dico/utf8.h (utf8_wc_strchr, utf8_wc_strchr_ci)
	(utf8_wc_strstr, utf8_wc_strupper)
	(utf8_wc_strlower): New prototypes.
	* lib/utf8.c (utf8_wc_strchr, utf8_wc_strchr_ci)
	(utf8_wc_strstr, utf8_wc_strupper)
	(utf8_wc_strlower): New functions.
	* modules/Makefile.am (SUBDIRS): Add stratall and substr.

	* modules/stratall/Makefile.am: New file.
	* modules/stratall/stratall.c: New file.
	* modules/substr/Makefile.am: New file.
	* modules/substr/substr.c: New file.

	* tests/dicod.cfin: Use prepend-load-path.

	Bugfixes.

	* modules/guile/guile.c (scm_dico_strat_select_p): Swap
	key and word arguments in a call to sel.
	* modules/python/python.c (strat_select_method): Likewise.
	* tests/example.scm: Use srfi-1.
	Use filter-map instead of mapcan.
	(match-selector): : Swap key and word arguments in a call to
	dico-strat-select?

2010-06-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	New configuration statement "prepend-load-path".

	* dicod/dicod.h (prepend_load_path): New extern.
	* dicod/loader.c (dicod_loader_init): Add prepend_load_path
	before DICO_MODDIR.
	* dicod/main.c (prepend_load_path): New variable.
	(keywords)<prepend-load-path>: New keyword.
	* NEWS, doc/dico.texi: Update.

	Fix counting output octets in dicod.

	* include/dico/stream.h (DICO_IOCTL_BYTES_IN)
	(DICO_IOCTL_BYTES_OUT): New ioctls.
	* lib/stream.c (dico_stream_bytes_in)
	(dico_stream_bytes_out): First try ioctl. If it
	fails, return bytes_in (bytes_out).

	* lib/fltstream.c (filter_flush): Reset level to 0.
	(filter_ioctl): New function.
	(filter_stream_create): Set ioctl method.
	* lib/gsaslstr.c (_gsasl_ioctl): New function.
	(dico_gsasl_stream): Set ioctl method.
	* lib/xscript.c (transcript_ioctl): Handle
	DICO_IOCTL_BYTES_IN and DICO_IOCTL_BYTES_OUT.

	* dicod/loader.c (dicod_match_word_db)
	(dicod_match_word_all, print_definitions): Update total_bytes_out.
	* dicod/ostream.c (ostream)<nout>: New member.
	(ostream_write): Don't modify total_bytes_out.
	(ostream_ioctl): New function.
	(dicod_ostream_create): Initialize nout to the number of octets
	output so far by the transport stream.
	Set ioctl method.

2010-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.

	* dicod/loader.c (dicod_load_module0): Save handle.
	* lib/stream.c (dico_stream_seek, dico_stream_read)
	(dico_stream_write): Return immediately if the stream
	is in permanent error state.
	* lib/xscript.c (transcript_close): Close both underlying
	streams.

2010-05-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Speed up output procedure in dictorg.

	Provide a general-purpose mechanism to address iterators by item
	number in O(|n-pos|) time.

	* include/dico/list.h (dico_iterator_prev)
	(dico_iterator_item, dico_iterator_position): New prototypes.
	* lib/list.c (list_entry) <prev>: New member.
	(iterator) <pos>: New member.
	(dico_iterator_position): New function.
	(_iterator_increase_pos): New static.
	(dico_iterator_first): Initialize pos to 0.
	(dico_iterator_next): Increase pos.
	(dico_iterator_prev,dico_iterator_item): New function.
	(_dico_list_append): Initialize ep->prev.
	(_dico_list_prepend): Initialize ep->prev. Call
2828 2829
	_iterator_increase_pos to tell iterators to update their recorded positions.
	(_dico_list_remove): Rewrite removal code using next & prev pointers.
2830 2831 2832 2833 2834 2835 2836 2837 2838
	(_dico_list_insert_sorted): Update next & prev pointers.
	Call _iterator_increase_pos.
	* modules/dict.org/dictorg.h (result) <itr>: New member.
	* modules/dict.org/dictorg.c (common_match)
	(suffix_match, _match_all): Initialize itr.
	(mod_output_result): Use iterator to avoid rescanning the list
	on each call.
	(mod_free_result): Destroy the iterator.

2839
	* lib/utf8.c (utf8_strcasecmp, utf8_strncasecmp): Break the loop if
2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855
	alen or blen is zero. This means that one of the operands is not
	utf8, but try to return meaningful value anyway.

2010-05-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Housekeeping work.

	* NEWS: Document new features and bugfixes.
	* dico/.gitignore, tests/.gitignore: Update.

2010-05-23  Wojciech Polak  <polak@gnu.org>

	Improve Dicoweb.

	* dicoweb/dicoclient/dicoclient.py (define): Allow for empty
	descriptions in response.
2856
	* dicoweb/static/opensearch.xml: Move to templates and make it dynamic.
2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894
	* dicoweb/views.py (opensearch): Add view.

2010-05-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Filter out duplicate matches.

	* include/dico/list.h (DICO_LIST_COMPARE_HEAD)
	(DICO_LIST_COMPARE_TAIL): New define.
	(dico_list_set_flags)
	(dico_list_get_flags): New proto.
	* lib/list.c (dico_list)<flags>: New member.
	(dico_list_create): Initialize flags.
	(dico_list_set_flags)
	(dico_list_get_flags): New functions.
	(_dico_list_append,_dico_list_prepend): New auxiliary
	functions.
	(dico_list_append,dico_list_prepend): Rewrite. Use
	flags to define whether to compare the data with
	the tail (head). Set errno to EEXIST and return 1
	if attempting to add a duplicate entry.
	(_dico_list_insert_sorted): Use _dico_list_append and
	_dico_list_prepend instead of their public counterparts.
	* modules/dict.org/dictorg.c (common_match): Take additional
	argument that defines whether duplicate entries should be
	filtered out. All callers updated.
	(suffix_match,_match_all): Filter out duplicates.
	(mod_define): Call common with unique=0.

2010-05-23  Wojciech Polak  <polak@gnu.org>

	Minor Dicoweb changes.

	* dicoweb/settings.py: Rename to settings-sample.py
	* dicoweb/static/dicoweb.js: Bugfix.
	* dicoweb/static/dicoweb.css: Minor changes.
	* dicoweb/templates/base.html: Likewise.
	* dicoweb/templates/index.html: Likewise.

2895 2896 2897 2898 2899 2900 2901 2902 2903 2904
2010-05-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes.

	* configure.ac: Version 2.0.90
	Call gl_INIT before checking for data types.
	Check for socklen_t.
	* NEWS: Version 2.0.90
	* dico/connect.c (dict_auth): Return 1 if everything else
	fails.
2905
	* dico/dico-priv.h (print_version, print_version_only): New protos.
2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937
	* dicod/dicod.h (server_addrlen, client_addrlen): Change type to
	socklen_t.
	* dicod/server.c (dicod_server): Change type of addrlen to
	socklen_t.
	* include/dico/utf8.h (utf8_char_width, utf8_iter_first)
	(utf8_wctomb, utf8_symcmp, utf8_symcasecmp, utf8_strcasecmp)
	(utf8_strncasecmp): Use (unqualified) char in argument lists.
	All uses updated.
	* lib/utf8.c: Likewise.

	* dico/lookup.c: Silence gcc warnings about diff in signedness.
	* dicod/ident.c: Likewise.
	* lib/tokenize.c: Likewise.
	* lib/xstream.c: Likewise.
	* modules/dict.org/dictorg.c: Likewise.
	* modules/dict.org/dictstr.c: Likewise.
	* modules/outline/outline.c: Likewise.

	* modules/guile/guile.c: Remove unused functions and variables.

	* utils/getopt.m4 (print_help): Avoid gcc warning about condition
	always true.

	Fix indentation in lib/utf8.c

	Avoid using fixed-size buffer in dictorg.c.

	Fixes bug reported by Marc Dequènes (debian #582708).

	* modules/dict.org/dictorg.c (read_index): Use dico stream instead
	of FILE to avoid using fixed-size buffer.

2938
	Fix improper handling of conversion errors in levenshtein.c (debian #582692)
2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962

	* include/dico/utf8.h (utf8_mbstr_to_wc)
	(utf8_mbstr_to_norm_wc): Change signature.
	* lib/utf8.c (utf8_mbstr_to_wc)
	(utf8_mbstr_to_norm_wc): Take additional return argument.
	Return error code. All callers updated.
	* lib/levenshtein.c (dico_levenshtein_distance): conv
	returns non-zero (not necessarily negative) value on errors.

	Minor fixes.

	* include/dico/strat.h (dico_get_default_strategy): Remove const
	from return type.
	* lib/strat.c (dico_get_default_strategy): Likewise.

	* lib/fdstream.c (fd_seek): Fix error condition.
	* lib/fltstream.c (filter_write): Return error code.
	* lib/stream.c (dico_stream_read_unbuffered): Initialize rc.

2010-05-01  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.

	* dicod/main.c: Fix recursive invocation.
2963
	* dicod/pp.c (preprocess_config): Terminate debugging message with a \n.
2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086

2010-04-07  Wojciech Polak  <polak@gnu.org>

	Minor fix.

	* dicoweb/views.py: Fix the list of accepted languages.

2010-03-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.

	* doc/dico.texi: Fix typos and improper uses of @pxref.

2010-03-26  Sergey Poznyakoff  <gray@gnu.org.ua>

	Normalize exit codes.

	* gnulib.modules: Add sysexits
	* lib/xalloc-die.c: Exit with code EX_OSERR.
	* utils/getopt.m4 (GETOPT): Provide optional `opterr' argument.

	* dicod/cmdline.opt (get_options): Exit with EX_USAGE in
	case of unhandled option.
	* dicod/config-lex.l: Move includes to the '%top' block.
	Define YY_EXIT_FAILURE.
	* dicod/dicod.c (sig_alarm): Exit with EXIT_TIMEOUT.
	* dicod/dicod.h: Include sysexits.h.
	* dicod/main.c (main): Normalize exit codes.
	* dicod/pp.c: Likewise.
	* dicod/server.c: Normalize exit codes.
	(print_status): Handle 'time out' exit code separately.
	Print informational message.
	* doc/dico.texi (Exit Codes): New section.
	* NEWS: Update.

2010-03-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Do not use deprecated/internal Guile features.

	* am/guile.m4 (MU_CHECK_GUILE): Remove leftovers
	from pre-1.8 times.
	Check for SCM_DEVAL_P, SCM_BACKTRACE_P,
	SCM_RECORD_POSITIONS_P and SCM_RESET_DEBUG_MODE,
	define GUILE_DEBUG_MACROS if all these are available.
	Check for scm_t_off (Guile 1.9)
	* modules/guile/guile.c (apply_data): New struct.
	(apply_catch_body): New function.
	(eval_catch_body): Remove.
	(guile_call_proc): Use apply_catch_body as body.
	![HAVE_SCM_T_OFF]: Define scm_t_off.
	(_make_dico_port): Rewrite using scm_new_port_table_entry.
	(_dico_port_seek): Change prototype. Second arg is scm_t_off.
	(mod_init)[GUILE_DEBUG_MACROS]: Protect the use of
	SCM_DEVAL_P and friends.
	(all functions): Use scm_from_locale_string instead
	of the deprecated scm_makfrom0str.

2010-03-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Keep namespace clean.

	* modules/dict.org/crc.h: Prefix all function
	names with `dicod_' to avoid name clashes.

2010-01-02  Sergey Poznyakoff  <gray@gnu.org.ua>

	Update copyright years.

	Happy GNU Year!

2009-11-05  Wojciech Polak  <polak@gnu.org>

	Improve mediawiki.py

	* app/python/mediawiki.py: Drop ns_mediawiki usage.

2009-10-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix doc/Commit

	* doc/Commit (gray_print_section): Output anchors before
	chapter/section/etc. titles, so that the heading menu in
	monolithic document works properly.

2009-10-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Documentation fixes.

	* Config: New file.
	* doc/Makefile.am: Make manual a phony target.
	Add man-tar rule.
	* doc/dico.texi: Minor changes to improve html
	output.
	* doc/gendocs_template: Rewrite for the new site
	design.

2009-10-18  Wojciech Polak  <polak@gnu.org>

	Simplify dicoweb.wsgi.

2009-10-16  Wojciech Polak  <polak@gnu.org>

	Simplify dicoweb settings.

	* dicoweb/settings.py: Automatically determine paths.

2009-10-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix ACL code.

	* dicod/acl.c (_parse_sockaddr): Fix netmask calculation.
	(_check_sockaddr): Fix comparison for AF_INET.

2009-09-27  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor changes

	* Makefile.am: Update ChangeLog rule
	* configure.ac: Require autoconf 2.63, automake 1.11.
	Enable silent rules.
	* dico/connect.c (dict_match): Properly handle successful return
	from XLEV command.

3087 3088 3089
2009-03-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Version 2.0
3090

3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108
	* configure.ac: Version 2.0
	* Makefile.am (make-ChangeLog): Remove rule
	* NEWS, README: Update.
	* doc/dico.texi: Update.

2009-03-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix

2009-03-14  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fixes

2009-03-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Use git:// url for wit

	Various organizational changes
3109

3110 3111 3112
	* bootstrap.conf: Init and update wit submodule.

	* configure.ac: Version 1.99.97
3113
	(AC_INIT): Spell full name as 'GNU dico' (lowercase), in order to help
3114
	the `po' machinery recognize the project as official GNU one
3115
	(po/Makefile.in.in uses a primitive `grep 'GNU @PROJECT@' ../*', so
3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126
	actually any file containing this string would do).
	* NEWS: Update.

	* Makefile.am (SUBDIRS): Remove makedict. It is not yet needed.
	(EXTRA_DIST): Add app and dicoweb.
	* po/POTFILES.in: Remove makedict.
	* dicod/acl.c: Provide a translators comment.
	* modules/dict.org/dictorg.c: Fix typo.

2009-03-08  Wojciech Polak  <polak@gnu.org>

3127
	Add mediawiki.py -- a Python module for a remote access to Wikipedia.
3128 3129 3130 3131 3132 3133 3134 3135 3136 3137

	Add Dicoweb -- a web search interface.

2009-01-13  Sergey Poznyakoff  <gray@gnu.org.ua>

	Change documentation license to GFDLv1.3+

2008-12-20  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix.
3138

3139 3140 3141 3142 3143 3144 3145 3146
	* dico/cmdline.opt: Fix --sasl and --nosasl definitions.
	Remove --strats alias. Use --strat(egies) instead.

2008-12-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix qp

	Base64 fix.
3147

3148
	* lib/base64.c (dico_base64_encode): Fix calculation of the number of
3149 3150 3151
	consumed bytes.

	Fix filter encoding.
3152

3153
	* include/dico/filter.h (filter_xcode_t): Remove last two parameters.
3154 3155 3156
	Filter stream is now responsible for keeping track of line widths.
	(dico_base64_decode,dico_base64_encode)
	(dico_qp_decode,dico_qp_encode): Update.
3157
	* lib/base64.c (dico_base64_decode): Remove line_max and pline_len.
3158 3159 3160
	(dico_base64_encode): Likewise.
	(dico_base64_stream_create): Set minimal input length to 3.
	It is valid for encoding. Decoding remains a fixme.
3161 3162
	* lib/qp.c (dico_qp_decode, dico_qp_encode): Remove last two parameters.
	* lib/fltstream.c (struct filter_stream): New members inbuf and inlevel.
3163 3164 3165 3166 3167 3168 3169 3170 3171 3172
	(filter_flush): New function. Keep track of line lengths.
	(filter_write0): New function.
	(filter_write,filter_wr_flush): Rewrite using filter_flush.
	(filter_stream_destroy): New method.
	(filter_stream_create): Initialize inbuf and inlevel.
	* dicod/ident.c: Update call to dico_base64_decode.

2008-12-18  Wojciech Polak  <polak@gnu.org>

	Implement dico_result_headers in Python module.
3173

3174 3175 3176 3177 3178 3179
	* modules/python/python.c (_assoc_to_dict, _dict_to_assoc,
	mod_result_headers): New functions.
	* modules/template.py (result_headers): New optional method.

2008-12-17  Sergey Poznyakoff  <gray@gnu.org.ua>

3180
	Allow modules to return or modify MIME headers for definition results.
3181

3182 3183 3184 3185
	* dicod/loader.c (print_definitions): Use mp->dico_result_headers
	to get headers from the module.
	(mime_headers_cb): Allow 8bit encoding.
	* dicod/ostream.c: Handle 8bit encoding.
3186
	* include/dico/assoc.h (dico_assoc_clear, dico_assoc_dup): New prototypes.
3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203
	* include/dico/list.h (dico_list_clear): New prototype.
	* include/dico/types.h (struct dico_database_module): New method
	dico_result_headers.
	* lib/assoc.c (dico_assoc_clear, dico_assoc_dup): New functions.
	(_dico_assoc_find_n): Allow for assoc==NULL.
	(dico_assoc_destroy): Likewise.
	* lib/header.c (dico_header_parse): Allow for text==NULL.
	* lib/list.c (dico_list_clear): New function.
	(dico_list_destroy): Use dico_list_clear.
	(dico_iterator_remove_current): Bugfix: use default comparator.

	* modules/guile/guile.c: Implement dico_result_headers.
	* tests/example.scm: Likewise.

2008-12-16  Sergey Poznyakoff  <gray@gnu.org.ua>

	Rewamp list and assoc support. Keep MIME headers in an assoc list.
3204

3205
	* include/dico/assoc.h  (struct dico_assoc): Key is const
3206 3207 3208 3209 3210 3211
	(DICO_ASSOC_CI, DICO_ASSOC_MULT): New defines.
	(dico_assoc_append,dico_assoc_find_n): New functions.
	(dico_assoc_iterator, dico_assoc_remove_n): New functions.
	(dico_header_parse): New function.
	* include/dico/list.h (dico_list_destroy): Change signature.
	(dico_list_set_free_item)
3212
	(dico_list_set_comparator,dico_list_get_comparator): New functions.
3213 3214 3215 3216 3217 3218 3219 3220
	(dico_list_insert_sorted): Change signature.
	(dico_list_locate,dico_list_remove): Change signature.
	(_dico_list_locate): New function.
	(dico_iterator_create): Rename to dico_list_iterator
	(dico_iterator_remove_current): Change signature and return type.
	* dico/strat.h (dico_strat_name_cmp): Change signature.
	(dico_strat_free): New proto.
	* dico/types.h (dico_assoc_list_t): New type.
3221
	* include/xdico.h (xdico_assoc_append, xdico_assoc_add): New protos.
3222 3223 3224 3225

	* lib/header.c: New file.
	* lib/Makefile.am (libdico_la_SOURCES): Add header.c
	* lib/assoc.c: Major rewrite.
3226
	* lib/list.c: Associate free_item and compare_item functions with the list.
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236

	* dicod/dicod.h (dicod_database_t): Remove content_type and
	content_transfer_encoding. Change type of mime_headers to
	dico_assoc_list_t.
	(CONTENT_TRANSFER_ENCODING_HEADER): New define.
	(dicod_ostream_create): Takes two arguments.

	* dicod/ostream.c: Rewrite using dico_assoc_list_t for headers.

	* dicod/main.c: Update calls to list/assoc functions.
3237
	(kwd_load_module): Remove content-type and content-transfer-encoding.
3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269
	Load mime-headers through a callback, with checking.

	* dicod/commands.c: Update calls to dicod_ostream_create.
	* dicod/lang.c: Likewise.
	* dicod/loader.c: Likewise.

	* dico/autologin.c: Update calls to list/assoc functions.
	* dico/connect.c: Likewise.
	* dico/saslauth.c: Likewise.
	* dicod/accesslog.c: Likewise.
	* dicod/acl.c: Likewise.
	* dicod/alias.c: Likewise.
	* dicod/auth.c: Likewise.
	* dicod/capa.c: Likewise.
	* dicod/config-gram.y: Likewise.
	* dicod/dbtext.c: Likewise.
	* dicod/dicod.c: Likewise.
	* dicod/gsasl.c: Likewise.
	* dicod/markup.c: Likewise.
	* dicod/pp.c: Likewise.
	* dicod/udb.c: Likewise.
	* lib/markup.c: Likewise.
	* lib/strat.c: Likewise.
	* lib/url.c: Likewise.
	* lib/userprivs.c: Likewise.
	* lib/utf8.c: Likewise.
	* modules/dict.org/dictorg.c: Likewise.
	* modules/outline/outline.c: Likewise.

2008-11-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix output in mime mode.
3270

3271 3272 3273 3274
	* dicod/config-lex.l: Ignore m4 line statemens appearing within
	a here-doc.
	* dicod/loader.c (outproc_t): New argument "data"
	(dicod_word_first, dicod_word_all): Likewise
3275
	(dicod_match_word_db, dicod_match_word_first): Update calls to lower-level
3276 3277 3278 3279 3280 3281 3282 3283
	functions.
	(dicod_match_word_all): Create a separate output stream.
	(print_matches): Do not create ostream for each
	database.

2008-11-29  Sergey Poznyakoff  <gray@gnu.org.ua>

	Allow to pass additional headers for MIME output
3284

3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298
	* dicod/dicod.h (struct dicod_database): New member mime_headers
	(dicod_ostream_create): Change signature
	* dicod/main.c (kwd_database): New keyword "mime-headers"
	* dicod/ostream.c (struct ostream): New member "headers".
	(print_headers): Print ostream->headers, if given.
	(dicod_ostream_create): Initialize ostream->headers.
	* dicod/commands.c, dicod/lang.c, dicod/loader.c: Update calls to
	dicod_ostream_create.

	* doc/dico.texi: Minor changes.

2008-11-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix
3299

3300
	* dicod/commands.c (dicod_show_server): Avoid passing NULL server_info
3301 3302 3303 3304 3305
	to stream_write_multiline
	(dicod_status): Add a space before 'No timing data available'

2008-10-31  Sergey Poznyakoff  <gray@gnu.org.ua>

3306
	Fix precedence of '*' in language statements (both config and module)
3307 3308

	Improvements in Python module
3309

3310 3311 3312 3313 3314 3315 3316 3317
	* modules/python/python.c (dico_methods): Typecast to shut up a
	gcc warning.
	(_tuple_to_langlist, mod_lang): Handle lists. Be more strict at
	checking. Add more diagnostics.
	* tests/example.py (class DicoModule): New member langlist.
	New method lang.
	* tests/example.text: Add language definitions.

3318
	Allow to use * as a synonym to empty list (meaning "all languages")
3319

3320
	* dicod/config-lex.l: Add * to symbols allowed in non-quoted strings.
3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334
	* dicod/dicod.h (dicod_any_lang_list_p): New prototype.
	* dicod/loader.c (dicod_any_lang_list_p): New function.
	(dicod_get_database_languages): "*" is equvalent to empty list.
	* dicod/main.c (fix_lang_list): Likewise.

2008-10-25  Sergey Poznyakoff  <gray@gnu.org.ua>

	Merge branch 'master' of ssh://git.gnu.org.ua/gitroot/dico

	* modules/guile/guile.c (mod_lang): Fix return value

2008-10-24  Wojciech Polak  <polak@gnu.org>

	Implement dico_db_lang in Python module.
3335

3336
	* modules/python/python.c (_tuple_to_langlist, mod_lang): New functions.
3337 3338 3339 3340 3341
	* modules/template.py (lang): New optional method.

2008-10-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfixes.
3342

3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353
	* dicod/main.c (fix_lang_list): Disable dico_db_lang if
	at least one of language lists is given in the config.
	* modules/guile/guile.c (mod_lang): Fix return value.

2008-10-19  Sergey Poznyakoff  <gray@gnu.org.ua>

	* dicod/config-gram.y: Allow for empty lists.

2008-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>

	Further improvement of language extensions.
3354

3355
	* dicod/dicod.h (DICOD_DBF_LANG): New define.
3356
	(struct dicod_database): Replace lang with langlist[2] (languages from -> to).
3357 3358 3359 3360 3361
	(dicod_lang_check, dicod_get_database_languages): Change proto.
	(dicod_langlist_copy): New proto.
	* dicod/lang.c (dicod_lang_preferences): Remove.
	(dicod_lang_lazy_prefs, dicod_lang_prefs): New variables.
	(dicod_lang_check): Change arguments.
3362
	(dicod_lang, dicod_show_lang_pref, dicod_show_lang_info): Implement using
3363 3364 3365 3366 3367
	new preference system.
	* dicod/loader.c (dicod_langlist_copy): New function.
	(dicod_get_database_languages): Change signature.
	* dicod/main.c (fix_lang_list): Change signature.
	(main): Call fix_lang_list for both langlist parts.
3368
	(kwd_database): Replace languages with languages-from/languages-to.
3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380
	(dicod_database_free): Reflect changes to struct dicod_database.
	* include/dico/types.h (struct dico_database_module):
	Change arguments and return type of dico_db_lang.

	* modules/guile/guile.c: Update
	* modules/outline/outline.c: Update
	* modules/template.c: Update.
	* modules/template.scm: Update.

	* tests/example.db: Update.

	Implement language extensions.
3381

3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396
	* dicod/lang.c: New file.
	* dicod/Makefile.am: Add lang.c
	* dicod/dicod.h (struct dicod_database): New member lang.
	(DICOD_MAXPARAM_INF): New define.
	(register_lang, dicod_lang_check): New prototypes.
	(dicod_get_database_languages): New prototype.
	* dicod/loader.c (dicod_get_database_languages): New function.
	* dicod/main.c (set_database): Create and fixup language list.
	(kwd_database): New keyword 'languages'.
	(check_db_visibility): Use dicod_lang_check to determine if the
	database is visible.
	(dicod_database_free): Free lang list.
	(main): Call register_lang.

	* dicod/commands.c (dicod_handle_command): Allow maxparam to be
3397
	DICOD_MAXPARAM_INF, in which case any number of parameters, greater than
3398 3399 3400 3401 3402
	minparam, is allowed.
	* dicod/capa.c (dicod_capa_flush): Take a NULL terminated
	array of commands to declare.

	* dicod/auth.c, dicod/lev.c, dicod/markup.c, dicod/mime.c,
3403
	dicod/xidle.c, dicod/xversion.c: Update definitions of cmd to match
3404 3405
	changes in dicod/capa.c.

3406 3407
	* include/dico/list.h (dico_list_t, dico_iterator_t): Move to types.
	* include/dico/types.h (struct dico_database_module): New member dico_db_lang.
3408 3409 3410
	* include/xdico.h (dicod_free_item): New prototype.
	* lib/xutil.c (dicod_free_item): New function.

3411 3412
	* modules/dict.org/dictorg.c (dictorg module): Reserve a slot for dico_db_lang.
	* modules/python/python.c (dictorg module): Reserve a slot for dico_db_lang.
3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427
	* modules/guile/guile.c: Implement dico_db_lang.
	Use scm_to_locale_string instead of deprecated scm_i_string_chars.

	* outline/outline.c: Implement dico_db_lang.
	* modules/template.c: Implement dico_db_lang.
	* modules/template.scm: Implement dico_db_lang.
	* tests/devils.out: Add Languages section.
	* tests/example.db: Add language definition.
	* tests/example.scm (db:get): New rule 'lang'
	(lang): New function.
	(example-init): Init "lang"

2008-10-09  Sergey Poznyakoff  <gray@gnu.org.ua>

	Allow to override some settings from the command line.
3428

3429 3430 3431
	* dicod/cmdline.opt: New options --transcript and --no-transcript.
	(get_options): Take three arguments.
	* dicod/dicod.h (get_options): Take three arguments.
3432
	* dicod/main.c (init_conf_override, apply_conf_override): New functions.
3433 3434 3435 3436 3437 3438
	(main): Use conf_override to override some configuration
	statements from the command line.

2008-09-30  Sergey Poznyakoff  <gray@gnu.org.ua>

	Fix UTF-8 handling in SHOW DB output.
3439

3440 3441 3442 3443 3444 3445 3446 3447 3448 3449
	* dicod/commands.c (_show_database): Use utf8_quote, not quotearg.
	* include/dico/utf8.h (utf8_wc_to_mbstr): Change prototype.
	(utf8_quote, utf8_wc_quote): New functions.
	* lib/utf8.c (utf8_quote, utf8_wc_quote): New functions.
	(utf8_wc_to_mbstr): Change signature.
	(utf8_mbstr_to_wc): fix indentation.

	* modules/dict.org/dictstr.c (stream_get16, stream_get32): Static.

	Reflect available markup types in capability string.
3450

3451 3452 3453 3454 3455 3456 3457 3458 3459 3460
	* dicod/dicod.h (markup_flush_capa): New function.
	* dicod/main.c (main): Call markup_flush_capa.
	* dicod/markup.c (markup_flush_capa): New function.
	* lib/markup.c (dico_markup_valid_name_p): New function.
	(dico_markup_register): Enforce valid markup names.

	* modules/guile/guile.c (dico-register-markup): Reflect changes to
	the return value of dico_markup_register.

	Minor fixes.
3461

3462 3463 3464 3465 3466 3467
	* dicod/config-lex.l: Improve "stray character" diagnostics.
	* include/dico/strat.h (struct dico_strategy): Add comments.

2008-09-28  Wojciech Polak  <polak@gnu.org>

	Changes to Python module.
3468

3469 3470 3471 3472 3473 3474
	* modules/python/python.c (dico_register_markup,
	dico_current_markup): New functions.

2008-09-28  Sergey Poznyakoff  <gray@gnu.org.ua>

	Implement html output in examples.
3475

3476 3477 3478 3479 3480 3481
	* lib/markup.c (dico_markup_register): Store a copy of the string.
	* modules/guile/guile.c (_guile_strategy_create): Remove.
	(dico-register-markup, dico-current-markup): New functions.
	* tests/example.scm (output): Implement rudimentary html output.

	Implement experimental OPTION MARKUP command.
3482

3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496
	* dicod/markup.c: New file
	* dicod/Makefile.am (dicod_SOURCES): Add markup.c
	* dicod/dicod.h (register_markup): New function.
	* dicod/main.c (main): Call register_markup.
	* include/dico/markup.h: New file
	* include/dico/Makefile.am (pkginclude_HEADERS): Add markup.h
	* include/dico/types.h: Minor formatting changes.
	* include/dico.h: Include dico/markup.h
	* lib/markup.c: New file
	* lib/Makefile.am (libdico_la_SOURCES): Add markup.c

2008-09-24  Wojciech Polak  <polak@gnu.org>

	Improve stdout capture in Python module.
3497

3498 3499 3500 3501 3502
	* modules/python/python.c (_capture_stdout_info): New function.

2008-09-24  Sergey Poznyakoff  <gray@gnu.org.ua>

	Bugfix
3503

3504
	* modules/guile/guile.c (mod_init): Move call to dico_parseopt to after
3505 3506 3507 3508 3509 3510 3511
	Guile initialization.

2008-09-23  Sergey Poznyakoff  <gray@gnu.org.ua>

	Minor fix

	Changes to Guile module.
3512

3513 3514 3515 3516 3517
	* modules/guile/guile.c (mod_init_db): Accept init-script,
	init-args and init-fun options.
	* tests/dicod.cfin (numerals): Rename to plnum.
	(cznum): New database.
	* tests/example.scm (open-module): Reflect changes to guile.c
3518
	* tests/example.text: Use Czech numerals, to discern from example.db
3519 3520 3521
	* doc/dico.texi: Update.

	Various changes.
3522

3523 3524 3525 3526 3527 3528
	* NEWS: Update version number.
	* README: Mention Python.
	* configure.ac: Raise version number to 1.99.96.
	Check for python-config.
	Define BUILD_DICO_GUILE_MODULES and BUILD_DICO_PYTHON_MODULES,
	instead of the corresponding _DIRs.
3529
	* doc/dico.texi: Mention Python. Provide a placeholder for a new section.
3530 3531 <