nbsp in Jade

Subject: nbsp in Jade
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Wed, 26 Aug 1998 16:26:59 +0100
I have just been trying to replace
a plain space by a nbsp, mapping 
a simple char replacement function over
data.


With characters I can do it using the
?Unicode? char number.

(define (f ch)
   (if (char=? ch #\space) #\U-00A0 ch))


Not sure, but it would appear 'better' in
some way to have used &nbsp;

Is there an 'entity->character' function
(of some description).
sounds a bit daft, because surely that's what Jade does?

In this usage, Jade moaned if I tried the standard 
entity defn from isonum.ent.

What's the alternative (assuming there is one and
I don't know where to find it - the normal case :-(

Also, since I was using the entity (or failing to)
in Jade, is the style-sheet.dtd the right place to 
put an entity that I want to use in the style sheet?

TIA, DaveP




timeo gaecos dona ferentes


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • nbsp in Jade
    • Pawson, David - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id OAA03436Wed, 26 Aug 1998 14:13:40 -0400 (EDT) <=
      • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id LAA10783Thu, 27 Aug 1998 11:34:05 -0400 (EDT)