Re: Text representation of control characters?

Subject: Re: Text representation of control characters?
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Tue, 01 Sep 1998 07:05:48 -0400
At 98/09/01 05:27 -0400, Norman Walsh wrote:
>Looking in style/charNames.h, I see that \space; is a text
>representation for &#x0020;, but there appear to be no text
>representations for control characters below space.
>
>This means I have to resort to things like this:
>
>(let ((newline #\
>))
>
>which is really ugly.  Is there a better way?

For the one character in your example, there is a better SGML way: a
character reference to the record end function name (&#RE;).

............ Ken

T:\FTEMP>type test.sgm
<!DOCTYPE doc [
<!ELEMENT doc - O EMPTY >
]><doc>

T:\FTEMP>type test.dsl
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(element doc
    (let ((newline "&#RE;"))
        (literal (string-append "test" newline "line"))))

(default
    (process-children))

T:\FTEMP>jade -c p:\jade\jadecurr\catalog test.sgm

T:\FTEMP>type test.fot
<?xml version="1.0"?>
<fot>
<a name="0"/>
<text>test
line</text>
</fot>

T:\FTEMP>


--
G. Ken Holman               mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/d/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/d/schedule.htm
Resources: http://www.CraneSoftwrights.com/d/resources.htm
Shareware: http://www.CraneSoftwrights.com/d/shareware.htm


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


Current Thread
  • Text representation of control characters?
    • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA22325Tue, 1 Sep 1998 05:30:08 -0400 (EDT)
      • G. Ken Holman - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA01479Tue, 1 Sep 1998 10:24:05 -0400 (EDT) <=
        • Bill Raynor - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id NAA15541Tue, 1 Sep 1998 13:14:07 -0400 (EDT)
          • Tony Graham - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA19137Thu, 3 Sep 1998 10:41:31 -0400 (EDT)
      • Matthias Clasen - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id KAA01499Tue, 1 Sep 1998 10:24:43 -0400 (EDT)