![]() | |
#31
| |||
| |||
|
|
Harlan Messinger wrote: mrcakey wrote: Just out of interest, what is the logic behind collapsing spaces in text? I'd love to be able to display a document I'd written with the conventional 2 spaces after a full stop. It has never been conventional to have two full-width spaces after a full stop anywhere but on pages produced on monospace typewriters. Since you aren't using a monospace typewriter (and unless your sense of nostalgia isn't similarly leading to your prescribing a monospace font to display your pages), there isn't any reason to have two full-width spaces after a full stop. I understand all of that. But, for those of us who learned to touch type in 1963 it's nearly impossible to break the habit of hitting the space bar twice after a period. |
#32
| |||
| |||
|
|
Scripsit Harlan Messinger: Except for the few white space characters for which collapsing is specifically required, whether *any* character collapses is unspecified. That's nonsense and you know that. |
#33
| |||
| |||
|
|
Scripsit Ben C: On 2008-03-03, Jukka K. Korpela <jkorpela (AT) cs (DOT) tut.fi> wrote: [...] 3) Whether em spaces, en spaces, or no-break spaces collapse is explicitly declared unspecified in HTML specifications. In practice they don't, but if IE 8 or Firefox 4 starts collapsing them, you can only blame yourself if you relied on their not being collapsed. CSS specifications (CSS 2.1, 16.6.1) do say that the only things that get collapsed are U+0009, U+000D, U+000A and U+0020. CSS specifications (or drafts - note that the document you cite says "It is inappropriate to cite this document as other than work in progress") |
|
cannot trump HTML specifications. HTML does not "need" CSS, still less a particular version of CSS. |
|
What you cite applies to the white-space property, and it specifies certain processing of the characters you mention. I don't think the text describes what may or may not happen to other space characters. |
#34
| |||
| |||
|
|
mrcakey wrote: "Harlan Messinger" <hmessinger.removethis (AT) comcast (DOT) net> wrote in message news:632fhrF25fi31U2 (AT) mid (DOT) individual.net... mrcakey wrote: Just out of interest, what is the logic behind collapsing spaces in text? I'd love to be able to display a document I'd written with the conventional 2 spaces after a full stop. It has never been conventional to have two full-width spaces after a full stop anywhere but on pages produced on monospace typewriters. Since you aren't using a monospace typewriter (and unless your sense of nostalgia isn't similarly leading to your prescribing a monospace font to display your pages), there isn't any reason to have two full-width spaces after a full stop. Both my alma mater and my erstwhile employer mandated the use of two spaces after a full stop. In what context? Typewritten material? If not, why couldn't they have been operating under the same misconception as many other people if they insisted on perpetuating the convention after students and employees started producing word-processed material in proportional typefaces? |
#35
| |||
| |||
|
|
Harlan Messinger wrote: Yet I'm not going to worry that some day a new browser version will display "bookkeeper" as "bokeper". I think it's taken for granted that characters not arbitrarily collapsing with each other is the norm, and only situations where they do collapse need to be articulated explicitly. ot> Are there other English words that contain a consecutive triplet of doubled letters? |
#36
| |||
| |||
|
|
Exactly. Unless special treatment is specified, I assume unremarkable treatment: each character is displayed |
|
- - character sets, fonts, and Unicode exist without regard to HTML, and I would expect that whenever HTML doesn't specify otherwise, text will be displayed in the prevailing manner, which, as I observed above, at least IMO, means that each character is displayed, and they aren't arbitrarily collapsed. |
|
It seems to me that with a monospace font, it is a reasonable expectation that each character, space or otherwise, take up the same space, |
#37
| |||
| |||
|
|
Well it says in 16.6.3 that "Control characters other than tab, line-feed, space and bidi formatting characters are treated as characters to render in the same way as any normal character". You can probably explain better what that means, but as far as I can tell, implementors are meant to leave the non-breaking spaces in. |
#38
| |||
| |||
|
|
On 2008-03-03, Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote: mrcakey wrote: "Harlan Messinger" <hmessinger.removethis (AT) comcast (DOT) net> wrote in message news:632fhrF25fi31U2 (AT) mid (DOT) individual.net... mrcakey wrote: Just out of interest, what is the logic behind collapsing spaces in text? I'd love to be able to display a document I'd written with the conventional 2 spaces after a full stop. It has never been conventional to have two full-width spaces after a full stop anywhere but on pages produced on monospace typewriters. Since you aren't using a monospace typewriter (and unless your sense of nostalgia isn't similarly leading to your prescribing a monospace font to display your pages), there isn't any reason to have two full-width spaces after a full stop. Both my alma mater and my erstwhile employer mandated the use of two spaces after a full stop. In what context? Typewritten material? If not, why couldn't they have been operating under the same misconception as many other people if they insisted on perpetuating the convention after students and employees started producing word-processed material in proportional typefaces? Vim does it. If I start a new sentence here, and then gq the two lines, I get this: "Vim does it. If I start a new sentence here, and then gq the two lines, I get this:" |
#39
| |||
| |||
|
|
Scripsit Ben C: Well it says in 16.6.3 that "Control characters other than tab, line-feed, space and bidi formatting characters are treated as characters to render in the same way as any normal character". You can probably explain better what that means, but as far as I can tell, implementors are meant to leave the non-breaking spaces in. It's an absurdity, since control characters proper cannot be rendered as normal characters. By definition, they have control functions, not visible rendering. |
|
Whether spaces are control characters is a matter of definition. |
|
This isn't the only part in the CSS 2.1 draft that is hopelessly messy and obscure, especially if taken as an attempt to dictate what happens in processing HTML documents in general, rather than as relating (somehow) to the CSS property being discussed there. |
#40
| |||
| |||
|
|
Harlan Messinger wrote: mrcakey wrote: Just out of interest, what is the logic behind collapsing spaces in text? I'd love to be able to display a document I'd written with the conventional 2 spaces after a full stop. It has never been conventional to have two full-width spaces after a full stop anywhere but on pages produced on monospace typewriters. Since you aren't using a monospace typewriter (and unless your sense of nostalgia isn't similarly leading to your prescribing a monospace font to display your pages), there isn't any reason to have two full-width spaces after a full stop. I understand all of that. But, for those of us who learned to touch type in 1963 it's nearly impossible to break the habit of hitting the space bar twice after a period. |
![]() |
| Thread Tools | |
| Display Modes | |
| |