-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Currently, numbers are not announced by TTS in numbered lists.
Sample markup for which Pipeline should send numbers as text to the TTS:
<ol>
<li><span id="st7-56">Vilka argument för förändringar framfördes i försvarsdebatten av politisk och militär försvarsledning och av fria opinionsbildare?</span><span aria-label="15" role="doc-pagebreak" title="15" ns2:type="pagebreak" id="page-15" class="page-normal"><span id="st7-57">15</span></span></li>
<li><span id="st7-58">Hur förändrades i verkligheten inställningen till försvarsmaktens uppgifter, struktur och organisation?</span></li>
<li><span id="st7-59">Hur kunde de dramatiska förändringarna ske utan politiskt motstånd och utan en omfattande kritisk debatt?</span></li>
</ol>
Comment from @bertfrees:
Incorporating the number in the text that is sent to the TTS is the way to go. We have code in Pipeline to number lists in the braille output based on CSS. I think it's a matter of generalizing this code so that it can be applied for speech output. Not a terribly complicated thing to do, but needs a bit of work.
Note that the Nordic Guidelines have a class "plain", which is used to exclude bulleting/numbering in what is visually rendered (i.e. list-style-type: none;), and it can be used in some cases also for <ol>. If numbered list number text is added, can it be made to honour <ol> with a class "plain" (or rather, <ol> where the resulting CSS instructions would apply through (any) class attribute), so that number text is not sent in those cases? Or would a better way to solve this be to use some speech-specific CSS in the source file?