Import RTF text

Kay C Lan lan.kc.macmail at gmail.com
Mon Jun 4 23:12:41 EDT 2007


On 6/5/07, -= JB =- <sundown at nwrain.net> wrote:
>
>
>     so to export and re-import text do not choose RTF because it
>     might not work properly.  Does that mean if you already have
>     a text file in RTF importing might not work properly on it.


If you've created the RTF in Rev then export and then import should be
fine.

    It sounds like RTF is supported but can't be trusted because
>     sometimes it might work and sometimes it might not.  So if
>     you are dealing with text saved as RTF good luck.  Or did I
>     miss something.


It's in the Docs.

--------
Setting the RTFText of a field (or a chunk of a field) sets both the text
contents and the font, size, style, and color attributes corresponding to
the information in the RTFString. Any other formatting controls in the
RTFstring are ignored.

The RTFText property interprets the following RTF formatting controls:
Colors:  \cf, \colortbl, \red, \green, \blue, \highlight
Styles:  \plain, \b, \i, \ul, \ulnon, \strike, \dn, \up
Font and character set:  \fcharset, \ansi, \mac, \pc, \pca, \u, \fonttbl,
\f, \fs
Others:  \header, \par, \line, \tab
--------

If that cover's 99% of your situations, then great. If it only covers 50% I
guess you need another solution.



More information about the use-livecode mailing list