Template:TTS: Difference between revisions
m reduce to one line for signatures |
m escape page name |
||
| Line 1: | Line 1: | ||
{{HueCSS}}<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{href|}}}{{{E|}}}{{{R|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}} | {{{E|}}}{{{R|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}] | {{{href|}}}{{{E|}}}{{{R|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | {{{href|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{{E}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}} }}</onlyinclude></includeonly> | {{HueCSS}}<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{href|}}}{{{E|}}}{{{R|}}}{{{oldid|}}} = {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}} | {{{E|}}}{{{R|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}] | {{{href|}}}{{{E|}}}{{{R|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | {{{href|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{PAGENAMEE:{{{E}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}} }}</onlyinclude></includeonly> | ||
<!-- this has to be crammed into one line in order to be used in signatures. | <!-- this has to be crammed into one line in order to be used in signatures. | ||
put more readable version below: | put more readable version below: | ||
| Line 7: | Line 7: | ||
| {{{E|}}}{{{R|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}] | | {{{E|}}}{{{R|}}}{{{oldid|}}} = [{{{href}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}] | ||
| {{{href|}}}{{{E|}}}{{{R|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | | {{{href|}}}{{{E|}}}{{{R|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?oldid={{{oldid}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | ||
| {{{href|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{{E}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | | {{{href|}}} = <span class="plainlinks {{{class|}}}">[https://research.moraleconomy.au/index.php?title={{#if:{{{R|}}}|Philosophical_Research:{{PAGENAMEE:{{{R}}}}}}}{{#if:{{{E|}}}|Ontology:{{PAGENAMEE:{{{E}}}}}{{#if:{{{oldid|}}}|&oldid={{{oldid}}}}} {{Template:TTS/aural|html={{{html|span}}}|class={{{class|}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}}]</span> | ||
| #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}} | | #default = {{Template:TTS/aural|html={{{html|span}}}|lang={{{lang|}}}|lang2={{{lang2|}}}|tts={{{tts|}}}|title={{{title|}}}|NoTitle={{{NoTitle|}}}|{{{1|}}}|{{{2|}}}}} | ||
}} | }} | ||
Revision as of 21:15, 26 September 2025
Demo
{{#switch: | = pronounced displayed string, plus this text put first to be more TTS-friendly | = [{{{href}}} pronounced displayed string, plus this text put first to be more TTS-friendly] | = pronounced displayed string, plus this text put first to be more TTS-friendly | = [https://research.moraleconomy.au/index.php?title=
- default = pronounced displayed string, plus this text put first to be more TTS-friendly
{{#switch: | = pronounced displayed string in older style, plus this text only displayed to TTS | = [{{{href}}} pronounced displayed string in older style, plus this text only displayed to TTS] | = pronounced displayed string in older style, plus this text only displayed to TTS | = [https://research.moraleconomy.au/index.php?title=
- default = pronounced displayed string in older style, plus this text only displayed to TTS
oddly-pronounced word demo: {{#switch: | = pronounced leet | = [{{{href}}} pronounced leet] | = pronounced leet | = [https://research.moraleconomy.au/index.php?title=
- default = pronounced leet
wiki link demo: {{#switch: | Q617 = pronounced leet | Q617 = [{{{href}}} pronounced leet] | Q617 = pronounced leet | = pronounced leet
external link demo: {{#switch: | https://en.wikipedia.org/wiki/Leet = pronounced leet | = pronounced leet | https://en.wikipedia.org/wiki/Leet = pronounced leet | https://en.wikipedia.org/wiki/Leet = [https://research.moraleconomy.au/index.php?title=
- default = pronounced leet
thesis portal demo: {{#switch: | MDem/5.3/1655 judy-hopps = thesis portal entry | MDem/5.3/1655 judy-hopps = [{{{href}}} thesis portal entry] | MDem/5.3/1655 judy-hopps = thesis portal entry | = [https://research.moraleconomy.au/index.php?title=Philosophical_Research:MDem/5.3/1655_judy-hopps
- default = thesis portal entry
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.)
Inner templates
- Template:TTS/aural - this renders basically the whole Template except the optional links, so if you're looking for the Template source go here.