Module:as-conj

From Wiktionary, the free dictionary
Jump to navigation Jump to search
This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export = {}
local m_translit = require("Module:as-translit")
local m_utilities = require("Module:as-utilities")

local gsub = mw.ustring.gsub
local sub = mw.ustring.sub
local match = mw.ustring.match
local len = mw.ustring.len

local comb_list = {
	["্অ"] = "", 
	["্আ"] = "া", 
	["্ই"] = "ি",
	["্ঈ"] = "ী",
	["্এ"] = "ে", 
	["্উ"] = "ু", 
	["্ঊ"] = "ূ",
	["্ও"] = "ো", 
	["্ঐ"] = "ৈ", 
	["্ঔ"] = "ৌ",
}

local function wordify_info(text)
	text = gsub(text, "্.", comb_list)
	
	text = m_utilities.link(text)
	return text
end
return export