Skip to content

Commit

Permalink
enchant2: update to 2.5.0.
Browse files Browse the repository at this point in the history
2.5.0 (May 23, 2022)
--------------------

This version simplifies the handling of personal wordlists. End-users should
not notice much difference, but internally the code has been considerably
simplified.

There are three developer-visible changes:

  * A new dictionary method remove_from_session() allows providers to stay
    in sync with Enchant’s personal wordlist, by removing as well as adding
    words in the spelling session.
  * The public API enchant_dict_store_replacement() is deprecated, and no
    longer does anything. It only previously had an effect with the Aspell
    provider.
  * The APIs enchant_dict_add() and enchant_dict_remove() also respectively
    add the word to the session or remove it.

Note that these changes do not affect the public ABI, which only uses
pointers to dictionary objects (it does change the provider ABI, but as far
as the maintainers know, there are no 3rd-party providers).

There are three main changes under the hood.

First, Enchant’s mechanism for generating suggestions from personal
wordlists is removed. This mechanism was complicated, would generate
suggestions in a different way from each provider, and was unlikely to work
well for many languages. Instead, support has been improved for supplying
words from the user’s personal wordlist to the provider, so that it can
include them in suggestions. This is supported by the Aspell and Hunspell
backends.

Second, Enchant’s support for provider-specific wordlists has been removed.
Of the known providers, only Aspell used this support, and only partially.
This was likely to be confusing: for example, words could be added to the
Aspell, but not removed, so Aspell’s personal wordlist could get out of sync
with Enchant’s. The relevant dictionary methods have been removed.

Finally, as mentioned above, adding a word to the personal wordlist also
adds it to the session, and removing it also removes it from the session.
This keeps the session and personal wordlist in sync automatically.


2.4.0 (May 22, 2023)
--------------------

This version contains no user-visible changes.

Add a new API enchant_broker_request_dict_with_pwl, so that it’s possible to
specify a personal wordlist in a normal spelling session.

This makes it possible to rewrite the enchant program to use only public
APIs, thus making a cleaner separation between front-end and library.
  • Loading branch information
wiz committed Jun 6, 2023
1 parent dcfc8fa commit d3ffb5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions textproc/enchant2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.24 2023/05/15 09:30:29 jperkin Exp $
# $NetBSD: Makefile,v 1.25 2023/06/06 07:55:24 wiz Exp $

DISTNAME= enchant-2.3.4
DISTNAME= enchant-2.5.0
PKGNAME= ${DISTNAME:S/enchant/enchant2/}
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=AbiWord/}
Expand Down
8 changes: 4 additions & 4 deletions textproc/enchant2/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.19 2023/05/15 09:30:29 jperkin Exp $
$NetBSD: distinfo,v 1.20 2023/06/06 07:55:24 wiz Exp $

BLAKE2s (enchant-2.3.4.tar.gz) = f4d401e6cde4dd4ce6fb863320c2a25267b6e825006dd0eecd13b9c88ce0ade1
SHA512 (enchant-2.3.4.tar.gz) = d109ab320ed84d6c9eec6c558c72a54d71ad30237c2bf11650b0e4030fbd9990a5ccf06a20851e46b6530279e1a9916b891cd394eefabc8812f7f92da62cbe1a
Size (enchant-2.3.4.tar.gz) = 1015430 bytes
BLAKE2s (enchant-2.5.0.tar.gz) = 58ab376b452fe250fd5a4f414b88ae0f174c4a2f8878ccbb8503c2a8a80bbb1a
SHA512 (enchant-2.5.0.tar.gz) = 3ab209b0b87b7cd8f94dd2bceed126d0e36252a1ede7a30b1550169555242784a631c0f259b0fe6591771da491ab934cac48f833029ba78dd779fc1ed91341fe
Size (enchant-2.5.0.tar.gz) = 990061 bytes
SHA1 (patch-config.h.in) = e463ae5fcb3b7d457318ff027f32456e3c57498b

0 comments on commit d3ffb5c

Please sign in to comment.