Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.13 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.13 KB

dict-to-flashcard

Get definitions from Apple Dictionary and convert to Logseq flashcards. More in a blogpost: https://smagin.fyi/posts/dict-to-flashcard/

Alfred workflow: https://github.com/s-mage/dict-to-flashcard/blob/main/card.alfredworkflow

Demo

demo.mov

Prerequisites

Setup: extract XML from the dictionaries.

  1. Read README of apple-peeler, but basically
export DICT_BASE="/System/Library/AssetsV2/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/"
apple-peeler --out apple-peeler-output # you will need this folder as part of path to xml config value
  1. Configure this workflow
Path to xml: apple-peeler-output/Croatian.xml -- replace with the actual dictionary you want to use
Output file: file inside the logseq graph. Protip: use icloud to sync graph between devices.

Enjoy. Or send patches. Or both.