Misplaced Pages

Module:Ka-translit: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactivelyNext edit →Content deleted Content added
Revision as of 17:25, 1 August 2014 view sourceDixtosa (talk | contribs)Extended confirmed users910 edits Created page with 'local export = {} local ISO_9984 = { ="a", ="b", ="g", ="d", ="e", ="v", ="z", ="ē", ="t’",...'  Revision as of 10:23, 2 August 2014 view source Jaqeli (talk | contribs)23,008 edits simple romanizationNext edit →
Line 12: Line 12:
local national_system = { local national_system = {
="a", ="b", ="g", ="d", ="e", ="v", ="z", ="?", ="a", ="b", ="g", ="d", ="e", ="v", ="z", ="?",
="t", ="i", ="k'", ="l", ="m", ="n", ="?", ="o", ="t", ="i", ="k", ="l", ="m", ="n", ="?", ="o",
="p'", ="zh", ="r", ="s", ="t'", ="?", ="u", ="p", ="p", ="zh", ="r", ="s", ="t", ="?", ="u", ="p",
="k", ="gh", ="q'", ="sh", ="ch", ="ts", ="k", ="gh", ="q", ="sh", ="ch", ="ts",
="dz", ="ts'", ="ch'", ="kh", ="ẖ", ="j", ="h", ="?", ="?", ="?", ="ʾ" ="dz", ="ts", ="ch", ="kh", ="ẖ", ="j", ="h", ="?", ="?", ="?", ="ʾ"
}; };



Revision as of 10:23, 2 August 2014

Module documentation[view] [edit] [history] [purge]

Usage

This module creates a transliteration of Georgian text. It is used by {{ka-translit}}, and that template in turn is used by {{lang-ka}}.

  • {{#invoke:Ka-translit|tr|ქართული ენა}}
  • kartuli ena

The module returns an error message if the text it is provided does not contain any Georgian characters:

  • {{#invoke:Ka-translit|tr|kartuli ena}}
  • kartuli ena
The above documentation is transcluded from Module:Ka-translit/doc. (edit | history)
Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages.
Subpages of this module.

local export = {}

local ISO_9984 = {
	="a", ="b", ="g", ="d", ="e", ="v", ="z", ="ē",
	="t’", ="i", ="k", ="l", ="m", ="n", ="y", ="o",
	="p", ="ž", ="r", ="s", ="t", ="w", ="u", ="p’",
	="k’", ="ḡ", ="q", ="š", ="č’", ="c’",
	="j", ="c", ="č", ="x", ="ẖ", ="ǰ", ="h", ="ō", ="f", ="ə", ="ʾ"
};

--current
local national_system = {
	="a", ="b", ="g", ="d", ="e", ="v", ="z", ="?",
	="t", ="i", ="k", ="l", ="m", ="n", ="?", ="o",
	="p", ="zh", ="r", ="s", ="t", ="?", ="u", ="p",
	="k", ="gh", ="q", ="sh", ="ch", ="ts",
	="dz", ="ts", ="ch", ="kh", ="ẖ", ="j", ="h", ="?", ="?", ="?", ="ʾ"
};

function export.tr(text)
	if type(text) == "table" then
		text = text.args
	end
	return (mw.ustring.gsub(text, '.', national_system))
end

return export
Category: