Difference between revisions of "Template:IPAc-cmn/doc"

From blackwiki
Jump to navigation Jump to search
imported>ShakespeareFan00
(Simplify to a list as col-begin/col-end is currently broken with respect to Linter concerns and the new parser...)
imported>J. 'mach' wust
(correction about tones; subsection headers)
Line 19: Line 19:
 
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:
 
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:
 
*<tt>-- [- -] // /- -/ AUD -]AUD //AUD -/AUD</tt>
 
*<tt>-- [- -] // /- -/ AUD -]AUD //AUD -/AUD</tt>
 +
 +
====Initials====
  
 
The following initials are used as in Pinyin, and represent their normal sounds in Standard Mandarin:
 
The following initials are used as in Pinyin, and represent their normal sounds in Standard Mandarin:
 
*<tt>b p m f d t n l g k h j q x zh ch sh r z c s</tt>
 
*<tt>b p m f d t n l g k h j q x zh ch sh r z c s</tt>
 +
 +
====Finals====
  
 
Each final should be entered as a whole parameter, and as if it were not preceded by an initial, though in most cases either form is acceptable:
 
Each final should be entered as a whole parameter, and as if it were not preceded by an initial, though in most cases either form is acceptable:
Line 29: Line 33:
  
 
[[Erhua]] is indicated simply with an ‹-r› as part of the final, e.g., <tt>angr</tt>.
 
[[Erhua]] is indicated simply with an ‹-r› as part of the final, e.g., <tt>angr</tt>.
 
  
 
{{Collapse top|List of Pinyin finals accepted for template input}}
 
{{Collapse top|List of Pinyin finals accepted for template input}}
Line 108: Line 111:
 
{{Collapse bottom}}
 
{{Collapse bottom}}
  
The tones are indicated by their traditional [[tone number]], entered as the parameter after the final. The accent is the accent as used in Pinyin.
+
====Tones====
*<tt>1: ā </tt>
+
 
*<tt>2: á </tt>
+
The tones are indicated by their traditional [[tone number]], entered as the parameter after the final. Note that his template uses IPA tone diacritics, which are different from the Pinyin tone diacritics:
*<tt>3: ǎ </tt>
+
 
*<tt>4: à </tt>
+
{| class="wikitable" style="margin:auto;"
*<tt>5: a </tt>
+
|-
 +
! Tone number !! Input !! Result !! Pinyin
 +
|-
 +
| 1 || {{demo|<nowiki>{{IPAc-cmn|a|1}}</nowiki>|br={{!}}{{!}}}} || ā
 +
|-
 +
| 2 || {{demo|<nowiki>{{IPAc-cmn|a|2}}</nowiki>|br={{!}}{{!}}}} || á
 +
|-
 +
| 3 || {{demo|<nowiki>{{IPAc-cmn|a|3}}</nowiki>|br={{!}}{{!}}}} || ǎ
 +
|-
 +
| 4 || {{demo|<nowiki>{{IPAc-cmn|a|4}}</nowiki>|br={{!}}{{!}}}} || à
 +
|-
 +
| 5 || {{demo|<nowiki>{{IPAc-cmn|a|5}}</nowiki>|br={{!}}{{!}}}} || a
 +
|}
 +
 
 +
====Special parameters====
  
 
The following parameters have special meanings:
 
The following parameters have special meanings:

Revision as of 00:06, 8 December 2018

This template is used to produce a phonetic or phonemic representation (using the IPA system) of Mandarin Chinese words or sounds, using Pinyin input to avoid the need to search for the correct phonetic symbols. The result is wikilinked to Help:IPA for Mandarin. Optionally, an audio file can also be specified.

Usage

The number of parameters is always limited to 41 (Note: parameter #41 can only be a tone number).

Normal usage:

With an audio file:

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):

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

Initials

The following initials are used as in Pinyin, and represent their normal sounds in Standard Mandarin:

  • b p m f d t n l g k h j q x zh ch sh r z c s

Finals

Each final should be entered as a whole parameter, and as if it were not preceded by an initial, though in most cases either form is acceptable:

  • yong (or iong), wa (or ua), etc.

But note that the finals with ⟨ü⟩, despite usually being written ⟨u⟩ in Pinyin, must either be substituted with yu ü v, or written together with the initial j, q, or x. Similarly, the null final of shi, ri, etc. must either be substituted with ^ (a caret), or written together with the initial z(h) c(h) s(h) or r.

Erhua is indicated simply with an ‹-r› as part of the final, e.g., angr.

List of Pinyin finals accepted for template input

Tones

The tones are indicated by their traditional tone number, entered as the parameter after the final. Note that his template uses IPA tone diacritics, which are different from the Pinyin tone diacritics:

Tone number Input Result Pinyin
1
{{IPAc-cmn|a|1}}
[[Help:IPA/Mandarin|[aTemplate:Tone-cmn]]] ā
2
{{IPAc-cmn|a|2}}
[[Help:IPA/Mandarin|[aTemplate:Tone-cmn]]] á
3
{{IPAc-cmn|a|3}}
[[Help:IPA/Mandarin|[aTemplate:Tone-cmn]]] ǎ
4
{{IPAc-cmn|a|4}}
[[Help:IPA/Mandarin|[aTemplate:Tone-cmn]]] à
5
{{IPAc-cmn|a|5}}
[[Help:IPA/Mandarin|[aTemplate:Tone-cmn]]] a

Special parameters

The following parameters have special meanings:

  • - (hyphen) for a space between words
  • . (period) for a syllable break
  • ' (apostrophe) for a primary stress mark (placed before the stressed syllable)
  • , (comma) for a secondary stress mark (placed before the stressed syllable)

Other values used as parameters will be displayed unconverted. (The conversion system is coded in Template:c-cmn. The tones are encoded in Template:tone-cmn)

See also