ConversionLoss
Defined in: src/losses.ts:30 (opens in a new tab)
One source token distinction not retained by the rendered target.
Properties
Section titled “Properties”code:
ConversionLossCode
Defined in: src/losses.ts:32 (opens in a new tab)
Stable category suitable for programmatic handling.
diacritic?
Section titled “diacritic?”
optionaldiacritic?:Diacritic
Defined in: src/losses.ts:53 (opens in a new tab)
The affected semantic mark when code is "removed-diacritic",
"added-diacritic", "displaced-diacritic", or "inferred-breathing".
An added diacritic is the diaeresis that transliteration writes on a
contextual y, or Greek output in capitals under greek.capitalMarks,
the accent of καί that greek.kaiAccent writes for ϗ, or a
breathing that greek.doubleRho writes on a double rho read from a
transliteration that writes it (rho: "marked").
glyphVariant?
Section titled “glyphVariant?”
optionalglyphVariant?:GlyphVariant
Defined in: src/losses.ts:61 (opens in a new tab)
The source glyph variant when code is "removed-glyph-variant",
such as "beta-symbol" for ϐ, and the variant the target writes when
it is "added-glyph-variant": a sigma read from s under
lunateSigma: "c", written ϲ under greek.sigma: "lunate"
("lunate-sigma"), converts back to c.
index:
number
Defined in: src/losses.ts:34 (opens in a new tab)
Zero-based token index in the canonical source document.
length
Section titled “length”length:
number
Defined in: src/losses.ts:41 (opens in a new tab)
Length of the source token in the input, in UTF-16 code units.
message
Section titled “message”message:
string
Defined in: src/losses.ts:43 (opens in a new tab)
Human-readable English explanation.
offset
Section titled “offset”offset:
number
Defined in: src/losses.ts:39 (opens in a new tab)
Offset, in UTF-16 code units, of the source token in the input as
supplied: spans[index].inputStart of the result.