Module:IPA/documentation

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 edit

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 edit

See also: Module:IPA/testcases

IPA to X-SAMPA back to IPA edit

Term IPA Generated X-SAMPA Regenerated IPA Matched?
dictionary /ˈdɪkʃən(ə)ɹi/ /"dIkS@n(@)r\i/ /ˈdɪkʃən(ə)ɹi/ yes
/ˈdɪkʃənɛɹi/ /"dIkS@nEr\i/ /ˈdɪkʃənɛɹi/ yes
Україна (Ukrajina) /ukrɑˈjɪnɑ/ /ukrA"jInA/ /ukrɑˈjɪnɑ/ yes
نوروز [næu̯ˈɾoːz] [n{u_^"4o:z] [næu̯ˈɾoːz] yes
[nou̯ˈɾuːz] [nou_^"4u:z] [nou̯ˈɾuːz] yes
[noːˈɾuːz] [no:"4u:z] [noːˈɾuːz] yes
[næu̯ˈɾɵːz] [n{u_^"48:z] [næu̯ˈɾɵːz] yes
新年 (xīnnián) [ɕɪn˥˥niɛn˧˥] [s\In__T__TniEn__M__T] [ɕɪn˥˥niɛn˧˥] yes
battleship [ˈbætl̩ʃɪp] ["b{tl=SIp] [ˈbætl̩ʃɪp] yes
báid [bˠɑːdʲ] [b_GA:d_j] [bˠɑːdʲ] yes
Deutsch [dɔʏ̯t͡ʃ] [dOY_^t__S] [dɔʏ̯t͡ʃ] yes
dóigh [d̪ˠoːɟ] [d_d_Go:J\] [d̪ˠoːɟ] yes
murder [ˈmɝdɚ] ["m3`d@`] [ˈmɝdɚ] yes