mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-09 12:04:09 +00:00
26 lines
1.2 KiB
Rust
26 lines
1.2 KiB
Rust
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
//! Shared text processing for the Craft apps. It sits below the composer: layout code calls it on
|
|
//! plain text and a language before it shapes and places glyphs.
|
|
//!
|
|
//! Modules, each behind the cargo feature of the same name:
|
|
//! - [`hyphen`] (default): hyphenation points, with bundled US English data and optional
|
|
//! hypher patterns for 47 more languages (Slovak, under the GPL, only with `slovak-gpl`).
|
|
//! - [`segment`] (default): line-break opportunities (UAX #14 with kinsoku), and word breaks for
|
|
//! Thai, Lao, Khmer and Burmese with their language features.
|
|
//! - [`bidi`] (default): bidirectional text (UAX #9): embedding levels, line reordering and
|
|
//! mirroring.
|
|
//! - [`linebreak`] (default): line breaking on a font-independent box/glue/penalty model.
|
|
//!
|
|
//! Language features (`spanish`, `german`, …, `all-languages`) add data for that language and
|
|
//! turn on the modules that use it.
|
|
|
|
#[cfg(feature = "bidi")]
|
|
pub mod bidi;
|
|
#[cfg(feature = "hyphen")]
|
|
pub mod hyphen;
|
|
#[cfg(feature = "linebreak")]
|
|
pub mod linebreak;
|
|
#[cfg(feature = "segment")]
|
|
pub mod segment;
|