Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!abrams%community-chest.mitre.org@gateway.mitre.ORG From: abrams%community-chest.mitre.org@gateway.mitre.ORG Newsgroups: comp.unix.questions Subject: Reusable troff code Message-ID: <9190@brl-adm.ARPA> Date: Sat, 5-Sep-87 13:39:32 EDT Article-I.D.: brl-adm.9190 Posted: Sat Sep 5 13:39:32 1987 Date-Received: Wed, 9-Sep-87 02:52:34 EDT Sender: news@brl-adm.ARPA Lines: 23 I am contemplating rewriting some troff vugraph macros which must support a large number of options on entry. I think it would be user unfriendly to require these options to be defined by position, especially since each user might choose to accept the default on a different subset. One alternative that I have thought of is keyword=value. For example, the call to start making vugraphs might be: .VU ID=SMPL ILLUSTRATOR=Abrams DATE=9/2/87 I would like to acquire some reusable troff coding to minimize the effort. Do you have a troff code fragment that will parse the KEYWORD=VALUE string? Suggestions as to alternative approaches would also be appreciated. I'll be happy to share the "answer" with all interested parties. Please respond directly to me; I'm not on this distribution list. Thanks. - Marshall D. Abrams, phone: (703) 883-6938 The MITRE Corporation, 7525 Colshire Drive Mail Stop Z670, Mc Lean, VA 22102 Alternate e-mail address: abrams@mitre.arpa