Module:RQ:pi:Thai chant book
- The following documentation is located at Module:RQ:pi:Thai chant book/documentation. [edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
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 Pali words. The modules returns a 3-D array (technically a Lua table), indexed as follows:
- The outer index is the page number.
- The second index is a character string serving as the name of the passage within the page - using the first word is the simplest scheme.
- The third index is an element number - the text (item 1), its transliteration (item 2) (optional) and its translation (item 3).
The table has one named element, "reference", that holds the name of the template (namely, {{RQ:pi:Thai chant book}}
) 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:pi:Thai chant book quote|4|buddham|2}}
; this example produces the text:
- พุทธัง สะระณัง คัจฉามิ ธัมมัง สะระณัง คัจฉามิ สังฆัง สะระณัง คัจฉามิ
- buddhaṃ saraṇaṃ gacchāmi. dhammaṃ saraṇaṃ gacchāmi. saṅghaṃ saraṇaṃ gacchāmi.
- I go to the Buddha as a refuge. I go to the dharma as a refuge. I go to the sangha as a refuge.
There is no advantage in including a passage for the sake of one word; one can use {{RQ:pi:Thai chant book}}
directly for that purpose.
data = {}
data["reference"] = "RQ:pi:Thai chant book"
data[3] = {
imina = {
"{1-อิมินา} {2-สักกาเรนะ} {3-พุทธัง} {4-ปูเชมิ}<br/>"..
"{1-อิมินา} {2-สักกาเรนะ} {5-ธัมมัง} {4-ปูเชมิ}<br/>"..
"{1-อิมินา} {2-สักกาเรนะ} {6-สังฆัง} {4-ปูเชมิ}<br/>",
"{1-iminā} {2-sakkārena} {3-buddhaṃ} {4-pūjemi}<br/>"..
"{1-iminā} {2-sakkārena} {5-dhammaṃ} {4-pūjemi}<br/>"..
"{1-iminā} {2-sakkārena} {6-saṅghaṃ} {4-pūjemi}<br/>",
"{4-I do homage to} {3-the Buddha} {1-{2-by} this} {2-hospitality}.<br/>"..
"{4-I do homage to} {5-the dharma} {1-{2-by} this} {2-hospitality}.<br/>"..
"{4-I do homage to} {6-the sangha} {1-{2-by} this} {2-hospitality}.<br/>"
},
araham = {
"{1-อะระหัง} {18-{2-สัมมา}{3-สัมพุทโธ}} {4-ภะคะวา} {5-พุทธัง} {4-ภะคะวันตัง} {7-อะภิวาเทมิ} ''(กราบ)'' "..
"{8-สะวากขาโต} {4-ภะคะวะตา} {10-ธัมโม} {10-ธัมมัง} {12-นะมัสสามิ} ''(กราบ)'' "..
"{13-สุปะฏิปันโน} {4-ภะคะวะโต} {15-สาวะกะ}{16-สังโฆ} {16-สังฆัง} {17-นะมามิ} ''(กราบ)''",
"{1-Arahaṃ} {18-{2-sammā}{3-sambuddho}} {4-bhagavā}; {5-buddhaṃ} {4-bhagavantaṃ} {7-abhivādemi}. ''(gràap)'' "..
"{8-Savākkhāto} {4-bhagavatā} {10-dhammo}; {10-dhammaṃ} {12-namassāmi}. ''(gràap)'' "..
"{13-Supaṭipanno} {4-bhagavato} {15-sāvaka}{16-saṅgho}; {16-saṅghaṃ} {17-namāmi}. ''(gràap)''",
"{4-The Fortunate One} is {1-an arahat}, {18-{2-correctly} and {3-completely enlightened}-18}; "..
"{7-I salute} {5-the Buddha}, {4-the Fortunate One}. ''(bow)'' {10-The dharma} has "..
"{8-been expounded well} {4-by the Fortunate One}; {12-I venerate} "..
"{10-the dharma}. ''(bow)'' {16-The assembly} {15-of the} {4-Fortunate One's} "..
"{15-disciples} is {13-following the right way}; {17-I bow down to} {16-the assembly}. ''(bow)''"
},
mayam = {
"{1-มะยัง} {2-ภันเต} {16-{3-วิสุง} {3-วิสุง}} {4-{14-รักขะ{15-ณั}}{15-ตถายะ}} {5-ติสะระเณนะ}{17-สะหะ} {6-ปัญจะ} {7-สีลานิ} {8-ยาจามะ} <br/>"..
"{12-{9-ดุติยัม}{10-ปิ}} {1-มะยัง} {2-ภันเต} {16-{3-วิสุง} {3-วิสุง}} {4-{14-รักขะ{15-ณั}}{15-ตถายะ}} {5-ติสะระเณนะ}{17-สะหะ} {6-ปัญจะ} {7-สีลานิ} {8-ยาจามะ} <br/>"..
"{13-{11-ตะติยัม}{10-ปิ}} {1-มะยัง} {2-ภันเต} {16-{3-วิสุง} {3-วิสุง}} {4-{14-รักขะ{15-ณั}}{15-ตถายะ}} {5-ติสะระเณนะ}{17-สะหะ} {6-ปัญจะ} {7-สีลานิ} {8-ยาจามะ}",
"{1-mayaṃ} {2-bhante} {16-{3-visuṃ} {3-visuṃ}} {4-{14-rakkhaṇ{15-a}}{15-tthāya}} {5-tisaraṇena}{17-saha} {6-pañca} {7-sīlāni} {8-yācāma} <br/>"..
"{12-{9-dutiyam}{10-pi} {1-mayaṃ} {2-bhante} {16-{3-visuṃ} {3-visuṃ}} {4-{14-rakkhaṇ{15-a}}{15-tthāya}} {5-tisaraṇena}{17-saha} {6-pañca} {7-sīlāni} {8-yācāma} <br/>"..
"{13-{11-tatiyam}{10-pi} {1-mayaṃ} {2-bhante} {16-{3-visuṃ} {3-visuṃ}} {4-{14-rakkhaṇ{15-a}}{15-tthāya}} {5-tisaraṇena}{17-saha} {6-pañca} {7-sīlāni} {8-yācāma} <br/>",
"{2-Venerable sirs}, {1-we} {8-request} the {6-five} {7-precepts} {17-and} {5-the three refuges} {4-{15-for the sake} {14-of observing them}}, {16-{3-one} by {3-one}, separately}. <br/>"..
"{9-For the second time}, {2-venerable sirs}, {1-we} {8-request} the {6-five} {7-precepts} {17-and} {5-the three refuges} {4-{15-for the sake} {14-of observing them}}, {16-{3-one} by {3-one}, separately}. <br/>"..
"{11-For the third time}, {2-venerable sirs}, {1-we} {8-request} the {6-five} {7-precepts} {17-and} {5-the three refuges} {4-{15-for the sake} {14-of observing them}}, {16-{3-one} by {3-one}, separately}. <br/>"
},
}
data[4] = {
namo = {
"{1-มะโน} {2-ตัสสะ} {3-ภะคะวะโต} {4-อะระหะโต} {5-สัมมา} {6-สัมพุทธัสสะ}",
"{1-namo} {2-tassa} {3-bhagavato} {4-arahato} {5-sammā} {6-sambuddhassa}",
"{1-Honour} {2-to the} {3-Blessed One}, {4-the Exalted One}, the {5-fully} {6-Enlightened One}"
},
buddham = {
"{1-พุทธัง} {2-สะระณัง} {3-คัจฉามิ} {4-ธัมมัง} {2-สะระณัง} {3-คัจฉามิ} {5-สังฆัง} {2-สะระณัง} {3-คัจฉามิ}",
"{1-buddhaṃ} {2-saraṇaṃ} {3-gacchāmi}. {4-dhammaṃ} {2-saraṇaṃ} {3-gacchāmi}. {5-saṅghaṃ} {2-saraṇaṃ} {3-gacchāmi}.",
"{3-I go to} {1-the Buddha} {2-as a refuge}. {3-I go to} {4-the dharma} {2-as a refuge}. {3-I go to} {5-the sangha} {2-as a refuge}."
},
panatipata = {
"{1-ปาณ{9-า}}{9-ติปาตา} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}<br/>"..
"{5-{17-อ{19-ทินน}}{18-าทานา}} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}<br/>"..
"{6-กาเมสุ}{10-มิจฉาจารา} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}<br/>"..
"{12-{7-มุสา}{11-วาทา}} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}<br/>"..
"{20-{8-สุรา}{13-เมระยะ}{14-มัชชะ}{15-ปะมาทั}{16-ฏฐานา}} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}",
"{1-Pāṇ{9-ā}}{9-tipātā} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}<br/>"..
"{5-{17-A{19-dinn}}{18-ādānā}} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}<br/>"..
"{6-Kāmesu}{10-micchācārā} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}<br/>"..
"{12-{7-Musā}{11-vādā}} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}<br/>"..
"{20-{8-Surā}{13-meraya}{14-majja}{15-pamāda}{16-ṭṭhānā}} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}<br/>",
"{4-I observe} {3-the precept} {2-of abstaining} {9-from the destruction} {1-of life}.<br/>"..
"{4-I observe} {3-the precept} {2-of abstaining} {5-{18-from taking} {17-{19-that which is} not {19-given}}}.<br/>"..
"{4-I observe} {3-the precept} {2-of abstaining} {10-from} {6-sexual} {10-misconduct}.<br/>"..
"{4-I observe} {3-the precept} {2-of abstaining} {12-{11-from speaking} {7-untruthfully}}.<br/>"..
"{4-I observe} {3-the precept} {2-of abstaining} from {20-{8-distilled liquor}, {13-fermented liquor} and {14-intoxicants} that cause {15-heedless{16-ness}}}."
}
}
data[5] = {
vikala = {
"{1-{5-วิ{7-กาละ}}{6-โภชะนา}} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}",
"{1-{5-vikāla}{6-bhojanā}} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}",
"{4-I observe} {3-the precept} {2-of abstaining} {1-{6-from eating} {5-{7-at the} wrong {7-time}}}"
},
nacca = {
"{1-นัจจะ}{5-คีตะ}{6-วาทิตะ}{7-{8-วิสูกะ}{9-ทัสสะนา}} "..
"{10-มาลา}{11-คันธะ} {12-วิเล<br/>ปะนะ}{13-ธาระณะ}{14-มัณฑะนะ}"..
"{15-วิภูสะ{16-นั}}{16-ฏฐานา} {2-เวระมะณี}<br/>"..
"{3-สิกขาปะทัง} {4-สะมาทิยามิ}",
"{1-nacca}{5-gīta}{6-vādita}{7-{8-visūka}{9-dassanā}} "..
"{10-mālā}{11-gandha} {12-vilepana}{13-dhāraṇa}{14-maṇḍana}"..
"{15-vibhūsan{16-a}}{16-ṭṭhāna} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}",
"{4-I undertake} {3-the training rule} {2-of abstention} {16-{7-{9-from}}} "..
"{1-dancing}, {5-singing}, {6-music}, and {7-{9-visiting} {8-shows}} and "..
"from the {16-practice} of {13-wearing} {10-garlands}, "..
"{14-using} {11-perfumes}, and {15-applying} {12-ointment}."
},
uccasayana = {
"{1-อุจจาสะยะนะ}{7-{5-มะหา}{6-สะยะนา}} {2-เวระมะณี} {3-สิกขาปะทัง} {4-สะมาทิยามิ}",
"{1-uccāsayana}{7-{5-mahā}{6-sayanā}} {2-veramaṇī} {3-sikkhāpadaṃ} {4-samādiyāmi}",
"{4-I undertake} {3-the training rule} {2-of abstention} {6-from} "..
"a {1-high} or {7-{5-luxurious} {6-{1-bed}}}."
},
vipatti = {
"{1-วิปัตติ}{2-ปะฏิพาหายะ} {3-สัพพะ}{4-สัมปัตติ}{5-สิทธิยา} {3-สัพพะ}{7-ทุกขะ}{8-วินาสายะ} {9-ปะริตตัง} {11-พรูถะ}{10-มังคะลัง}",
"{1-vipatti}{2-paṭibāhāya} {3-sabba}{4-sampatti}{5-siddhiyā} {3-sabba}{7-dukkha}{8-vināsāya} {9-parittaṃ} {11-brūtha}{10-maṅgalaṃ}",
"{2-For the warding off} {1-of misfortune}, {5-for the accomplishment} "..
"{4-of} {3-all} {4-good fortune}, {8-for the destruction} "..
"{7-of} {3-all} {7-suffering}: {11-please chant} "..
"{9-the} {10-auspicious} {9-safeguard}."
}
}
data[6] = {
brahma = {
"{11-พรัหมา} {13-จะ} {1-โลก{2-า}}{2-ธิปะตี} {12-สะหัมปะติ}, {10-กัตอัญชะลี}<br/>"..
"{20-อันธิวะรัง} {3-อะยาจะถะ}, {6-สัน{7-ตี}}{7-ถะ} {8-สัตต{19-{9-า}}}{19-{9-ปปะ}{13-ระชัก<br/>"..
"ขะ}}{14-ชาติกา}, {4-เทเสตุ} {5-ธัมมัง} {15-อะนุกัม{18-{16-ปิ}}}{18-{16-มัง} {17-ปะชัง}}",
"{11-brahmā} {13-ca} {1-lok{2-ā}}{2-dhipatī} {12-sahampati}, {10-kat'añjalī} {20-andhivaraṃ} {3-ayācatha}, {6-sant{7-ī}}{7-tha} {8-satt{19-{9-ā}}}{19-{9-ppa}{13-rajakkha}}{14-jātikā}, {4-desetu} {5-dhammaṃ} {15-anukamp}{18-{16-imaṃ} {17-pajaṃ}}",
"{13-Then} {11-Brahmā} {12-Sahampati}, {2-Lord} {1-of the World}, {10-with hands palm-to-palm before his heart}, {3-requested} {20-the Blessed One}: {6-There are} {8-beings} {7-here} {14-of an} {19-{9-only slightly} {13-defiled}} {14-kind}. {4-Please teach} {5-the Dharma} {15-out of compassion for} {18-{16-this} {17-race}}."
},
itipi = {
"{1-อิติปิ} {2-โส} {24-{3-ภะคะวา} {4-อะระหัง} {26-{5-สัมมา}{6-สัมพุทโธ}}}<br/>"..
"{7-วิจจา}{8-จะระณะ}{9-สัมปันโน} {10-สุคะโต} {25-{11-โลกะ}{12-วิทู}} {23-{13-อะนุต}}<br/>"..
"{23-{13-ตะโร} {14-ปุริสะ}{15-ทัมมะ}{16-สาระถิ}} {17-สัทถา} {18-เทวะ}{19-มะนุสสานัง}<br/>"..
"{20-พุทโธ} {3-ภะคะวา}{22-ติ}",
-- cf. data[24].itipi of Module:RQ:pi:Phaya Luang Maha Sena
"{1-itipi} {2-so} {24-{3-bhaɡavā} {4-arahaṃ} {26-{5-sammā}{6-sambuddho}}} {7-vijjā}{8-caraṇa}{9-sampanno} {10-sugato} {25-{11-loka}{12-vidū}} {23-{13-anuttaro} {14-purisa}{15-damma}{16-sārathi}} {17-satthā} {18-deva}{19-manussānaṃ} {20-buddho} {3-bhagavā}{22-ti}.",
"{1-Surely}, {2-he} is a {24-{3-blessed one}, an {4-arahat}, {26-{5-correctly} and {6-completely enlightened}}}, {9-endowed with} {7-knowledge} and {8-good behaviour}, {10-faring well}, {25-{12-knowing} the {11-universe}}, an {13-unequalled} {16-driver} of {14-men} {15-who need taming}, {17-teacher} {19-of} {18-gods} and {19-men}, a {20-buddha}, {3-the Blessed One}."
},
savakkhato = {
"{1-สะวากขาโต} {2-ภะคะวะตา} {3-ธัมโม} {4-สันทิฎบิโก}<br/>{5-{6-อะ}{7-กาลิโก}} {8-เอหิปัสสิโก} {9-โอปะนะยิโก} {10-ปัจจัตตัง}<br/>{11-เวทิตัพโพ} {12-วิญญูหิ}{13-{14-ติ}}",
-- Almost as data[26].svakkhato - but first and last words differ.
"{1-savākkhāto} {2-bhaɡavatā} {3-dhammo} {4-sandiṭṭhiko} {5-{6-a}{7-kāliko}} {8-ehipassiko} {9-opanayiko} {10-paccattaṃ} {11-veditabbo} {12-viññūh}{13-{12-i}{14-ti}}.",
"{3-The dhamma} {1-has been expounded well} {2-by the Exalted One}, it {13-{14-is}} {4-not esoteric}, it is {5-{6-not} {7-timebound}}, it is {8-open to all}, {9-leading to nirvana}, it {11-should be known} {12-by the wise} {10-individually}."
},
supatipanno = {
"{1-{2-สุ}{3-ปะฎืปันโน}} {4-ภะคะวะโต} {31-{5-สาวะกะ}{6-สังโฆ}}<br/>"..
"{7-อุชุ}{3-ปะฎิปันโน} {4-ภะคะวะโต} {31-{5-สาวะกะ}{6-สังโฆ}} {8-{9-ญายะ}<br/>"..
"{3-ปะฎิปันโน}} {4-ภะคะวะโค} {31-{5-สาวะกะ}{6-สังโฆ}} {10-{11-สามีจิ}{3-ปะฎิ<br/>"..
"ปันโน}} {4-ภะคะวะโต} {31-{33-{5-สาวะกะ}{6-{32-สังโฆ}}}} {12-{13-ยะ{14-ทิ}}{14-ทัง}} {15-จัตตาริ}<br/>"..
"{16-{17-ปุริสะ}{18-ยุคานิ}} {19-อัฎฐะ}{20-ปุริสะปุคคะลา} {21-เอสะ} {4-ภะคะวะโต}<br/>"..
"{31-{5-สาวะกะ}{6-สังโฆ}} {22-อาหุเนยโย} {23-ปาหุเนยโย} {24-ทักขิเณยโย}<br/>"..
"{25-{34-อัญชะลี}{35-กะระณีโย}} {26-อะนุตตะรัง} {27-ปุญญั}{28-กเขตตัง}<br/>"..
"{29-โลกัสส{30-า}}{30-ติ}",
-- Differs from Lao example in several minor points.
"{1-{2-su}{3-paṭipanno}} {4-bhagavato} {31-{5-sāvaka}{6-saṅgho}}<br/>" ..
"{7-uju}{3-paṭipanno} {4-bhagavato} {31-{5-sāvaka}{6-saṅgho}} " ..
"{8-{9-ñāya}<br/>{3-paṭipanno}} {4-bhagavato} {31-{5-sāvaka}{6-saṅgho}} " ..
"{10-{11-sāmīci}{3-paṭi<br/>panno}} {4-bhagavato} {31-{33-{5-sāvaka}{6-{32-saṅgho}}}} "..
"{12-{13-yad}{14-idaṃ}} {15-cattāri}<br/>{16-{17-purisa}{18-yugāni}} " ..
"{19-aṭṭha}{20-purisapuggalā} {21-esa} {4-bhagavato}<br/>{31-{5-sāvaka}{6-saṅgho}} "..
"{22-āhuneyyo} {23-pāhuneyyo} {24-dakkhiṇeyyo}<br/>" ..
"{25-{34-añjalī}{35-karaṇīyo}} {26-anuttaraṃ} {27-puñña}{28-kkhettaṃ}<br/>"..
"{29-lokass{30-ā}}{30-ti}.",
"{6-The assembly} {4-of the Fortunate One's} {5-disciples} is "..
"{1-{3-followinɡ the} {2-right} {3-way}}. {6-The assembly} "..
"{4-of the Fortunate One's} {5-disciples} is {3-followinɡ the} "..
"{7-straight} {3-way}. {6-The assembly} {4-of the Fortunate One's} "..
"{5-disciples} is {8-{3-followinɡ the} {9-right} {3-way}}. "..
"{32-The assembly} {4-of the Fortunate One's} {5-disciples} is "..
"{10-{3-followinɡ the} {11-proper} {3-way}} {12-{13-which} is "..
"{14-this}}, {16-the} {15-four} {16-{18-pairs} {17-of persons}}, "..
"the {19-eight} {20-types of individuals} {21-this} {6-assembly} "..
"{4-of the Fortunate One's} {5-disciples} is {22-worthy of gifts}, "..
"{23-worthy of hospitality}, {24-worthy of offerings}, "..
"{25-{35-worthy of} {34-reverential salut}{35-ation}}, the {26-unsurpassed} "..
"{28-field} {27-of merit} {29-for the world}."
}
}
data[7] = {
patipanno = data[6].supatipanno
}
return data