11:36, 28 November 2023AmazingJustalkcontribs created page
Module:User:AmazingJus/lt(
←Created page with 'local export = {} local U = mw.ustring.char local udecomp = mw.ustring.toNFD local rsubn = mw.ustring.gsub local sub = mw.ustring.sub local rmatch = mw.ustring.match local rfind = mw.ustring.find local ugmatch = mw.ustring.gmatch local ulen = mw.ustring.len -- version of rsubn() that discards all but the first return value local function rsub(term, foo, bar, n) local retval = rsubn(term, foo, bar, n) return retval end local ACUTE = U(0x0301) -- acute...')
08:26, 25 November 2023AmazingJustalkcontribs created page
Module:User:AmazingJus/ga(
←Created page with 'local export = {} local m_IPA = require("Module:IPA") local gsub = mw.ustring.gsub local len = mw.ustring.ulen local match = mw.ustring.match local sub = mw.ustring.sub local function lc(str) return mw.getLanguage("ga"):lc(str) end local CONS = "[bcdfghjklmnpqrstvwxyz]h?" local VOWL = "aeiouáéíóú" local FRNT = "eiéí" --[[ list of various spelling-to-phonemes correspondences order of dialects: ulster, connacht, munster ]] -- mixed vowel + consona...')
12:32, 21 November 2023AmazingJustalkcontribs created page
Module:User:AmazingJus/gv(
←Created page with 'local export = {} local gsub = mw.ustring.gsub local function lc(str) return mw.getLanguage("gv"):lc(str) end -- phonetic transcription function export.phonetic(entry) -- get user input as a table if type(entry) == "table" then entry = entry.args[1] end return mw.text.trim(entry) end return export')
12:32, 21 November 2023AmazingJustalkcontribs created page
Module:User:AmazingJus(
←Created page with 'local export = {} local gsub = mw.ustring.gsub local function lc(str) return mw.getLanguage("(insert lang here)"):lc(str) end -- IPA transcription function export.toIPA(entry) -- get user input as a table if type(entry) == "table" then entry = entry.args[1] end entry = lc(entry) -- make all text lowercase entry = " " .. entry .. " " -- make all word borders have a space -- rest of code goes here return mw.text.trim(entry) end return export')
05:34, 8 September 2023AmazingJustalkcontribs created page
Module:User:AmazingJus/chr(
←Created page with 'local export = {} local gsub = mw.ustring.gsub -- map symbols to formatted versions local symbols = { ["1"] = "¹", ["2"] = "²", ["3"] = "³", ["4"] = "⁴", ["."] = "\u{0323}" } -- map tone numbers to contours local tones = { ["1"] = "˨˩", ["2"] = "˨", ["3"] = "˧", ["4"] = "˧˦" } -- map letters to phonetic values local phon = { ["v"] = "ə̃", ["k"] = "kʰ", ["g"] = "k", ["h"] = "h", ["qu"] = "kʰʷ", ["gw"] = "kʷ", ["t"] = "tʰ...')
23:13, 6 September 2023AmazingJustalkcontribs created page
Module:User:AmazingJus/cher(
←Created page with 'local export = {} -- map latin consonants to cherokee syllables -- where each consonant maps to a corresponding vowel syl = { -- order of syllables: a, e, i, o, u, v [""] = {"Ꭰ", "Ꭱ", "Ꭲ", "Ꭳ", "Ꭴ", "Ꭵ"}, k = {"Ꭷ"}, g = {"Ꭶ", "Ꭸ", "Ꭹ", "Ꭺ", "Ꭻ", "Ꭼ"}, h = {"Ꭽ", "Ꭾ", "Ꭿ", "Ꮀ", "Ꮁ", "Ꮂ"}, l = {"Ꮃ", "Ꮄ", "Ꮅ", "Ꮆ", "Ꮇ", "Ꮈ"}, m = {"Ꮉ", "Ꮊ", "Ꮋ", "Ꮌ", "Ꮍ", "Ᏽ"}, -- Ᏽ is obsolete n = {"Ꮎ",...')
15:52, 21 May 2023AmazingJustalkcontribs created page
Module:User:AmazingJus/mn(
←Created page with 'local export = {} local mn = require("Module:mn-common") local gsub = mw.ustring.gsub local u = mw.ustring.char local vowels = 'aeiou' local consonants = 'bcčdfgjklmnprsštvxzž\'' cons_map = { ["c"] = "t͡sʰ", ["č"] = "t͡ɕʰ", ["d"] = "t", ["g"] = "ɢ", ["l"] = "ɮ", ["š"] = "ʃ", ["v"] = "w", ["z"] = "t͡s", ["ž"] = "t͡ɕ" } vowel_map = { ["a"] = {"aː", "a", "ə"}, ["e"] = {"eː", "e", "ə"}, ["i"] = {"iː", "i", "ʲə"},...')