Template:gl-pr/documentation

This template generates the ===Pronunciation=== section of a Galician term, including the phonemic pronunciation and rhymes, as well as (if manually specified) audio files and homophones.

Vowel quality
The acute accent  used in the standard orthography of Galician indicates stress in the vowels. Note that using  to indicate a stressed mid vowel will return an error, use the following respellings instead: In pre-tonic syllables, the quality of  must be given manually, otherwise the template will return an error. Word-final vowel reduction to is handled automatically. These vowels can also be forced with a breve. For example, for the word we use the respelling   which yields. Note that all stress marks in the respelling will be converted to secondary stress in the IPA transcription, except for the last one.
 * Circumflex accent  indicates stressed mid-close vowels.
 * Grave accent  indicates stressed mid-open vowels.
 * Dot above  indicates unstressed mid-close vowels.
 * Dot below  indicates unstressed mid-open vowels.

In some limited cases, the template is able to deduce the correct pronunciation of  without the need for manual input. In a few cases, these rules will return erroneous outputs, so a manual respelling will be required. For example, and  require the respellings   and , respectively.
 * Words ending in  are assumed to have mid-open vowels.
 * The sequence  is assumed to represent the diphthong.
 * Words ending in  are assumed to have mid-closed vowels.
 * Words ending in  are assumed to be adverbs. The ending is automatically given as, and secondary stress is added to the first part of the adverb.

Diphthongs/hiatuses
The sequences  and   will be treated as falling/rising diphthongs by default. To force a hiatus, add a dot between the vowels.

The sequences  and   are handled in a particular way. The sequence  will be treated as a hiatus by default. In order to force a hiatus in, a dot must be added. When the sequence  forms a diphthong, the output will be  after a velar consonant and  otherwise. The diphthong  will be considered falling.

Parameters
The allowed parameters are as follows:


 * 1, 2, ...
 * Specify a line of pronunciation; see above.


 * rhyme
 * Specify one or more comma-separated rhymes that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for . Use this when there are multiple lines of pronunciations, to avoid additional indentation. If needed, use - to hide the rhymes section.


 * hmp
 * Specify one or more comma-separated homophones that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for . Use this when there are multiple lines of pronunciations, to avoid additional indentation.


 * audio, audio2, ...
 * Specify one or more audio files that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for . (You cannot specify multiple comma-separated audio files in a single parameter, as audio filenames sometimes have embedded commas in them not followed by a space.) Use this when there are multiple lines of pronunciations, to avoid additional indentation.


 * pagename
 * Explicitly specify the pagename, for testing purposes and for use on documentation pages.