Word Query

AnkiWeb addon 775418273

3 other versions of this addon exist. Compare versions ↓

Queries words across local mdx/Stardict and web dictionaries, then automatically fills mapped Anki note fields to create language-learning cards from the Add dialog or Browser.
AI-generated summary; may contain mistakes.

card-creationdictionary

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
211 (👍 178 · 👎 33)
Updated
2017-12-31
Anki versions
unknown
License
GPL-3.0 (from the GitHub repository)
Description language
en

Maintenance

abandoned

  • Last update or commit: 2020-03-18 (2419 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 45 open, 51 closed.
  • Pull requests: 0 open, 16 merged.
  • Median first response: 48 hours (73 answered issues and pull requests).
  • Outside pull requests: 82% of 17 merged.
  • Forks that may still be maintained: "Fast Word Query: Multi-threaded queries for words from local or web dictionaries" (1807206748).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2017-12-31
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Word Query this addon original unknown abandoned 18 Mar 2020 👍 178 · 👎 33 79% 305
↳ Fast Word Query: Multi-threaded queries for words from local or web dictionaries (AI-detected; may be wrong) unknown abandoned 6 Mar 2024 👍 116 · 👎 27 74% 290
↳ FastWordQuery-Qt6 likely abandoned 6 Apr 2024 👍 26 · 👎 3 74% 104 beta
↳ FastWordQueryNG: Multi-threaded queries for words from local or web dictionarie likely abandoned 7 Apr 2024 👍 8 · 👎 4 39% 1

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

Fast Word Query 3 fork

Upgrades Fast Word Query 2 to Anki 24.04, letting users query dictionary definitions and fill note fields from the Add note window, Browser, and context menu.

card-creationdictionaryfork-or-reupload

13 votes 42% approval 👍 9 · 👎 4 ⭐ 14 Anki 24.04.1~ Updated 2024-04-11
Nihongo Companion

Adds Japanese example sentences to decks and provides kanji statistics, using NihongoMaster, Massif, and Monash sentence-bank dictionaries.

card-creationstatisticsdictionarybeta

1 votes 21% approval 👍 1 · 👎 0 ⭐ 2 Anki 2.1.52~ Updated 2022-04-12

Description

Latest supports Anki 2.0 and 2.1! Querying Words and Making Cards, IMMEDIATELY! Home Page: https://finalion.github.io/WordQuery/ Project repo: https://github.com/finalion/WordQuery. If you have any questions, you can open issues here. This addon is developed to emancipate you from the tedious work of looking up words in dictionary and pasting the explanations to anki whenever new language-learning cards are to be made. Support querying in mdx and stardict dictionaries. Mdx and stardict dictionaries are available online and this add-on can't provide any due to potential copyright infringement. Support querying in web dictionaries (having provided many ones, and more others need to be customized.) How to Set Set Local Dictionaries If you do not use local dictionaries, you can skip this step. 1. Click menu "Tool"->"WordQuery", popup the "Options" dialog 2. Click "Dict folders" button, add or remove the dictionary folders (support recursive searching) - "Use filename as dict label" - "Export media files" indicates if the audios will be exported. Set Note Type In the "Options" dialog, click "Choose note type" and set the note type you want to use. Set the word field Click the radio button to set the word field you want to query. Set the mappings from note fields to dictionary explanations The "Dict" comoboxes are used to specify the dictionaries. The "Dict fields" comoboxes are used to specify the available dictionary fields. How to Use "Add" dialog Once the word to query is ready, click "Query" button or popup the context menu and use relevant commands. - "Query" button: Query the explanations for all the fields. - "Query All Fields" menu: Query the explanations for all the fields. - "Query Current Field" menu: Query the explanation for current focused field. "Browse" window Select single word or multiple words, click menu "WordQuery"->"Query selected". All above query actions can be trigged also by the shortcut (default "Ctrl+Q"), but you could change it through the addon's "Edit" menu. Service Customization The advanced users can implement new web dictionary services. See a typical reference for the details. Other Projects Used - mdict-query - pystardict

README

WordQuery Addon for Anki

中文说明

Main Features

This addon is developed to emancipate you from the tedious work of looking up words in dictionary and pasting the explanations to anki.

Querying Words and Making Cards, IMMEDIATELY!

Support querying in mdx and stardict dictionaries

Support querying in web dictionaries (having provided many ones, and more others need to be customized)

Installation

  1. Place "wordquery.py" and "wquery" folder in this repository in the anki add folder.
    OR
  2. Use the installation code: 775418273

How to Set

Set Local Dictionaries

If you do not use local dictionaries, you can skip this step.

  1. Click menu "Tool"->"WordQuery", popup the "Options" dialog

  2. Click "Dict folders" button, add or remove the dictionary folders (support recursive searching)

    • "Use filename as dict label"
    • "Export media files" indicates if the audios will be exported.

Set Note Type

In the "Options" dialog, click "Choose note type" and set the note type you want to use.

Set the word field

Click the radio button to set the word field you want to query.

Set the mappings from note fields to dictionary explanations

The "Dict" comoboxes are used to specify the dictionaries.

The "Dict fields" comoboxes are used to specify the available dictionary fields.

How to Use

"Add" dialog

Once the word to query is ready, click "Query" button or popup the context menu and use relevant commands.

  • "Query" button
    Query the explanations for all the fields.
  • “Query All Fields” menu
    Query the explanations for all the fields.
  • "Query Current Field" menu
    Query the explanation for current focused field.

"Browse" window

Select single word or multiple words, click menu "WordQuery"->"Query selected".

All above query actions can be trigged also by the shortcut (default "Ctrl+Q"), but you could change it through the addon's "Edit" menu.

# shortcut
shortcut = 'Ctrl+Q'

Service Customization

The advanced users can implement new web dictionary services. See a typical reference for the details.

Inherit WebService class

@register(label) is used to register the service, and parameter label as the dictionary name will be shown in the dictioary list.

@register(u'有道词典')
class Youdao(WebService):
    """service implementation"""

Define Dictionary Field

The field export function has to be decorated with @export(fld_name, order).

  • para fld_name: name of the dictionary field

  • para order: order of the field, the smaller number will be shown on the upper of the field list.

@export(u'美式音标', 1)
def fld_phonetic_us(self):
    return self._get_field('phonitic_us')

@export(u'英式音标', 2)
def fld_phonetic_uk(self):
    return self._get_field('phonitic_uk')

Decorating the Field (optional)

Using @with_style(**kwargs) to specify the css style strings or files, javascript strings or files, whether wrapping the css to avoid latent style interference.

@with_styles(cssfile='_youdao.css', need_wrap_css=True, wrap_class='youdao')
def _get_singledict(self, single_dict, lang='eng'):
    url = "http://m.youdao.com/singledict?q=%s&dict=%s&le=%s&more=false" % (
        self.word, single_dict, lang)
    try:
        return urllib2.urlopen(url, timeout=5).read()
    except:
        return ''

Other Projects Used