QuickDict English Pop-up Dictionary (EN→PT-BR)

AnkiWeb addon 1095453310

Provides instant English dictionary popups in Anki with Portuguese (BR) translation, definitions, audio, phonetics, synonyms, offline cache, dark mode, and previewer support.
AI-generated summary; may contain mistakes.

dictionary

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2026-03-31
Anki versions
25.09.2~
Description language
en

Maintenance

stale

  • Last update or commit was 184 days before the snapshot (2026-03-31).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.0925.09.2+2026-03-31
History across monthly snapshots

Loading…

Similar addons

DictOver Addon Anki: Popup Lookup

Provides instant popup translation on text highlight and double-click dictionary lookups in Anki, supporting nine languages, audio pronunciation, contextual details, and Ctrl-click inline field editing.

note-managementdictionary

Rating 5 πŸ‘ 5 Β· πŸ‘Ž 0 ⭐ 5 Anki 2.1.1~ Updated 2026-08-29
Cambridge Dictionary Import

Fetches Cambridge definitions, CEFR levels, UK pronunciation, audio, and examples for bulk words across 30 bilingual or monolingual dictionaries, creating separate cards with duplicate handling.

card-creationimportduplicatesdictionary

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 Anki 25.09.1~ Updated 2026-07-26
Translate & Pronounce Popup

Select a word, phrase, or sentence while reviewing to see a popup with translation, example sentences, and speech, with cached results and multiple providers.

sync-integrationdictionary

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 25.09.4~ Updated 2026-08-19
MultiDefine

Automatically fills Anki notes with monolingual definitions, clozed example sentences, pronunciation audio, IPA, and verb forms for English, German, Russian, French, and Azerbaijani, with bulk defining.

card-creationnote-managementclozedictionaryfork-or-reupload

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 26.08.1~ Updated 2026-09-12

README

πŸ“– English Pop-up Dictionary for Anki

An Anki add-on that shows an instant dictionary popup when you select any English word while reviewing cards β€” with translation to Brazilian Portuguese, phonetic transcription, audio pronunciation, definitions, and synonyms.

Anki Python License


✨ Features

  • πŸ‡§πŸ‡· Translation β€” English β†’ Portuguese (BR) via MyMemory API
  • πŸ“– Definitions β€” part of speech, meaning, and usage examples
  • πŸ”Š Audio pronunciation β€” native speaker audio playback
  • πŸ“ Phonetic transcription β€” IPA notation
  • πŸ”— Synonym chips β€” clickable, each one triggers a new lookup
  • ⚑ Local cache β€” repeated lookups are instant and work offline
  • πŸŒ™ Dark mode β€” adapts automatically to Anki's night mode
  • πŸ–±οΈ Right-click menu β€” "Look up in English Dictionary..." when text is selected
  • πŸ” Works in Previewer β€” not just the reviewer

πŸš€ How It Works

Select any English word or phrase on your card (double-click or drag) and a popup appears near your cursor.

Card text β†’ user selects a word β†’ JS sends pycmd β†’ Python fetches API + cache β†’ HTML returned β†’ popup rendered

The add-on hooks into Anki's reviewer via webview_will_set_content and webview_did_receive_js_message, injecting CSS/JS into every review session and listening for lookup requests from the frontend.


πŸ“¦ Installation

From AnkiWeb

The easiest way to install is directly through Anki using the add-on code:

  1. Open Anki and go to Tools β†’ Add-ons (or press Ctrl+Shift+A).
  2. Click on Get Add-ons...
  3. Paste the following code and click OK:
    1095453310
    
  4. Restart Anki to activate the add-on.

Alternatively, you can view the official add-on page on AnkiWeb.

Manual

  1. Clone or download this repository
  2. Copy the folder into your Anki add-ons directory:
    • Windows: %APPDATA%\Anki2\addons21\
    • macOS: ~/Library/Application Support/Anki2/addons21/
    • Linux: ~/.local/share/Anki2/addons21/
  3. Restart Anki

πŸ—‚οΈ Project Structure

quickdict-english/
β”œβ”€β”€ __init__.py           # Entry point β€” wires up web and reviewer hooks
β”œβ”€β”€ dictionary.py         # Orchestrates cache, APIs, and HTML generation
β”œβ”€β”€ reviewer.py           # Hooks into Anki's reviewer (JS ↔ Python bridge)
β”œβ”€β”€ web.py                # Registers web assets and injects them into Anki
β”œβ”€β”€ cache.json            # Auto-generated local cache (up to 500 entries)
β”‚
β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ api.py            # Fetches data from Free Dictionary API and MyMemory
β”‚   β”œβ”€β”€ cache_mgr.py      # Thread-safe local disk cache management
β”‚   └── html_builder.py   # Builds the tooltip HTML from API data
β”‚
└── web/
    β”œβ”€β”€ css/
    β”‚   β”œβ”€β”€ tokens.css    # Design tokens (colors, spacing, typography)
    β”‚   β”œβ”€β”€ layout.css    # Tooltip shell and structural layout
    β”‚   └── components.css# All UI components (buttons, chips, states)
    └── js/
        β”œβ”€β”€ ui.js         # Tooltip rendering, positioning, and interactions
        └── events.js     # Mouse event handling and pycmd bridge

πŸ”Œ APIs Used

API Purpose Cost
Free Dictionary API Definitions, phonetics, examples, synonyms Free
MyMemory English β†’ Portuguese (BR) translation Free

No API key or account required.


βš™οΈ Configuration

There are no settings UI yet. You can tweak constants directly in the source:

File Constant Default Description
core/cache_mgr.py CACHE_MAX 500 Maximum number of cached entries
core/api.py timeout 5 HTTP request timeout in seconds

πŸ—οΈ Architecture Notes

  • Parallel fetching β€” dictionary and translation requests are fired concurrently via ThreadPoolExecutor
  • Cache-first β€” every lookup checks the local cache before hitting the network
  • Thread-safe cache β€” writes are protected by a threading.Lock
  • LRU eviction β€” when the cache exceeds CACHE_MAX, the oldest entries (by timestamp) are removed
  • No external dependencies β€” uses only Python's standard library and Anki's bundled Qt

🀝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

Some ideas for future improvements:

  • Settings UI (target language, max definitions)
  • Support for other translation languages
  • Morphological normalization (look up base form of conjugated verbs)
  • Anki card creation from popup

πŸ“œ License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). In short: you’re free to use, study, and modify this codeβ€”but if you run it as a service or distribute modified versions, you must make your source available under the same license.

I’ve put a lot of time into designing and maintaining this work. Please respect the license and my effort:

  • You may use this project commercially, but any modifications or services using it must also be open source under the same license.
  • If you build on it, please provide proper attribution.

Copyright (C) 2026 Paulo Vitor Silva Soares


This is QuicKDict English

Light mode Dark mode


If you find this add-on useful, consider supporting its development:

<a href="https://buymeacoffee.com/pvss"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" width="200"> </a>