Template:TTS/aural: Difference between revisions
Appearance
m debug version / forgotten "default" marker |
m wave score debug |
||
Line 1: | Line 1: | ||
{{HueCSS}} | {{HueCSS}}<!-- | ||
<includeonly><onlyinclude><{{{html|span}}} {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} class="tts {{{class|}}}" {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{tts|}}}{{{2|}}}{{{title|}}}=title{{=}}""|{{{tts|}}}{{{title|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}{{{title|}}}=title{{=}}"{{{tts|}}}"|#default=title{{=}}"{{{title|}}}"}}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="bracket" aria-hidden="true"> (</span><span class="help">pronounced </span><i {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{lang2|}}}{{{lang|}}}=data-lang{{=}}""|{{{lang|}}}=data-lang{{=}}"{{{lang2}}}"|{{{lang2|}}}=data-lang{{=}}"{{{lang}}}"|#default=data-lang{{=}}""}}class="aural">{{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{tts|}}}{{{2|}}}{{{1|}}} = error: TTS pronunciation missing | {{{tts|}}}{{{1|}}} = {{{2|error: TTS pronunciation missing}}} | {{{2|}}}{{{1|}}} = {{{tts|error: TTS pronunciation missing}}} | #default = {{{1|error: TTS pronunciation missing}}} }}</i><span class="bracket" aria-hidden="true">)</span></{{{html|span}}}></onlyinclude></includeonly> | --><includeonly><onlyinclude><{{{html|span}}} {{#if:{{{lang|}}}|lang="{{{lang}}}"|}} class="tts {{{class|}}}" {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{tts|}}}{{{2|}}}{{{title|}}}=title{{=}}""|{{{tts|}}}{{{title|}}}=title{{=}}"{{{2|}}}"|{{{2|}}}{{{title|}}}=title{{=}}"{{{tts|}}}"|#default=title{{=}}"{{{title|}}}"}}><span class="visual" aria-hidden="true">{{{1}}}</span><span class="bracket" aria-hidden="true"> (</span><span class="help">pronounced </span><i {{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}}|{{{lang2|}}}{{{lang|}}}=data-lang{{=}}""|{{{lang|}}}=data-lang{{=}}"{{{lang2}}}"|{{{lang2|}}}=data-lang{{=}}"{{{lang}}}"|#default=data-lang{{=}}""}}class="aural">{{#switch: {{{ParameterWhichShouldAlwaysBeEmpty|}}} | {{{tts|}}}{{{2|}}}{{{1|}}} = error: TTS pronunciation missing | {{{tts|}}}{{{1|}}} = {{{2|error: TTS pronunciation missing}}} | {{{2|}}}{{{1|}}} = {{{tts|error: TTS pronunciation missing}}} | #default = {{{1|error: TTS pronunciation missing}}} }}</i><span class="bracket" aria-hidden="true">)</span></{{{html|span}}}></onlyinclude></includeonly><!-- | ||
<!-- | |||
Put visually clearer version below for debug purposes: | Put visually clearer version below for debug purposes: | ||
Line 43: | Line 42: | ||
oddly-pronounced word demo: {{TTS/aural|tts=leet|1337|lang=en}} | oddly-pronounced word demo: {{TTS/aural|tts=leet|1337|lang=en}} | ||
== Debug == | |||
<dl class="wikitable hue three data_wavebuild"> | |||
<div class="row p135" data-return="A + B = C"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="135" data-numbersign="404" data-field="Property" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item">{{#if: | [[E:P135|{{{1}}}]] | [[E:P135|{{TTS|Wavebuilder|Wave-builder}}: route]] }}<ins class="data-structure"> [Item]</ins></dfn></dt> <dd><dl class="wikitable hue values"><dt class="term"></dt> <dd><dfn class="field_geo" data-dimension="S" data-qid="100">[[Ontology:Q617|result element]]<ins class="wave-score" data-score-string="S1 P1 Q1"> <span class="sum">[[Ontology:P158|1]]</span><span class="quilt">{{TTS|:|-}}[[Ontology:P156|1]]</span><span class="ply">{{TTS|:|-}}[[Ontology:P157|1]]</span>{{#if: | <span class="quiltset">{{Ontology:{{{quiltset}}}}}</span> }}</ins>{{#if: | </dfn> }}</dfn></dd> <div class="wrap both"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="134" data-numbersign="404" data-field="Property" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item">{{#if: | [[Ontology:P135|{{{1}}}]] | [[Ontology:P134|forming from]] }}<ins class="data-structure"> [Item]</ins></dfn></dt><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]{{WaveScore|sum=1|quilt=1|ply=1}}</dfn></dd><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]{{WaveScore|sum=1|quilt=1|ply=1}}</dfn></dd></div> <div class="wrap one arg1"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="145" data-numbersign="404" data-field="Property data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item">{{#if: | [[Ontology:P145|{{{1}}}]] | [[Ontology:P145|along with]] }}<ins class="data-structure"> [Item]</ins></dfn></dt><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]{{WaveScore|sum=1|quilt=1|ply=1}}</dfn></dd></div> <div class="wrap one"><dt><dfn class="field_exstruct" data-dimension="P" data-qid="145" data-numbersign="404" data-field="Property data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="" data-structure="item">{{#if: | [[Ontology:P145|{{{1}}}]] | [[Ontology:P145|along with]] }}<ins class="data-structure"> [Item]</ins></dfn></dt><dd><dfn class="number_empty" data-dimension="S0" data-qid="617" data-numbersign="200" data-field="" data-series="" data-work="" data-chapter="" data-tale="" data-object="" data-note="" data-lexeme="L617">[[Ontology:Q617|placeholder]]{{WaveScore|sum=1|quilt=1|ply=1}}</dfn></dd></div></dl></dd></div> | |||
</dl> | |||
== Description == | == Description == |
Revision as of 10:06, 25 August 2025
Demo
pronounced displayed string
pronounced displayed string in older style
oddly-pronounced word demo: pronounced 1337
Debug
- pronounced Wavebuilder: route [Item]
- result element 1pronounced
- 1pronounced
- 1
- along with [Item]
- placeholder 11 -1 -
- along with [Item]
- placeholder 11 -1 -
- result element 1pronounced
Description
This is a template for giving bits of text a TTS pronunciation.
This page is the main "guts" of Template:TTS, which needed to be broken up to properly create linking capabilities.