rel-pronunciation: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(PLS Pronunciation Lexicons, EPUB 3.0 use-case.)
 
Line 21: Line 21:
=== See also ===
=== See also ===


* [[existing-rel-values]]
* [[existing-rel-values]]
* [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7601 HTML issue #7601]
* [http://www.w3.org/Bugs/Public/show_bug.cgi?id=7601 HTML issue #7601]

Revision as of 20:18, 17 April 2011

'pronunciation' rel value

Summary

The 'pronunciation' value is proposed for the 'rel' attribute of the 'link' element of HTML. This value signifies that the referenced document provides pronunciation rules suitable for speech synthesis (otherwise known as "Text To Speech", or TTS). Pronunciation instructions describe how specific text tokens should be rendered in the aural dimension using synthetic voice, and are expressed based on a given phonetic alphabet.

Details

The file referenced by the 'link' element contains a set of rules that associates strings of characters (e.g. words, or other kinds of tokens) with pronunciation instructions. For example, a rule is able to define whether the word "tomato" should be spoken with the british or north-american accent.

These pronunciation rules should be processed by voice-enabled user-agents (e.g. web browsers that support TTS rendering), but conversely, "pronunciation" link/rel files can be completely ignored by systems that do not have speech capabilities.

When several pronunciation lexicons are referenced within a single HTML document, and/or when a pronunciation rule is specified more than once for a given string of characters, the last occurrence of the rule takes precedence (in document order), in such a way that any previously-defined pronunciation rule gets overridden.

Existing uses

The 'pronunciation' value is used in the real world by the EPUB 3.0 standard (currently in draft state, due to be published in stable form in 2011).

The format recommended for use is W3C PLS (Pronunciation Lexicon Specification), with the MIME type "application/pls+xml" (and usually, the extension ".pls").

See also