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

newbie &nbsp representation question

From: J. Waldram <jwaldram@uwyo.edu>
Date: Mon, 3 Aug 2009 16:36:58 -0600
To: www-amaya@w3c.org
Message-ID: <alpine.LRH.2.00.0908031607550.4622@leopard.uwyo.edu>
I have searched the archives and have seen only one related post from 2006 
on an older version of Amaya.  Amaya 11.2, with the "Keep multiple 
Spaces" option, the &nbsp is represented as a hex byte 0xa0 instead of 
&#160; or &#xa0;.  Is this a mis-translation for the 
&nbsp that is rendered by browsers?  Since XML does not allow &nbsp 
and the &#xa0 is allowed could this be recoded as a text string not a hex 
byte?  Amaya source code views show it as a "~" (tilde) which is less 
obvious in coding and some browsers render it as a literal character.
This is in a
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
   <meta http-equiv="Content-Style-Type" content="text/css" />

I did not want to muck with the source code.  I do not
know enough to see the ramifications of changes.
Are the relevant parts in translate.c the place to make changes?

Thank you,

-Jim Waldram
Received on Wednesday, 5 August 2009 11:45:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:57 UTC