|
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  , 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Text representation of control char, Norman Walsh | Thread | Greek in RTF backend?, Bill Raynor |
| Re: Including verbatim text in a do, W. Eliot Kimber | Date | Re: Text representation of control , Matthias Clasen |
| Month |