Skip to main content

macOS Shortcut - Dictionary lookup with Pronunciation at the same time

This shortcut lets you look up dictionary definitions and hear pronunciations simultaneously, using your default system voice (I use Siri voices for most languages).


You can download my shared shortcut here:

https://www.icloud.com/shortcuts/03bd91e3cd1c473fac0baf4cf2d49d2e

or follow the manual instructions below to create it.

Usage: Select a word, then press your assigned keyboard shortcut. The system voice speaks it while the dictionary popup appears.

Requirements: In System Settings > Accessibility > Read & Speak (Spoken Content), enable Speak Selection.

Note: To assign your preferred keyboard shortcut, click the info icon. In the Details tab, select as shown in the screenshot below (e.g., I assign Cmd + ').


Manual instructions:

1. Open Shortcuts app.

2. Create new shortcut for Text input via Quick Actions (check Services Menu).

3. Add "Speak Text": Select Siri voice, uncheck "Wait Until Finished". You may also want to choose your default language here.

4. Add "Run AppleScript":

   ```

   on run {input, parameters}

       tell application "System Events"

           keystroke "d" using {command down, control down}

       end tell

       return input

   end run

   ```

Attributions: ph0ngp @ https://www.reddit.com/r/MacOS/comments/g5eq8l/comment/hxxvuwg

Comments

Popular Posts

Testing Pali-English translation on Claude Sonnet (Free plan)

Claude 3 Sonnet (free):  Claude B You are a professional Pali English translator Very well, I will act as a professional Pali-English translator. Pali is the canonical language of Theravada Buddhism, used to preserve the Buddha's teachings in texts like the Tipitaka. Please provide me with the Pali text you need translated and I will do my best to render an accurate English translation while preserving the nuances and spirit of the original.

How to Maintain Playlist Order on Mini Audio Players

Quick Guide: Maintain Playlist Order on Mini Audio Players 1. Issues The player may not follow the order of your audio file names all the time, but it will follow the order in which your audio files are written to the SD Card. 2. Solution Remember, the key is the order in which files are written to the microSD card or USB. To maintain the playlist order on mini audio players, follow these simple steps: 1. Format your microSD card using FAT32. 2. (This step is optional) Create a folder named "AAAA" on the microSD card.  3. Backup your original audio files and use a bulk rename tool to prepend a 4-digit number (starting with 1111) to the file names. 4. Sort the renamed files by name in ascending order. 5. For Windows OS, Click the first file to select it , <= this step is important , then press Ctrl + A , Ctrl + C , and Ctrl + V to copy and paste the files into the "AAAA" folder on the microSD card. Tip : on Linux OS,  you may try using a twin panel file managemen...

How to Generate a .mobi Dictionary File for Kindle using Pyglossary and Kindle Previewer

Requirements Install pyglossary  pip3 install pyglossary Install Kindle Previewer Download  Kindle Previewer (At the time of writing, Kindle Previewer version 3.88.0 ( Windows ).) Step 1: Convert Dictionary Data to .mobi Format with Pyglossary Pyglossary will generate a folder (e.g.,  mydict.mobi ) instead of a .mobi file. Within this folder, navigate to the  OEBPS  directory, where you'll find the  content.opf  file. Step 2: Preview the  content.opf  File in Kindle Previewer Open Kindle Previewer and go to  File > Open Book  (or press  Ctrl + O ). Select the  content.opf  file you found in Step 1. Note:  The preview may take some time to process, depending on the size of your dictionary. Tip:  To speed up the preview, you can duplicate the  content.opf  file (e.g.,  content_min.opf ) and remove most  .xhtml  files from the  manifest  and  spine  sections, leav...