Re: [Patch to make a "\*\ol" Tag for RTF import/export of overline.]


Subject: Re: [Patch to make a "\*\ol" Tag for RTF import/export of overline.]
From: Peter Mcaveney (pmcaveney@usa.net)
Date: Fri Jan 21 2000 - 15:00:13 CST


Martin Sevior <msevior@mccubbin.ph.unimelb.edu.au> wrote:
<snip>
Before this patch all text inside \* was ignored. If importers on other
programs do the same then all text labelled as overline will be dropped
instead of just ignoring the "overline" text decoration. I believe that this
is the current behaviour of MS Word which is what we want to preserve.
</snip>

According to the RTF spec anything inside an unknown tag starting with \*
SHOULD be ignored. If you don't want the text dropped then you don't use the
\* prefix; instead, just use \ol.

Here's the paragraph from the spec:

Certain control words, referred to as destinations, mark the beginning of a
collection of related text that could appear at another position, or
destination, within the document. Destinations may also be text that is used
but should not appear within the document at all. An example of a destination
is the \footnote group, where the footnote text follows the control word. Page
breaks cannot occur in destination text. Destination control words and their
following text must be enclosed in braces. No other control words or text may
appear within the destination group. Destinations added after the RTF
Specification published in the March 1987 Microsoft Systems Journal may be
preceded by the control symbol \*. This control symbol identifies destinations
whose related text should be ignored if the RTF reader does not recognize the
destination. (RTF writers should follow the convention of using this control
symbol when adding new destinations or groups.) Destinations whose related
text should be inserted into the document even if the RTF reader does not
recognize the destination should not use \*. All destinations that were not
included in the March 1987 revision of the RTF Specification are shown with \*
as part of the control word

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1



This archive was generated by hypermail 2b25 : Fri Jan 21 2000 - 15:00:33 CST