This module is a data module providing a catalogue of passages from one particular book or article for each passage to demonstrate the existence of multiple Sanskrit words. The modules returns a 3-D array (technically a Lua table), indexed as follows:
The table has one named element, "reference", that holds the name of the template (namely, {{RQ:sa:K1237}}
) used to identify the source to the reader and format the quote, its transliteration and its translation.
The intention is that the word will be highlighted when selected by these three indices. Words are assigned positive numbers and their boundaries are marked up in the form {number-word}. This mark up can be nested, so that words may contain other words. Different sections may have the same number; this allows for repeated words, overlapping words, and discontiguous translations.
The words are transcluded into a page using an invocation of the form {{RQ:sa:K1237 quote|10|vivardhayanti|7}}
; this example produces the text:
There is no advantage in including a passage for the sake of one word; one can use {{RQ:sa:K1237}}
directly for that purpose.
data = {}
data.reference = "RQ:okz:K1237"
data.lang = "sa"
data = {
yo = { -- I, lines 1 & 2
"{1-យោ}{2-សៅ}{3-បរមកៃវល្យ<br/>សំយតោ} {4-ចញ្ចលស្ថះ}<br/>{5-ជគតាំ} {6-ស្ឫឞ្ឋយេ} {7-ស្ថូលោ<br/>នម្យតាំ} {9-ស} {10-ឝិវ}{11-{10-ឝ្ឝិ}វះ} ៕",
"{1-yo} {2-sau} {3-paramakaivalya<br/>saṃyato} {4-cañcalasthitaḥ}<br/>{5-jagatāṃ} {6-sṛṣṭaye} {7-sthūlo} {8-namyatāṃ} {9-sa} {10-śivaś}{11-śivaḥ} ॥",
""},
sa = { -- II, lines 3 & 4
"{1-ស}{2-ច}{3-ភូតលភូបេន្ទ្រ<br/>មៅលិភិ}{4-{3-ភ៌ូ}តិវ្ឫទ្ធយេ}<br/>"..
"{5-ភក្ត្យោទ្ធ្ឫតបវិត្រាង្ឃ្រិ<br/>{6-និ*រ{7-ជ៌េ}}{7-និ*ទ្រ}{8-និ*រជះ}} ៕<br/>"..
"* Read {6-{7-{8-និ}}} as {6-នី}, {7-ន្និ}, and {8-នី} respectively.",
"{1-sa} {2-ca} {3-bhūtalabhūpendro<br/>maulibhir}{4-bhūtivṛddhaye}<br/>"..
"{5-bhaktyoddhṛtapavitrāṅghri<br/>{6-nīraj{7-o}}{7-nnidra}{8-nīrajaḥ}} 14 ॥",
""},
--{2-And} {1-he} {6-dustless} {7-full-blown} {8-lotuses}
devatmana = { -- III, lines 5 & 6
"{1-ទេវាត្មនា}{2-ស}{3-វិទ្យាធិ<br/>បតិវម្ម៌មហាត្មនា}{4-ឝ្រីសូយ្យ៌វម្ម៌ភូបេន្ទ្រ*} <br/>{5-ធម្ម៌និឞ្ឋេ*}{6-និវេទិតះ} ៕"..
"* Read {4-ន្ទ្រ} as {4-ន្ទ្រោ} and {5-ឞ្ឋេ} as {5-ឞ្ឋោ}",
"{1-devātmanā} {2-sa} {3-vidyādhi<br/>pativarmmamahātmanā}"..
"{4-śrīsūryyavarmmabhūpendro} <br/>{5-dharmmaniṣṭho} 15 {6-niveditaḥ} ॥",
""},
sasanais = { -- IV lines 7 & 8
"{1-ឝាសនៃ{2-ស្ស}}{2-វ្វ៌ធម្ម៌ជ្ញ<br/>មតេ*}{3-{2-ស្ត}ស្យាម្ឫតាធិកៃះ}<br/>"..
"{4-ទេវភូមិ}{5-{4-ស្ស}ទាសៅឃា}<br/>{6-វជ៌ិតា}{7-វ*ឞយាធិបៃះ} ៕<br/>"..
"* Read {2-តេ} as {2-តៃ} and {7-វ} as {7-វិ}",
"{1-śāsanais}{2-sarvvadharmmajña<br/>matais}{3-tasyāmṛtādhikaiḥ}<br/>"..
"{4-devabhūmis}{5-sadāsaughā} <br/>{6-varjitā} {7-viṣayādhipaiḥ} 17 ॥",
""},
vimadayanti = { -- V lines 9 & 10
"{1-វិមទ*យន្តិ}{2-យេ}{3-{12-ភូមី*}<br/>{13-ទាសា{4-ន្ទេ}}}{4-វស្យ}{5-បាបី*នះ}<br/>"..
"{6-តេ}{7-{14-សវ្វ៌}{15-នរកេ}}{8-យាន្តុ}<br/>{9-យាតនា{10-មា}}{11-ភវក្ឞយាត៑} ៕<br/>"..
"* Read {1-ទ}, {3-មី} and {5-បី} as {1-ទ៌}, {3-មិ} and {5-បិ}.",
"{1-vimardayanti} {2-ye} {3-{12-bhūmi}<br/>{13-dāsān}}{4-devasya} {5-pāpinaḥ}<br/>"..
"{6-te} {7-{14-sarvva}{15-narake}} {8-yāntu} <br/>{9-yātanām} {10-ā} {11-bhavakṣayāt·} ॥",
"{8-May} {6-the} {5-evil ones} {2-who} {1-disturb} {3-{12-the land} and {13-servants}} {4-of the god} {8-undergo} {9-torment} {7-{15-in} {14-every} {15-hell}} {10-until} {11-the end of existence}."
},
vivardhayanti = { -- VI lines 11 & 12
"{1-វិវធ៌យន្តិ}{2-យេ}{3-{13-ទេវ}<br/>{15-ភូមិ}{16-ទាសាំ{4-គ្ច*}}}{5-ធាម្ម៌ិកាះ}<br/>"..
"{7-ស្វគ្គ៌េ}{8-តេ}{9-{12-សវ្វ៌}{13-ទេវេន}}<br/>{10-បូជ្យន្តា{11-{17-ន្និ}}}{11-{17-ត្យ}{18-សំបទះ}} ៕<br/>"..
"* Read {3-{4-គ្ច}} as {3-{4-ឝ្ច}}",
"{1-vivardhayanti} {2-ye} {3-{13-deva}<br/>{15-bhūmi}{16-dāsāṃś}} {4-ca} {5-dhārmmikāḥ}<br/>"..
"{7-svargge} {8-te} {9-{12-sarvva}{13-devena}} <br/>{10-pūjyantān} {11-{17-nitya}{18-saṃpadaḥ}} ॥",
"{5-The pious ones} {2-who} {1-make} {3-the {13-god's} {15-land}} {4-and} {3-{16-servants}} {1-prosper}, "..
"{10-may} {8-they} {10-be honoured} {7-in heaven} {9-{13-by} {12-all} {13-the gods}} "..
"and {11-{17-always} be {18-prosperous}}."
}
}
return data