Skip to content
greek conversion

DiacriticOptions

Defined in: src/options.ts:421 (opens in a new tab)

Which semantic diacritics are kept. all sets every class at once; a class named alongside it is the exception: { all: "remove", roughBreathing: "preserve" }. The shorthand is expanded where it is written, so all in the caller’s options overrides every class a preset set.

Removing a class removes its marks from the output in every format. In transliteration the rough breathing is a letter, h: it goes with its class, so { all: "remove", roughBreathing: "preserve" } keeps it. The letters stay as they are spelled: in transliteration, eta and omega keep the length mark that longVowels selects (η → ē, ω → ō by default), which spells the letter and is not a diacritic.

optional accents?: DiacriticDisposition

Defined in: src/options.ts:388 (opens in a new tab)

Accent marks: acute, grave, and circumflex. Defaults to "preserve".

DiacriticClassOptions.accents


optional all?: DiacriticDisposition

Defined in: src/options.ts:423 (opens in a new tab)

Disposition of every class not named alongside.


optional coronis?: DiacriticDisposition

Defined in: src/options.ts:394 (opens in a new tab)

Internal coronides marking crasis. Defaults to "preserve".

DiacriticClassOptions.coronis


optional diaeresis?: DiacriticDisposition

Defined in: src/options.ts:396 (opens in a new tab)

Diaeresis marks. Defaults to "preserve".

DiacriticClassOptions.diaeresis


optional iotaSubscript?: DiacriticDisposition

Defined in: src/options.ts:398 (opens in a new tab)

Iota subscripts. Defaults to "preserve".

DiacriticClassOptions.iotaSubscript


optional overline?: DiacriticDisposition

Defined in: src/options.ts:405 (opens in a new tab)

The overline of abbreviations and numerals, such as the nomina sacra (θ̅ς̅). Defaults to "preserve".

DiacriticClassOptions.overline


optional quantity?: DiacriticDisposition

Defined in: src/options.ts:400 (opens in a new tab)

Explicit macron and breve quantity marks. Defaults to "preserve".

DiacriticClassOptions.quantity


optional roughBreathing?: DiacriticDisposition

Defined in: src/options.ts:392 (opens in a new tab)

Initial rough breathing marks. Defaults to "preserve".

DiacriticClassOptions.roughBreathing


optional smoothBreathing?: DiacriticDisposition

Defined in: src/options.ts:390 (opens in a new tab)

Initial smooth breathing marks. Defaults to "preserve".

DiacriticClassOptions.smoothBreathing