home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.mac.misc:15412 comp.sys.mac.programmer:14521
- Newsgroups: comp.sys.mac.misc,comp.sys.mac.programmer
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!crash!alen
- From: alen@crash.cts.com (Alen Shapiro)
- Subject: Re: RTF definition/interpretation...somebody goofed!!? HELP!! (medium long)
- Date: 25 Aug 92 22:33:54 GMT
- Message-ID: <alen.714782034@crash>
- References: <1992Aug24.115156.23754@zoe.network23.com> <6627@uakari.primate.wisc.edu>
- Lines: 53
-
- In <6627@uakari.primate.wisc.edu> bin@primate.wisc.edu (Brain in Neutral) writes:
-
- >> About stylesheets, a stylesheet must first be declared in the RTF header.
- >> When
- >> a stylesheet is applied to a paragraph the entire stylesheet definition
- >> must be
- >> repeated for the paragraph just putting the stylesheet ID in the
- >> paragraph will
- >> not work.
-
- >I submit that this is not the way a style should work (nor is my experience
- >that this is the way they DO work - when they work). There is no point
- >to having a stylesheet at all if the definition of the style must be
- >repeated in each paragraph to which it is supposed to apply.
-
- You are absolutely right...and absolutely wrong (boy now I'm really confused).
-
- Yes...they should not work this way and,
- No....that is the way that Microsoft Word implements the RTF specification.
-
- An RTF style that is specified within a text group merely informs
- the "reader" (in this case MSWord) that that named style is in effect.
- The "reader" (MSWord) does NOT apply the style at this point. It just
- associated a style name with the text block. Either the RTF "writer"
- must repeat the details of the style spec in-line, or the MSWord
- user must go through the document and "reapply" all the named styles.
-
- >What is the point of a stylesheet, if not to be able to select a style
- >simply by referring to the style ID? If you have to repeat the definition
- >each time, then the stylesheet itself if vestigial.
-
- You got it. You should see the extra work I've had to do to write an RTF
- "writer" that worked with style sheets. If the user wants to change the
- definition of a style in an RTF doc, ALL uses of that style must be modified
- (not just the style definition at the head of the doc.) Means that to ensure
- document continuity my "writer" has to regenerate the entire
- documentation suite for any simple style change. GRRRRRR.
-
- Seems that RTF was designed for document transportability not document
- generation. Shame they forgot to come up with a filename convention across
- OS architectures...like inventing a computer language and side-stepping
- the details of an i/o model. :-)
-
- >Paul DuBois
- >dubois@primate.wisc.edu
-
- --alen
- alen@crash.cts.com
-
- ps on the same subject...I've submitted a report to MS (by fax) and
- copied it to this newsgroup, left out a couple of points but I'll
- clarify those when MS gets in touch.
-
-