Module:IPA/doc
This is the documentation page for Modulus:IPA
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.
Unit tests
+/-- See also: Module:IPA/testcases
IPA to X-SAMPA back to IPA
+/-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 |
نوروز (nuruz) | [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 | |
新年 | [ɕɪ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 |