-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I got directed here from jintindex Jitendex/Jitendex#138.
I would like to create a yomitan-like experience on my text editor www.neovim.io, i.e, have popups with the translated texts appear in some way.
I can do the tokenization well with https://github.com/WorksApplications/sudachi.rs but asking an offline japanese dictionary seems unexpectedly hard ?! tagainjisho works well but can't be asked from cli/api.
This repo seems the more promising so far but I have a few questions/remarks. I know it's WIP so I thought some user feedback could help.
https://github.com/WorksApplications/sudachi.rs
First a reminder for myself on how to compile the binary:
$ cargo install --path ./crates/wordbase-cli/
➜ cargo install
error: found a virtual manifest at `/home/teto/wordbase/Cargo.toml` instead of a package manifest
$ cargo install --path ./crates/wordbase-cli/
...
$ /home/teto/.cargo/bin/wordbase-cli lookup 左
INFO wordbase: Creating engine using "/home/teto/.local/share/wordbase" as data directory
Error: failed to create engine
Caused by:
0: failed to connect to database
1: error returned from database: (code: 14) unable to open database file
2: (code: 14) unable to open database file
How do I create this engine ?
I tried with the dict subcommand :
$ /home/teto/.cargo/bin/wordbase-cli dict import jitindex
INFO wordbase: Creating engine using "/home/teto/.local/share/wordbase" as data directory
Error: failed to create engine
.
NB: As a nix user, I like that you provide a nix develop environment, do you think the flake could expose wordbase-cli as well ? this way I could reference this project from my flake directly without having to install it via cargo ?