rel-pronunciation: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(PLS Pronunciation Lexicons, EPUB 3.0 use-case.)
 
(Added a different kind of example twice, added a missing comma, deleted a hyphen, and capitalized proper names.)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
=== Summary ===
=== 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.
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 either a given phonetic alphabet or a pronunciation analogy (such as, for the written "read", either "red" or "reed").


=== Details ===
=== 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.
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 or whether the word "read" should be spoken in the past or present tense (chosen by providing the context in the pronunciation file).


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.
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.
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]

Latest revision as of 03:21, 19 November 2017

'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 either a given phonetic alphabet or a pronunciation analogy (such as, for the written "read", either "red" or "reed").

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 or whether the word "read" should be spoken in the past or present tense (chosen by providing the context in the pronunciation file).

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