W3C home > Mailing lists > Public > www-style@w3.org > January 2015

Re: [css-text] Preventing typographic orphans

From: Lea Verou <lea@verou.me>
Date: Sun, 4 Jan 2015 01:22:55 +0200
Cc: www-style list <www-style@w3.org>
Message-Id: <DA99EDD0-9513-412D-B510-F13C31D448C4@verou.me>
To: Michał Gołębiowski <m.goleb@gmail.com>
Yup, you’re making a great point here that I forgot to mention: Authors are currently trying to avoid these kinds of orphans by inserting non-breaking spaces between the last two words on a paragraph or heading, either manually or via scripting. This is awfully hacky and there *really* should be a better way to do this.

On Jan 4, 2015, at 00:58, Michał Gołębiowski <m.goleb@gmail.com> wrote:

> I'd b very happy if such a thing existed in CSS. In Poland it's considered an error to put single-letter words like 'w' ('in'), 'z' ('with') etc. at the end of the line. Clients often expect this to be fixed; in one project we had to read the text from the backend and manually replace all spaces after such words with non-breaking ones via JS on the client side. Such a thing doesn't influence performance in a good way so I'd be glad if we could just do it with plain CSS.
> -- 
> Michał Gołębiowski
Received on Saturday, 3 January 2015 23:23:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC