abdnh / anki-incontext

An Anki add-on that shows random example sentences each time you review a vocabulary card
https://ankiweb.net/shared/info/385420176
GNU General Public License v3.0
3 stars 1 forks source link

Rework storage and provider structures #7

Closed abdnh closed 2 years ago

abdnh commented 2 years ago

This overhauls the "backend" of the add-on that consists of the sentence cache and the sentence providers. Major changes are the following:

  1. Cached sentences are stored in a single SQLite database file named "sentences.db" instead of the old JSON files.
  2. A more flexible class-based provider implementation that should allow us to add new sentence sources more easily, especially ones that support multiple languages. This also will allow us to add support for enabling/disabling specific providers.
  3. All providers were rewritten to use the new implementation. Some providers like Tatoeba need more work to work out of the box though.

Closes #3 Closes #4