Module:RQ:okz:K1237

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 Khmer 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:okz: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:okz:K1237 quote|9|man1|60}}; this example produces the text:

900-1100 AD; copied later, Arlo Griffiths, Kunthea Chhom, “A problematic inscription (K.1237)”, in Udaya: Journal of Khmer Studies[1], volume 14 (PDF), Yosothor, published 2019, halshs-02168837, page 9:
មន៑វ្រះកម្រតេង៑អញ៑ឝិវលីង្គអា
យ៑រាំបិលេង៑សាកនុវ្រះសេតានទិយបុន្យនៃវ្រះធម្ម៌
ប្រមាន៑ឝ្រិន្ម្របុរ
man· vraḥ kamrateṅ· ʼañ· śivalīṅga ʼā-
y· rāṁ pi leṅ· sāka nu vraḥ setā nadiya punya nai vraḥ dharmma
pramān· śrindrapura
that my most high lord the Śivaliṅga at Rāṁ become the property of the lineage together with the god of Setā Nadī, pious works of the Holy Foundation of the province of Śrīndrapura;

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


data = {}
data.reference = "RQ:okz:K1237"

data[9] = {}
data[9].saka={}
data[9].saka[1] = -- 1a
"᪥៕{18-៧៧៩}{10-ឝក}{11-ឯកាទឝី}{12-រោច៑}{13-មាឃ}"
data[9].saka[2] =
"⁕॥ {18-779} {10-śaka} {11-ʼekādaś(ī)} {12-roc}· {13-māgha}"
data[9].saka[3] = "779 {10-śaka}, {11-eleventh [[tithi]]} of the {12-waning fortnight} of {13-[[Magha]]}."

text={}
xlit={}
xlat={}
data[9].nu = {}
table.insert(text, --1b
"{14-{202-នុ}}{15-ម្រតាញ៑}{16-ឝ្រិ}{17-ភូបេន្ទ្រលិ<br/>")
table.insert(xlit, "{14-{202-nu}} {15-mratāñ}· {16-śri} {17-bhūpendrasi-<br/>")
table.insert(xlat, "{14-{202-At that time}}, {15-Lord} {16-Śrī} {17-Bhūpendrasiṅha} ")
table.insert(text, -- 2
"ង្ហ}{14-{203-នុ}}{21-ស្តេង៑}{22-អញ៑}{23-អាចាយ្យ៌}{24-អទ្ធ្យា}{25-បវ្រះ}")
table.insert(xlit,
"ṅha} {14-{203-nu}} {21-steṅ·} {22-ʼañ·} {23-ʼācāryya} {24-ʼaddhyāpa} {25-vraḥ} ")
table.insert(xlat,
"{14-{203-and}} {21-Steṅ} {22-’Añ}, {23-teacher} and {24-preceptor} of the {25-royal} ")
table.insert(text, "{26-លំវាង៑}{27-បង្គំ}{28-ថ្ប្វង៑}{29-និ<br/>")
table.insert(xlit, "{26-laṁvāṅ·} {27-paṅgaṁ} {28-thpvaṅ·} {29-ni-<br/>")
table.insert(xlat, "{26-precincts} {27-with bowed} {28-head} ")
table.insert(text, -- 3
"វេទន}{30-ត}{31-{32-ធូលី}}{33-វ្រះ}{34-បាទ}{31-{35-ធូលិ}}{36-ជេង៑}{33-វ្រះ}")
table.insert(text, "{37-កម្រតេង៑}{22-អញ៑}{30-ត}<br/>")
table.insert(xlit,
"vedana} {30-ta} {31-{32-dhūlī}} {33-vraḥ} {34-pāda} {31-{35-dhūli}} {36-jeṅ·} {33-vraḥ} ")
table.insert(xlit, "{37-kamrateṅ·} {22-ʼañ·} {30-ta}<br/>")
table.insert(xlat, "{29-petitioned} {30-as} {31-{32-the dust beneath}} {33-his noble} {34-feet}, ")
table.insert(xlat, "{31-{35-the dust beneath}} {36-the feet} of {22-my} {33-most} ")
table.insert(xlat, "{37-high lord}, {30-who} ")
table.insert(text, -- 4a
"{40-ស្តាច៑}{41-ទៅ}{42-បរមេឝ្វារ}")
table.insert(xlit,
"{40-s(t)āc}· {41-dau} {42-parameśvara}")
table.insert(xlat, "{40-was graciously pleased} {41-to go to} {42-Parameśvara (Jayavarman II)}:")
data[9].nu[1] = table.concat(text);
data[9].nu[2] = table.concat(xlit);
data[9].nu[3] = table.concat(xlat);

