With the recent incorporation of the Digital Pali Dictionary (DPD) into thebuddhaswords.net , there is now near 100% recognition of Pali words in the Suttas and Vinaya.
Thanks and much merit to Venerable Bodhirasa for developing and maintaining the Digital Pali Dictionary. Thanks and much merit also to Venerable Cittadhammo for the programming which does the lookup of the Pali words.
24 Likes
Congratulations and well done!
Congratulations!
I’ll hop on to make a plug for the Kindle Dictionary version of the DPR. It has the same level of recognition. I just installed it and it’s amazing.
4 Likes
Wow, that’s pretty cool. Thanks a lot! and congratulations!
brooks
February 27, 2024, 6:15pm
6
That’s fantastic! Thanks to all those who helped make this possible:-)
brooks
February 27, 2024, 6:16pm
7
@Snowbird , can you say a little bit more about this? I’m trying to determine if it’s a tool I could make use of.
2 Likes
Thank you @666tomanderson , this is a nice little project to help on.
For those interested in the code, it works pretty simply with a simple loop:
function lookupWord(word) {
// BEHAVIOUR
// take the word variable and search for that in dpd_i2h.json
// if it return a list of headwords
// look up each headword in the list in dpd_ebts.json
// add the result to html_string
// lookup the word in dpd_deconstructor.json
// if it returns any results
// add the result to html_string
// display the html string as a popup
// TODO: the words in the popup must be able to be recursively looked up by clicking on them in the same way as above.
let out = "";
word = word.replace(/[’”'"]/g, "").replace(/ṁ/g, "ṃ");
if (word in dpd_i2h) {
out += "<strong>" + word + '</strong><br><ul style="line-height: 1em; padding-left: 15px;">'
for (const headword of dpd_i2h[word]) {
if (headword in dpd_ebts) {
out += '<li>' + headword + '. ' + dpd_ebts[headword] + '</li>'
}
}
This file has been truncated. show original
2 Likes