Opened 11 months ago

Closed 11 months ago

Last modified 9 months ago

#18082 closed enhancement (fixed)

enchant-2.5.0

Reported by: Bruce Dubbs Owned by: pierre
Priority: normal Milestone: 12.0
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New minor version.

Change History (5)

comment:1 by Xi Ruoyao, 11 months ago

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.

comment:2 by pierre, 11 months ago

Owner: changed from blfs-book to pierre
Status: newassigned

comment:3 by pierre, 11 months ago

Summary: enchant-2.4.0enchant-2.5.0

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.

comment:4 by pierre, 11 months ago

Resolution: fixed
Status: assignedclosed

Fixed at 9106fcbe4

comment:5 by Bruce Dubbs, 9 months ago

Milestone: 11.412.0

Milestone renamed

Note: See TracTickets for help on using tickets.