mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-19 08:36:09 +00:00
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.