Difference between revisions of "Template:IPAc-ja"
imported>OwenBlacker (Bypassed redirect to Help:IPA for Japanese) |
imported>Nardog |
||
Line 1: | Line 1: | ||
− | <includeonly><span class="IPA" style="white-space:nowrap">[[Help:IPA | + | <includeonly><span class="IPA" style="white-space:nowrap">[[Help:IPA/Japanese|{{#switch:{{{1}}}|[-|[]|[]AUD=[|/-|//|//AUD=/|--|-]|-/|-]AUD|-/AUD=|[}}{{#switch:{{{1|}}}|[-|-]|[]|/-|-/|//|--|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-ja|{{{1}}}|{{{2|}}}}}}}{{#if:{{{2|}}}|{{#switch:{{{1|}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-ja|{{{2|}}}|{{{3|}}}}}}}}}{{#if:{{{3|}}}|{{c-ja|{{{3}}}|{{{4|}}}}}}}{{#if:{{{4|}}}|{{c-ja|{{{4}}}|{{{5|}}}}}}}{{#if:{{{5|}}}|{{c-ja|{{{5}}}|{{{6|}}}}}}}{{#if:{{{6|}}}|{{c-ja|{{{6}}}|{{{7|}}}}}}}{{#if:{{{7|}}}|{{c-ja|{{{7}}}|{{{8|}}}}}}}{{#if:{{{8|}}}|{{c-ja|{{{8}}}|{{{9|}}}}}}}{{#if:{{{9|}}}|{{c-ja|{{{9}}}|{{{10|}}}}}}}{{#if:{{{10|}}}|{{c-ja|{{{10}}}|{{{11|}}}}}}}{{#if:{{{11|}}}|{{c-ja|{{{11}}}|{{{12|}}}}}}}{{#if:{{{12|}}}|{{c-ja|{{{12}}}|{{{13|}}}}}}}{{#if:{{{13|}}}|{{c-ja|{{{13}}}|{{{14|}}}}}}}{{#if:{{{14|}}}|{{c-ja|{{{14}}}|{{{15|}}}}}}}{{#if:{{{15|}}}|{{c-ja|{{{15}}}|{{{16|}}}}}}}{{#if:{{{16|}}}|{{c-ja|{{{16}}}|{{{17|}}}}}}}{{#if:{{{17|}}}|{{c-ja|{{{17}}}|{{{18|}}}}}}}{{#if:{{{18|}}}|{{c-ja|{{{18}}}|{{{19|}}}}}}}{{#if:{{{19|}}}|{{c-ja|{{{19}}}|{{{20|}}}}}}}{{#if:{{{20|}}}|{{c-ja|{{{20}}}|{{{21|}}}}}}}{{#if:{{{21|}}}|{{c-ja|{{{21}}}|{{{22|}}}}}}}{{#if:{{{22|}}}|{{c-ja|{{{22}}}|{{{23|}}}}}}}{{#if:{{{23|}}}|{{c-ja|{{{23}}}|{{{24|}}}}}}}{{#if:{{{24|}}}|{{c-ja|{{{24}}}|{{{25|}}}}}}}{{#if:{{{25|}}}|{{c-ja|{{{25}}}|{{{26|}}}}}}}{{#if:{{{26|}}}|{{c-ja|{{{26}}}|{{{27|}}}}}}}{{#if:{{{27|}}}|{{c-ja|{{{27}}}|{{{28|}}}}}}}{{#if:{{{28|}}}|{{c-ja|{{{28}}}|{{{29|}}}}}}}{{#if:{{{29|}}}|{{c-ja|{{{29}}}|{{{30|}}}}}}}{{#if:{{{30|}}}|{{c-ja|{{{30}}}|{{{31|}}}}}}}{{#if:{{{31|}}}|{{c-ja|{{{31}}}|{{{32|}}}}}}}{{#if:{{{32|}}}|{{c-ja|{{{32}}}|{{{33|}}}}}}}{{#if:{{{33|}}}|{{c-ja|{{{33}}}|{{{34|}}}}}}}{{#switch:{{{1}}}|-]|[]|-]AUD|[]AUD=]|-/|//|\/AUD|//AUD=/|--|[-|/-=|]}}]]</span>{{#switch:{{{1}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD={{IPA audio link|{{{2}}} }}}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 16:59, 5 August 2017
This template is used to produce a phonetic representation (using the IPA system) of Japanese words, using natural spelling to avoid the need to search for the correct phonetic symbols. The result is wikilinked to Help:IPA for Japanese. Optionally, an audio file can be specified.
Usage
The number of parameters is limited to 33. Usage is analogous to {{IPAc-pl}}, but pipes separate moras.
Examples:
- {{IPAc-ja|ku|ro|si|o}} → [kɯɾoɕio] (IPA and allophones)
- {{IPAc-ja|sa|i|goo|-|no|-|tu|bo|ne}} → [saiɡoː no tsɯbone] (spacing, long vowels, and diphthongs; oo and tu accepted for ō and tsu)
- {{IPAc-ja|ni|ho|'|n}} → [ɲihoꜜɴ] (accent/downstep)
- {{IPAc-ja|hu|n|ō}} → [ɸɯɰ̃oː] (nasal coda)
- {{IPAc-ja|ke|s|si|n|ba}} → [keɕɕimba] (geminate consonants need to be specified as 'k', 't', 'p', or 's', but coda nasal can just be 'n')
- {{IPAc-ja|su|*|ki|ya|ki|*}} → [sɯ̥kijaki̥] (voiceless vowels need to be added manually)
Various romanizations are accepted ('ti' or 'chi', 'ō' or 'oo', etc.), but kana is only partially supported. Long vowels are accepted with a consonant (gō or goo above), but diphthongs require a second cell. For geminate consonants, a value 'p', 't', 's', 'k' needs to be specified. Enter an apostrophe in its own cell for downstep (change in pitch) – do not use an apostrophe to separate a coda nasal, just use a pipe. Use a hyphen to separate words. Syllable breaks (".") are not supported.
The conversion system is coded in Template:c-ja.
See also
ja:Template:IPAc-ja pt:Predefinição:IPAc-ja
The above documentation is transcluded from Template:IPAc-ja/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |