|
Subject: Re: links with JADE RTF From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx> Date: Tue, 05 May 1998 16:55:53 -0400 |
At 16:42 98/05/05 +0000, Michael Schopen wrote:
>> Date: Tue, 05 May 1998 09:34:33 -0400
>> To: dssslist@xxxxxxxxxxxxxxxx
>> From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
>> Subject: Re: links with JADE RTF
>> Reply-to: dssslist@xxxxxxxxxxxxxxxx
>
>> At 08:53 98/05/05 +0000, Michael Schopen wrote:
>> >I am trying to set up hypertext links in RTF files produced with
>> >JADE. The following SGML file
>> >...
>> >But, there is always an extra blank at the start of the link in the
>> >RTF file.
>>
>> When I run the above test (thanks for including a complete test!), I do not
>> get the space at the beginning of the line that you describe.
>>
>
>Did you use -t rtf or -t rtf-95 and did you use Word 97?
"-t rtf" with Word'97 version
>I have just used jade -t rtf-95 and it works. With jade -t rtf I get
>the extra space. I looked at the rtf files produced. With rtf-95 the
>following rtf code is created:
>
>{\field{\*\fldinst GOTOBUTTON ID_A1 That's a link to anchor 1
>...}{\fldrslt }}
>
>With rtf, however, the code is:
>
>{\field{\*\fldinst HYPERLINK \\l ID_A1}{\fldrslt That's a link to
anchor 1 ...}}
>
>There are two spaces after \fldrslt.
Interesting ... I count exactly one space after \fldrslt in the RTF file
created on my machine (unmodified transcript below, hopefully reproduced
correctly through the mailer; I'll attach the transcript as an attachment
in a separate email directly to you (so we don't have 500 copies of the
attachment go out) in case it gets corrupted).
>If I remove the second
>space in an editor and reload the rtf file into WinWord97, it's ok.
As is evidenced using the file JADE creates on my machine.
>So, one space is treated as a delimiter for the control word, the
>next space is output as text. Now I think this is a problem of the
>backend.
But not when it is running on my machine:
T:\FTEMP>jade -v
C:\PROGRA~1\JADE\JADECURR\JADE.EXE:I: Jade version "1.1"
C:\PROGRA~1\JADE\JADECURR\JADE.EXE:I: SP version "1.3"
Does the fact that it work on my machine lead anyone to answer what the
problem might be?
............... Ken
T:\FTEMP>type test.dsl
<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style
Sheet//EN" >
(element TEST
(make simple-page-sequence
top-margin: 1.25cm
bottom-margin: 1.5cm
left-margin: 1cm
right-margin: 1cm
input-whitespace-treatment: 'collapse
quadding: 'start
(process-children)))
(element anchor
(make paragraph
(process-children)))
(element link
(make paragraph
(make link
destination: (idref-address (attribute-string "TO")))))
T:\FTEMP>type test.sgm
<!DOCTYPE test [
<!ELEMENT test - - (anchor+, link+) >
<!ELEMENT anchor - - (#PCDATA) >
<!ATTLIST anchor id ID #REQUIRED >
<!ELEMENT link - - (#PCDATA) >
<!ATTLIST link to IDREF #REQUIRED >
]>
<test>
<anchor id="a1">That's anchor 1.</anchor>
<anchor id="a2">And that's anchor 2.</anchor>
<link to="a1">That's a link to anchor 1 ...</link>
<link to ="a2">And that's a link to anchor 2 ...</link>
</test>
T:\FTEMP>jade -cp:\jade\jadecurr\catalog -t rtf test.sgm
T:\FTEMP>type test.err
T:\FTEMP>type test.rtf
{\rtf1\ansi\deff0
{\fonttbl{\f0\fnil\fcharset0 Times New
Roman;}
}
{\colortbl;}{\stylesheet{\s1 Heading 1;}{\s2 Heading 2;}{\s3
Heading 3;}{\s4 Heading 4;}{\s5 Heading 5;}{\s6 Heading 6;}{\s7 Heading
7;}{\s8 Heading 8;}{\s9 Heading
9;}}
\deflang1024\notabind\facingp\hyphauto1\widowctrl
\sectd\plain\pgwsxn12
240\pghsxn15840\marglsxn566\margrsxn566\margtsxn708\margbsxn850\headery0\foo
tery0\pgndec{\headerl\pard\sl-240\sb0\sa468\plain\tqc\tx5554\tqr\tx11108
\tab \tab \par}{\footerl\pard\sl-240\sb610\sa0\plain\tqc\tx5554\tqr\tx11108
\tab \tab \par}{\headerr\pard\sl-240\sb0\sa468\plain\tqc\tx5554\tqr\tx11108
\tab \tab \par}{\footerr\pard\sl-240\sb610\sa0\plain\tqc\tx5554\tqr\tx11108
\tab \tab \par}\pard\sl-240 {\*\bkmkstart ID_A1}{\*\bkmkend ID_A1}\fs20
That's anchor 1.\hyphpar0\par\pard\sl-240 {\*\bkmkstart ID_A2}{\*\bkmkend
ID_A2}And that's anchor 2.\hyphpar0\par\pard\sl-240 {\field{\*\fldinst
HYPERLINK \\l ID_A1}{\fldrslt That's a link to anchor 1
...}}\hyphpar0\par\pard\sl-240 {\field{\*\fldinst HYPERLINK \\l
ID_A2}{\fldrslt And that's a link to anchor 2 ...}}\hyphpar0\par}
T:\FTEMP>
--
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd. http://www.CraneSoftwrights.com
Box 266, V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0 F: +1(613)489-0995
PGP Privacy: http://www.cyberus.ca/~holman/gkholman.pgp
Training: http://www.CraneSoftwrights.com/schedule.htm
Shareware: http://www.CraneSoftwrights.com/shareware/
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: links with JADE RTF, Michael Schopen | Thread | Re: links with JADE RTF, Michael Schopen |
| Re: Output Postscript and Plain Tex, W. Eliot Kimber | Date | Re: links with JADE RTF, Michael Schopen |
| Month |