Module:RQ:pi:Sai Kam Mong/passages

Wiktionary වෙතින්

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:

  1. The outer index is the page number.
  2. 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.
  3. 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:Sai Kam Mong}}) 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 Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value).; this example produces the text: Lua දෝෂය in Module:languages at line 690: attempt to index local 'sc' (a nil value).

There is no advantage in including a passage for the sake of one word; one can use {{RQ:pi:Sai Kam Mong}} directly for that purpose.


data = {}
data["reference"] = "RQ:pi:Sai Kam Mong"
data[241] = {
	["namo"] = {
		"{1-ᨶᨾᩮᩣ}{2-ᨲᩔ} {3-ᨽᨣᩅᨲᩮᩣ} {4-ᩋᩁᩉᨲᩮᩣ} {7-{5-ᩈᨾᩜᩣ}{6-ᩈᨾ᩠ᨻᩩᨴ᩠ᨵᩔ}}",
		"{1-namo}{2-tassa} {3-bhagavato} {4-arahato} {7-{5-sammā}{6-sambuddhassa}}",
		"{1-Honour} {2-to the} {3-Blessed One}, {4-the Exalted One}, {7-the {5-fully} {6-Enlightened One}}"
	},
	["namo_alt"] = {
		"{8-{1-ᨶᨾᩮᩣ}{2-ᨲᩔ}} {3-ᨽᨣᩅᨲᩮᩣ} {4-ᩋᩁᩉᨲᩮᩣ} {7-{5-ᩈᨾᩜᩣ}{6-ᩈᨾ᩠ᨻᩩᨴ᩠ᨵᩔ}}",
		"{8-{1-namo}{2-tassa}} {3-bhagavato} {4-arahato} {7-{5-sammā}{6-sambuddhassa}}",
		"{8-{1-Honour} {2-to him}}, {3-the Blessed One}, {4-the Exalted One}, {7-the {5-fully} {6-Enlightened One}}"
	},
    ["yam"] = {
		"ᨿᩴᨾᩘᨣᩃᩴ{3-ᨴ᩠ᩅᩤ{4-ᨴᩈᩉᩥ}} {5-ᨧᩥᨶ᩠ᨲᨿᩥᩴᩈᩩ} {6-ᩈᨴᩮᩅᨠᩣ}<br>{7-ᩈᩮᩣᨲ᩠ᨳᩣᨶᩴ}{8-ᨶᩣᨵᩥᨣᨧ᩠ᨨᨶ᩠ᨲᩥ} ᪨ {9-{10-ᩋᨭᩛ}{11-ᨲᩥᩴᩈ{12-ᨬ᩠ᨧ}}}ᨾᩘᨣᩃᩴ",
		"yaṃ maṅgalaṃ {3-dvā{4-dasahi}} {5-cintayiṃsu} {6-sadevakā}<br/>{7-sotthānaṃ} n{8-ādhigacchanti}   {9-{10-aṭṭha}{11-tiṃsañ}{12-ca}} maṅgalaṃ",
		"For {3-{4-twelve}} years {6-[men] along with devas} {5-pondered}, “What is welfare?”. But {8-they did} not {8-arrive} at the {9-{10-eight} {12-and} {11-thirty}} welfares that bring {7-happiness}."
	},
	["desitam"] = {
		"{1-ᨴᩮᩈᩥᨲᩴ} ᨴᩮᩣ* ᨴᩮᩅᩮᨶ {2-{3-ᩈᨻᩛ}ᨷᩤᨷ}{4-ᩅᩥᨶᩣᩈᨶᩴ} {3-ᩈᨻᩛ}{5-ᩃᩮᩣᨠ} ᩉᩥᨲᨲ᩠ᨳᩣᨿ ᨾᩘᨣᩃᩴ ᨲᩴ {6-ᨽᨱᩣᨾᩉᩮ}<br>*Should be ᨴᩮᩅ, as confirmed by phonetic transcription,and is treated as such below.",
        "{1-desitaṃ} devadevena {2-{3-sabba}pāpa} {4-vināsanaṃ} {3-sabba}{5-loka}-hitatthāya maṅgalaṃ taṃ {6-bhaṇāmahe}",
		"The Lord of the devas {1-taught} {4-that which destroys} {2-{3-all} evil}, for the benefit of the {3-whole} {5-world}: {6-let us recite} those blessings."
	},
	["ekam"] = { -- Text starts "evaṃ me sutaṃ", which is separated and, by order, not used.
		"{1-ᩑᨠᩴ} {2-ᩈᨾᨿᩴ} {3-ᨽᨣᩅᩤ} {4-ᩈᩣᩅ&shy;ᨲ᩠ᨳᩦᨿᩴ}{6-ᩅᩥᩉᩁᨲᩥ}{7-{8-ᨩᩮᨲ}{9-ᩅᨶᩮ}}{10-ᩋᨶᩣᨳᨷᩥᨱ᩠ᨯᩥᨠᩈᩞ} {11-ᩋᩣᩁᩣᨾᩮ}",
		"{1-ekaṃ} {2-samayaṃ} {3-bhagavā} {4-sāva&shy;tthīyaṃ} {6-viharati} {7-{8-jeta}{9-vane}} {10-anāthapiṇḍikassa} {11-ārāme}",
		"{1-{2-On}} {1-one} {2-occasion}, {3-the Blessed One} {6-was staying} {4-in Sāvatthī}, "..
			"{7-{9-at} {8-Jeta's} {9-Grove}}, {10-Anāthapiṇḍika's} {11-park}."
	},
	["atha"] = { -- 'Word' 19 selects words 5 and 17 - abhikkanta.
		"{20-{1-ᩋᨳ}{2-ᨡᩮᩣ}}{3-ᩋᨬ᩠ᨬᨲᩁᩣ}{4-ᨴᩮᩅᨲᩣ} {19-{5-ᩋᨽᩥ{6-{7-ᨠ᩠ᨠᨶ᩠ᨲᩣᨿ}}}}{8-ᩁᨲ᩠ᨲᩥᨿᩣ}{9-{19-{17-ᩋᨽᩥ{10-{11-ᨠ᩠ᨠᨶ᩠ᨲ}}}}{18-ᩅᨱ᩠ᨱᩣ}}{12-ᨠᩮ&shy;ᩅᩃᨠᨷ᩠ᨷᩴ}} {13-{14-ᨩᩮᨲ}{15-ᩅᨶᩴ}} {16-ᩒᨽᩣᩈᩮᨲ᩠ᩅᩣ}",
		"{20-{1-atha} {2-kho}} {3-aññatarā} {4-devatā} {19-{5-abhi{6-k{7-kantāya}}}} {8-rattiyā} {9-{19-{17-abhi{10-k{11-kanta}}}}{18-vaṇṇā}} {12-kevalakappaṃ} {13-{14-jeta}{15-vanaṃ}} {16-obhāsetvā}",
		"{20-{1-And then} {2-indeed}} {19-{5-{6-{7-far}} into}} {8-the night} {3-a certain} {4-deity}, {16-having made} {12-all of} {13-{14-Jeta's} {15-grove}} {16-shine} {9-{18-from his} {19-{17-sur{10-{11-passing}}}} {18-appearance}},..."
	}, -- Or is Word 9 a bahuvrihi describing the deity?  The missing part of the passage establishes the deity's gender.
       -- For 6/7 and 10/11, the verb _kamati_ reduplicates its first letter after a prefix.

-- The following are development test cases.  They are probably not needed after September 2018, and have never been referenced under the names
-- now shown.
	["namo_ok"] = {
		"-1{ᨶᨾᩮᩣ}-2{ᨲᩔ} -3{ᨽᨣᩅᨲᩮᩣ} -4{ᩋᩁᩉᨲᩮᩣ} -7{-5{ᩈᨾᩜᩣ}-6{ᩈᨾ᩠ᨻᩩᨴ᩠ᨵᩔ}}",
		"-1{namo} -2{tassa} -3{bhagavato} -4{arahato} -7{-5{sammā}-6{sambuddhassa}}",
		"-1{Honour} -2{to the} -3{Blessed One}, -4{the Exalted One}, -7{the -5{fully} -6{Enlightened One}}"
	}, 
	["namo_raw"] = {
		"ᨶᨾᩮᩣᨲᩔ ᨽᨣᩅᨲᩮᩣ ᩋᩁᩉᨲᩮᩣ ᩈᨾᩜᩣᩈᨾ᩠ᨻᩩᨴ᩠ᨵᩔ",
		"namo tassa bhagavato arahato sammāsambuddhassa",
		"Honour to the Blessed One, the Exalted One, the fully Enlightened One"
	} 
}

