TPdfSpokenTextprocedure SpokenTextAppend(var Spoken: TPdfSpokenText; const SpokenPart: WString; Page, StartIndex: Integer; SourceCount: Integer = -1);
| Spoken | TPdfSpokenText - Chunk che riceve il testo parlato e la voce span |
| SpokenPart | WString - Run di testo passata al motore vocale |
| Page | Integer - Numero di pagina sorgente a base uno |
| StartIndex | Integer - Indice di carattere sorgente FTextPage a base zero |
| SourceCount | Integer - Conteggio dei caratteri sorgente, oppure -1 per usare la lunghezza del run parlato |
SpokenTextAppend aggiunge SpokenPart a Spoken.Text e registra un TPdfSpokenSpan che riporta l'offset parlato al testo della pagina
Quando Spoken.Text ha già contenuto, l'helper inserisce uno spazio separatore prima del nuovo run; quel separatore è volutamente non mappato
Spoken.Text := '';
Spoken.Spans := nil;
SpokenTextAppend(Spoken, UnitText, 1, UnitStart, UnitLength);