text={}
xlit={}
xlat={}
data[9].man1={}
table.insert(text, -- 4b
"{43-មន៑}{33-វ្រះ}{37-កម្រតេង៑}{22-អញ៑}{44-ឝិវលីង្}{45-គអា<br/>")
table.insert(xlit,
"{43-man}· {33-vraḥ} {37-kamrateṅ·} {22-ʼañ·} {44-śivalīṅga} {45-ʼā-}<br/>")
table.insert(xlat,
"{43-that} {22-my} {33-most} {37-high lord} {44-the Śivaliṅga} {45-at} ")
table.insert(text, -- 5a
"យ៑}{50-រាំ}{203-{51-បិ}{52-លេង៑}{53-សាក}}{14-នុ}{33-វ្រះ}{204-{54-សេតា}{55-នទិយ}}")
table.insert(xlit,
"y·} {50-rāṁ} {203-{51-pi} {52-leṅ·} {53-sāka}} {14-nu} {33-vraḥ} {204-{54-setā} {55-nadiya}} ")
table.insert(xlat,
"{50-Rāṁ} {203-become the property of {53-the lineage}} {14-together with} ")
table.insert(xlat, "{33-the god of} {204-Setā Nadī}, ")
table.insert(text, -- 5b
"{56-បុន្យ}{57-នៃ}{33-វ្រះ}{58-ធម្ម៌}<br/>")
table.insert(xlit,
"{56-punya} {57-nai} {33-vraḥ} {58-dharmma}<br/>")
table.insert(xlat, "{56-pious works} {57-of} the {33-Holy} {58-Foundation} ")
table.insert(text, -- 6a
"{60-ប្រមាន៑}{61-ឝ្រិន្ម្របុរ}")
table.insert(xlit, "{60-pramān·} {61-śrindrapura}")
table.insert(xlat, "of the {60-province} of {61-Śrīndrapura};")
data[9].man1[1] = table.concat(text);
data[9].man1[2] = table.concat(xlit);
data[9].man1[3] = table.concat(xlat);

text={}
xlit={}
xlat={}
data[9].man2 = {}
table.insert(text, -- 6a
"{43-មន៑}{205-{31-{32-ធូលី}}{33-វ្រះ}{34-បាទ}{31-{35-ធូលិ}}{36-ជេង៑}}{206-{33-វ្រះ}{37-កម្រតេ<br/>")
table.insert(xlit,
"{43-man·} {205-{31-{32-dhūlī}} {33-vraḥ} {34-pāda} {31-{35-dhūli}} {36-jeṅ·}} {206-{33-vraḥ} {37-kamrate-<br/>")
table.insert(xlat, "{43-that} {205-His Majesty} {206-the King} ")
table.insert(text, -- 7
"ង៑}{22-អញ៑}}{30-ត}{40-ស្តាច៑}{41-ទៅ}{42-បរមេឝ្វរ}{70-ឧន្មិល}{71-ជ្វន៑}{72-ខ្ញុំ}{73-វណ្ណ៌}{74-តំវោន៑}{75-មូល}<br/>")
table.insert(xlit,
"ṅ·} {22-ʼañ·}} {30-ta} {40-stāc·} {41-dau} {42-parameśvara} {70-ʼunmila} {71-jvan·} {72-khñuṁ} {73-varṇṇa} {74-taṁvon·} {75-mūla}<br/>")
table.insert(xlat, "{30-who} {40-was graciously pleased to} {41-go to} {42-Parameśvara} {70-for the dedication} and ")
table.insert(xlat, "{71-present} {72-slaves}: {80-one} {75-foreman} from {73-the society} of {74-the Tampuon} ")
table.insert(text, -- 8a
"{80-ម្វាយ}{81-ឝរាស}{75-មូល}{80-ម្វាយ}")
table.insert(xlit, "{80-mvāya} {81-śarāsa} {75-mūla} {80-mvāya}")
table.insert(xlat, "and {80-one} {75-foreman} from {81-the archers})")
data[9].man2[1] = table.concat(text);
data[9].man2[2] = table.concat(xlit);
data[9].man2[3] = table.concat(xlat);

