All Projects → finalion → Wordquery

finalion / Wordquery

Licence: gpl-3.0
word fast-querying addon for anki

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Wordquery

Fastwordquery
Query words definitions or examples etc. from local or web dictionaries to fill into Anki cards.
Stars: ✭ 159 (-35.63%)
Mutual labels:  mdx, anki
Digital Garden
🌻[WIP] Gatsby Theme to build your own digital garden 🌻🥀🌸
Stars: ✭ 217 (-12.15%)
Mutual labels:  mdx
Lib React Hooks
General purpose React hooks library ⚛️
Stars: ✭ 145 (-41.3%)
Mutual labels:  mdx
Awesome
A curated list of awesome MDX resources
Stars: ✭ 195 (-21.05%)
Mutual labels:  mdx
Anki Airtable
Sync Anki with Airtable!
Stars: ✭ 148 (-40.08%)
Mutual labels:  anki
Remark Codesandbox
🎩 Create CodeSandbox directly from code blocks
Stars: ✭ 204 (-17.41%)
Mutual labels:  mdx
X0
Document & develop React components without breaking a sweat
Stars: ✭ 1,706 (+590.69%)
Mutual labels:  mdx
Image Occlusion Enhanced
Anki add-on that transforms images into cloze tests
Stars: ✭ 237 (-4.05%)
Mutual labels:  anki
Xdm
a modern MDX compiler. No runtime. With esbuild, Rollup, and webpack plugins
Stars: ✭ 206 (-16.6%)
Mutual labels:  mdx
Tailwind Nextjs Starter Blog
This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
Stars: ✭ 166 (-32.79%)
Mutual labels:  mdx
Cloze Overlapper
Anki add-on for memorizing lists and enumerations
Stars: ✭ 168 (-31.98%)
Mutual labels:  anki
Ankihelper
Stars: ✭ 159 (-35.63%)
Mutual labels:  anki
Voracious
A video player for studying foreign languages (esp. Japanese)
Stars: ✭ 203 (-17.81%)
Mutual labels:  anki
Rl Book Challenge
self-studying the Sutton & Barto the hard way
Stars: ✭ 146 (-40.89%)
Mutual labels:  anki
Anki Templates Superlist
A collection of Anki card styles
Stars: ✭ 230 (-6.88%)
Mutual labels:  anki
Gatsby Theme Catalyst
An opinionated set of integrated themes and starters as a boilerplate to accelerate development with GatsbyJS
Stars: ✭ 144 (-41.7%)
Mutual labels:  mdx
Ulangi
Ulangi is a language flashcards app with spaced repetition system and more.
Stars: ✭ 202 (-18.22%)
Mutual labels:  anki
Mdnext
The opinionated ecosystem for MDX powered NextJS apps for blogs, documentation, and more.
Stars: ✭ 242 (-2.02%)
Mutual labels:  mdx
Cloudflare Docs
Cloudflare’s developer docs.
Stars: ✭ 219 (-11.34%)
Mutual labels:  mdx
Movies2anki
Convert movies with subtitles to watch them with Anki. Inspired by subs2srs
Stars: ✭ 211 (-14.57%)
Mutual labels:  anki

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].