Module:RQ:oty:Mahadevan

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 Old Tamil words. The modules returns a 3-D array (technically a Lua table), indexed as follows:

  1. The outer index is the figure 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:oty:Mahadevan}}) 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:oty:Mahadevan quote|Pl. 65|t|3}}; this example produces the text:

c. 2nd century AD, anonymous author, Pugalur-5, →ISBN; published in Iravatham Mahadevan, Early Tamil Epigraphy: From the Earliest Times to the Sixth Century C.E., Second edition, Volume 1: Tamil-Brāhmī Inscriptions, Chennai: Central Institute of Classical Tamil, 2014, Pl. 65finding:
𑀦𑀮𑀺𑀬𑀊𑀭𑀆𑀧𑀺𑀝𑀷𑀓𑀼𑀶𑀼𑀫𑀫𑀓𑁵
𑀓𑀻𑀭𑀷𑀓𑁄𑀶𑀺𑀘𑁂𑀬𑀺𑀧𑀺𑀢𑀧𑀸𑁵𑀺
naliyaūraāpiṭaṉakuṟumamakaḷa
kīraṉakōṟicēyipitapāḷi
Kīran̠ Kor̠r̠i, the young daughter of Piṭṭan̠ of Nalliyūr, had this hermitage made.

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


local data = {}
data.reference = "RQ:oty:Mahadevan"
local BC2 = "c. 2<sup>nd</sup> century BC"
local AD2 = "c. 2<sup>nd</sup> century AD"

-- Field p1 is the date and p2 is the designation of the inscription in
-- Mahdevan's book.
data['Pl. 1'] = { --p545
	p1 = BC2,
	p2 = "Mangulam-1",
	t = {
		"{1-𑀓𑀸 𑀡𑀺𑀬}{2-𑀦𑀸𑀦𑀢𑀸𑀅}{3-𑀲𑀺𑀭𑀺𑀬𑀈}{4-𑀓𑀼"..
		"𑀯𑀅𑀷𑀓𑁂}{5-𑀥𑀫𑀫𑀸𑀫}"..
		"{6-𑀈𑀢𑀢𑀸𑀅}{7-𑀦𑁂𑀝𑀼𑀜𑀘𑀸𑁵𑀺𑀬𑀸𑀷}{8-𑀧𑀸𑀡𑀸"..
		"𑀅𑀷}{9-𑀓𑀸𑀝𑀸𑀮𑀅𑀷}{10-𑀯𑀸𑁵𑀼𑀢𑀢𑀺𑀬}"..
		"{11-𑀓𑁄𑀝𑀝𑀽𑀧𑀺𑀢𑀢𑀸𑀅}{12-𑀧𑀸𑁵𑀺𑀈𑀬}",
		"",
		"",
	},
}

data['Pl. 65'] = { -- Number 65, on p626
	p1 = AD2,
	p2 = "Pugalur-5",
	t = {
		"{1-{101-𑀦𑀮𑀺𑀬}{102-𑀊𑀭}𑀆}{2-𑀧𑀺𑀝𑀷}{3-{301-𑀓𑀼𑀶𑀼𑀫}{302-𑀫𑀓𑁵}}"..
		"<br/>{4-𑀓𑀻𑀭𑀷𑀓𑁄𑀶𑀺}{5-𑀘𑁂𑀬𑀺𑀧𑀺𑀢}{6-𑀧𑀸𑁵𑀺}",
		"",
		"{4-Kīran̠ Kor̠r̠i}, {3-{302-the} {301-young} {302-daughter}} {2-of Piṭṭan̠} "..
		" {1-of {101-Nalliy}{102-ūr}}, {5-had} {6-this hermitage} {5-made}.",
	},
}

data['Pl. 66'] = { -- Number 66, on p627
	p1 = AD2,
	p2 = "Pugalur-6",
	t = {
		"{1-{101-𑀦𑀮𑀮𑀺𑀬}{102-𑀊𑀭}𑀆}{2-{201-𑀧𑀺𑀝}{202-𑀦𑀢𑁃}}{3-𑀫𑀓𑁵}"..
		"{4-𑀓𑀻𑀭𑀷𑀓𑁄𑀶𑀶𑀺}{5-𑀅𑀢𑀺𑀝𑀸𑀷𑀫}",
		"",
		"{5-This seat} is from {4-Kīran̠ Kor̠r̠i}, {3-daughter} {2-of {201-Piṭṭ}{202-antai}} "..
		"{1-of {101-Nalliy}{102-ūr}}.",
	},
	p1 = "c. 2<sup>nd</sup> century AD",
}

return data