text={}
xlit={}
xlat={}
data[9].vrah = {}
table.insert(text, -- 8b
"{33-វ្រះ}{34-បាទ}{30-ត}{40-ស្តាច៑}{41-មៅ}{82-វីឞ្ណុលោក}{83-ដ្វេ<br/>")
table.insert(xlit,
"{33-vraḥ} {34-pāda} {30-ta} {40-stāc}· {41-dau} {82-{84-vīṣṇuloka}} {83-thve}<br/>")
table.insert(text, -- 9
"{90-បូជា}{91-ឱយ៑}{92-បិង៑}{33-វ្រះ}{93-កំវង៑}{94-ខ្ណរ៑}{93-កំវង៑}{96-តទិង៑}{97-មុខទ្វារ}{98-កវង៑}{96-តទិង៑}<br/>")
table.insert(xlit,
"{90-pūjā} {91-ʼoy·} {92-piṅ·} {33-vraḥ} {93-kaṁvaṅ·} {94-khṇar·} {93-kaṁvaṅ·} {96-tadiṅ·} {97-mukhadvāra} {98-kavaṅ·} {96-tadiṅ·}<br/>")
table.insert(text, -- 10a
"{100-ត្រាប៑}{101-{102-ត៌េយ៑}}{14-នុ}{103-វ្រៃ}{104-ទីវស}{100-ត្រាប៑}{101-{102-ត៌េយ៑}}{103-ឧក្ក}")
table.insert(xlit,
"{100-trāp·} {101-{102-toy·}} {14-nu} {103-vrai} {104-dīvasa} {100-trāp·} {101-{102-toy·}} {103-ʼukka}")
data[9].vrah[1] = table.concat(text);
data[9].vrah[2] = table.concat(xlit);
data[9].vrah[3] = table.concat(xlat);

text={}
xlit={}
data[9].pre = {}
table.insert(text, -- 10b
"{104-នា}{105-តន្ទុល}</br>")
table.insert(xlit,
"{104-nā} {105-tandula}<br/>")
table.insert(text, -- 11
"{110-ប្រេ}{111-ឆ្កោប៑}{112-ជេ}{113-I}{114-ប្រតិទិន}{115-វួំ}{116-តិ}{110-ប្រេ}{117-សុតន្ត្រ}{30-ត}{118-{200-ខ្ល៌េញ៑}}{119-ស្រូ}{118-{201-ខ្លោ<br/>")
table.insert(xlit,
"{110-pre} {111-chkop·} {112-je} {113-I} {114-pratidina} {115-vvaṁ} {116-ti} {110-pre} {117-sutantra} {30-ta} {118-{200-khloñ·}} {119-srū} {118-{201-khlo-<br/>")
table.insert(text, -- 12
"ញ៑}}{120-វិឞយ}{118-{200-ខ្ល៌េញ៑}}{121-កន្ទ្វារ}{103-វ្រៃ}{118-{200-ខ្ល៌េញ៑}}{122-វ្រិហ}{123-បយ្យ៌ង៑}{124-វ្វំ}{125-ជា}{126-បី}{127-មាន៑}<br/>")
table.insert(xlit,
"ñ·}} {120-viṣaya} {118-{200-khloñ·} {121-kandvāra} {103-vrai} {118-{200-khloñ·}} {122-vriha} {123-paryyaṅ·} {124-vvaṁ} {125-jā} {126-pī} {127-mān·}<br/>")
table.insert(text, -- 13a
"{130-រាជកាយ្យ៌}{83-ថ្វេ}{131-ទេវកាយ្យ៌}{132-គុស៑}")
table.insert(xlit,
"{130-rājakāryya} {83-thve} {131-devakāryya} {132-gus·}")
data[9].pre[1] = table.concat(text);
data[9].pre[2] = table.concat(xlit);
data[9].pre[3] = table.concat(xlat);

text={}
xlit={}
data[9].kalpana = {}
table.insert(text, -- 13b
"{134-កល្បនា}{30-ត}{135-ភគវន៑}{136-បុរោហិត}</br>")
table.insert(xlit,
"{134-kalpanā} {30-ta} {135-bhagavan}· {136-purohita}<br/>")
table.insert(text, -- 14a
"{140-ឆ្មាំ}{141-ថ្ន្យក៑}{113-I}{142-តប៑}{143-ហត៑}{144-យោ}{145-II}")
table.insert(xlit,
"{140-chmāṁ} {141-thnyak·} {113-I} {142-tap·} {143-hat·} {144-yo} {145-II}")
data[9].kalpana[1] = table.concat(text);
data[9].kalpana[2] = table.concat(xlit);
data[9].kalpana[3] = table.concat(xlat);

