W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2006

Re: Multiple spaces converted into one

From: Peter Kerr <p.kerr@auckland.ac.nz>
Date: Tue, 5 Sep 2006 10:23:36 +1200
Message-Id: <D18BFEF2-8F34-44FD-A7DB-100AE180B3A5@auckland.ac.nz>
Cc: Amaya <www-amaya@w3.org>
To: Greg Noel <GregNoel@users.sourceforge.net>

On 5/09/2006, at 9:45 AM, Greg Noel wrote:

>
> Second, how do browsers deal with an em-space?  Do they set it  
> wider than a standard space?  Will they break there?  If so, would  
> it be better to convert a typed space-space sequence into an em- 
> space?  (I wouldn't think so, but it's worth asking.)
>

drifting OT ;-)
I never used hot lead, but I understand that the space-space  
convention came from many years bad habits on mechanical typewriters  
which could not insert a "true" em-space. Some computer proportional  
fonts have added trailing space in the "period" character, to  
eliminate the need for two ASCII spaces at the end of a sentence.

Now that we have a unicode em-space, and browsers that recognise it  
(and behave accordingly ;-) content providers who wish to use an em- 
space, should insert &#8195; or &emsp; or at least their editor eg.  
Amaya should optionally do it for them. I know that we can use  
xml:space="preserve", but there are many internal parts of the html  
engine (see RFCs) which require white space to be condensed to a  
single character, and real-world browsers let this behaviour leak out  
into the content area...



---
Peter Kerr      Snr Technician
School of Music   6 Symonds St
University of Auckland      NZ
Received on Monday, 4 September 2006 22:23:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 September 2007 14:24:43 GMT