Files
designcraft/crates/compose
midasdf 4e037320b3 fix(compose): classify the paragraph's script before its drop cap and label
The 禁則 gate read the CJK flag from sp.glyphs after split_drop_cap had
removed the drop cap and prepend_label had added the list number. A
paragraph whose only CJK character was a drop cap lost the push-in /
push-out policy; a Japanese list label gave it to an English paragraph.
Classify the shaped paragraph once before either change and reuse the
flag in the nested-line-style pass and the final breaker.

Tests: shape a paragraph with a CJK drop cap (counted) and a Latin
paragraph with a generated Japanese label (not counted), pinning the
glyph lists the gate sees.
2026-10-23 00:09:43 +09:00
..
2026-10-16 04:00:23 +00:00