Skip to content
greek conversion

convertGreekPassagesDetailed

convertGreekPassagesDetailed(input, to, options?): ConversionResult

Defined in: src/mod.ts:365 (opens in a new tab)

convertGreekPassages, with the losses and the spans of convertDetailed. The text copied keeps what it has, and its spans in the output are those in the input, moved; the losses are those of the passages.

string

Format

The format of the passages in the output.

ConversionOptions | PreparedOptions = {}

ConversionResult

import { convertGreekPassagesDetailed } from "@humanities/greek-conversion";
const result = convertGreekPassagesDetailed("voir ϐίος ;", "beta-code");
result.output; // → voir bi/os ;
result.losses.map((loss) => loss.code); // → ["removed-glyph-variant"]

If input is not a string.

If the format is unknown; an OptionError (a RangeError) if a preset, an option key, or an option value is.