Brown-University-Library / OLD-ARCHIVED_iip-production

3 stars 9 forks source link

link each lemma to a dictionary online, or pull definition in via API #73

Closed emylonas closed 3 years ago

emylonas commented 4 years ago

The lemma should also have a link to a dictionary. @emylonas needs to look into best site to link to or to use API.

emylonas commented 4 years ago

This isn't an API, but you can link to a word in the Perseus dictionary using a URL in this form: http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.04.0059%3Aentry%3DCaesar where the last string is the word. Note that the %3D is an equal sign encoded so it can appear in a URL.

we might be able to just grab the HTML by copying the <div type="text-container"> directly from the web page. (I may have spelled the div type incorrectly, closed the inspector too soon)

emylonas commented 4 years ago

I found some more information on this github site. saving the URL here so we don't lose it. It's the CLTK people trying to figure out how to get Perseus data into their ctlk app in 2016. They also link to the master perseus dictionary list. and also some Perseus grammatic parsing http://www.perseus.tufts.edu/hopper/morph?l=Arma&la=la parses the word provides output in XML: http://www.perseus.tufts.edu/hopper/xmlmorph?lang=la&lookup=virum but no dictionary link. This would be great for Greek, but we have to convert our unicode greek into betacode.

emylonas commented 3 years ago

done