Skip to content

TaraskConfig

Defined in: config.ts:28

Conversion options. Every field keeps its name (doEscapeCapitalized, newLine, …) and default. Only predefined wrapper sets are available (wrappers: 'none' | 'html' | 'ansi').

new TaraskConfig() // defaults
new TaraskConfig({ abc: 'latin', g: false })

new TaraskConfig(options?): TaraskConfig

Defined in: config.ts:54

Partial<TaraskConfig> | null

TaraskConfig

abc: TaraskAlphabet = 'cyrillic'

Defined in: config.ts:30

Alphabet: "cyrillic" (default), "latin", "latinJi" or "arabic".


doEscapeCapitalized: boolean = true

Defined in: config.ts:37

Whether capitalized words are protected from changes (default true).


g: boolean = true

Defined in: config.ts:44

Whether to convert ґ→г-style г into ґ where appropriate (default true; false in htmlConfigOptions()).


j: TaraskJ = 'never'

Defined in: config.ts:35

When to replace і by й after vowels: "never" (default), "random" or "always".


leftAngleBracket: string = '<'

Defined in: config.ts:50

Replacement for "<" (default "<", "&lt" in HTML mode).


newLine: string = ‘\n’

Defined in: config.ts:48

Replacement for "\n" (default "\n", "<br>" in HTML mode).


noFixPlaceholder: string = ’ \uE0FE ’

Defined in: config.ts:52

Placeholder for <…>-protected spans (default " \uE0FE ").


variations: TaraskVariations = 'all'

Defined in: config.ts:46

Which word variation to keep: "all" (default), "no" or "first".


wrappers: TaraskWrappers = 'none'

Defined in: config.ts:39

Active wrapper set: "none" (default), "html" or "ansi".