alfred-ldoce-express
Alfred 3 workflow to quick look of Longman dictionary and creating Anki cards.
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
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
- Download and import the deck example for Anki to install template for this grabbing from ldoce Api.
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
: Gramatical
: Phrasal verbs
: Collocation
: Run-on sentences
Configuration
- There is three options:
language
: Choose your language (it use google-translate-api).
path_to_anki-media
: /Library/Application Support/Anki2/< Profile name of Anki >/collection.media.
note_type
: "Ldoce-Express" - by default don't need to change.
ToDo
- [x] Update Readme
- [x] Add Frequency by "Ldoce 9000"
- [x] Add more info (like "due", "new", "suspend" and count of cards) through the AnkiConnect
- [ ] Tests
By me a coffee
License
MIT © bikeNik