@nagwa-limited/kashida-engine
Version:
An engine to unify array of Arabic strings to the same width using Kashidas
14 lines (13 loc) • 529 B
TypeScript
import { ExceptionsPlaceholderMap } from "./types";
/**
* Adds the desired amount of Kashida to a text.
* @param { String } text The texts to add the Kashida to.
* @param { Number } extraKashidaNeeded The amount of Kashida to be added.
* @returns { String } The text with the added Kashida.
*/
export declare const addKashidaToText: {
(text: string, extraKashidaNeeded: number): string;
regexForKashidaSlots?: RegExp;
exceptionsPlaceholderMap?: ExceptionsPlaceholderMap;
};
export default addKashidaToText;