RTF Format
Dan Shafer
dan at eclecticity.com
Thu May 22 17:29:25 EDT 2003
Ken Ray wrote:
>Really, Dan? I'm not getting that here.
You did the opposite of what I was describing, I think. Outputting RTF from the RTFText of a field does seem to work. But I created a file in Word (also one in TextEdit in OS X), saved it, then set the RTFText of a Rev field to that file and got the results I reported.
Since it is obviously a terrible idea to compose long texts inside RR, my question is how to prepare nicely formatted text in a full-blown text/word processor that can then, when imported into RR, look as much as possible like the original text. So far, at least, my answer is, "You can't do that."
>I created a simple stack with
>the following lines in a field:
>
>This is a test of Verdana
>This is a test of Palatino
>This is a test of Verdana
>This is a test of Palatino
>
>I formatted them accordingly; the first two were in the default size (14
>pt according to MC), and the second two were set to 17 pt (according to
>MC).
>
>Made a button with this script:
>
>on mouseUp
> ask file "Save rtf as:"
> if it <> "" then
> put the rtfText of fld 1 into url ("file:" & it)
> end if
>end mouseUp
>
>Ran it, and double-clicked the resulting RTF file on the desktop of my
>Mac (OS 10.2.5) and it opened TextEdit with the text formatted properly
>(although TextEdit said the font sizes were 12 and 13 pt respectively -
>something MC needs to fix). But at least the font came through
>properly...
>
>Ken Ray
>Sons of Thunder Software
>Email: kray at sonsothunder.com
>Web Site: http://www.sonsothunder.com/
>
>> -----Original Message-----
>> From: metacard-admin at lists.runrev.com
>> [mailto:metacard-admin at lists.runrev.com] On Behalf Of Dan Shafer
>> Sent: Wednesday, May 21, 2003 11:30 AM
>> To: metacard at lists.runrev.com
>> Subject: Re: RTF Format
>>
>>
>> While I use Revolution and not MC, I suspect the RTF code is
>> identical in both. So far, at least, using RTF in Revolution
>> is only marginally successful.
>>
>> In addition to the fact that the RTFText property of a field
>> supports a relatively minimal subset of RTF coding in
>> general, it does not appear to me to behave correctly even
>> with respect to properties it does claim to support. For
>> example, font settings are clearly not maintained. I have an
>> RTF document which uses Verdana for headings and Palatino for
>> body type but it all shows up sans-serif (Verdana, I suspect)
>> when that file is assigned to the RTFText property of a field.
>>
>> I also discovered that some fairly important and basic RTF
>> formatting such as bulleted and numbered lists, is also not
>> supported. Vertical spacing is not maintained. I'm sure there
>> are lots of other stuff I didn't get to.
>>
>> >Don't need a tool...
>> >
>> > put the rtfText of fld 1 into fld 2
>> > -- outputs fld 1 as RTF to fld 2
>> >
>> > set the rtfText of fld 1 to myRTFText
>> > -- converts RTF to styled text in fld 1
>> >
>> >
>> >Ken Ray
>> >Sons of Thunder Software
>> >Email: kray at sonsothunder.com
>> >Web Site: http://www.sonsothunder.com/
>> >
>> >
>> >> From: LK Hagen <hagenk at uhd.edu>
>> >> Organization: UH-Downtown
>> >> Reply-To: metacard at lists.runrev.com
>> >> Date: Tue, 20 May 2003 12:38:27 -0500
>> >> To: metacard at lists.runrev.com
>> >> Subject: RTF Format
>> >>
>> >> I remember a few years back that someone had a great tool
>> for reading
>> >> and writing MC fields to and from rich text format. Does
>> that ring a
>> >> bell? Anyone know where I can find it?
>> >> _______________________________________________
>> >> metacard mailing list
>> >> metacard at lists.runrev.com
>> >> http://lists.runrev.com/mailman/listinfo/metacard
>> >
>> >_______________________________________________
>> >metacard mailing list
>> >metacard at lists.runrev.com
>> >http://lists.runrev.com/mailman/listinfo/metacard
>> _______________________________________________
>> metacard mailing list
>> metacard at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/metac> ard
>>
>
>
>_______________________________________________
>metacard mailing list
>metacard at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/metacard
More information about the metacard
mailing list