Skip to main content

Module lower_attributes

Module lower_attributes 

Source
Expand description

Lower attribute-scope commands to explicit prefix / declarative form.

The phase rewrites every Root / Group / Environment container so that registered declaratives such as \bf, \large, or \displaystyle are either replaced by their prefix-command equivalent (e.g. \mathbf{...}) or by a single repositioned declarative at the start of the segment they affect. The set of recognised declaratives, the per-mode prefix targets and the canonical attribute values are loaded from data.yaml and generated into OUT_DIR by build.rs (see codegen.rs).

Structs§

AttributeFormCounts
Declarative/prefix split for a single attribute statistic bucket.
AttributeSet
AttributeStat
LowerAttributesConfig
LowerAttributesReport
Statistics accumulated across every LowerAttributes invocation in one transform run.
MathFontValue
SizeValue
Stable scaled-integer representation of a size factor (value × 100 rounded). Avoids using a bare f64 as a Eq + Hash key.
StyleValue

Enums§

Attr
One of the attribute axes recognised by the phase.
AttrValue
Canonical value carried by an attribute slot.
TextFamily
TextSeries
TextShape

Functions§

run