home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / 1623 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.text
  2. Path: sparky!uunet!walter!porthos!prefect!tony2
  3. From: tony2@prefect.cc.bellcore.com (gozdz,antoni s)
  4. Subject: Re: extended \*(xx sequence for .RS/.RF; is it possible?
  5. Organization: Bellcore, Livingston, NJ
  6. Date: Tue, 26 Jan 93 00:45:54 GMT
  7. Message-ID: <1993Jan26.004554.28410@porthos.cc.bellcore.com>
  8. References: <1993Jan23.214359.29186@porthos.cc.bellcore.com> <24703@alice.att.com>
  9. Sender: netnews@porthos.cc.bellcore.com (USENET System Software)
  10. Lines: 33
  11.  
  12. In article <24703@alice.att.com> npn@alice.att.com (Nils-Peter Nelson) writes:
  13. >
  14. >
  15. >Correspondent would like "long register names."
  16. >Sorry, but the "twoness" of troff is pervasive.
  17. >There are 96 printing characters (not all of which
  18. >can appear in string names; eg I would't try backslash)
  19. >and you can use one or two char names, so 96*96+96
  20. >appears to be the limit.
  21. >The way most people solve this is to append to
  22. >a diversinon with your own personal "magic cookie"
  23. >and then use a companion awk program.
  24. >For example: ***REF1 <contents of reference 1>
  25. >Of course, this means you need 2 passes, but you
  26. >always need two passes due to the potential for
  27. >forward referencing. You then insert your simple
  28. >awk program between the 2 passes.
  29.  
  30. I did not complain that the number of combinations that
  31. could be used in the .RS/.RF pairs is too small;
  32. these two-character strings are just difficult to 
  33. remember when needed again for re-referencing.
  34.  
  35. The solution offered might do the job, but obviously, 
  36. it's not as painless as it might/should be.
  37.  
  38. A related question: what other structures in troff use
  39. the \*( prefix?  If it's only the \*(Rf/.RS/.RF
  40. construct, would it be difficult to assign variable-length
  41. strings to it? (just a wild guess; I'm not a programmer). 
  42.  
  43. Tony
  44. tony2@cc.bellcore.com
  45.