Template:IPAc-en: Difference between revisions
meta>Kwamikagami m →Usage |
meta>Kotniski No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span class="IPA" style="white-space:nowrap">[[Wikipedia:IPA for English|{{#switch:{{{1}}}|[-|[]|[]AUD=[|/-|//|//AUD=/|--|-]|-/|-]AUD|-/AUD=|/}}{{#switch:{{{1|}}}|[-|-]|[]|/-|-/|//|--|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-en|{{{1}}}}}}}{{#if:{{{2|}}}|{{#switch:{{{1|}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-en|{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{c-en|{{{3}}}}}}}{{#if:{{{4|}}}|{{c-en|{{{4}}}}}}}{{#if:{{{5|}}}|{{c-en|{{{5}}}}}}}{{#if:{{{6|}}}|{{c-en|{{{6}}}}}}}{{#if:{{{7|}}}|{{c-en|{{{7}}}}}}}{{#if:{{{8|}}}|{{c-en|{{{8}}}}}}}{{#if:{{{9|}}}|{{c-en|{{{9}}}}}}}{{#if:{{{10|}}}|{{c-en|{{{10}}}}}}}{{#if:{{{11|}}}|{{c-en|{{{11}}}}}}}{{#if:{{{12|}}}|{{c-en|{{{12}}}}}}}{{#if:{{{13|}}}|{{c-en|{{{13}}}}}}}{{#if:{{{14|}}}|{{c-en|{{{14}}}}}}}{{#if:{{{15|}}}|{{c-en|{{{15}}}}}}}{{#if:{{{16|}}}|{{c-en|{{{16}}}}}}}{{#if:{{{17|}}}|{{c-en|{{{17}}}}}}}{{#if:{{{18|}}}|{{c-en|{{{18}}}}}}}{{#if:{{{19|}}}|{{c-en|{{{19}}}}}}}{{#if:{{{20|}}}|{{c-en|{{{20}}}}}}}{{#if:{{{21|}}}|{{c-en|{{{21}}}}}}}{{#if:{{{22|}}}|{{c-en|{{{22}}}}}}}{{#if:{{{23|}}}|{{c-en|{{{23}}}}}}}{{#if:{{{24|}}}|{{c-en|{{{24}}}}}}}{{#if:{{{25|}}}|{{c-en|{{{25}}}}}}}{{#if:{{{26|}}}|{{c-en|{{{26}}}}}}}{{#if:{{{27|}}}|{{c-en|{{{27}}}}}}}{{#if:{{{28|}}}|{{c-en|{{{28}}}}}}}{{#if:{{{29|}}}|{{c-en|{{{29}}}}}}}{{#if:{{{30|}}}|{{c-en|{{{30}}}}}}}{{#if:{{{31|}}}|{{c-en|{{{31}}}}}}}{{#if:{{{32|}}}|{{c-en|{{{32}}}}}}}{{#if:{{{33|}}}|{{c-en|{{{33}}}}}}}{{#switch:{{{1}}}|-]|[]|-]AUD|[]AUD=]|-/|//|\/AUD|//AUD=/|--|[-|/-=|/}}]]</span>{{#switch:{{{1}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=<small> ([[Image:Ltspkr.png|link=:Media:{{{2}}}]] [[:Media:{{{2}}}|listen]])</small>}}</includeonly><noinclude> | <includeonly><span class="IPA" style="white-space:nowrap">[[Wikipedia:IPA for English|{{#switch:{{{1}}}|[-|[]|[]AUD=[|/-|//|//AUD=/|--|-]|-/|-]AUD|-/AUD=|/}}{{#switch:{{{1|}}}|[-|-]|[]|/-|-/|//|--|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-en|{{{1}}}}}}}{{#if:{{{2|}}}|{{#switch:{{{1|}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=|{{c-en|{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{c-en|{{{3}}}}}}}{{#if:{{{4|}}}|{{c-en|{{{4}}}}}}}{{#if:{{{5|}}}|{{c-en|{{{5}}}}}}}{{#if:{{{6|}}}|{{c-en|{{{6}}}}}}}{{#if:{{{7|}}}|{{c-en|{{{7}}}}}}}{{#if:{{{8|}}}|{{c-en|{{{8}}}}}}}{{#if:{{{9|}}}|{{c-en|{{{9}}}}}}}{{#if:{{{10|}}}|{{c-en|{{{10}}}}}}}{{#if:{{{11|}}}|{{c-en|{{{11}}}}}}}{{#if:{{{12|}}}|{{c-en|{{{12}}}}}}}{{#if:{{{13|}}}|{{c-en|{{{13}}}}}}}{{#if:{{{14|}}}|{{c-en|{{{14}}}}}}}{{#if:{{{15|}}}|{{c-en|{{{15}}}}}}}{{#if:{{{16|}}}|{{c-en|{{{16}}}}}}}{{#if:{{{17|}}}|{{c-en|{{{17}}}}}}}{{#if:{{{18|}}}|{{c-en|{{{18}}}}}}}{{#if:{{{19|}}}|{{c-en|{{{19}}}}}}}{{#if:{{{20|}}}|{{c-en|{{{20}}}}}}}{{#if:{{{21|}}}|{{c-en|{{{21}}}}}}}{{#if:{{{22|}}}|{{c-en|{{{22}}}}}}}{{#if:{{{23|}}}|{{c-en|{{{23}}}}}}}{{#if:{{{24|}}}|{{c-en|{{{24}}}}}}}{{#if:{{{25|}}}|{{c-en|{{{25}}}}}}}{{#if:{{{26|}}}|{{c-en|{{{26}}}}}}}{{#if:{{{27|}}}|{{c-en|{{{27}}}}}}}{{#if:{{{28|}}}|{{c-en|{{{28}}}}}}}{{#if:{{{29|}}}|{{c-en|{{{29}}}}}}}{{#if:{{{30|}}}|{{c-en|{{{30}}}}}}}{{#if:{{{31|}}}|{{c-en|{{{31}}}}}}}{{#if:{{{32|}}}|{{c-en|{{{32}}}}}}}{{#if:{{{33|}}}|{{c-en|{{{33}}}}}}}{{#switch:{{{1}}}|-]|[]|-]AUD|[]AUD=]|-/|//|\/AUD|//AUD=/|--|[-|/-=|/}}]]</span>{{#switch:{{{1}}}|-]AUD|[]AUD|-/AUD|//AUD|AUD=<small> ([[Image:Ltspkr.png|link=:Media:{{{2}}}]] [[:Media:{{{2}}}|listen]])</small>}}</includeonly><noinclude>This template is used to produce a phonetic or phonemic representation (using the [[IPA]] system) of English words or sounds, using ASCII spelling to avoid the need to search for the correct phonetic symbols. The result is wikilinked to [[Wikipedia:IPA for English]]. Optionally, an audio file can also be specified. | ||
This template is used to produce a phonetic or phonemic representation (using the [[IPA]] system) of English words or sounds, using ASCII spelling to avoid the need to search for the correct phonetic symbols. The result is wikilinked to [[Wikipedia:IPA for English]]. Optionally, an audio file can also be specified. | |||
===Usage=== | ===Usage=== | ||
Line 27: | Line 25: | ||
*<tt>j</tt> (or <tt>y</tt>) for "y" as in "yes" | *<tt>j</tt> (or <tt>y</tt>) for "y" as in "yes" | ||
*<tt>N</tt> (or <tt>ng</tt>) for "ng" as in "sing" | *<tt>N</tt> (or <tt>ng</tt>) for "ng" as in "sing" | ||
*<tt>@</tt> for schwa (as in "'''a'''bout" and "Chin'''a'''"); <tt>@r</tt> for schwa+r (as in "bett'''er'''") | *<tt>@ </tt> for schwa (as in "'''a'''bout" and "Chin'''a'''"); <tt>@r </tt> for schwa+r (as in "bett'''er'''") | ||
*<tt>I, E, &, V, o, U</tt> for the short vowels of ''bit, bet, bat, but, pot, put'' | *<tt>I, E, &, V, o, U </tt> for the short vowels of ''bit, bet, bat, but, pot, put'' | ||
*<tt>i:, a:, o:, u:</tt> for the long vowels of ''beat, calm, law, too'' | *<tt>i:, a:, o:, u: </tt> for the long vowels of ''beat, calm, law, too'' | ||
*<tt>ar, 3r, or</tt> for the r-colored vowels of ''cart, dirt, sort'' | *<tt>ar, 3r, or </tt> for the r-colored vowels of ''cart, dirt, sort'' | ||
*<tt>ei, ou, ai, oi, au</tt> for the diphthongs of ''bait, boat, bite, boy, bout'' | *<tt>ei, ou, ai, oi, au </tt> for the diphthongs of ''bait, boat, bite, boy, bout'' | ||
*<tt>eir, ir, ur</tt> for the r-coloured diphthongs of ''bare, beer, lure'' | *<tt>eir, ir, ur </tt> for the r-coloured diphthongs of ''bare, beer, lure'' | ||
*<tt>I-, U-, ou-</tt> for instances of those sounds which may alternate with schwa | *<tt>I-, U-, ou- </tt> for instances of those sounds which may alternate with schwa | ||
The following parameters have special meanings: | The following parameters have special meanings: | ||
*<tt>-</tt> (hyphen) for a space between words | *<tt>- </tt> (hyphen) for a space between words | ||
*<tt>'</tt> (apostrophe) for a primary stress mark (placed before the stressed syllable) | *<tt>' </tt> (apostrophe) for a primary stress mark (placed before the stressed syllable) | ||
*<tt>,</tt> (comma) for a secondary stress mark | *<tt>, </tt> (comma) for a secondary stress mark | ||
Other values used as parameters will be displayed unconverted. (The conversion system is coded in [[Template:c-en]].) | Other values used as parameters will be displayed unconverted. (The conversion system is coded in [[Template:c-en]].) |
Revision as of 16:47, 2 November 2009
This template is used to produce a phonetic or phonemic representation (using the IPA system) of English words or sounds, using ASCII spelling to avoid the need to search for the correct phonetic symbols. The result is wikilinked to Wikipedia:IPA for English. Optionally, an audio file can also be specified.
Usage
The number of parameters is always limited to 33.
Normal usage:
- {{IPAc-en|f|@|'|n|E|t|I|k|s}} produces [[Wikipedia:IPA for English|/Template:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-en/]]
- {{IPAc-en|'|s|E|k|j|U|l|@r|-|,|or|g|@|n|ai|'|z|ei|S|@|n}} produces [[Wikipedia:IPA for English|/Template:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-en/]]
With an audio file:
- {{IPAc-en|AUD|en-us-Alabama.ogg|,|&|l|@|'|b|&|m|@}} produces [[Wikipedia:IPA for English|/Template:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-en/]] (File:Ltspkr.png listen)
To change the delimiters (for example, if several instances of the template need to be strung together because of the limit on the number of parameters):
- {{IPAc-en|/-|,|&|n|t|I|d|I|s|I-|,|s|t|&|b|l|I|S|m|@|n|'|t|eir|I|@|n|I|z|@|m}} produces [[Wikipedia:IPA for English|/Template:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-enTemplate:C-en]]
The full range of special values for the first parameter (changing the delimiters and/or specifying that the next parameter is an audio file) is as follows:
- -- [- -] [] /- -/ AUD -]AUD []AUD -/AUD
The following parameters represent their normal sounds in English:
- b d f g h k l m n p r s t v w
Other sounds are represented using the following parameters (not all alternatives are given):
- S (or sh) for "sh", Z (or zh) for "zh" as in "vision"
- tS (or ch) for "ch", dZ (or J) for "j" as in "jump"
- T (or th) for "th" as in "think", D (or dh) for "th" as in "they"
- j (or y) for "y" as in "yes"
- N (or ng) for "ng" as in "sing"
- @ for schwa (as in "about" and "China"); @r for schwa+r (as in "better")
- I, E, &, V, o, U for the short vowels of bit, bet, bat, but, pot, put
- i:, a:, o:, u: for the long vowels of beat, calm, law, too
- ar, 3r, or for the r-colored vowels of cart, dirt, sort
- ei, ou, ai, oi, au for the diphthongs of bait, boat, bite, boy, bout
- eir, ir, ur for the r-coloured diphthongs of bare, beer, lure
- I-, U-, ou- for instances of those sounds which may alternate with schwa
The following parameters have special meanings:
- - (hyphen) for a space between words
- ' (apostrophe) for a primary stress mark (placed before the stressed syllable)
- , (comma) for a secondary stress mark
Other values used as parameters will be displayed unconverted. (The conversion system is coded in Template:c-en.)
See also