Module:User:Sameerhameedy/kk-convert

Hello, you have come here looking for the meaning of the word Module:User:Sameerhameedy/kk-convert. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Sameerhameedy/kk-convert, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Sameerhameedy/kk-convert in singular and plural. Everything you need to know about the word Module:User:Sameerhameedy/kk-convert you have here. The definition of the word Module:User:Sameerhameedy/kk-convert will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Sameerhameedy/kk-convert, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

Example

  •  Arabic : بارلىق ادامدار تۋمىسىنان ازات جانە ٴقادىر-قاسيەتى مەن كۇقىقتارى تەڭ بولىپ دۇنيەگە كەلەدى. ادامدارعا اقىل-پاراسات، ار-وجدان بەرىلگەن، سوندىقتان ولار ٴبىر-بىرىمەن تۋىستىق، باۋىرمالدىق قارىم-قاتىناس جاساۋلارى ٴتيىس.
  •  Cyrillic : Барлық адамдар тумысынан азат және қадір-қасиеті мен кұқықтары тең болып дүниеге келеді. Адамдарға ақыл-парасат, ар-ождан берілген, сондықтан олар бір-бірімен туыстық, бауырмалдық қарым-қатынас жасаулары тиіс.
  •  Latin : Barlyq adamdar tumysynan azat jäne qadır-qasietı men kūqyqtary teñ bolyp düniege keledı. Adamdarğa aqyl-parasat, ar-ojdan berılgen, sondyqtan olar bır-bırımen tuystyq, bauyrmaldyq qarym-qatynas jasaulary tiıs.
    •  Pinyin : Barleq adamdar twmesenan azat jənê qadir-qasyêti mên ⱪuqeqtare têng bolep dünyêgê ⱪêlêdi. Adamdarƣa aqel-parasat, ar-ojdan bêrilgên, sondeqtan olar bir-birimên twesteq, bawermaldeq qarem-qatenas jasawlare tyis.
    •  Yañalif 1927 : Lua error: bad argument #2 to 'gsub' (string expected, got nil)
    •  Yañalif 1938 : Barlьq adamdar tumьsьnan azat çəne qadjr-qasjetj men kūqьqtarь teꞑ ʙolьp dynjege keledj. Adamdarƣa aqьl-parasat, ar-oçdan ʙerjlgen, sondьqtan olar ʙjr-ʙjrjmen tuьstьq, ʙauьrmaldьq qarьm-qatьnas çasaularь tjjs.

local export = {}
local rsubn = mw.ustring.gsub
local match = mw.ustring.match
local sub = mw.ustring.sub
local u = mw.ustring.char

local vowels = "үҮиИеЕәӘөӨӯӮАаоОЫыІіЯяЮюЁё"

--this is for yanalif spellings in kk-alt, not the ordinary romanization
local pinyin = {
 ="ü",="Ü",="x",="X",="y",="Y"
,="e",="E",="y",="Y",="w",="W"
,="ng",="ng",="ə",="Ə",="ƣ",="Ƣ"
,="i",="I",="ɵ",="Ɵ",="ⱨ",="Ⱨ"
,="h",="H",="ⱪ",="Ⱪ",="ê",="ê"
,="u",="U"
--mostly in loanwords from Russian
,="io",="Io",="q",="Q",="x",="X"
,="ʼ",="ʼ",="iu",="Iu"
,="ia",="Ia"}
local newyan = {
 ="y",="Y",="c",="C",="i",="I",="ʙ"
,="j",="J",="ç",="Ç"
,="ꞑ",="Ꞑ",="ə",="Ə",="ƣ",="Ƣ"
,="j",="J",="ɵ",="Ɵ"
--mostly in loanwords from Russian
,="io",="Io",="c",="Tc",="cc",="Cc"
,="ʼ",="ʼ",="iu",="Iu"
,="ia",="Ia"}
local oldyan = {
 ="y",="Y",="c",="C",="i",="I",="ʙ"
,="ь",="Ь",="j",="J",="ç",="Ç"
,="ꞑ",="Ꞑ",="ə",="Ə",="ƣ",="Ƣ"
,="j",="J",="ɵ",="Ɵ"
--mostly in loanwords from Russian
,="io",="Io",="c",="Tc",="cc",="Cc"
,="ʼ",="ʼ",="iu",="Iu"
,="ia",="Ia"}

function export.tr(text, script, options)
	if type(text) == "table" then
		options = {}
		options.impl = text.args
		options.variation = text.args --ID of variation: 
		text, script = text.args, text.args
	end
	if script == "Cyrl" then
		return text
	end
	if script ~= "Latn" then
			return require("Module:kk-Cyrl-Arab-translit").tr(text, "kk", sc) 
	elseif script == "Latn" then
			if not (options and options.variation) then
				return require("Module:kk-translit").tr(text, "kk", sc) 
			elseif options.variation == "1" then
				text = rsubn(text, ".", pinyin)
				return require("Module:kk-translit").tr(text, "kk", sc)
			elseif options.variation == "2" then
				text = rsubn(text, ".", newyan)
					return require("Module:kk-translit").yanalif(text, "kk", sc)
				end
	elseif options.variation == "3" then
			-- need to change the character mappings but its not even working so
			--w/e
					return require("Module:kk-translit").yanalif(text, "kk", sc)
			end 
			text = rsubn(text, orig_word, word, 1)
	
	local impl = options and options.impl or 'yes'
	if impl == 'no' then text = export.mono_form(text, script) end
	return text
end 

return export