Workflows for fast access to the Thesaurus Linguae Graecae and the LOEB Classical Library via Alfred and Keyboard Maestro.

View the Project on GitHub bcdavasconcelos/Corpora

Corpora - Workflows for fast access to the Thesaurus Linguae Graecae and the LOEB Classical Library

Corpora is the plural form of corpus, a word that means denotes a large collection of writings of a specific kind or on a specific subject. The ideia of this repository is to make available different workflows that I have developed while working with these corpora of text, that is, TLG and LOEB. Hopefully they will be useful to others working on themes related to antiquity.

The first release (MacOS only) has to do with accessing the texts quickly and directly (thus shortening the time it would take for you to go online, hit the search, type, wait for results and choose a text). With these workflows, I can simply press ⌘Space (to open Alfred) and start typing whatever it is that I am looking for to see a list of possible results from the TLG and LOEB databases. After finding the entry, I can either i. hit ⌘⏎ to open the text online or ii. hit ⌃⏎ to open it offline (in case you have Diogenes installed).

There are also some functions related to a software called DEVONthink. I highly recommend checking it out. I have written about how I use it here. There is no mystery to these functions. If you hit ⇧⌘⏎ the online page with the text will be open and stored in DEVONthink and an applescript I wrote will add metadata to it (such as author name, work title, tlg code and tags). Likewise, if you hit ⇧⌃⏎ the page opened will be the offline instead.

New in Version 1.0.4: In this new version I have added the option of copying parts of the data, thus making the workflow useful for citing. If you simply hit ⏎, it will set to the clipboard the TLG code or LOEB Volume + Year. If you hit ⌥⏎, it will set the Work’s Title and if you hit ⇧⌥⏎ it will set the Author’s Name.

What is next?
Every time I import a text to DEVONthink I need to format it according to my needs. To do so, I use several text manipulation macros which I will begin to share shortly.

After that?
This will depend a lot on finding time to acquire the skills necessary to create new functions and improve old ones. This is a work in progress.

To download the workflows, go to the releases page.

How to use it

If you just need the workflow for quick access to TLG and LOEB, you can use either the Keyboard Maestro macro or the Alfred Workflow: it’s up to you.

On Keyboard Maestro

On Alfred

For a demonstration, watch this video.

What’s new?


There are now 10160 search items in the database


Corpora 1.0.4 for Alfred is out.



“I Sheet You Not”

Source: This workflow was re-built using a workflow generator called “I Sheet You Not” by Dean Jackson. It greatly enhanced its ability to deal with multiple variables. Many thanks to him!

Source: Perseus is a non-profit enterprise, located in the Department of the Classics, Tufts University.

Source: The Logo of the Loeb Classical Library®, featuring Athena, goddess of wisdom, and Nike, goddess of victory.

The data

Source: This workflow uses data collected in JSON format by Stephen Margheim, with modifications. Many thanks to him!