Template:cs-IPA/documentation

Basic usage
This template generates IPA transcriptions of Czech words using Module:cs-pronunciation. It needs no input in most cases, since it will automatically generate the pronunciation using the entry name. To transcribe a pronunciation different from the entry name, add a respelled pronunciation in the first parameter. A stress mark is added if the term has more than one syllable and does not contain a space. Otherwise, place  or   before the stressed syllable, and they will be transformed respectively into the primary stress mark  or the secondary stress mark.

For a glottal stop, use, the symbol for the glottal stop in.

Examples:

Substitution notation
In place of a fully respelled term, you can use a substitution to replace just part of the term and leave the rest as-is. For example, for the page, in place of a respelling , you could write. Enough context needs to be provided to make the "from" part of the replacement unique; otherwise, an error will be thrown.

Because of the commonness of certain substitutions such as, a shorter form known as a single-part substitution is allowed. If just the "to" part of the replacement is specified between brackets, the "from" part will be generated as follows: For example, a spec like  when applied to a word like  is short for , which in turn is short for a full respelling. Similarly, the spec  when applied to a word like  is short for , which in turn is short for a full respelling. Note that "partially converted" matches also work in single-part substitutions; e.g. the spec  will match against both  and, in both cases generating the respelling.
 * Convert  to.
 * Convert  to.
 * Convert long vowels to short vowels.
 * Remove question marks (glottal stop indicators).

You can include more than one comma-separated substitution between brackets. E.g. for, you could use [dy,ty] to specify two respellings  and. For, you could use [su:si,ty] to specify a respelling  (which shows that you can mix single-part and two-part substitutions).

Note that an error will be thrown if a substitution can match in multiple places. If this is intended, you need to specify the substitution twice, with appropriate disambiguating context. For example, for, you could use a spec like [anty,tyk]; you cannot write [ty] because this matches  in two places (even though this is correct in this particular case).