Skip to content
greek conversion

ConverterConversionResult

Defined in: src/converter.ts:211 (opens in a new tab)

Detailed conversion result with character diagnostics kept separate.

diagnostics: readonly CharacterScopeDiagnostic[]

Defined in: src/converter.ts:213 (opens in a new tab)

Non-lossy repertoire and preset-mapping diagnostics from the source.


losses: readonly ConversionLoss[]

Defined in: src/converter.ts:215 (opens in a new tab)

Information losses inherited from the ordinary conversion contract.

ConversionResult.losses


lossy: boolean

Defined in: src/losses.ts:95 (opens in a new tab)

Whether at least one source distinction was lost.

ConversionResult.lossy


output: string

Defined in: src/losses.ts:93 (opens in a new tab)

Rendered target text.

ConversionResult.output


spans: readonly ConversionSpan[]

Defined in: src/converter.ts:224 (opens in a new tab)

One span per token of the prepared source document (the parsed input, with out-of-scope characters preserved as literals, except the letters of a decimal numeral), as in convertDetailed(): positions are in the input as supplied, before the converter’s own spellings are substituted, and in the output as returned, after the custom forms are written.

ConversionResult.spans