Module:RQ:nod:NT

-- English translations from World English Bible https://ebible.org/eng-web/engweb_p_color6x9.pdf -- with adaptions to match the Northern Thai better.

data = {lang = 'nod', reference='RQ:nod:NT'} -- Exceptionally, 4th line of passages with names ending _T may be the Lanna script form. -- It will then be converted to the Lanna script form of the passage with corresponding -- name ending in _L, and the 5th line if any will be its transliteration.

data[4] = { c1v21_T = { p1 = "Matthew i.21", -- Unusable for Word 25. "{1-มารีย์} {2-จะ} {26-{3-เกิด}} {4-ลูก} {5-ป้อจาย} ".. "{6-เมื่อ} {27-{3-เกิด}} {7-มา} {8-แล้ว} {28-{9-หื้อ}} {10-ตั้ง}".. " {11-จื้อ} {12-ว่า} ‘{13-เยซู}’ {15-{14-ย้อน} {12-ว่า}}".. " {16-ต้าน} {2-จะ} {20-จ้วย} {18-คน} {19-ของ} ".. "{16-ต้าน} {21-{9-หื้อ}} {22-รอด} {23-ป๊น} {24-บาป} {25-โต้ษ}", "{1-maa-rii} {2-cà} {26-{3-kə̀ət}} {4-lûuk} {5-pɔ̂ɔ-caai}. ".. "{6-mʉ̂ʉa} {27-{3-kəət}} {7-maa} {8-lɛ́ɛo}, {28-{9-hʉ̂ʉ}} {10-tâŋ} ".. "{11-cʉ̂ʉ} {12-wâa} '{13-yeesuu}' {15-{14-yɔ̂ɔn} {12-wâa}} ".. "{16-tâan} {2-cà} {20-cûuai} {18-khon} {19-khɔ̂ɔŋ} {16-tâan} ".. "{21-{9-hʉ̂ʉ}} {22-rɔ̂ɔt} {23-pón} {24-bàap} {25-tôot}", -- WEB:		"She shall give birth to a son. You shall name him Jesus for it is --			 he who shall save his people from their sins.”, -- p589		"{1-Mary} {2-shall} {26-{3-give birth to}} {4-a} {5-male} {4-child}. "..			"{6-Once} he {7-has} {27-{3-been born}}, you {8-shall} {28-{9-give}} him "..			"{12-'}{13-Jesus}{12-'} {10-as} "..			"{11-his name} {15-{14-for the reason} "..			"{12-that}} it is {16-he} who {2-shall} {20-help} {16-hi}{19-s} "..			"{18-people} {21-{9-to}} {22-escape} {23-from} their {24-sins}{25-}.",		"{1-ᨾᩣᩁᩦ᩠ᨿ᩺} {2-ᨧᩢ᩠ᨠ} {26-{3-ᨠᩮᩥ᩠ᨯ}} {4-ᩃᩪᨠ} {5-ᨻᩬᩴ᩵ᨩᩣ᩠ᨿ} "..			"{6-ᨾᩮᩬᩥ᩵ᩋ} {27-{3-ᨠᩮᩥ᩠ᨯ}} {7-ᨾᩣ} {8-ᩓ᩠ᩅ} {28-{9-ᩉᩨ᩶}} {10-ᨲᩢ᩠᩶ᨦ}"..			" {11-ᨩᩨ᩵} {12-ᩅ᩵ᩤ} <{13-ᨿᩮᨪᩪ}> {15-{14-ᨿᩬ᩶ᩁ} {12-ᩅ᩵ᩤ}}"..			" {16-ᨴ᩵ᩤ᩠ᨶ} {2-ᨧᩢ᩠ᨠ} {20-ᨩ᩠᩵ᩅ᩠ᨿ} {18-ᨤᩫ᩠ᨶ} {19-ᨡᩬᨦ} {16-ᨴ᩵ᩤ᩠ᨶ} "..			"{21-{9-ᩉᩨ᩶}} {22-ᩁᩬᨯ} {23-ᨻᩫ᩠᩶ᨶ} {24-ᨷᩤ᩠ᨸ} {25-ᨴᩰᩫ᩠ᩇ}"		} } data[6] = {	c2v13a_T = {		p1 = 'Matthew ii.13',		"{1-เมื่อ} {2-หมู่} {3-โหราจ๋ารย์} {4-ปิ๊ก} {5-ไป} {6-แล้ว} "..		"{7-{8-ทูต}{9-สวรรค์}} {10-ของ} {11-พระเจ้า} {61-{12-องค์} {13-นึ่ง}}"..		" {14-มา} {15-เข้า} {16-ฝัน} {17-โยเซฟ} {18-บอก} {19-{51-ว่า}} "..		"“{60-{20-ลุก} {21-ขึ้น}} {22-ปา} {23-สอง} {24-แม่} {25-ลูก} ".. "{26-หนี} {27-ไป} {28-อยู่} {62-{29-ตี้}} {30-ประเทศ} {31-อียิปต์} ".. "{32-เถิง} {6-แล้ว} {34-หื้อ} {28-อยู่} {36-{63-{29-ตี้}} {38-หั้น}} ".. "{39-{40-จ๋น} {41-กว่า}} {42-เฮา} {43-จะ} {44-บอก} ".. "{34-หื้อ} {46-ปิ๊ก} {14-มา} {47-แหม} {48-ใหม่} {49-{50-ย้อน} {51-ว่า}} ".. "{52-กษัตริย์} {53-เฮโรด} {54-ก่ำลัง} {55-จะ} {56-ส่ง} {57-คน} ".. "{14-มา} {58-ตวย} {59-ฆ่า} {25-ลูก}”", -- 12, 13, 40, 41 seem unisolatable. Alternative translation is to be used for -- words 8, 9, 29, 38 "{1-mʉ̂ʉa} {2-mùu} {3-hǒo-raa-cǎan} {4-pík} {5-pai} {6-lɛ́ɛo}, ".. "{7-{8-thûut}-{9-sàwǎn}} {10-khɔ̌ɔŋ} {11-phrácâaw} {61-{12-oŋ} {13-nʉ̂ŋ}} ".. "{14-maa} {15-khâo} {16-fǎn} {17-yoosèef} {18-bɔ̀ɔk} {19-{51-wâa}} ".. "“{60-{20-lúk} {21-khʉ̂n}} {22-paa} {23-sɔ̌ɔŋ} {24-mɛ̂ɛ} {25-lûuk} ".. "{26-nǐi} {27-pai} {28-yùu} {62-{29-tîi}} {30-pràthêet} {31-iiyíp} ".. "{32-thəəŋ} {6-lɛ́ɛo} {34-hʉ̂ʉ} {28-yùu} {36-{63-{29-tîi}} {38-hân}} ".. "{39-{40-cǒn} {41-kwàa}} {42-hao} {43-cà} {44-bɔ̀ɔk} ".. "{34-hʉ̂ʉ} {46-pík} {14-maa} {47-hɛ̌ɛm} {48-mài}, {49-{50-yɔ́ɔn} {51-wâa}} ".. "{52-kàsàt} {53-hee-rôot} {54-kàmlaŋ} {55-cà} {56-sòŋ} {57-khon} {14-maa} ".. "{58-tuuai} {59-khâa} {25-lûuk}.", "{1-When} {2-the group} of {3-astrologers} {6-had} {4-evasively} {5-go}{6-ne}, ".. "{61-an} {7-angel} {10-of} {11-the Lord} {14-appeared} {15-to} {17-Joseph} ".. "{15-in} {16-a dream}, {18-saying}, {19-{51-“}}{60-{20-Get {21-up}}} and ".. "{22-take} {23-both} {25-the young child} and {24-his mother}, ".. "and {26-flee} and {27-go} and {28-stay} {62-in} {30-the land} of {31-Egypt}, ".. "and {6-having} {32-reached it}, {34-do} {28-stay} {36-there} ".. "{39-until} {42-we} {47-then} {44-tell} you {34-to} {14-come} {46-back} ".. "{48-again}, {49-{50-for}} {52-King} {53-Herod} {55-will} ".. "{54-be} {56-send}{54-ing} {57-men} {58-to} {59-kill} {25-the child}.{19-{51-”}}", "{1-ᨾᩮᩬᩥ᩵ᩋ} {2-ᩉ᩠ᨾᩪ᩵} {3-ᩉᩰᩁᩣᨧᩣᩁ᩠ᨿ᩺} {4-ᨻᩥ᩠ᨠ} {5-ᨻᩱ} {6-ᩓ᩠ᩅ} ".. "{7-{8-ᨴᩪᨲ}{9-ᩈ᩠ᩅ᩻ᩢᩁ᩠ᨣ᩺}} {10-ᨡᩬᨦ} {11-ᨻᩕᨧᩮᩢ᩶ᩣ} {12-ᩋᩫᨦ᩠ᨣ᩺} {13-ᨶᩧ᩠᩵ᨦ} ".. "{14-ᨾᩣ} {15-ᨡᩮᩢ᩶ᩣ} {16-ᨺᩢ᩠ᨶ} {17-ᨿᩰᨪᩮ᩠ᨸ} {18-ᨷᩬᨠ} {19-{51-ᩅ᩵ᩤ}} ".. "<<{60-{20-ᩃᩩᨠ} {21-ᨡᩧ᩠᩶ᨶ}} {22-ᨻᩣ} {23-ᩈᩬᨦ} {24-ᨾᩯ᩵} {25-ᩃᩪᨠ} ".. "{26-ᩉ᩠ᨶᩦ} {27-ᨻᩱ} {28-ᩀᩪ᩵} {62-{29-ᨴᩦ᩵}} {30-ᨷᩕᨴᩮ᩠ᩆ} {31-ᩋᩦᨿᩥ᩠ᨸᨲ᩺} ".. "{32-ᨳᩮᩥ᩠ᨦ} {6-ᩓ᩠ᩅ} {34-ᩉᩨ᩶} {28-ᩀᩪ᩵} {36-{63-{29-ᨴᩦ᩵}} {38-ᩉᩢ᩠᩶ᨶ}} ".. "{39-{40-ᨧᩫ᩠ᨶ} {41-ᨠ᩠ᩅ᩵ᩣ}} {42-ᩁᩮᩢᩣ} {43-ᨧᩢ᩠ᨠ} {44-ᨷᩬᨠ} ".. "{34-ᩉᩨ᩶} {46-ᨻᩥ᩠ᨠ} {14-ᨾᩣ} {47-ᩉᩯ᩠ᨾ} {48-ᩉ᩠ᨾᩲ᩵} {49-{50-ᨿᩬ᩶ᩁ} {51-ᩅ᩵ᩤ}} ".. "{52-ᨠᩕᩈᩢ᩠ᨲ} {53-ᩌᩮᩁᩰᩫ᩠ᨯ} {54-ᨠ᩵ᩣᩴᩃᩢ᩠ᨦ} {55-ᨧᩢ᩠ᨠ} {56-ᩈᩫ᩠᩵ᨦ} {57-ᨤᩫ᩠ᨶ} ᨾᩣ ".. "{58-ᨴ᩠ᩅ᩠ᨿ} {59-ᨡ᩶ᩣ} {25-ᩃᩪᨠ}>>" } } data[6].c2v13b_T = mw.clone(data[6].c2v13a_T) data[6].c2v13b_T[3] = -- Translation for Words 8, 9, 29, 38 and 63: "When the group of astrologers had evasively gone, an {8-envoy} from {9-heaven} ".. "{10-of} {11-the Lord} appeared to Joseph in a dream, saying, ".. "“Get up and take both the young child and his mother, and ".. "flee and go and stay {62-{29-in}} the land of Egypt, and having reached it, ".. "do {28-stay in} {38-that} {63-{29-place}} until we then tell you ".. "to come back again, for King Herod will be sending men to kill the child.”"

local dbg = false -- for pageno, page in ipairs(data) do -- ipairs doesn't work! local page for pageno = 1, 904 do	page = data[pageno] if dbg and page then mw.addWarning('Found page '..tostring(pageno)) end for psgname, psg in pairs(page or {}) do		if type(psgname) ~= 'string' then if dbg then mw.addWarning('Page '..tostring(pageno)..'has strange element') end elseif not psgname:match('_T$') then if (dbg) then mmw.addWarning('Passage '..psgname..' on page '..tostring(pageno)..					' ignored because of name.') end elseif page[psgname][4] then local psg_L = {} psg_L[1] = page[psgname][4] psg_L[2] = page[psgname][5] or "" psg_L[3] = page[psgname][3] psg_L.p1 = page[psgname].p1			local newname = psgname:gsub('_T$', '_L') if dbg then mw.addWarning('Added passage '..newname..' to page '..tostring(pageno)..'.') end page[newname] = psg_L if dbg then mw.addWarning('Added passage '..newname..' to page '..tostring(pageno)..'.') end elseif dbg then mw.addWarning(	'No 4th string in '..psgname..							' of page '..tostring(pageno)..'.') end end end

return data