Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bikenik/alfred-ldoce
Alfred-ldoce-anki
https://github.com/bikenik/alfred-ldoce
alfred alfred-workflow anki anki-flashcards dictionary english ldoce learning-english longman
Last synced: 26 days ago
JSON representation
Alfred-ldoce-anki
- Host: GitHub
- URL: https://github.com/bikenik/alfred-ldoce
- Owner: bikenik
- License: mit
- Created: 2018-02-10T21:05:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:15:13.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T11:59:23.400Z (26 days ago)
- Topics: alfred, alfred-workflow, anki, anki-flashcards, dictionary, english, ldoce, learning-english, longman
- Language: JavaScript
- Size: 15 MB
- Stars: 33
- Watchers: 3
- Forks: 6
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# alfred-ldoce-express [![Build Status](https://travis-ci.org/bikenik/alfred-ldoce.svg?branch=master)](https://travis-ci.org/bikenik/alfred-ldoce)
> [Alfred 3](https://www.alfredapp.com) workflow to quick look of Longman dictionary and creating [Anki](https://apps.ankiweb.net) cards.
#### Search by headword or across all entries
![Search by headword or across all entries](./media-readme/main-window.png)## 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](https://github.com/bikenik/alfred-ldoce/blob/master/Ldoce-Express.apkg) Anki theme (Scramble-sentences) to learning by created cards
![anki-scramble-theme](./media-readme/scramble-them-preview.gif)## Description
The search, `ldoce `, uses [Pearson's API](http://developer.pearson.com/apis/dictionaries) to hunt for headwords and senses that match `headeword/`. 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](http://www.oddcast.com/demos/tts/tts_example.php?clients). [uses random voices: Julie, Kate, James]## Install
```
$ npm install --global alfred-ldoce
```
or as [ldoce-Express.alfredworkflow](https://github.com/bikenik/alfred-ldoce/releases)* Download and import the [deck example](https://github.com/bikenik/alfred-ldoce/blob/master/Ldoce-Express.apkg) for Anki to install template for this grabbing from ldoce Api.
_Requires: [Node.js](https://nodejs.org) 7.6+, Alfred [Powerpack](https://www.alfredapp.com/powerpack/), [Anki](https://apps.ankiweb.net) intelligent flash cards, [AnkiConnect](https://ankiweb.net/shared/info/2055492159) 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](./media-readme/[email protected])
: Regular![gramatical example](./media-readme/[email protected])
: Gramatical![phrasal verb](./media-readme/[email protected])
: Phrasal verbs![collocation](./media-readme/[email protected])
: Collocation![runon](./media-readme/[email protected])
: Run-on sentences## Configuration
* There is three options:
- `language`: [Choose your language](https://cloud.google.com/translate/docs/languages) (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](https://github.com/bikenik)