text={}
xlit={}
data[9].neh = {}
table.insert(text, -- 14b
"{146-នេះ}{147-គិ}{148-{149-រោះ}}{134-កល្បនា}{33-វ្រះ}{34-បាទ}{30-ត}{40-ស្តា</br>")
table.insert(xlit,
"{146-neḥ} {147-gi} {148-roḥ} {134-kalpanā} {33-vraḥ} {34-pāda} {30-ta} {40-stā-<br/>")
table.insert(text, -- 15a
"ច៑}{41-ទៅ}{42-បរមេឝ្វរ}{14-នុ}{33-វ្រះ}{34-បាទ}{30-ត}{40-ស្តាច៑}")
table.insert(xlit,
"c}· {41-dau} {42-parameśvara} {14-nu} {33-vraḥ} {34-pāda} {30-ta} {40-stāc·} ")
table.insert(text, "{41-ទៅ}{82-{150-វិឞ្ណុលោក}}")
table.insert(xlit, "{41-dau} {82-{150-viṣṇuloka}}")
data[9].neh[1] = table.concat(text);
data[9].neh[2] = table.concat(xlit);
data[9].neh[3] = table.concat(xlat);

text={}
xlit={}
data[9].vrah2 = {}
table.insert(text, -- 15b
"{33-វ្រះ}{34-បាទ}<br/>")
table.insert(xlit,
"{33-vraḥ} {34-pāda}<br/>")
table.insert(text, -- 16
"{30-ត}{40-ស្តាច៑}{41-ទៅ}{160-បរមឝិវល៌េក}{83-ថ្វេ}{90-បូជា}{110-ប្រេ}")
table.insert(xlit,
"{30-ta} {40-stāc·} {41-dau} {160-paramaśivaloka} {83-thve} {90-pūjā} {110-pre} ")
table.insert(text, "{161-តំគល៑}{134-កល្បនា}{148-រោះ}<br/>")
table.insert(xlit, "{161-taṁgal·} {134-(k)alpanā} {148-{162-roḥ-<br/>")
table.insert(text, -- 17a
"ហ}}{170-ន៌េះហ}{103-ឧក្ក}{43-មន៑}")
table.insert(xlit,
"ha}} {170-noḥha} {103-ʼukka} • {43-man·}")
data[9].vrah2[1] = table.concat(text);
data[9].vrah2[2] = table.concat(xlit);
data[9].vrah2[3] = table.concat(xlit);

text={}
xlit={}
data[9].tamvrac = {}
table.insert(text, -- 17b
"{171-តម្អ្រច៑}{119-ស្រូ}{172-និវេទន}{51-បិ}{173-ស្វំ}{93-កំវង៑}{104-នា}{174-ផ្ទុក៑}<br/>")
table.insert(xlit,
"{171-tamvrac·} {119-srū} {172-nivedana} {51-pi} {173-svaṁ} {93-kaṁvaṅ·} ")
table.insert(xlit, "{104-nā} {174-phduk·}<br/>")
table.insert(text, -- 18
"{180-ភាគ}{91-ឱយ៑}{181-ថ្មា}{33-វ្រះ}{182-ចន្ទ៌េង}{91-ឱយ៑}{52-លេង៑}")
table.insert(xlit,
"{180-bhāga} {91-ʼoy·} {181-thmā} {33-vraḥ} {182-candoṅa} {91-ʼoy·} {52-leṅ·} ")
table.insert(text, "{127-មាន៑}{101-{184-តោយ៑}}{185-ចុញ៑}{186-ទ្វក}<br/>")
table.insert(xlit, "{127-mān·} {101-{184-toy·}} {185-cuñ·} {186-dvaka}<br/>")
table.insert(text, -- 19
"{132-គុស៑}{190-៰}")
table.insert(xlit,
"{132-gus}· {190-O}")
-- overflow 200-209 (201 used)
data[9].tamvrac[1] = table.concat(text);
data[9].tamvrac[2] = table.concat(xlit);
data[9].tamvrac[3] = table.concat(xlit);

data[9].all = {}
data[9].all[1] = "In work"
data[9].all[2] = "In work"
data[9].all[3] = "In work"

return data