Greek dictionary shortcuts for my browser

Here you can discuss all things Ancient Greek. Use this board to ask questions about grammar, discuss learning strategies, get help with a difficult passage of Greek, and more.
Post Reply
User avatar
jeidsath
Textkit Zealot
Posts: 5332
Joined: Mon Dec 30, 2013 2:42 pm
Location: Γαλεήπολις, Οὐισκόνσιν

Greek dictionary shortcuts for my browser

Post by jeidsath »

I have the following search shortcuts defined for Chrome. I'm on OS X, and have a hotkey to switch to the Greek polytonic keyboard quickly, so I can just type a word into my browser to look it up. So if I want to find the forms of λύω, I type the following into my browser bar:

lg λύω (or λγ λύω)

To copy any of these, go to Settings, Manage Search Engines. Use whatever shortcut and name you'd like, but copy the code section exactly.

Dictionary: Lexigram
Description: Best dictionary on the web for finding morphology. Accepts declined forms as well as dictionary forms.
Shortcuts: lg, λγ
Search:

Code: Select all

http://www.lexigram.gr/lex/arch/%s
Dictionary: Woodhouse
Description: Useful looking up English words for translation.
Shortcuts: wo, ςο
Search:

Code: Select all

http://artflsrv02.uchicago.edu/cgi-bin/efts/dicos/woodhouse_test.pl?keyword=%s&pagenumber=&sortorder=Keyword
Dictionary: Perseus
Description: Accepts declined and dictionary forms. Has the LSJ online, with some headword bugs.
Shortcuts: gr, γρ
Search:

Code: Select all

http://www.perseus.tufts.edu/hopper/morph?l=%s&la=greek
Dictionary: Perseus Latin
Shortcuts: la
Search:

Code: Select all

http://www.perseus.tufts.edu/hopper/morph?l=%s&la=la
Dictionary: Perseus Chicago Texts
Description: Look up a line in a given text like "Hom. Il. 5.50"
Shortcuts: pe
Search:

Code: Select all

http://perseus.uchicago.edu/perseus-cgi/citequery3.pl?query=%s&dbname=GreekFeb2011
Dictionary: Logeion
Description: Has a scroll bar, so it's useful if you don't know exactly which headword you are looking for.
Shortcuts: lo, λο
Search:

Code: Select all

http://logeion.uchicago.edu/index.html#%s
“One might get one’s Greek from the very lips of Homer and Plato." "In which case they would certainly plough you for the Little-go. The German scholars have improved Greek so much.”

Joel Eidsath -- jeidsath@gmail.com

User avatar
bedwere
Global Moderator
Posts: 5102
Joined: Fri Mar 07, 2008 10:23 pm
Location: Didacopoli in California
Contact:

Re: Greek dictionary shortcuts for my browser

Post by bedwere »

Hi Joel,

It's not that you could bare-bone, retro-engineer the Woodhouse page and make the software available so that we may create other searchable dictionaries? I'm thinking of Frädersdorff, Yonge, &c.

User avatar
jeidsath
Textkit Zealot
Posts: 5332
Joined: Mon Dec 30, 2013 2:42 pm
Location: Γαλεήπολις, Οὐισκόνσιν

Re: Greek dictionary shortcuts for my browser

Post by jeidsath »

It shouldn't be to hard to reverse engineer Woodhouse, but I believe that if you were to contact Helma Dik at Chicago, she might be able to simply share the code with you.

Also, this is my new favorite browser extension: http://www.paideiainstitute.org/chiron

Like the Google Translate extension for modern languages (but better), the above extension lets you look up individual words by double-clicking.
“One might get one’s Greek from the very lips of Homer and Plato." "In which case they would certainly plough you for the Little-go. The German scholars have improved Greek so much.”

Joel Eidsath -- jeidsath@gmail.com

User avatar
bedwere
Global Moderator
Posts: 5102
Joined: Fri Mar 07, 2008 10:23 pm
Location: Didacopoli in California
Contact:

Re: Greek dictionary shortcuts for my browser

Post by bedwere »

I actually wrote to the library and got the following answer:
That is an ancient perl script which is not really suitable for distribution. You might want to have a peek at:
http://logeion.uchicago.edu/
and the related
http://perseus.uchicago.edu/
for Greek resources. Some of these are powered by our open source PhiloLogic package or variants such as
http://artfl-project.uchicago.edu/conte ... dautrefois
and
http://dvlf.uchicago.edu/

If I were going to look for off the shelf software, I suppose I would start with
http://www.dict.org/bin/Dict
or the more recent
http://goldendict.org/
but I have not used them myself.

Hope this helps.
But something simpler would be even better for me, e.g. http://lexica.linguax.com/

User avatar
jeidsath
Textkit Zealot
Posts: 5332
Joined: Mon Dec 30, 2013 2:42 pm
Location: Γαλεήπολις, Οὐισκόνσιν

Re: Greek dictionary shortcuts for my browser

Post by jeidsath »

I was going to write up some python, but here's a no-code solution that will be about the same about of work.

1) Break your PDF dictionary up into pages with imagemagick. Something like:

Code: Select all

convert -monitor -verbose -density 300 <your_file>.pdf -compress Zip -quality 100 "%03d.jpg"
2) create a directory on your local machine or server. Let's call it "dictionary/"

3) create an images directory "dictionary/images/" and populate it with all of the individual files from your PDF.

4) create a file in dictionary/index.html that is just a series of links

Code: Select all

<a href="./images/001.jpg">ἄλφα...ἀάω</a>
<a href="./images/002.jpg">ἄβα...ἄβολος</a>
...
Optional 1) Link each letter of the alphabet at the top to an anchor in the page for that letter

Optional 2) It is possible to write some javascript to allow a user to type in a word and find the correct link automatically. But you still have to make the list above by hand ['001'] -> ['ἄλφα', 'ἀάω'], etc., so that the code can know what page a word would be on.
“One might get one’s Greek from the very lips of Homer and Plato." "In which case they would certainly plough you for the Little-go. The German scholars have improved Greek so much.”

Joel Eidsath -- jeidsath@gmail.com

Post Reply