This module provides a list of the languages that have pronunciation info pages, a list of nonstandard IPA symbols, and some lists of phonemes that are used in the phonemic transcriptions of particular languages. These lists are used by Module:IPA to link to pronunciation info pages, to categorize entries that use nonstandard IPA symbols using the nonstandard symbol as sortkey, and to color incorrect phonemic symbols red and categorize entries that use the incorrect phonemic symbols in language-specific categories.

For data associated with individual IPA symbols, see Module:IPA/data/symbols. For the table used by the function that converts X-SAMPA to IPA, see Module:IPA/data/X-SAMPA.

See also: Module:IPA/testcases

nonstandard

+/-
m.nonstandard

local data = {}

--[=[	Please add language codes for new pronunciation keys to the list below.
		This will allow [[Template:IPA]] and the functions in [[Module:IPA]] to
		automatically link to the key.	]=]
local langcodes = {
	"ca",
    "cy",
	"de",
    "dsb",
    "el",
	"en",
    "eo",
    "es",
    "fr",
    "ga",
    "gd",
    "hu",
    "it",
    "la",
    "liv",
    "mdf",
    "my",
    "nci",
	"nl",
    "no",
    "pl",
    "pt",
    "sl",
    "sga",
    "sv",
    "wlm",
    "yi",
}

data.langs_with_infopages = {}

--[=[	This goes through the list of langcodes, and fills
		the table data.langs_with_infopages with items
		such as ["ca"] = true, ["cy"] = true, ... ,
		so that [[Module:IPA]] can easily access them. ]=]
for _, langcode in ipairs(langcodes) do
	data.langs_with_infopages[langcode] = true
end

-- Non-standard or obsolete IPA symbols.
data.nonstandard = {
	--[[	The following symbols consist of more than one character,
			so we can't put them in the line below.		]]
	"ɑ̢", "d̂", "t̂", "n̂", "l̂", "k̫", "ɔ̗", "ɔ̖",
	
	"[ʦʣʧʤʨʥ?ƍσƺƪƻƾƞᶀᶁᶂᶃᶄᶅᶆᶈᶇᶉᶊᶋƫᶌᶍᶎʓʆλƛłščžǰǧǯẋᵻᵿⱻʚ"
	.. "ɷωıȹȸ∅ØƥƭƈƙʠʇʗʖʞɩɼȣяɿʅʮʯᴀᴀᴇGRŒQȡȶȵȴKPT]"
}

-- See valid IPA characters at [[Module:IPA/data/symbols]].

data.phonemes = {}
data.phonemes["nl"] = {
	"m", "n", "ŋ",
	"p", "b", "t", "d", "k", "ɡ",
	"f", "v", "s", "z", "ʃ", "ʒ", "x", "ɣ", "ɦ",
	"ʋ", "l", "j", "r",
	"ɪ", "ʏ", "ɛ", "ə", "ɔ", "ɑ",
	"i", "iː", "y", "yː", "u", "uː", "eː", "øː", "oː", "ɛː", "œː", "ɔː", "aː",
	"ɛi̯", "œy̯", "ɔi̯", "ɑu̯", "ɑi̯",
	"iu̯", "yu̯", "ui̯", "eːu̯", "oːi̯", "aːi̯",
	"ˈ", "ˌ", ".", " ",
	}
data.phonemes["hy"] = {
	"ɑ", "b", "ɡ", "d", "ɛ", "z", "ɛ", "ə", "tʰ", "ʒ", "i", "l", "χ", "t͡s",
	"k", "h", "d͡z", "ʁ", "t͡ʃ", "m", "j", "n", "ʃ", "ɔ", "t͡ʃʰ", "p", "d͡ʒ",
	"r", "s", "v", "t", "ɾ", "t͡sʰ", "v", "pʰ", "kʰ", "ɔ", "f", "ŋɡ", "ŋk",
	"ŋχ", "u", "ˈ", "ˌ", ".", " ", "ː",
	}

return data