विक्षनरी
hiwiktionary
https://hi.wiktionary.org/wiki/%E0%A4%AE%E0%A5%81%E0%A4%96%E0%A4%AA%E0%A5%83%E0%A4%B7%E0%A5%8D%E0%A4%A0
MediaWiki 1.48.0-wmf.4
case-sensitive
मीडिया
विशेष
वार्ता
सदस्य
सदस्य वार्ता
विक्षनरी
विक्षनरी वार्ता
चित्र
चित्र वार्ता
मीडियाविकि
मीडियाविकि वार्ता
साँचा
साँचा वार्ता
सहायता
सहायता वार्ता
श्रेणी
श्रेणी वार्ता
TimedText
TimedText talk
मॉड्यूल
मॉड्यूल वार्ता
Event
Event talk
साँचा:-or-
10
1062
490855
359205
2026-11-17T06:36:31Z
CptViraj
11451
Requesting speedy deletion (Broken redirect).
490855
wikitext
text/x-wiki
<noinclude>{{delete|1=Broken redirect}}</noinclude>
#पुनर्प्रेषित [[साँचा:उड़िया]]
tsrbxqgfirmxdflvabp9njdtwnchqlh
साँचा:ast
10
124063
490856
163350
2026-11-17T06:36:57Z
CptViraj
11451
Requesting speedy deletion (Broken redirect).
490856
wikitext
text/x-wiki
<noinclude>{{delete|1=Broken redirect}}</noinclude>
#अनुप्रेषित [[साँचा:अस्तु]]
3lu8325jwg8j0yc6eb8g5rhng5gkhyb
ደም
0
308295
490847
2026-11-16T13:28:32Z
Apisite
12314
"{{-am-}} {{-noun-}} {{pn}} #[[रक्त]], [[खून]]" के साथ नया पृष्ठ बनाया
490847
wikitext
text/x-wiki
{{-am-}}
{{-noun-}}
{{pn}}
#[[रक्त]], [[खून]]
dwxdnk6x5ctezzwr9p8mreglfqai3c0
मॉड्यूल:Ethi-sortkey
828
308296
490848
2026-11-16T13:32:05Z
Apisite
12314
"local export = {} local m_str_utils = require("Module:string utilities") local codepoint = m_str_utils.codepoint local rsplit = m_str_utils.split local rsub = m_str_utils.gsub local u = m_str_utils.char local floor = math.floor local toSet = require("Module:table").listToSet -- apply rsub() repeatedly until no change local function rsub_repeatedly(term, foo, bar) while true do local new_ter..." के साथ नया पृष्ठ बनाया
490848
Scribunto
text/plain
local export = {}
local m_str_utils = require("Module:string utilities")
local codepoint = m_str_utils.codepoint
local rsplit = m_str_utils.split
local rsub = m_str_utils.gsub
local u = m_str_utils.char
local floor = math.floor
local toSet = require("Module:table").listToSet
-- apply rsub() repeatedly until no change
local function rsub_repeatedly(term, foo, bar)
while true do
local new_term = rsub(term, foo, bar)
if new_term == term then
return term
end
term = new_term
end
end
local digits = "123456789ABCDEFGHIJK" --The digits correspond to ä, u, i, a, e, ə, o, ʷä, ʷi, ʷa, ʷe, ʷə, ʸä, ʸu, ʸi, ʸa, ʸe, ʸə, ʸo, ɔ
local spaces = "፠፡።፣፤፥፦፧፨" --to be converted into spaces
local zero = u(0x135D) .. u(0x135E) .. u(0x135F) .. "᎐᎑᎒᎓᎔᎕᎖᎗᎘᎙" -- to be removed altogether
--Rows taken by a single consonant
local use_16_intervals = {
{0x1240, 0x125F},
{0x1280, 0x128F},
}
--Consonants in two consecutive rows
local subst_8_intervals = {
{0x12B0, 0x12B7},
{0x12C0, 0x12C7},
{0x1310, 0x1317},
}
--Consonants in which the 8th order isn't Cʷa, but Cɔ. Where is this used?
local oa_in_8 = toSet({0x1200, 0x1240, 0x1280, 0x12A8, 0x12C8, 0x12E8, 0x1308, 0x1340})
local y1 = 13 --Order of ʸä
local w1 = 8 --Order of ʷä
--
local manual_order = {
--Supplement
[0x1380] = {0x1218, 8}, [0x1381] = {0x1218, 9}, [0x1382] = {0x1218, 11}, [0x1383] = {0x1218, 12},
[0x1384] = {0x1260, 8}, [0x1385] = {0x1260, 9}, [0x1386] = {0x1260, 11}, [0x1387] = {0x1260, 12},
[0x1388] = {0x1348, 8}, [0x1389] = {0x1348, 9}, [0x138A] = {0x1348, 11}, [0x138B] = {0x1348, 12},
[0x138C] = {0x1350, 8}, [0x138D] = {0x1350, 9}, [0x138E] = {0x1350, 11}, [0x138F] = {0x1350, 12},
--Extended
[0x2D80] = {0x1208, 20}, [0x2D81] = {0x1218, 20}, [0x2D82] = {0x1228, 20}, [0x2D83] = {0x1230, 20}, [0x2D84] = {0x1238, 20}, [0x2D85] = {0x1260, 20},
[0x2D86] = {0x1270, 20}, [0x2D87] = {0x1278, 20}, [0x2D88] = {0x1290, 20}, [0x2D89] = {0x1298, 20}, [0x2D8A] = {0x12A0, 20}, [0x2D8B] = {0x12D8, 20},
[0x2D8C] = {0x12F0, 20}, [0x2D8D] = {0x12F8, 20}, [0x2D8E] = {0x1300, 20}, [0x2D8F] = {0x1320, 20}, [0x2D90] = {0x1328, 20}, [0x2D91] = {0x1330, 20},
[0x2D92] = {0x1350, 20},
--Extended-B
--𞟭, 𞟮
[0x1E7ED] = {0x1218, w1 + 1}, [0x1E7EE] = {0x1218, w1 + 3},
--𞟰, 𞟱, 𞟲
[0x1E7F0] = {0x1240, w1 + 1}, [0x1E7F1] = {0x1240, w1 + 3}, [0x1E7F2] = {0x1240, w1 + 4},
--𞟳, 𞟴
[0x1E7F3] = {0x1260, w1 + 1}, [0x1E7F4] = {0x1260, w1 + 3},
--𞟵, 𞟶, 𞟷
[0x1E7F5] = {0x12A8, w1 + 1}, [0x1E7F6] = {0x12A8, w1 + 3}, [0x1E7F7] = {0x12A8, w1 + 4},
--𞟸, 𞟹, 𞟺
[0x1E7F8] = {0x1308, w1 + 1}, [0x1E7F9] = {0x1308, w1 + 3}, [0x1E7FA] = {0x1308, w1 + 4},
--𞟻, 𞟼
[0x1E7FB] = {0x1348, w1 + 1}, [0x1E7FC] = {0x1348, w1 + 3},
--𞟽, 𞟾
[0x1E7FD] = {0x1350, w1 + 1}, [0x1E7FE] = {0x1350, w1 + 3},
--Other (ፘ, ፙ, ፚ)
[0x1358] = {0x1228, y1}, [0x1359] = {0x1218, y1}, [0x135A] = {0x1348, y1}
}
---Start, end, base, offset
local order_tables = {
--Extended
{0x2DA0, 0x2DA6, 0x2DA0, - 0x2DA0 + 1},
{0x2DA8, 0x2DAE, 0x2DA8, - 0x2DA8 + 1},
{0x2DB0, 0x2DB6, 0x2DB0, - 0x2DB0 + 1},
{0x2DB8, 0x2DBE, 0x2DB8, - 0x2DB8 + 1},
{0x2DC0, 0x2DC6, 0x2DC0, - 0x2DC0 + 1},
{0x2DC8, 0x2DCE, 0x2DC8, - 0x2DC8 + 1},
{0x2DD0, 0x2DD6, 0x2DD0, - 0x2DD0 + 1},
{0x2DD8, 0x2DDE, 0x2DD8, - 0x2DD8 + 1},
--Extended-A
{0xAB01, 0xAB06, 0xAB01, - 0xAB01 + 2},
{0xAB09, 0xAB0E, 0xAB09, - 0xAB09 + 2},
{0xAB11, 0xAB16, 0xAB11, - 0xAB11 + 2},
{0xAB20, 0xAB26, 0xAB20, - 0xAB20 + 1},
{0xAB28, 0xAB2E, 0xAB28, - 0xAB28 + 1},
--Extended-B
{0x1E7E0, 0x1E7E7, 0x1210, - 0x1E7E0 + y1},
{0x1E7E8, 0x1E7EB, 0x1210, - 0x1E7E8 + w1}
}
--Convert ints to strings, but make 10->A, 11->B...
local function order_letter(o)
if o < 10 then
return tostring(o)
end
return u(55 + o) --"A" is at codepoint 65
end
--Find the codepoint of the base letter (c+ä) of a given character
local function get_base_order(c)
local base_cp, order
--In some cases it's easier to get the basic letter and the order manually
local result = manual_order[c]
if result then
return result[1], result[2]
end
--In some cases, related letters can be handled together
for _, t in ipairs(order_tables) do
if t[1] <= c and c <= t[2] then
return t[3], c + t[4]
end
end
--Single consonant takes a whole row
for _, pair in ipairs(use_16_intervals) do
if pair[1] <= c and c <= pair[2] then
base_cp = floor(c/16)*16
order = c - base_cp + 1
if order == 8 then --OA syllables
order = 20
elseif order == 9 then --move one slot to the left
order = 8
elseif order > 10 then --move two slots to the left (there's no order==10)
order = order - 2
end
return base_cp, order
end
end
--Single consonant in two rows (we only need to handle the second part)
for _, pair in ipairs(subst_8_intervals) do
if pair[1] <= c and c <= pair[2] then
base_cp = floor(c/8)*8 - 8
order = c - base_cp
if order == 1 then --move one slot to the left
order = 8
else --move two slots to the left
order = order - 2
end
return base_cp, order
end
end
--Single consonant in half a row
base_cp = floor(c/8)*8
order = c - base_cp + 1
--If it's Cɔ, 20
if order == 8 and oa_in_8[base_cp] then
order = 20
--If it's Cʷa, move to order 10 (make room for ʷä and ʷi if they exist)
elseif order == 8 then
order = 10
end
return base_cp, order
end
--Process each individual character
local function generate_sortkey(letter)
local cp = codepoint(letter)
--Ethiopic & Ethiopic Supplement, Ethiopic Extended, Ethiopic Extended-A, Ethiopic Extended-B
if not ((0x1200 <= cp and cp <= 0x1399) or (0x2D80 <= cp and cp <= 0x2DDE) or (0xAB01 <= cp and cp <= 0xAB2E) or (0x1E7E0 <= cp and cp <= 0x1E7FE)) then
return letter --If the character isn't in any of the Ethiopic blocks, don't do anything
end
--If it's a number, don't change anything
if 0x1369 <= cp and cp <= 0x137C then
return letter
end
local base_cp, order = get_base_order(cp)
return u(base_cp) .. order_letter(order)
end
function export.makeSortKey(text, lang, sc)
--Remove punctuation and dicritics (unlikely, but just in case)
text = rsub_repeatedly(text, "[" .. spaces .."]", " ")
text = rsub_repeatedly(text, " ", " ")
text = rsub_repeatedly(text, "[" .. zero .."]", "")
--Character by character
local result = {}
for _, l in ipairs(rsplit(text, "")) do
table.insert(result, generate_sortkey(l))
end
result = table.concat(result, "")
--Move vowel signs to the end
result = rsub_repeatedly(result, "([" .. digits .. "])([^" .. digits .. "])", "%2%1")
--Add a space before the digits (otherwise ቤተ will get sorted before ቤተ፡ክርስቲያን)
result = rsub(result, "([^" .. digits .. "])([" .. digits .. "])", "%1 %2")
return result
end
return export
eviyoqs73ps2iad7wp6onmgoteq7uca
मॉड्यूल:Ethi-common
828
308297
490849
2026-11-16T13:40:48Z
Apisite
12314
"local export = {} local m_str = require("Module:string utilities") local codepoint = m_str.codepoint local floor = math.floor local rfind = m_str.find local rmatch = m_str.match local rsplit = m_str.split local rsub = m_str.gsub local u = m_str.char local GEM = u(0x135F) local labiovelars = {"ቈ", "ቘ", "ኈ", "ኰ", "ዀ", "ጐ"} local palatals_to_base = { ["ፘ"] = "ረ", ["ፙ"] = "መ", ["ፚ"] = "ፈ" } loca..." के साथ नया पृष्ठ बनाया
490849
Scribunto
text/plain
local export = {}
local m_str = require("Module:string utilities")
local codepoint = m_str.codepoint
local floor = math.floor
local rfind = m_str.find
local rmatch = m_str.match
local rsplit = m_str.split
local rsub = m_str.gsub
local u = m_str.char
local GEM = u(0x135F)
local labiovelars = {"ቈ", "ቘ", "ኈ", "ኰ", "ዀ", "ጐ"}
local palatals_to_base = {
["ፘ"] = "ረ",
["ፙ"] = "መ",
["ፚ"] = "ፈ"
}
local base_to_palatals = {}
for k, v in pairs(palatals_to_base) do
base_to_palatals[v] = k
end
function export.to_components(char)
local cp = codepoint(char)
local base_cp, order = floor(cp / 8) * 8, (cp % 8) + 1
local base = u(base_cp)
local labiovelar = false
local palatalized = false
local alt = false
if cp >= 0x1200 and cp <= 0x1357 then
for _, c in ipairs(labiovelars) do
local test_cp = codepoint(c)
if order == 8 and (base_cp + 8) == test_cp then
order = 4
labiovelar = true
alt = true
break
elseif base_cp == test_cp then
base_cp = base_cp - 8
labiovelar = true
break
end
end
if order == 8 then
order = 4
labiovelar = true
end
base = u(base_cp)
elseif palatals_to_base[char] then
base = palatals_to_base[char]
order = 1
palatalized = true
else
error("Only Ethiopic characters from ሀ - ፚ supported")
end
return {
base = base,
order = order,
labiovelar = labiovelar,
palatalized = palatalized,
alt = alt
}
end
function export.from_components(components)
local base_cp = codepoint(components.base)
local cp = base_cp + (components.order - 1)
if components.palatalized then
return base_to_palatals[components.base]
elseif components.labiovelar then
if components.alt then
return u(base_cp + 7)
else
for _, c in ipairs(labiovelars) do
if base_cp + 8 == codepoint(c) then
return u(base_cp + 8 + (components.order - 1))
end
end
return u(base_cp + 7)
end
end
return u(cp)
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- New script-related stuff
local letters = {
"ሀሁሂሃሄህሆ", "ለሉሊላሌልሎ", "ሐሑሒሓሔሕሖ", "መሙሚማሜምሞ", "ሠሡሢሣሤሥሦ", "ረሩሪራሬርሮ",
"ሰሱሲሳሴስሶ", "ቀቁቂቃቄቅቆ", "በቡቢባቤብቦ", "ተቱቲታቴትቶ", "ኀኁኂኃኄኅኆ", "ነኑኒናኔንኖ", "አኡኢኣኤእኦ",
"ከኩኪካኬክኮ", "ወዉዊዋዌውዎ", "ዐዑዒዓዔዕዖ", "ዘዙዚዛዜዝዞ", "የዩዪያዬይዮ", "ደዱዲዳዴድዶ", "ገጉጊጋጌግጎ",
"ጠጡጢጣጤጥጦ", "ጰጱጲጳጴጵጶ", "ጸጹጺጻጼጽጾ", "ፀፁፂፃፄፅፆ", "ፈፉፊፋፌፍፎ", "ፐፑፒፓፔፕፖ",
"ቈ0ቊቋቌቍ0", "ኈ0ኊኋኌኍ0", "ኰ0ኲኳኴኵ0", "ጐ0ጒጓጔጕ0"
}
-- Finds the order of a given (single) characters
local function get_order(x)
for _, row in ipairs(letters) do
if rfind(row, x) then
return rfind(row, x)
end
end
error("Couldn't determine the order of '" .. x .. "'")
end
-- Switches the order of a given (single) character to the ord-th order
local function switch_to_order(x, ord)
for _, row in ipairs(letters) do
if rfind(row, x) then
local found = rsplit(row, "")[ord]
if found == "0" then
error("There's no order " .. tostring(ord) .. " letter in the row of '" .. x .. "'.")
end
return found
end
end
error("Invalid character: '" .. x .. "'")
end
export.switch_to_order = switch_to_order
-- Finds the order of the last character in a string
local function get_last_order(str)
local last = rmatch(str, "(.)" .. GEM .. "?$")
return get_order(last)
end
export.get_last_order = get_last_order
-- Changes the order of the last character in a string
function export.switch_last_order(str, ord)
local res = rsub(str,
"(.)(" .. GEM .. "?)$",
function(last, gem) return switch_to_order(last, ord) .. gem end
)
return res
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--Convert Arabic numerals to their corresponding Ethiopic form
local ones = {"፩", "፪", "፫", "፬", "፭", "፮", "፯", "፰", "፱"}
local tens = {"፲", "፳", "፴", "፵", "፶", "፷", "፸", "፹", "፺"}
local function under100(n)
local result = ""
local t = math.floor(n / 10)
local o = n % 10
if t > 0 then result = result .. tens[t] end
if o > 0 then result = result .. ones[o] end
return result
end
function export.arabic_numeral_to_geez(n)
assert(type(n) == "number" and n > 0 and n <= 99999 and n % 1 == 0, "Expected an integer between 1 and 99999")
local result = ""
-- Ten-thousands
local high = math.floor(n / 10000)
if high > 0 then
if high > 1 then
result = result .. under100(high)
end
result = result .. "፼"
end
n = n % 10000
-- Hundreds
local mid = math.floor(n / 100)
if mid > 0 then
if mid > 1 then
result = result .. under100(mid)
end
result = result .. "፻"
end
-- Remaining units and tens
return result .. under100(n % 100)
end
return export
781fhkks501lqjquvs512yoogo0pdxh
ཁྲག
0
308298
490850
2026-11-16T13:48:34Z
Apisite
12314
"{{-bo-}} {{-noun-}} {{pn}} #[[रक्त]], [[खून]]" के साथ नया पृष्ठ बनाया
490850
wikitext
text/x-wiki
{{-bo-}}
{{-noun-}}
{{pn}}
#[[रक्त]], [[खून]]
hcoqq9sw8hl3g8nogtfhgtbd8pe0qj2
मॉड्यूल:Tibt-sortkey
828
308299
490851
2026-11-16T13:52:13Z
Apisite
12314
"local export = {} local m_str_utils = require("Module:string utilities") local gsub = m_str_utils.gsub local len = m_str_utils.len local match = m_str_utils.match local sub = m_str_utils.sub local toNFC = mw.ustring.toNFC local u = m_str_utils.char local Tibt = require("Module:Tibt-common") local a, b, c, d = u(0xE000), u(0xE001), u(0xE002), u(0xE003) local letters = { {"ཀ", "ྐ"}, {"ཀ༹", "ྐ༹", ""}, {"ཫ", "ཫ..." के साथ नया पृष्ठ बनाया
490851
Scribunto
text/plain
local export = {}
local m_str_utils = require("Module:string utilities")
local gsub = m_str_utils.gsub
local len = m_str_utils.len
local match = m_str_utils.match
local sub = m_str_utils.sub
local toNFC = mw.ustring.toNFC
local u = m_str_utils.char
local Tibt = require("Module:Tibt-common")
local a, b, c, d = u(0xE000), u(0xE001), u(0xE002), u(0xE003)
local letters = {
{"ཀ", "ྐ"}, {"ཀ༹", "ྐ༹", ""}, {"ཫ", "ཫ"}, {"ཫ༹", "ཫ༹", ""}, {"ཁ", "ྑ"}, {"ཁ༹", "ྑ༹", ""}, {"ག", "ྒ"}, {"ག༹", "ྒ༹", ""}, {"ང", "ྔ"}, {"ང༹", "ྔ༹", ""}, {"ཅ", "ྕ"}, {"ཆ", "ྖ"}, {"ཇ", "ྗ"}, {"ཉ", "ྙ"}, {"ཉ༹", "ྙ༹", ""}, {"ཊ", "ྚ"}, {"ཊ༹", "ྚ༹", ""}, {"ཋ", "ྛ"}, {"ཋ༹", "ྛ༹", ""}, {"ཌ", "ྜ"}, {"ཌ༹", "ྜ༹", ""}, {"ཎ", "ྞ"}, {"ཎ༹", "ྞ༹", ""}, {"ཏ", "ྟ"}, {"ཏ༹", "ྟ༹", ""}, {"ཐ", "ྠ"}, {"ཐ༹", "ྠ༹", ""}, {"ད", "ྡ"}, {"ད༹", "ྡ༹", ""}, {"ན", "ྣ"}, {"ན༹", "ྣ༹", ""}, {"པ", "ྤ"}, {"པ༹", "ྤ༹", ""}, {"ཕ", "ྥ"}, {"ཕ༹", "ྥ༹", ""}, {"བ", "ྦ"}, {"བ༹", "ྦ༹", ""}, {"མ", "ྨ"}, {"མ༹", "ྨ༹", ""}, {"ཙ", "ྩ"}, {"ཚ", "ྪ"}, {"ཛ", "ྫ"}, {"ཝ", "ྭ"}, {"ཝ༹", "ྭ༹", ""}, {"ཞ", "ྮ"}, {"ཞ༹", "ྮ༹", ""}, {"ཟ", "ྯ"}, {"ཟ༹", "ྯ༹", ""}, {"འ", "ྰ"}, {"འ༹", "ྰ༹", ""}, {"ཡ", "ྱ"}, {"ཡ༹", "ྱ༹", ""}, {"ར", "ྲ"}, {"ར༹", "ྲ༹", ""}, {"ཬ", "ཬ"}, {"ཬ༹", "ཬ༹", ""}, {"ལ", "ླ"}, {"ལ༹", "ླ༹", ""}, {"ཤ", "ྴ"}, {"ཤ༹", "ྴ༹", ""}, {"ཥ", "ྵ"}, {"ཥ༹", "ྵ༹", ""}, {"ས", "ྶ"}, {"ས༹", "ྶ༹", ""}, {"ཧ", "ྷ"}, {"ཧ༹", "ྷ༹", ""}, {"ཨ", "ྸ"}, {"ཨ༹", "ྸ༹", ""}, {"ཱ", "ཱ"}, {"ི", "ི"}, {u(0xF73), "ཱི"}, {"ུ", "ུ"}, {u(0xF75), "ཱུ"}, {u(0xF76), "ྲྀ"}, {u(0xF77), "ྲཱྀ"}, {u(0xF78), "ླྀ"}, {u(0xF79), "ླཱྀ"}, {"ེ", "ེ"}, {"ཻ", "ཻ"}, {"ོ", "ོ"}, {"ཽ", "ཽ"}
}
local function findAffixes(text, mainStack)
return (gsub(text, "(.*)" .. mainStack .. ".*", "%1")), (gsub(text, ".*" .. mainStack .. "(.*)", "%1"))
end
local function findVowel(mainStack)
return (gsub(mainStack, "[ཱ-ཽྀ]+", "")), match(mainStack, "[ཱ-ཽྀ]+") or ""
end
local function mainStackParts(mainStack)
local superjoined = match(mainStack, "(ར)[ྐྒྔྗྙྟྡྣྦྨྩྫ]") or match(mainStack, "(ལ)[ྐྒྔྕྗྟྡྤྦྷ]") or match(mainStack, "(ས)[ྐྒྔྙྟྡྣྤྦྨྩ]") or ""
if (superjoined == "ར" and match(mainStack, "ར[^ྐྒྨ]ྱ")) or (superjoined == "ས" and (match(mainStack, "ས[^ྐྒྤྦྨ]ྱ") or match(mainStack, "ས[^ྐྒྣྤྦྨ]ྲ"))) then
superjoined = ""
end
local radical = match(mainStack, "^" .. superjoined .. "(.)") or ""
local subjoined = match(mainStack, "^" .. superjoined .. radical .. "(.*)")
for _, letter in ipairs(letters) do
radical = gsub(radical, letter[2], letter[1])
end
return superjoined, radical, subjoined
end
local function sortRadical(radical)
for _, letter in ipairs(letters) do
if letter[3] then
radical = gsub(radical, letter[3], letter[1])
end
end
radical = gsub(radical, u(0x0F39), b)
local radicalSubs = {
["ཫ" .. b] = "ཀ" .. d, ["ཬ" .. b] = "ར" .. d
}
local radicalSubs2 = {
["ཫ"] = "ཀ" .. c, ["ཬ"] = "ར" .. c
}
for char, replacement in pairs(radicalSubs) do
radical = gsub(radical, char, replacement)
end
radical = gsub(radical, ".", radicalSubs2)
return (gsub(radical, "([^" .. b .. "-" .. d .. "])$", "%1" .. a))
end
-- Convert into base-6724 to reduce length.
function baseConvert(value)
if #value%2 ~= 0 then table.insert(value, 1, 0) end
local newValue = {}
for i = 1, #value/2 do
newValue[i] = u(0x4E00+(value[(i*2)-1]*(#letters+1))+value[i*2])
end
return table.concat(newValue)
end
local function sortValue(part, partType)
local length
if partType == "superjoined" or partType == "prefix" or partType == "vowel" then
length = 1
elseif partType == "subjoined" then
length = 9
elseif partType == "suffix" then
length = 6
end
local partLetters = {}
for i = 1, length do
if len(part) >= i then
table.insert(partLetters, sub(part, i, i))
else
table.insert(partLetters, "")
end
end
for i, partLetter in ipairs(partLetters) do
for j, letter in ipairs(letters) do
if partLetter == letter[1] or partLetter == letter[2] or partLetter == letter[3] then
partLetters[i] = j
end
end
if match(tostring(partLetters[i]), "[^0-9]") or partLetters[i] == "" then
partLetters[i] = 0
end
end
return partLetters
end
local initSubs = {
["ཪ"] = "ར", ["ྺ"] = "ྭ", ["ྻ"] = "ྱ", ["ྼ"] = "ྲ"
}
function export.makeSortKey(text, lang, sc)
text = lang:stripDiacritics(text)
text = gsub(text, ".", initSubs)
local syllables = {}
local sort, prefix, mainStack, superjoined, radical, subjoined, vowel, suffix
for word in Tibt.getWords(text) do
for syllable in Tibt.getSyllables(word) do
mainStack = Tibt.findMainStack(syllable, lang)
for _, letter in ipairs(letters) do
if letter[3] then
syllable = gsub(syllable, letter[1], letter[3])
syllable = gsub(syllable, letter[2], letter[3])
mainStack = gsub(mainStack, letter[1], letter[3])
mainStack = gsub(mainStack, letter[2], letter[3])
end
end
for i = 42, #letters do
syllable = gsub(syllable, letters[i][2], letters[i][1])
mainStack = gsub(mainStack, letters[i][2], letters[i][1])
end
prefix, suffix = findAffixes(syllable, mainStack)
mainStack, vowel = findVowel(mainStack)
superjoined, radical, subjoined = mainStackParts(mainStack)
local set1 = {table.concat(sortValue(superjoined, "superjoined")), table.concat(sortValue(prefix, "prefix"))}
local set2 = sortValue(subjoined, "subjoined")
table.insert(set2, table.concat(sortValue(vowel, "vowel")))
local set3 = sortValue(suffix, "suffix")
sort = sortRadical(radical) .. baseConvert(set1) .. baseConvert(set2) .. baseConvert(set3)
table.insert(syllables, sort)
end
end
text = table.concat(syllables)
if match(text, ".[་༌]") or match(text, "[་༌].") then
text = gsub(text, "[་༌]", "")
end
return toNFC(text)
end
local bo = require("Module:languages").getByCode("bo")
local function tag(text)
return require("Module:script utilities").tag_text(text, bo)
end
function export.showSorting(frame)
local terms = {}
for _, term in ipairs(frame.args) do
table.insert(terms, term)
end
local makeSortKey = require("Module:memoize")(export.makeSortKey)
local function comp(term1, term2)
return makeSortKey(term1, "bo", "Tibt") < makeSortKey(term2, "bo", "Tibt")
end
table.sort(terms, comp)
for i, term in pairs(terms) do
local sc = require("Module:scripts").getByCode("Tibt")
local sortkey = export.makeSortKey(term, "bo", sc)
terms[i] = "\n* " .. tag(term)
end
return table.concat(terms)
end
return export
su5myb1gya9r97gitca38fhoby5jtqx
דם
0
308300
490852
2026-11-16T14:02:32Z
Apisite
12314
"{{-he-}} {{-noun-}} {{pn}} #[[रक्त]], [[खून]]" के साथ नया पृष्ठ बनाया
490852
wikitext
text/x-wiki
{{-he-}}
{{-noun-}}
{{pn}}
#[[रक्त]], [[खून]]
i1sbg6z6srkcz941y7h8qphygqxayz6
ATC
0
308301
490853
2026-11-16T14:05:06Z
Apisite
12314
"{{-en-}} {{-noun-}} {{Pn}} # [[artist]] [[trading]] [[card]]" के साथ नया पृष्ठ बनाया
490853
wikitext
text/x-wiki
{{-en-}}
{{-noun-}}
{{Pn}}
# [[artist]] [[trading]] [[card]]
t0xpj3poflxkp8uqk103kosrgr77vkl
490854
490853
2026-11-16T14:05:17Z
Apisite
12314
490854
wikitext
text/x-wiki
{{-en-}}
{{-noun-}}
{{pn}}
# [[artist]] [[trading]] [[card]]
q6mikhkmksutxq7h4ae41de9oc9kljw