Module:RQ:pi:U19143

From Wiktionary, the free dictionary
Jump to navigation Jump to search

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:U19143}}) 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:U19143 quote|2|tatrayam|7}}; this example produces the text:

c. 450 AD, Buddhaghosa, Visuddhimagga; extract republished as Zachary Scheuren, Proposal to encode CHAKMA LETTER VAA for Pali[1] (PDF), 2019, page 2:
๐‘„–๐‘„–๐‘„ณ๐‘„ข๐‘„‚๐‘„ ๐‘„ ๐‘…‡๐‘„Œ๐‘„š๐‘„–๐‘„ด๐‘„—๐‘„ฎ๐‘… ๐‘„Œ๐‘„ข๐‘„š๐‘„ด๐‘„–๐‘„จ ๐‘„–๐‘„ฅ๐‘„ด๐‘„Ÿ๐‘„จ๐‘„ ๐‘„ฅ๐‘„ฉ๐‘„ฃ๐‘„ฌ๐‘„ฅ๐‘„ช ๐‘„›๐‘„ข๐‘„จ๐‘„›๐‘„ซ๐‘„ข๐‘„‡๐‘„‚๐‘„ข๐‘„จ๐‘„–๐‘„‚๐‘„  ๐‘„›๐‘…‡๐‘„–๐‘„ด๐‘„–๐‘„š๐‘„ด๐‘„–๐‘„ฉ๐‘„–๐‘„จ ๐‘„Œ๐‘„‚๐‘„ข๐‘„จ๐‘„–๐‘„ด๐‘„–๐‘„๐‘… ๐‘…‡๐‘„‚๐‘„ข๐‘„จ๐‘„–๐‘„ ๐‘„–๐‘„‚๐‘„ ๐‘„š๐‘„ด๐‘„–๐‘„จ ๐‘„ข๐‘„‡๐‘„ด๐‘„ˆ๐‘„š๐‘„ด๐‘„–๐‘„จ ๐‘„–๐‘„ฌ๐‘„š๐‘„‚๐‘„–๐‘„จ ๐‘…‡๐‘„‚๐‘„ข๐‘„จ๐‘„–๐‘„ด๐‘„–๐‘„๐‘…
tatrฤyaแนƒ vacanattho. caranti tasmiแนƒ sฤซlesu paripลซrakฤritฤya pavattantฤซti cฤrittaแนƒ. vฤritaแนƒ tฤyanti rakkhanti tenฤti vฤrittaแนƒ.
Here, this is the meaning of the words: cฤritta: "They behave within that, they proceed fulfilling the virtues"; vฤritta: "They protect against what is avoided, they guard against it"

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


local data = {}
data.reference = "RQ:pi:U19143"

data[2] = {
-- Words 11 and 15 are mentions, not usages!
tatrayam = {
	"{1-๐‘„–{2-๐‘„–๐‘„ณ๐‘„ข๐‘„‚}}{2-๐‘„ ๐‘„} {3-{16-๐‘…‡}๐‘„Œ{4-๐‘„š}}{4-๐‘„–๐‘„ด๐‘„—๐‘„ฎ}๐‘… "..
		"{5-๐‘„Œ๐‘„ข๐‘„š๐‘„ด๐‘„–๐‘„จ} {6-๐‘„–๐‘„ฅ๐‘„ด๐‘„Ÿ๐‘„จ๐‘„} {7-๐‘„ฅ๐‘„ฉ๐‘„ฃ๐‘„ฌ๐‘„ฅ๐‘„ช} {8-๐‘„›๐‘„ข๐‘„จ๐‘„›๐‘„ซ๐‘„ข๐‘„‡๐‘„‚๐‘„ข๐‘„จ๐‘„–๐‘„‚๐‘„ } {9-๐‘„›{16-๐‘…‡}๐‘„–๐‘„ด๐‘„–๐‘„š๐‘„ด{10-๐‘„–๐‘„ฉ}}{10-๐‘„–๐‘„จ} {11-๐‘„Œ๐‘„‚๐‘„ข๐‘„จ๐‘„–๐‘„ด๐‘„–๐‘„}๐‘… "..
		"{12-{16-๐‘…‡๐‘„‚}๐‘„ข๐‘„จ๐‘„–๐‘„} {13-๐‘„–๐‘„‚๐‘„ ๐‘„š๐‘„ด๐‘„–๐‘„จ} {14-๐‘„ข๐‘„‡๐‘„ด๐‘„ˆ๐‘„š๐‘„ด๐‘„–๐‘„จ} {6-๐‘„–๐‘„ฌ๐‘„š{10-๐‘„‚}}{10-๐‘„–๐‘„จ} {15-{16-๐‘…‡๐‘„‚}๐‘„ข๐‘„จ๐‘„–๐‘„ด๐‘„–๐‘„๐‘…}",
   	"{1-tatr{2-ฤ}}{2-yaแนƒ} {3-{16-va}can{4-a}}{4-ttho}. "..
	    "{5-caranti} {6-tasmiแนƒ} {7-sฤซlesu} {8-paripลซrakฤritฤya} {9-pa{16-va}ttant{10-ฤซ}}{10-ti} "..
	    "{11-cฤrittaแนƒ}. "..
		"{12-{16-v}ฤritaแนƒ} {13-tฤyanti} {14-rakkhanti} {6-ten{10-ฤ}}{10-ti} {15-{16-v}ฤrittaแนƒ}.",
    "{1-Here}, {2-this} is {4-the meaning} {16-}{3-of the words}: "..
    	'{11-cฤritta}: {10-"}{5-They behave} {6-within that}, {9-they proceed} {8-fulfilling} '..
    	'{7-the virtues}{10-"}; '..
		'{15-vฤritta}: {10-"}{13-They protect} against {12-what is avoided}, '..
		'{14-they guard against} {6-it}{10-"}'
},
}

return data