Template:TTS: Difference between revisions
m use switch function to fix linking |
m use external link for internal link |
||
| Line 1: | Line 1: | ||
{{HueCSS}} | {{HueCSS}} | ||
<pre style="display: none;"><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}} | <pre style="display: none;"><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}} | ||
| {{{href|}}}{{{E|}}} = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}} | | {{{href|}}}{{{E|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}} | ||
| {{{E|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}] | | {{{E|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}] | ||
| {{{href|}}} = [ | | {{{href|}}} = <span class="plainlinks">[https://research.moraleconomy.au/index.php?title=Ontology:{{{E}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}}]</span> | ||
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}} | | #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|{{{1|}}}|{{{2|}}}}} | ||
}}</onlyinclude></pre> | }}</onlyinclude></pre> | ||
Revision as of 08:49, 11 August 2025
Demo
pronounced displayed string, plus this text put first to be more TTS-friendly
pronounced displayed string in older style, plus this text only displayed to TTS
oddly-pronounced word demo: pronounced leet
wiki link demo: pronounced leet
external link demo: pronounced leet
Description
This is a template for giving bits of text a TTS pronunciation.
Earlier, aria-label was mistakenly used for this, but it turns out that text substitution for speaking-machines is something that is not currently well-supported in HTML. (This can be a problem when it comes to the temptation to turn everything into "AI" — understanding that every piece of text written by humans is made of arbitrary signifiers, it is incredibly tempting to simply build a dynamic signifier-interpreting agent that actively learns all the exceptions to every rule instead of properly building a system where "dumb" programs or bits of data can easily pass along less-ambiguous messages to each other.)