|
Subject: Re: Outputting arbitrary strings from Jade From: James Clark <jjc@xxxxxxxxxx> Date: Sat, 06 Sep 1997 12:03:57 +0700 |
David Megginson wrote:
>
> Chris Maden writes:
>
> > I'm engaged in an experiment to produce tagged MIF from Jade. I know
> > (or at least, I'm fairly sure) that I can make a series of paragraphs
> > containing the appropriate MIF codes; if necessary, I can output that
> > as RTF and then "Save as text" from Word.
> >
> > That seems unnecessarily complicated, though, but I don't think
> > there's any way (right now) to tell Jade, "output these characters,
> > and not a one more." Can anyone prove me wrong? It would make me
> > really happy.
>
> I once hacked up a dumb backend for Jade that simply dumped raw
> characters to output -- I haven't kept it up-to-date with current
> versions, however, and am no longer certain that I even have the
> source file (it was under 30 minutes' work, however).
>
> The problem with something like this is that you will have to do some
> very expensive string processing to escape any characters that have
> special meanings in your target language.
I think the way to handle this is to have an "replace-chars:" inherited
characteristic specifying a list of characters that should be escaped
with the string that should be used to escape each of them, eg
replace-chars: '("<<" ">>" "&&")
James
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Outputting arbitrary strings fr, Chris Maden | Thread | Re: Outputting arbitrary strings fr, W. Eliot Kimber |
| Re: Outputting arbitrary strings fr, Chris Maden | Date | Re: DSSSL in Scheme, Henry S. Thompson |
| Month |