- From: Fuqiao Xue via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Jul 2023 01:52:30 +0000
- To: public-css-archive@w3.org
> I suppose there's prior art in other software, and we should have a look at what they do there. InDesign maybe? In InDesign, because what you see is what you get, adjusting some inconspicuous gaps between characters in the penultimate line should work. Another approach is applying a [GREP style](https://redokun.com/blog/grep-indesign), indicating that the last few characters/words in a paragraph cannot be broken into two lines. ----- > Wouldn't a `<span>` with `white-space: nowrap` be a cleaner solution If there are not many paragraphs, using `<span>`s with `white-space: nowrap` or Zero Width Joiners (for writing systems like Chinese, Japanese, Batak, Tai Le, Khmer, Thai, etc.) or non-breaking spaces between the last few words probably works fine (although ZWJs might have an impact on glyph rendering), but if we want this for the entire document, then it is too much trouble. ----- See also [Handling of Widows and Orphans in clreq](https://www.w3.org/TR/clreq/#adjustments_of_orphans_and_widows) and [Widow Adjustment of Paragraphs in jlreq](https://www.w3.org/TR/jlreq/#widow_adjustment_of_paragraphs). -- GitHub Notification of comment by xfq Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3473#issuecomment-1629981387 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 July 2023 01:52:32 UTC