RTFText, HTMLText, and Formatted Content in RR

Jeanne A. E. DeVoto jeanne at runrev.com
Fri Jul 18 11:24:48 EDT 2003


There is a general distinction here to be made, between character
formatting and paragraph formatting.

Character formatting - font, size, style, and color changes that may be
applied to any part of a line or lines - is well-supported in Rev using
either HTML and RTF formats.

Paragraph formatting - alignment of individual paragraphs, header levels,
list formats, and so on - is not. This is not so much because of lack of
support in the RTFText and HTMLText properties, per se, as because fields
don't support these things (at least not yet). A field is more like a
SimpleText window than like a Word window, in terms of the formatting
options it supports: you can do character formatting, but although you can
set alignment, tab stops, and margins field-wide, you can't set them for
individual paragraphs.

I don't suppose this observation really helps, in terms of getting the
formatting you want to import from Word, but it may help clarify why some
things are supported and others aren't, and help you predict what
formatting will and won't transfer.

I know that some of these paragraph formatting options for fields have been
feature requested - because *I've* requested them ;-) - and I anticipate
that if and when they're added to fields, the RTFText property will also be
updated to support them.

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - Software at the Speed of Thought
http://www.runrev.com/





More information about the use-livecode mailing list