zeitlings Posted March 1, 2023 Posted March 1, 2023 (edited) Define Word I wanted a slightly better dictionary for lookups. In particular, I wanted well formatted previews of the entries without having to open the Dictionary app. You can choose from all available dictionaries that are installed on your system, define the fallback dictionaries for your lookups, set the font size of the previews, or manually select a dictionary to use. The previews reflect the global appearance, i.e. they have a dark mode! The workflow also includes a preset for looking up synonyms of a word and a convenient keyboard shortcut for quick lookups. ‣Download from Github ◂ Usage Note Specify the dictionaries you want to use (see Dictionary Options below). Define a fallback dictionary against which possible misspellings will be checked. The workflow can be used as a multilingual spell checker. Default keyword: defDefault shortcut: ⌥+⇧+D Keyword sd: Select a specific dictionary for lookupsKeyword synd: Find synonyms by consulting the thesauri only (english)Cache reset: def ? Modifiers ⇧ or ⌘Y to preview the dictionary entry ⌃ to see the dictionary associated with the entry ⌘C to copy the dictionary entry’s plain text to the clipboard ⌘⏎ to paste a word to the frontmost application (spell checker) ⌘L to view the plain text as large type Preview Dictionary Options Oxford Study Indonesian Dictionary - Inggris-Indonesia • Indonesia-InggrisOxford PWN Polish-English Dictionary / Wielki słownik polsko-angielskiOxford Paravia Il Dizionario inglese - italiano/italiano - ingleseOxford Portuguese Dictionary - Português-Inglês • Inglês-PortuguêsOxford Turkish Dictionary - Türkçe-İngilizce • İngilizce-TürkçeDicionário de Português licenciado para Oxford University PressDizionario italiano da un affiliato di Oxford University PressOxford Russian Dictionary - Русско-Английский • Англо-РусскийGran Diccionario Oxford - Español-Inglés • Inglés-EspañolOxford Arabic Dictionary - عربي-إنجليزي • إنجليزي-عربيOxford Urdu Dictionaries - اردو۔انگریزی • انگریزی-اردوOxford Gujarati Dictionaries - ગુજરાતી-અંગ્રેજી • અંગ્રેજી-ગુજરાતીOxford Tamil Dictionaries - தமிழ்-ஆங்கிலம் • ஆங்கிலம்-தமிழ்พจนานุกรมอังกฤษ-ไทย & ไทย-อังกฤษ ฉบับทันสมัยและสมบูรณ์ที่สุดMagay Tamás szótár - Magyar-Angol • Angol-MagyarOxford Telugu Dictionaries - తెలుగు-ఇంగ్లీష్ • ఇంగ్లీష్-తెలుగుVelký anglicko-český a česko-anglický slovníkOxford Bengali Dictionaries - বাংলা-ইংরেজি • ইংরেজি-বাংলাDiccionario General de la Lengua Española VoxMOT sanakirja suomi-englanti, englanti-suomiOxford Hindi Dictionaries - हिन्दी-अंग्रेज़ी • अंग्रेज़ी-हिन्दीמילון אבן-שושן מחודש ומותאם לשנות האלפייםMultidictionnaire de la langue françaisePONS Großwörterbuch Französisch DeutschOxford American Writer’s ThesaurusDuden-Wissensnetz deutsche SpracheOxford-Hachette French DictionaryТолковый словарь русского языкаNew Oxford American DictionaryPrisma Handwoordenboek EngelsPrisma woordenboek NederlandsOxford Dictionary of Englishพจนานุกรมไทย ฉบับทันสมัยและสมบูรณ์Oxford Thesaurus of EnglishPolitikens Nudansk OrdbogOxford German Dictionary超級クラウン中日辞典 / クラウン日中辞典Arkadaş Türkçe Sözlük뉴에이스 영한사전 / 뉴에이스 한영사전ウィズダム英和辞典 / ウィズダム和英辞典Apple DictionaryTừ điển Lạc ViệtTTY DictionaryNorsk Ordbokराजपाल हिन्दी शब्दकोश商務新詞典(全新版)NE Ordbok뉴에이스 국어사전譯典通英漢雙向字典现代汉语同义词典英譯廣東口語詞典牛津英汉汉英词典漢英對照成語詞典现代汉语规范词典五南國語活用辭典スーパー大辞林汉语成语词典 Edited April 11, 2023 by zeitlings new previews neius_, cands and jeffbyrnes 3
zeitlings Posted April 3, 2023 Author Posted April 3, 2023 (edited) v1.1.0 Behavior change: By default, all defined dictionaries are used. The previous “Main Dictionary” becomes the default fallback dictionary against which possible misspellings are checked. Indicators for the dictionary associated with an entry: They are visible using the ctrl modifier and in the title of the Quicklook preview. The workflow now doubles as a multilingual spell checker: Use the cmd modifier to paste the word into the frontmost application. Add deduplication of dictionary entries. Remove Wikipedia as an option as it is not functional. Edited April 9, 2023 by zeitlings
andy4222 Posted June 4, 2023 Posted June 4, 2023 @zeitlings Thanks for the amazing workflow. Any plans to push this to Alfred Gallery?
zeitlings Posted June 4, 2023 Author Posted June 4, 2023 Hey @andy4222, glad to hear you find it useful. The workflow is unlikely to end up in the gallery because it relies on functions that are only available through Objective-C. This means that there can not be a pure Swift version and that the program, on order to work, needs to be compiled into an executable binary, which I'm currently not having notarized by Apple. This in turn is a prerequisite for executables to be included in the gallery (which is a good thing all in all ). vitor and andy4222 2
genosse Posted June 14, 2023 Posted June 14, 2023 @zeitlings How and where to can I add Oxford Russian dictionary to see the translation using def?
zeitlings Posted June 17, 2023 Author Posted June 17, 2023 (edited) @genosse There was no easy fix I could find. However, I just updated the workflow to v1.1.1 with improved dictionary retrieval. Now the Oxford Russian Dictionary should be found if it is available on your machine. Just paste either of these into the corresponding text field of the configuration: Oxford Russian Dictionary - Русско-Английский • Англо-Русский Oxford Russian Dictionary Russian - English v1.1.1 Improved dictionary retrieval Dictionaries previously not found are now found Incomplete representations are now recognized1 The Short Name is now matched (e.g. Russian - English) Added (hidden) environment variable log_available_dicts to log available dicts if set to 1 Added internal configuration option to open the workflow's cache (default: def :) Fixed raising the workflow configuration (default: :def) e.g. Oxford Russian Dictionary instead of the full name Edited June 17, 2023 by zeitlings
Belfong Posted October 29, 2023 Posted October 29, 2023 The habit is to type "def word" and press Return, instead of Cmd Y to preview it. Is there a way to customise the workflow to show Preview when pressing Return?
zeitlings Posted November 5, 2023 Author Posted November 5, 2023 @Belfong try to make it a habit to press Shift ⇧ to preview, as this will work for anything that can be previewed. Pressing return will always either pass an argument or cause an autocomplete. It is possible to show a quicklook preview this way, but it will open in a new window that has to be closed manually. At this point you can just open the dictionary application, which I think defeats the purpose. Belfong 1
Belfong Posted November 5, 2023 Posted November 5, 2023 (edited) Thanks for your tip. I guess I better learn this new way to Preview. It’s not easy to undo years of habits of pressing Return. (apparently, I have even disabled Shift key as Preview in Pref. I have now reinstated it) Edited November 5, 2023 by Belfong
Belfong Posted November 5, 2023 Posted November 5, 2023 Is there a way to make Alfred forget that the keyword 'def' is to check dictionary instead of "Open the Workflow Configuration"?
zeitlings Posted November 5, 2023 Author Posted November 5, 2023 Have you perhaps modified the workflow configuration? By default the 'open configuration' item only shows if the keyword is preceded by a colon. This is how it looks for me:
Belfong Posted November 6, 2023 Posted November 6, 2023 Ah, I must have done that unknowingly. This is fixed. Thank you so much for this great workflow! I really like that I could increase the font size of the Preview window. That really helps this pair of old eyes! zeitlings 1
spongeblink Posted June 14, 2024 Posted June 14, 2024 Is it possible to compile the binary included in the workflow locally from source?
zeitlings Posted June 14, 2024 Author Posted June 14, 2024 5 hours ago, spongeblink said: Is it possible to compile the binary included in the workflow locally from source? Not at this time spongeblink 1
RandomUser2000 Posted September 12, 2024 Posted September 12, 2024 I like to use https://metanery.com. I usually find what I'm looking for there, it has good definitions... no ChatGPT garbage... zeitlings 1
zeitlings Posted September 29, 2024 Author Posted September 29, 2024 v1.2.0 Fixes for macOS 15 SequoiaAdded configuration option to revert back to sans-serif font (relevant for macOS 15+)Added autocomplete for the selected termRemoved configuration option that overrides the dictionary selection to check all available dictionaries (which should be enabled only for debugging purposes anyway). Moved to the environment variables: checkAll.Updated documentation
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now