Module:IPA/documentation

From The Languages of David J. Peterson
Revision as of 22:53, 31 March 2019 by Djpwikiadmin (talk | contribs) (Created page with "<div style="float: right; width: 18em; margin: 0 0 1em 0.5em; border: 1px solid darkgray; padding: 0.5em;> <inputbox> type=fulltext prefix=Module:IPA searchbuttonlabel=Search...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation for Module:IPA. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

This module is used by the templates {{IPA}} and {{IPAchar}} to format IPA in entries, and it also converts X-SAMPA (an ASCII version of IPA) to IPA for the templates {{x2i}}, {{x2ipa}}, and {{x2ipachar}}. The actual functions called by these templates are found in Module:IPA/templates

The function format_IPA_full generates the content of the template {{IPA}}. It should also be used by pronunciation modules for specific languages. (It is used, for instance, by Module:ru-pron.) It generates a label IPA (key), followed by a list of IPA transcriptions with the class attribute "IPA" added to them, and a language-specific category (such as Category:English terms with IPA pronunciation).

The function format_IPA_multiple generates the content of the template {{IPAchar}}. It is similar to format_IPA_full, but does not add a label or categories.

Data is in Module:IPA/data, Module:IPA/data/symbols, and Module:IPA/data/X-SAMPA.

Tracking

The submodule Module:IPA/tracking allows you to track specific symbols used in the IPA transcriptions of a given language: for instance, the trill symbol ⟨r⟩ in English transcriptions. Go there for the list of languages and tracking conditions.

Unit tests

See also: Module:IPA/testcases

IPA to X-SAMPA back to IPA

Lua error in Module:Languages/doSubstitutions at line 75: Substitution data 'uk-translit' does not match an existing module..