Skip to content
greek conversion

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.

string

ReaderWriter

The reader and writer of the input’s format.

ReaderWriter

The reader and writer of the output’s format.

PreparedOptions

A preset from ./presets, or what prepareOptions returns; the defaults if omitted.

ConversionResult

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; // → true

If input is not a string, from or to not a reader and writer, or options not prepared options.