PDFium Component Docs

SpokenTextAppend funzione

Unità: PDFium
Aggiunge un run parlato mappato a TPdfSpokenText

Syntax

procedure SpokenTextAppend(var Spoken: TPdfSpokenText; const SpokenPart: WString; Page, StartIndex: Integer; SourceCount: Integer = -1);

Parameters

SpokenTPdfSpokenText - Chunk che riceve il testo parlato e la voce span
SpokenPartWString - Run di testo passata al motore vocale
PageInteger - Numero di pagina sorgente a base uno
StartIndexInteger - Indice di carattere sorgente FTextPage a base zero
SourceCountInteger - Conteggio dei caratteri sorgente, oppure -1 per usare la lunghezza del run parlato

Description

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

Remarks

Example

Spoken.Text := '';
Spoken.Spans := nil;
SpokenTextAppend(Spoken, UnitText, 1, UnitStart, UnitLength);

See Also

TPdfSpokenText, SpokenToPageChar, BuildSpokenTextFromWords