Skip to main content

Dejima - A flexible content importer for Anki

Learning a foreign language? It takes a lot of effort to make flash cards every time you find a new word you'd like to learn -- Dejima makes it possible for you to use your time more efficiently by automatically creating Anki flash cards from various sources you might be using to learn a new language including "Language Learning with Netflix".

Free Software: MIT License

Requirements

  • AnkiConnect must be installed into Anki as an add-on.

Sources Supported

  • Language Learning with Netflix
  • Reading annotations on Onyx Boox devices.
  • A source importer you write yourself -- see "Adding your own Sources" below.

You can read more about the built-in sources below.

Language Learning with Netflix (lln-json)

In "Language Learning with Netflix" (LLN), you can "save" particular words or phrases. Those phrases can be exported from LLN using your browser, and imported into Anki as flash cards.

Examples

Question:

Answer:

Reverse Question (Optional):

Reverse Answer (Optional):

How to use

  1. Download your saved annotations in "Language Learning with Netflix" using the "JSON" export type:

  1. Run dejima with the following command, replacing My Deck Name with the name of the deck you'd like the cards generated in, and /path/to/export.json with the path to the file you exported above:
dejima import "My Deck Name" lln-json -i /path/to/export.json

That's it!

Onyx Boox Reading Annotation Exports (boox)

In Onyx Boox e-readers and tablets, there's an annotation mode in which you can highlight particular words or sentences, see a translation into your native language, or write notes to yourself about:

If you, too, use these for making note of unfamiliar words, you can use Dejima to convert those highlighted annotations into flash cards.

How to use

  1. Export your saved annotations from your device and save them to the device that you are running Anki and Dejima on:

  1. Run dejima with the following command, replacing My Deck Name with the name of the deck you'd like the cards generated in, and /path/to/export.txt with the path to the file you exported above:
dejima import "My Deck Name" boox -i /path/to/export.txt

Installation

You can install dejima from pypi by running:

pip install dejima

Adding your own sources

Dejima was built to make it easy for me to easily add sources I need so hopefully that effort makes it easy for you, too!

A sample project exists at https://github.com/coddingtonbear/dejima-importer-example showing you how you might create your own importer class.

Why is this named "Dejima"

Anki is the Japanese word for "memorization". During one particular part of Japanese history, one of the few ways you could import goods into Japan was via the port of Dejima in Nagasaki.

Metadata

Release files for dejima 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dejima 2.1.1
File Size Uploaded
dejima-2.1.1.tar.gz 594.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dejima 2.1.1
File Interpreter ABI Platform
dejima-2.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 1.4 MB

Release files / dejima-2.1.1.tar.gz

Download URL dejima-2.1.1.tar.gz
Size 594.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c821856639b2b7580fe59610d19772e7c4044c05460d12695b616686f6127a29
BLAKE2b-256 checksum
How to use checksums
08573f0e34b45eaa696c5004050df62bbf336afb68159aeae325f5806faee293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5

Release files / dejima-2.1.1-py2.py3-none-any.whl

Download URL dejima-2.1.1-py2.py3-none-any.whl
Size 806.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4a828a47e27ac0c0994d4d51c04831215739f23aaa5f43e2ce07530216e2f5c9
BLAKE2b-256 checksum
How to use checksums
638b343c70d01be0e1dfff1932d14f97b08b38d75269baf52b7d1501bbf3ae31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page