home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / misc / 15412 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  2.8 KB

  1. Xref: sparky comp.sys.mac.misc:15412 comp.sys.mac.programmer:14521
  2. Newsgroups: comp.sys.mac.misc,comp.sys.mac.programmer
  3. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!crash!alen
  4. From: alen@crash.cts.com (Alen Shapiro)
  5. Subject: Re: RTF definition/interpretation...somebody goofed!!? HELP!! (medium long)
  6. Date: 25 Aug 92 22:33:54 GMT
  7. Message-ID: <alen.714782034@crash>
  8. References: <1992Aug24.115156.23754@zoe.network23.com> <6627@uakari.primate.wisc.edu>
  9. Lines: 53
  10.  
  11. In <6627@uakari.primate.wisc.edu> bin@primate.wisc.edu (Brain in Neutral) writes:
  12.  
  13. >> About stylesheets, a stylesheet must first be declared in the RTF header.
  14. >> When
  15. >> a stylesheet is applied to a paragraph the entire stylesheet definition
  16. >> must be
  17. >> repeated for the paragraph just putting the stylesheet ID in the
  18. >> paragraph will
  19. >> not work.
  20.  
  21. >I submit that this is not the way a style should work (nor is my experience
  22. >that this is the way they DO work - when they work).  There is no point
  23. >to having a stylesheet at all if the definition of the style must be
  24. >repeated in each paragraph to which it is supposed to apply.
  25.  
  26. You are absolutely right...and absolutely wrong (boy now I'm really confused).
  27.  
  28. Yes...they should not work this way and,
  29. No....that is the way that Microsoft Word implements the RTF specification.
  30.  
  31.       An RTF style that is specified within a text group merely informs
  32.       the "reader" (in this case MSWord) that that named style is in effect.
  33.       The "reader" (MSWord) does NOT apply the style at this point. It just
  34.       associated a style name with the text block. Either the RTF "writer"
  35.       must repeat the details of the style spec in-line, or the MSWord
  36.       user must go through the document and "reapply" all the named styles.
  37.  
  38. >What is the point of a stylesheet, if not to be able to select a style
  39. >simply by referring to the style ID?  If you have to repeat the definition
  40. >each time, then the stylesheet itself if vestigial.
  41.  
  42. You got it. You should see the extra work I've had to do to write an RTF
  43. "writer" that worked with style sheets. If the user wants to change the
  44. definition of a style in an RTF doc, ALL uses of that style must be modified
  45. (not just the style definition at the head of the doc.) Means that to ensure
  46. document continuity my "writer" has to regenerate the entire
  47. documentation suite for any simple style change. GRRRRRR.
  48.  
  49. Seems that RTF was designed for document transportability not document
  50. generation. Shame they forgot to come up with a filename convention across
  51. OS architectures...like inventing a computer language and side-stepping
  52. the details of an i/o model. :-)
  53.  
  54. >Paul DuBois
  55. >dubois@primate.wisc.edu
  56.  
  57. --alen
  58. alen@crash.cts.com
  59.  
  60. ps on the same subject...I've submitted a report to MS (by fax) and
  61. copied it to this newsgroup, left out a couple of points but I'll
  62. clarify those when MS gets in touch.
  63.  
  64.