data[263] = {
	namo = {
		"{8-{1-နမော} {2-တဿ}} {3-ဘဂဝတော} {4-အရဟတော} {7-{5-သမ္မာ}{6-သမ္ဗုဒ္ဓဿ}}။",
		"{8-{1-namo} {2-tassa}} {3-bhagavato} {4-arahato} {7-{5-sammā}{6-sambuddhassa}}",
	},
	buddha = {
		"{1-{2-ဗုဒ္ဓ} {3-ဂုဏော}} {4-{5-အ{6-န}}{6-န္တော}}၊",
		"{1-{2-buddha} {3-ɡuṇo}} {4-{5-an}{6-anto}}.",
		"The {1-{3-virtue} {2-of the Buddha}} is {4-{6-end}{5-less}}."
	},
	dhamma = {
		"{1-{2-ဓမ္မ} {3-ဂုဏော}} {4-{5-အ{6-န}}{6-န္တော}}၊",
		"{1-{2-dhamma} {3-ɡuṇo}} {4-{5-an}{6-anto}}.",
		"The {1-{3-virtue} {2-of the Law}} is {4-{6-end}{5-less}}."
	},
	sangha = {
		"{1-{2-သံဃ} {3-ဂုဏော}} {4-{5-အ{6-န}}{6-န္တော}}၊",
		"{1-{2-saṃɡha} {3-ɡuṇo}} {4-{5-an}{6-anto}}.",
		"The {1-{3-virtue {2-of the order}} is {4-{6-end}{5-less}}."
	},
	matapitu = {
		"{1-{2-{7-မာတာ}{8-ပိတု}} {3-ဂုဏော}} {4-{5-အ{6-န}}{6-န္တော}}၊",
		"{1-{2-{7-mātā}{8-pitu}} {3-ɡuṇo}} {4-{5-an}{6-anto}}.",
		"The {1-{3-gratitude} {2-{8-towards} one's {7-mother and} {8-father}} is {4-{6-end}{5-less}}."
	},
	acariya = {
		"{1-{2-အာစရိယ} {3-ဂုဏော}} {4-{5-အ{6-န}}{6-န္တော}}၊",
		"{1-{2-ācariya} {3-ɡuṇo}} {4-{5-an}{6-anto}}.",
		"The {1-{3-gratitude} {2-towards the Teachers}} is {4-{6-end}{5-less}}."
	},
}

data[263].namo[3] = data[241].namo_alt[3];
return data
"https://si.wiktionary.org/w/index.php?title=Module:RQ:pi:Sai_Kam_Mong/passages&oldid=43636" වෙතින් සම්ප්‍රවේශනය කෙරිණි