Skip to content
greek conversion

@humanities/greek-conversion/presets

The presets as prepared options, for the functions of the ./core entry point: iso843Type2 for { preset: "iso-843-type-2" }, and so on. A bundle keeps only the presets it imports, and neither the validation of options nor the table of the presets. To change a preset’s options, prepare them with prepareOptions(), which takes the preset by name: spreading a preset copies none of its options, and is refused.

import { convert } from "@humanities/greek-conversion/core";
import { greekReader } from "@humanities/greek-conversion/greek";
import { sblGeneral } from "@humanities/greek-conversion/presets";
import { transliterationWriter } from "@humanities/greek-conversion/transliteration";
convert("λόγος", greekReader, transliterationWriter, sblGeneral); // → logos

Re-exports PreparedOptions