mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-25 10:46:50 -06:00
Text set in Spanish was not hyphenated at all. It now uses Javier Bezos's Liang patterns, hyph-es.tex 5.0 from hyph-utf8 under MIT, through the hypher crate 0.1.8 with only its alloc and spanish features. The full feature, which embeds 48 languages under several licences, stays off. - hyphen::Lang names the hyphenator for a run: English, or a hypher language. Lang::for_language maps a language name or locale code. - word_breaks_in and hyphen_points_in take the language. word_breaks and hyphen_points stay as the English entry points. - Composition hyphenates a non-English run whose language has patterns and skips the rest. The word cache key includes the language. - NOTICE carries the Bezos copyright line and the MIT text. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>
26 lines
817 B
TOML
26 lines
817 B
TOML
[package]
|
||
name = "designcraft-compose"
|
||
version.workspace = true
|
||
edition.workspace = true
|
||
license.workspace = true
|
||
description = "DesignCraft text composition: paragraph composer (Knuth–Plass), hyphenation, justification, columns, threading, wrap"
|
||
|
||
[lints]
|
||
workspace = true
|
||
|
||
[dependencies]
|
||
unicode-bidi = { workspace = true }
|
||
unicode-bidi-mirroring = { workspace = true }
|
||
designcraft-geom = { workspace = true }
|
||
designcraft-color = { workspace = true }
|
||
designcraft-doc = { workspace = true }
|
||
designcraft-fonts = { workspace = true }
|
||
log = { workspace = true }
|
||
regex = { workspace = true }
|
||
miniz_oxide = "0.8"
|
||
hypher = { version = "0.1.8", default-features = false, features = ["alloc", "spanish"] }
|
||
|
||
[dev-dependencies]
|
||
designcraft-fonts = { workspace = true, features = ["testing"] }
|
||
proptest = { workspace = true }
|