mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-09 22:21:50 +00:00
UAX #14 allows a break between a full stop (IS) and an opening parenthesis (OP), so `break_positions` (crates/layout/src/para/paragraph.rs) let "29.05.2023г.(оформление ЗУ)" and "2023.(Example detail)" wrap after the full stop. Word keeps such a token whole and wraps it at the space before, as the docxide-pdf dot-open-token* Word references show. The break between the two is now dropped (before the kinsoku pass, so break-anywhere wrapping still applies). Test: layout::tests::a_full_stop_before_a_parenthesis_is_no_break. Co-authored-by: Naxvog <4963183+naxvog@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>