An open API service indexing awesome lists of open source software.

https://github.com/flaribbit/bakadict

离线的命令行日语词典
https://github.com/flaribbit/bakadict

dictionary offline sqlite tool

Last synced: about 2 months ago
JSON representation

离线的命令行日语词典

Awesome Lists containing this project

README

        

# bakadict

离线的命令行日语词典

![demo](https://user-images.githubusercontent.com/24885181/212703329-a306d9fd-b8f6-473c-836f-d9b19363fab1.png)

## 安装
### Windows
#### 方法 1:手动安装
从 [Release 页面](https://github.com/flaribbit/bakadict/releases) 下载压缩包,解压到你喜欢的位置,然后添加路径到环境变量的 `PATH` 中。

#### 方法 2:使用 scoop 安装(推荐)
```
scoop install https://raw.githubusercontent.com/flaribbit/bakadict/master/bakadict.json
```

[scoop 是什么?](https://scoop.sh/)

### Linux, MacOS

#### Aur

```bash
paru -S bakadict-git
```

#### 编译安装
- 准备 rust 环境
- 克隆本仓库
- 编译并安装本程序:
```bash
cargo build --release
cargo install --path .
```
- 下载数据库:
```bash
mkdir -p ~/.config/bakadict/databases
cd ~/.config/bakadict/databases
wget https://github.com/flaribbit/bakadict/releases/download/databases/jp.db
```

## 使用方法
- `dict 割合`
- `dict わりあい`
支持使用汉字或假名查询
- `dict wariai`
来回切换输入法很蛋疼,因此本程序还支持使用罗马音查询!
- `dict wariai -`
习惯上完全匹配的结果在最前面,终端输出后默认视图在底部,可以末尾添加 `-` 来反向输出查询结果。