#anki #deck #word #search #translation #add #linguee

bin+lib linank

Search words on Linguee and add them to an Anki deck

3 releases (1 stable)

1.0.0 Apr 20, 2020
0.1.1 Apr 16, 2020
0.1.0 Apr 16, 2020

#12 in #anki

MIT license

130KB
300 lines

linank

Crates.io Rust Docs

Install

If you've got cargo installed

cargo install linank

You can also build it youself

git clone https://gitlab.com/Maaxxs/linank.git
cd linank/
cargo install --path .

Notes regarding Anki

  • You need the Anki Connect Addon installed
  • Anki needs to be running while you execute this program (the Anki Connect Addon is listening on localhost:8765)

Usage

Note: The deck name in Anki must already exist. Maybe I'll implement auto creation for non existent decks.

Note: At the moment the translation is english->german and hardcoded. That may change as well.

linank --help

Linank 0.1.0
Max Kunzelmann <maxdev@posteo.de>
Searches a tranlation at linguee.de and adds it to an Anki deck

USAGE:
    linank [OPTIONS] <QUERY>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --deck-name <deck name>    The name of the deck in Anki to which the note should be added.

ARGS:
    <QUERY>    The word to translate

Example

$ linank precious
Suche: precious
Bedeutung als Adjektiv: "precious"
    kostbar
    edel
    wertvoll
Bedeutung als Substantiv: "precious"
    Liebling
Zu Anki hinzufügen?[Y/n]
$ linank "precious time"
Suche: precious time
Bedeutung als Substantiv: "precious time"
    kostbare Zeit
    wertvolle Zeit
Zu Anki hinzufügen?[Y/n]

Add the word to a different deck than Englisch.

$ linank -d TestDeck precious
Suche: precious
Bedeutung als Adjektiv: "precious"
    kostbar
    edel
    wertvoll
Bedeutung als Substantiv: "precious"
    Liebling
Zu Anki hinzufügen?[Y/n]

Linguee

I wrote this program only for personal use.

Plase read their Terms and Conditions and Privacy statement.

License

MIT

Dependencies

~9–14MB
~260K SLoC