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.
Parameters
Section titled “Parameters”string
The format of the passages in the output.
options?
Section titled “options?”ConversionOptions | PreparedOptions = {}
Returns
Section titled “Returns”Example
Section titled “Example”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"]Throws
Section titled “Throws”If input is not a string.
Throws
Section titled “Throws”If the format is unknown; an OptionError (a
RangeError) if a preset, an option key, or an option value is.