mirror of
https://github.com/penpot/penpot.git
synced 2026-11-07 18:40:41 +00:00
The CJK layout code kept names from when it only handled Japanese. Chinese regional presets, Pinyin, Zhuyin and Korean now share it, so rename the modules and helpers to say what they do: - kinsoku.rs becomes line_breaks.rs: the layout-text rewrite with OffsetMap and the inserted break markers. The kinsoku predicates move to jlreq.rs (was japanese.rs); JapaneseClass becomes JlreqClass. - is_japanese_text_char becomes is_cjk_text_char. - text_japanese.rs splits into text_attrs.rs (span attribute enums), text_ruby.rs (ruby pieces and overhang), text_warichu.rs and text_allocation.rs (capped_equal_allocations, shared by both axes). - wasm/text/japanese_layout.rs becomes layout_attrs.rs. - RubySide becomes AnnotationSide; RawTextSpan.ruby_side becomes ruby_flags, since the byte packs the side and the Zhuyin bit. - horizontal_aki_sheds becomes the horizontal_pair_spacing dispatcher with a jlreq_aki_sheds branch; the plan field sheds is pair_spacing. - The policy_* helpers become pairwise_* and the Japanese ones jlreq_*. - The oikomi policy parameter is adjustment and minimum_oikomi_extent is min_squeezed_extent. Exported functions, Raw* enums and byte layouts stay unchanged. AI-assisted-by: claude-opus-5-5