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

Re: [css-text] pre-wrap / pre-wrap-auto

From: Koji Ishii <kojiishi@gmail.com>
Date: Thu, 19 Nov 2015 15:44:49 +0900
Message-ID: <CAN9ydbWg-D+HJ4pFusSd46k1QySipUCrgtQq=3Lpmb2ScFNA1w@mail.gmail.com>
To: Florian Rivoal <florian@rivoal.net>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
2015-11-19 13:47 GMT+09:00 Florian Rivoal <florian@rivoal.net>:

>
> ## I want a mode where:
> (a) - All spaces are preserved (i.e. taking space, can take decorations,
> etc) ...
>
> (b) - ... and wrapped when they would go beyond the end of the line. (i.e.
> not overflowing)
>
> (c) - words that cannot fit a line are broken arbitrarily in the middle.
>
> (d) - words are not broken arbitrarily in the middle when they can fit in
> a line, like they are with word-break:break-all.
>
> (e) - If the only thing that makes a line overflow is spaces after a word,
> break in the spaces, not before the word.
>
> [snip]
>
> ## The motivations are:
>
> a: makes spaces non magic and therefore easy to edit (pressing the space
> bar always does something visible, your caret cannot be in the middle of a
> collapsed run of spaces where you cannot see its position or cannot click
> on it...)
>
> b and c : in editing contexts overflowing sucks. We need a mode where if
> the only choice is between breaking or overflowing, you should break,
> regardless of what you're breaking.
>
> d: just because I want non magic behavior on white space does not mean I'm
> interested in nonsensical breaks in the middle of words when that can be
> avoided, and if I wanted that, there's word-break:break-all.
>
> e: keeps things from taking more real estate than strictly necessary.
>

Before diving into how to design this mode, what I don't understand is what
kind of applications this mode makes happy. In my understanding, code
editors want (a), (b), (c), (e), but not (d). Word processors want (a),
(c), (d), but not (b) and (e).

What are the editing contexts that are not either code editors nor word
processors? Do you have any example sites/applications that do all (a)-(e)?
It helps me to understand what you want if I understand what kind of
sites/applications you're trying to help.

/koji
Received on Thursday, 19 November 2015 06:45:38 UTC

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