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() // defaultsnew TaraskConfig({ abc: 'latin', g: false })Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TaraskConfig(
options?):TaraskConfig
Defined in: config.ts:54
Parameters
Section titled “Parameters”options?
Section titled “options?”Partial<TaraskConfig> | null
Returns
Section titled “Returns”TaraskConfig
Properties
Section titled “Properties”abc:
TaraskAlphabet='cyrillic'
Defined in: config.ts:30
Alphabet: "cyrillic" (default), "latin", "latinJi" or "arabic".
doEscapeCapitalized
Section titled “doEscapeCapitalized”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
Section titled “leftAngleBracket”leftAngleBracket:
string='<'
Defined in: config.ts:50
Replacement for "<" (default "<", "<" in HTML mode).
newLine
Section titled “newLine”newLine:
string= ‘\n’
Defined in: config.ts:48
Replacement for "\n" (default "\n", "<br>" in HTML mode).
noFixPlaceholder
Section titled “noFixPlaceholder”noFixPlaceholder:
string= ’ \uE0FE ’
Defined in: config.ts:52
Placeholder for <…>-protected spans (default " \uE0FE ").
variations
Section titled “variations”variations:
TaraskVariations='all'
Defined in: config.ts:46
Which word variation to keep: "all" (default), "no" or "first".
wrappers
Section titled “wrappers”wrappers:
TaraskWrappers='none'
Defined in: config.ts:39
Active wrapper set: "none" (default), "html" or "ansi".