UNPKG

@nagwa-limited/kashida-engine

Version:

An engine to unify array of Arabic strings to the same width using Kashidas

16 lines (15 loc) 931 B
import { ExceptionsPlaceholderMap } from "./types"; /** * Replaces all the exception words from a line with the corresponding placeholders * @param { String } line The line to remove the exception words from * @param { ExceptionsPlaceholderMap } exceptionsPlaceholderMap The exception to placeholder map. * @returns { String } The line with placeholders. */ export declare const removeExcludedWords: (line: string, exceptionsPlaceholderMap: ExceptionsPlaceholderMap) => string; /** * Replaces all the placeholders from a line with the corresponding exception words. * @param { String } line The line to add back the exception words to. * @param { ExceptionsPlaceholderMap } exceptionsPlaceholderMap The exception to placeholder map. * @returns { String } The line with exception words added back. */ export declare const addBackExcludedWords: (line: string, exceptionsPlaceholderMap: ExceptionsPlaceholderMap) => string;