Skip to main content

Crate kashida

Crate kashida 

Source
Expand description

Arabic kashida (tatweel) insertion-point finding.

Given text plus a compiled pattern set, produce the points where a kashida may be inserted, each with a priority (0–9, higher = stronger).

Structs§

CompileError
An error while compiling pattern text.
KashidaPoint
A point where a kashida may be inserted.
PatternSet
A compiled set of kashida insertion patterns.

Enums§

CompileErrorKind
What went wrong on a pattern line.

Functions§

builtin_pattern_set
The built-in pattern set of that name, compiled on first use, or None if there is none. builtin_pattern_set_names lists and describes them.
builtin_pattern_set_names
The names of the built-in pattern sets:
compile_pattern_text
Compiles pattern text into a PatternSet.
find_kashida_points
Kashida insertion points for word under the given pattern set.
find_kashida_points_patterns
Kashida insertion points for word from the pattern set alone.
is_builtin_pattern_set
Whether name refers to a built-in pattern set, without compiling it, unlike builtin_pattern_set.