boxworks/lib.rs
1//! # Boxworks
2//!
3//! Boxworks is an in-progress implementation of the typesetting engine inside TeX.
4//! It is independent of the TeX language.
5//! One of the main goals of Boxworks is to support creating new typesetting
6//! languages that use this engine to perform the actual typesetting.
7
8pub mod ds;
9pub mod lang;
10pub mod tex;
11
12pub trait LineBreaker {
13 fn break_line(self, v_list: &mut Vec<ds::Vertical>, h_list: &mut Vec<ds::Horizontal>);
14}
15
16pub trait Hyphenator {
17 fn hyphenate(&self, list: &mut Vec<ds::Horizontal>);
18}