convertDetailed
convertDetailed(
input,from,to,options?):ConversionResult
Defined in: src/core.ts:175 (opens in a new tab)
Converts text and reports information that the target representation
cannot retain, and where each source token was read and written: the
result of convertDetailed() from the main entry point.
Both formats are given whole, as greekFormat: the output is read back to
be compared with the source, and letter forms are compared as the source
format writes them.
Parameters
Section titled “Parameters”string
The reader and writer of the input’s format.
The reader and writer of the output’s format.
options?
Section titled “options?”A preset from ./presets, or what prepareOptions
returns; the defaults if omitted.
Returns
Section titled “Returns”Example
Section titled “Example”import { convertDetailed } from "@humanities/greek-conversion/core";import { greekFormat } from "@humanities/greek-conversion/greek";import { transliterationFormat } from "@humanities/greek-conversion/transliteration";
convertDetailed("ϐ", greekFormat, transliterationFormat).lossy; // → trueThrows
Section titled “Throws”If input is not a string, from or to not a reader
and writer, or options not prepared options.