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.
Parameters
Section titled “Parameters”string
The writer of the passages’ format in the output.
options?
Section titled “options?”A preset from ./presets, or what prepareOptions
returns; the defaults if omitted.
Returns
Section titled “Returns”string
Example
Section titled “Example”import { convertGreekPassages } from "@humanities/greek-conversion/core";import { transliterationWriter } from "@humanities/greek-conversion/transliteration";
convertGreekPassages("see λόγος; also", transliterationWriter);// → see lógos; alsoThrows
Section titled “Throws”If input is not a string, to not a writer, or
options not prepared options.