Skip to content
greek conversion

convertGreekPassages

convertGreekPassages(input, to, options?): string

Defined in: src/core.ts:255 (opens in a new tab)

Converts the Greek passages of a text, read as Greek, and copies the rest as it is: convertGreekPassages() from the main entry point, with a writer. A bundle keeps it only if it imports it.

string

Writer

The writer of the passages’ format in the output.

PreparedOptions

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

string

import { convertGreekPassages } from "@humanities/greek-conversion/core";
import { transliterationWriter } from "@humanities/greek-conversion/transliteration";
convertGreekPassages("see λόγος; also", transliterationWriter);
// → see lógos; also

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