1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Rule system for Braille encoding.
//!
//! Each rule is an independent module that implements a specific article
//! of the 2024 Korean Braille Standard (개정 한국 점자 규정).
//!
//! Rules are independently testable and traceable.
//!
//! # Architecture
//!
//! - [`traits::BrailleRule`] — the plugin interface every rule implements
//! - [`engine::RuleEngine`] — the host that registers, sorts, and applies rules
//! - [`context::RuleContext`] — shared state + current position passed to each rule
//!
//! ```ignore
//! let mut engine = RuleEngine::new();
//! engine.register(Box::new(korean::rule_11::Rule11));
//! engine.register(Box::new(korean::rule_12::Rule12));
//! engine.disable("12"); // disable a specific rule
//! engine.apply(&mut ctx)?; // apply all enabled rules
//! ```
// ── Core infrastructure ─────────────────────────────────
// ── Rule domains ────────────────────────────────────────
// 한글 점자 규정 (Korean Braille rules)
// 수학 점자 규정 (Math Braille rules)
/// Metadata identifying a braille rule and its source in the standard.