Skip to content

TaraskConfig

Defined in: config.ts:9

new TaraskConfig(options?): TaraskConfig

Defined in: config.ts:10

Partial<{ abc: { lower: CallableDict<RegExp>; upper?: CallableDict<RegExp>; }; doEscapeCapitalized: boolean; g: boolean; j: OptionJ; leftAngleBracket: string; newLine: string; noFixPlaceholder: string; variations: Variation; wrappers: { fix?: TransformString; letterH?: TransformString; variable?: { all: TransformString; first: TransformString; no: TransformString; }; } | null; }>

TaraskConfig

abc: Alphabet

Defined in: config.ts:22

Predefined alphabets are in dicts.alphabets.

alphabets.cyrillic

doEscapeCapitalized: boolean

Defined in: config.ts:43

If set to false, may cause unwanted changes in acronyms.

true

g: boolean

Defined in: config.ts:67

Do replace ґ(g) by г(h) in cyrillic alphabet?

Value Example
true Ґвалт ґвалт
false Гвалт гвалт
true <tarH>ґ</tarH>валт <tarH>Ґ</tarH>валт
false <tarH>г</tarH>валт <tarH>Г</tarH>валт
false

j: OptionJ

Defined in: config.ts:36

When to replace і(i) by й(j) after vowels Example
яна і ён
never яна і ён
random яна і ён or яна й ён
always яна й ён

Has no effect with abc set to dicts.alphabets.latinJi.

"never"

leftAngleBracket: string

Defined in: config.ts:95

String to replace "<" with.

"<"
"&lt;"

newLine: string

Defined in: config.ts:87

String to replace "\n" with.

"\n"
"<br>"

noFixPlaceholder: string

Defined in: config.ts:104

Placeholder for parts that should not be fixed like those enclosed in < >.

Change only if the default value interferes with your text.

" \ue0fe "

variations: Variation

Defined in: config.ts:79

Which variation is used if a part of word is variable Example
Гродна
no (main) Гродна
first Горадня
all (Гродна|Горадня)
"all"

wrappers: Partial<Wrappers> | null

Defined in: config.ts:53

Used for wrapping changed parts. Predefined dicts are in wrappers.

If null, wrapping changes will be skipped.

null