bikenik / alfred-ldoce

Alfred-ldoce-anki
MIT License
33 stars 6 forks source link
alfred alfred-workflow anki anki-flashcards dictionary english ldoce learning-english longman

alfred-ldoce-express Build Status

Alfred 3 workflow to quick look of Longman dictionary and creating Anki cards.

Search by headword or across all entries

Search by headword or across all entries

Preview

#### Create, choose and delete your decks in Anki ![Create, choose and delete your decks in Anki](./media-readme/mods.png) #### Use ⌘L for more info by large text and copy it >![Use [⌘L] for more info by large text and copy it](./media-readme/largeText.png) #### Warnings, Notifications > ![search wichout Anki](./media-readme/edit_mode.png) > ![Notification](./media-readme/Notification-alfred-readme.png)

Try this Anki theme (Scramble-sentences) to learning by created cards

anki-scramble-theme

Description

The search, ldoce <query>, uses Pearson's API to hunt for headwords and senses that match headeword/<query>. 25 results are retrieved by default for headword search. This workflow searches from Longman Dictionary of Contemporary English (5th edition)[ldoce5 - API]. And creates Anki cards by your choices (if an article of the current word in this API not existing audio examples the Alfred will create audio examples from Oddcast. [uses random voices: Julie, Kate, James]

Install

$ npm install --global alfred-ldoce

or as ldoce-Express.alfredworkflow

Requires: Node.js 7.6+, Alfred Powerpack, Anki intelligent flash cards, AnkiConnect plugin for Anki.

Usage

[video presentation](https://youtu.be/MD6wpJJIzHc) ![query](./media-readme/ldoce-query-schema.png) ##### In Alfred, type ldoce, Enter, and your query. * ldoce < query > — Search for entries with the given headword * ldoces — Generic text search across all entries (searchs all entry fields) - , or ⌘ + NUM — Show senses of selected headword - or ⌘ + L — Show Quick Look preview from [ldoceonline.com/dictionary/query](https://www.ldoceonline.com) * < query > — Search for previous matching ldoce < query > * , or ⌘ + NUM or click — select to choose sense for creating card * ⌘ + L — Show one of vocabulary entries in Alfred's "Large Type" window * ⌘ + ↩ — create card from selected senses of word * ⌥ + ↩ — create card from all matching of current query * hit fn + ↩ — export current vocabulary entries to other workfows "Call External" * hit ⌃ + ↩ to turn back from some additional boxes to current session of query * < ldl > (last query or last query for phrasal verb) go to the definition of the word of the last query * If you notice this sign 🔦 it means the current deffinition exist additional words for search. Hit ⌃ + ↵ (SEE ALSO) to show and search by this words. * — Choose, create or delete deck for Anki - - choose another deck for new cards - - delete any deck (with cards) - - Refreshing info by AnkiConnect. It will be done automaticaly after each query set, but can be used forcibly by this command.

Note: OS X's "delete word" shortcut ( ⌥ + ⌫ ) is very handy for backing out of a current search result.

notation conventions

regular headword : Regular

gramatical example : Gramatical

phrasal verb : Phrasal verbs

collocation : Collocation

runon : Run-on sentences

Configuration

ToDo

By me a coffee

Buy Me A Coffee

License

MIT © bikeNik