This commit is contained in:
St.Huang 2018-07-30 14:35:13 +08:00
commit 2e1afeb6d2
2 changed files with 51 additions and 82 deletions

View File

@ -11,7 +11,6 @@
This addon looks up words in local dictionary or web dictionary and pasting the explanations to anki. This addon looks up words in local dictionary or web dictionary and pasting the explanations to anki.
It forks from WordQuery, added **multi-thread feature**, and some other features. It forks from WordQuery, added **multi-thread feature**, and some other features.
- See [WordQuery](https://github.com/finalion/WordQuery) Addon Project.
- Querying Words and Making Cards, IMMEDIATELY! - Querying Words and Making Cards, IMMEDIATELY!
- Support querying in mdx and stardict dictionaries. - Support querying in mdx and stardict dictionaries.
- Support querying in web dictionaries. - Support querying in web dictionaries.
@ -19,43 +18,27 @@ It forks from WordQuery, added **multi-thread feature**, and some other features
## Install ## Install
1. Place src folder of this repository to anki addon folder. 1. Place src folder of this repository to anki addon folder.
**OR** **OR**
2. Use the installation code: **1807206748**
2. Use the installation code: 1807206748
## Setting ## Setting
### Shortcut ### Shortcut
1. Click Menu **"Tools -> Add-ons -> FastWQ -> Edit..."**
1. Click Menu **"Tools -> Add-ons -> FastWQ -> Edit..."** ![](screenshots/setting_menu.png)
2. Edit the code and click **Save**
![](screenshots/setting_menu.png) ![](screenshots/setting_shortcut.png)
2. Edit the code and click **Save**
```python
# shortcut
shortcut = 'Ctrl+Q'
```
![](screenshots/setting_shortcut.png)
### Config ### Config
1. In Browser window click menu **"FastWQ -> Options"**
![](screenshots/setting_config_01.png)
1. In Browser window click menu **"FastWQ -> Options"** 2. Click **Settings** button in the Options window
![](screenshots/setting_config_02.png)
![](screenshots/setting_config_01.png) - **Force Update** : Update all fields even if it's None
- **Thread** : The number of threads running at the same time
2. Click **Settings** button in the Options window
![](screenshots/setting_config_02.png)
- **Force Update** : Update all fields even if it's None
- **Thread** : The number of threads running at the same time
## Usage ## Usage
@ -63,42 +46,26 @@ It forks from WordQuery, added **multi-thread feature**, and some other features
### Set the query fields ### Set the query fields
1. Click menu **"Tools -> FastWQ"**, or in Browser window click menu **"FastWQ -> Options"** 1. Click menu **"Tools -> FastWQ"**, or in Browser window click menu **"FastWQ -> Options"**
2. Select note type
2. Select note type ![](screenshots/options_01.png)
3. Select Dictionary
![](screenshots/options_01.png) ![](screenshots/options_02.png)
4. Select Fields
3. Select Dictionary ![](screenshots/options_03.png)
5. Click **OK** button
![](screenshots/options_02.png)
4. Select Fields
![](screenshots/options_03.png)
5. Click **OK** button
### 'Browser' Window ### 'Browser' Window
1. Select single or multiple words, click menu **"FastWQ -> Query Selected"** or press shortcut Default is **Ctrl+Q**.
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/options_04.png) ![](screenshots/use_01.png)
2. Waiting query finished
![](screenshots/use_01.png)
### 'Add' Window ### 'Add' Window
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)
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)
## Other Projects Used ## Other Projects Used
- [mdict-query](https://github.com/mmjang/mdict-query) - [mdict-query](https://github.com/mmjang/mdict-query)

View File

@ -1,27 +1,29 @@
# Dictionary Service For FastWQ # Dictionary Service For FastWQ
## Local ## Local
| # | Dictionary Name | Describe |
- **MdxService**, .mdx dict file, it's only has default field. | ---| :--- | :--- |
- **StardictService**, .ifo dict file, it's only has default field. | 1 | MdxService | .mdx dict file, it's only has default field. |
- **MDX-LDOCE6**, local LDOCE6 mdx file, it's has some fileds. | 2 | StardictService | .ifo dict file, it's only has default field. |
| 3 | MDX-LDOCE6 | local LDOCE6 mdx file, it's has some fileds. |
## Web ## Web
| # | Dictionary Name | Link |
- **Baicizhan**, http://mall.baicizhan.com/ws/search?w=word | ---| :--- | :--- |
- **Bing**, http://cn.bing.com/dict/search?q=word&mkt=zh-cn | 1 | Baicizhan | http://mall.baicizhan.com/ws/search?w=word |
- **Bing xtk**, http://xtk.azurewebsites.net/BingDictService.aspx?Word=word | 2 | Bing | http://cn.bing.com/dict/search?q=word&mkt=zh-cn |
- **西语助手**, https://www.esdict.cn/mdicts/es/word | 3 | Bing xtk | http://xtk.azurewebsites.net/BingDictService.aspx?Word=word |
- **法语助手**, https://frdic.com/mdicts/fr/ | 4 | 西语助手 | https://www.esdict.cn/mdicts/es/word |
- **爱词霸**, http://www.iciba.com/index.php?a=getWordMean&c=search&word=word | 5 | 法语助手 | https://frdic.com/mdicts/fr/ |
- **朗文**, https://www.ldoceonline.com/dictionary/word | 6 | 爱词霸 | http://www.iciba.com/index.php?a=getWordMean&c=search&word=word |
- **海词迷你词典**, http://dict.cn/word | 7 | 朗文 | https://www.ldoceonline.com/dictionary/word |
- **Oxford Learner**, https://www.oxfordlearnersdictionaries.com/definition/english/word | 8 | 海词迷你词典 | http://dict.cn/word |
- **Oxford**, https://od-api.oxforddictionaries.com/ | 9 | Oxford Learner | https://www.oxfordlearnersdictionaries.com/definition/english/word |
- **Youdao-English**, [http://dict.youdao.com/...](http://dict.youdao.com/fsearch?client=deskdict&keyfrom=chrome.extension&pos=-1&doctype=xml&xmlVersion=3.2&dogVersion=1.0&vendor=unknown&appVer=3.1.17.4208&le=eng&q=word) | 10 | Oxford | https://od-api.oxforddictionaries.com/ |
- **Youdao-French**, [http://dict.youdao.com/...](http://dict.youdao.com/fsearch?client=deskdict&keyfrom=chrome.extension&pos=-1&doctype=xml&xmlVersion=3.2&dogVersion=1.0&vendor=unknown&appVer=3.1.17.4208&le=fr&q=word) | 11 | Youdao-English | [http://dict.youdao.com/...](http://dict.youdao.com/fsearch?client=deskdict&keyfrom=chrome.extension&pos=-1&doctype=xml&xmlVersion=3.2&dogVersion=1.0&vendor=unknown&appVer=3.1.17.4208&le=eng&q=word) |
- **Youdao-Korean**, [http://dict.youdao.com/...](http://dict.youdao.com/fsearch?client=deskdict&keyfrom=chrome.extension&pos=-1&doctype=xml&xmlVersion=3.2&dogVersion=1.0&vendor=unknown&appVer=3.1.17.4208&le=ko&q=대한민국) | 12 | Youdao-French | [http://dict.youdao.com/...](http://dict.youdao.com/fsearch?client=deskdict&keyfrom=chrome.extension&pos=-1&doctype=xml&xmlVersion=3.2&dogVersion=1.0&vendor=unknown&appVer=3.1.17.4208&le=fr&q=word) |
- **MDX Server**, You have to run mdx server by yourself first. | 13 | Youdao-Korean | [http://dict.youdao.com/...](http://dict.youdao.com/fsearch?client=deskdict&keyfrom=chrome.extension&pos=-1&doctype=xml&xmlVersion=3.2&dogVersion=1.0&vendor=unknown&appVer=3.1.17.4208&le=ko&q=대한민국) |
- **Yahoo Dictionary**, [https://tw.dictionary...](https://tw.dictionary.search.yahoo.com/search?p=test) | 14 | MDX Server | You have to run mdx server by yourself first. |
- **Baidu Hanyu**, [http://dict.baidu.com/...](http://dict.baidu.com/s?wd=%E4%B8%AD%E5%9B%BD#basicmean) | 15 | Yahoo Dictionary | [https://tw.dictionary...](https://tw.dictionary.search.yahoo.com/search?p=test) |
- **Cambridge**, [https://dictionary.cambridge.org/...](https://dictionary.cambridge.org/dictionary/english/test) | 16 | Baidu Hanyu | [http://dict.baidu.com/...](http://dict.baidu.com/s?wd=%E4%B8%AD%E5%9B%BD#basicmean) |
| 17 | Cambridge | [https://dictionary.cambridge.org/...](https://dictionary.cambridge.org/dictionary/english/test) |