anki-word-query/README.md

93 lines
3.0 KiB
Markdown
Raw Permalink Normal View History

2023-01-31 14:48:45 +08:00
# [dev] FastWordQuery_
**没改完,慢慢来**
适配pyqt6
适配anki新api
修改失效词典
2023-01-31 21:14:29 +08:00
修复css文件不能载入的问题暂时有效 [问题来源](https://github.com/ankitects/anki/blob/main/ts/editor/plain-text-input/remove-prohibited.ts#L14) & [解释](https://forums.ankiweb.net/t/how-to-add-external-css-in-a-field/17838/9)
2023-01-31 14:48:45 +08:00
## 使用
复制addons21里的fastwq文件夹到插件文件夹即可
2018-07-01 10:13:48 +08:00
# FastWordQuery Addon For Anki
2018-07-10 14:12:32 +08:00
2018-07-10 14:24:36 +08:00
[Supported Dictionaries](docs/services.md)
2018-07-10 14:25:55 +08:00
[为单词添加真人发音朗文mdx词典](docs/get_mdx_ldoce6_sounds.md)
2018-07-09 17:24:49 +08:00
2018-07-01 10:13:48 +08:00
## Features
2018-09-01 07:33:55 +08:00
This addon query words definitions or examples etc. fields from local or online dictionaries to fill into the Anki note.
2018-08-01 12:53:02 +08:00
It forks from [WordQuery](https://github.com/finalion/WordQuery), added **multi-thread** feature, improve stability, and some other features.
2018-07-01 10:13:48 +08:00
2018-07-02 10:53:17 +08:00
- Querying Words and Making Cards, IMMEDIATELY!
- Support querying in mdx and stardict dictionaries.
- Support querying in web dictionaries.
- Support **Multi-Thread** to query faster.
2018-07-01 10:13:48 +08:00
## Install
2018-07-30 16:01:52 +08:00
1. Place addons or addons21 folder of this repository to anki addon folder.
2018-07-02 10:56:42 +08:00
**OR**
2018-07-29 19:17:47 +08:00
2. Use the installation code: **1807206748**
2018-07-02 10:38:20 +08:00
2018-07-01 10:13:48 +08:00
2018-07-02 10:23:16 +08:00
## Setting
### Shortcut
2018-07-29 19:15:23 +08:00
1. Click Menu **"Tools -> Add-ons -> FastWQ -> Edit..."**
![](screenshots/setting_menu.png)
2. Edit the code and click **Save**
![](screenshots/setting_shortcut.png)
2018-07-02 10:23:16 +08:00
### Config
2018-07-29 19:15:23 +08:00
1. In Browser window click menu **"FastWQ -> Options"**
![](screenshots/setting_config_01.png)
2018-07-02 10:23:16 +08:00
2018-07-29 19:15:23 +08:00
2. Click **Settings** button in the Options window
2018-07-29 19:18:40 +08:00
![](screenshots/setting_config_02.png)
2018-07-31 15:58:25 +08:00
- **Force Updates of all fields** : Update all fields even if it's None
- **Ignore Accents** : Ignore accents symbol of word in querying
- **Auto check new version** : Check new version at startup
- **Number of Threads** : The number of threads running at the same time
2018-07-02 10:23:16 +08:00
2018-07-06 15:56:53 +08:00
## Usage
2018-07-02 10:23:16 +08:00
### Set the query fields
2018-07-02 10:50:22 +08:00
1. Click menu **"Tools -> FastWQ"**, or in Browser window click menu **"FastWQ -> Options"**
2018-07-29 19:15:23 +08:00
2. Select note type
![](screenshots/options_01.png)
3. Select Dictionary
![](screenshots/options_02.png)
4. Select Fields
![](screenshots/options_03.png)
5. Click **OK** button
2018-07-02 10:23:16 +08:00
### 'Browser' Window
2018-07-29 19:15:23 +08:00
1. Select single or multiple words, click menu **"FastWQ -> Query Selected"** or press shortcut Default is **Ctrl+Q**.
![](screenshots/options_04.png)
2. Waiting query finished
![](screenshots/use_01.png)
2018-07-02 11:15:17 +08:00
### 'Add' Window
2018-07-29 19:15:23 +08:00
1. Click Add button in Browser window, open Add window
![](screenshots/use_02.png)
2. Edit key field and click Query button
![](screenshots/use_03.png)
2018-07-02 10:23:16 +08:00
2018-07-29 19:17:47 +08:00
2018-07-01 10:13:48 +08:00
## Other Projects Used
- [mdict-query](https://github.com/mmjang/mdict-query)
- [pystardict](https://github.com/lig/pystardict)
- [WordQuery](https://github.com/finalion/WordQuery)
2018-07-02 18:33:03 +08:00
- [AnkiHub](https://github.com/dayjaby/AnkiHub)
2018-08-29 22:44:52 +08:00
- [snowball_py](https://github.com/shibukawa/snowball_py)