W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > January to March 2019

Re: Crowd Source Request: Examples of pre in pages you use.

From: Alastair Campbell <acampbell@nomensa.com>
Date: Thu, 31 Jan 2019 17:05:48 +0000
To: WCAG list <w3c-wai-gl@w3.org>
Message-ID: <E3B1E370-6041-4044-A1A6-1016879235FB@nomensa.com>
>  when line-wrapping introduces additional line-breaks, *THEN* it impacts the formatted meaning,

I don’t think it is that binary, there are mitigations, like there are with code samples.

Starting with your Haiku example, if you assume that this symbol represented a linebreak: §
(I can’t see how to insert a line break symbol, just pretend!)

The summer river: §

although there is a
  bridge, my horse §

goes through the
  water.  §

(The email version of this has light grey shading on the top & bottom sentences, that will be lost for some email clients and in the archive.)

I’m not saying that should be the default view, but it is a technique that could be used to maintain the meaning created by the formatting.

There is a continuum here:

  *   Most text shouldn’t use a pre or have a fixed-width (i.e. standard text that reflows now).
  *   For some types of text it makes sense to have in a pre, but it should wrap fairly easily.
  *   For some types of text it makes sense to have in a pre, but it could wrap with great difficulty.
  *   Some text could only work in a fixed-format (definitely essential).

Let’s start with sufficient techniques at the top-end of that, and work down until it gets too difficult to be practical.

It was (and still is) a good idea to gather some examples though, the more the better.


Received on Thursday, 31 January 2019 17:06:11 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:08:29 UTC