Expand description
Version-aware default style definitions for 한글 (Hangul Word Processor).
Different versions of 한글 include different numbers of built-in styles. When encoding an HWPX file, the encoder must inject ALL default styles in the correct order so that style IDs match what 한글 expects.
§Critical Ordering Note
In 한글 Modern (2022+), 개요 8–10 are inserted at IDs 9–11, pushing Classic styles like 쪽 번호 from ID 9 to ID 12. This is NOT an append operation — the arrays must be stored as complete, ordered, version-specific lists.
§Usage
use hwpforge_smithy_hwpx::default_styles::{HancomStyleSet, DefaultStyleEntry};
let styles: &[DefaultStyleEntry] = HancomStyleSet::Modern.default_styles();
assert_eq!(styles[0].name, "바탕글");
assert_eq!(styles.len(), 22);Structs§
- Default
Style Entry - A single entry in a 한글 default style list.
Enums§
- Hancom
Style Set - The set of default styles to inject when building an HWPX file.