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

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
m (Fix Linter errors using AutoEd)
imported>John of Reading
m (→‎Usage: Typo fixing, replaced: a unstressed → an unstressed)
 
Line 25: Line 25:
 
*<code>'</code> (apostrophe) for a primary stress mark (placed before the stressed syllable)
 
*<code>'</code> (apostrophe) for a primary stress mark (placed before the stressed syllable)
 
*<code>,</code> (comma) for a secondary stress mark
 
*<code>,</code> (comma) for a secondary stress mark
−
*<code><</code> (less-than) for a unstressed mark (placed after the unstressed vowel, in same or next parameter)
+
*<code><</code> (less-than) for an unstressed mark (placed after the unstressed vowel, in same or next parameter)
  
 
Other values used as parameters will be displayed unconverted. The conversion system is coded in {{flagicon|BRA}} {{tl|c-pt-br}} and {{flagicon|POR}} {{tl|c-pt-pt}}.
 
Other values used as parameters will be displayed unconverted. The conversion system is coded in {{flagicon|BRA}} {{tl|c-pt-br}} and {{flagicon|POR}} {{tl|c-pt-pt}}.

Latest revision as of 10:41, 2 July 2020

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

Usage

The number of parameters is always limited to 100.

Normal usage:

With an audio file:

  • {{IPAc-pt|R|e|'|p|ú|b|l|i|c|a|-|f|e|d|E|r|a|'|t|i|v|a|-|d|o|-|b|r|a|'|S|il|audio=Pt-br-República Federativa do Brasil.ogg|lang=br}}
    produces [ʁeˈpublika fedɛɾaˈtiva do bɾaˈziw] (Audio file "Pt-br-República_Federativa_do_Brasil.ogg" not found)
  • {{IPAc-pt|'|c|r|u|Z|-|v|e<|r|'|m|e|lh|a|-|p|o|<|r|t|u|'|gu|e|S|a|audio=Pt-pt-Cruz Vermelha.ogg|lang=pt}}
    produces [ˈkɾuʒ vɨɾˈmeʎa poɾtuˈɣweza] (Audio file "Pt-pt-Cruz Vermelha.ogg" not found)

To change the brackets to slashes:

  • {{IPAc-pt|e|'x|em|p|l|o|lang=br|slashes=yes}} → /eˈzẽplo/
or

The following parameters have special meanings:

  • - (hyphen) for a space between words
  • _ (underscore) Liaison
  • ' (apostrophe) for a primary stress mark (placed before the stressed syllable)
  • , (comma) for a secondary stress mark
  • < (less-than) for an unstressed mark (placed after the unstressed vowel, in same or next parameter)

Other values used as parameters will be displayed unconverted. The conversion system is coded in 23x15px {{c-pt-br}} and 23x15px {{c-pt-pt}}.

See also