9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] /sys/src/cmd/spell
@ 2000-07-07  0:40 pip
  0 siblings, 0 replies; 3+ messages in thread
From: pip @ 2000-07-07  0:40 UTC (permalink / raw)
  To: 9fans

The man page of spell(1) seems inconsistent with the source for
sprog and /rc/bin/spell, with respect to the '-a' flag,

/rc/bin/spell does not recognize '-a' and hands off to deroff.  If 
you 'fix' spell to recognize '-a' and pass it to sprog, it does, but it
is not entirely clear what sprog does when aflag is set, circa line 
530 in sprog.c, from a casual perusal of the source.

That said, what is the correct way to label the output from spell 
with a tag of the (mis)spell occurrence ?

Thanks.
-
pip



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] /sys/src/cmd/spell
@ 2000-07-07 18:18 rob pike
  0 siblings, 0 replies; 3+ messages in thread
From: rob pike @ 2000-07-07 18:18 UTC (permalink / raw)
  To: 9fans

	The man page of spell(1) seems inconsistent with the source for
	sprog and /rc/bin/spell, with respect to the '-a' flag,

The man page is wrong.  The -a flag is passed to sprog by acme's spell
program (/acme/bin/aspell).  It expects the input to be in the right form,
properly labeled, and preserves it on output. Spell does nothing of the kind.
The simplest fix is to remove -a from the man page, which I've done locally,
until a better architecture (that is, one that doesn't use deroff) comes to mind.

-rob



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [9fans] /sys/src/cmd/spell
@ 2000-07-06 21:41 pip
  0 siblings, 0 replies; 3+ messages in thread
From: pip @ 2000-07-06 21:41 UTC (permalink / raw)
  To: 9fans

The man page of spell(1) seems inconsistent with the source for
sprog and /rc/bin/spell, with respect to the '-a' flag,

/rc/bin/spell does not recognize '-a' and hands off to deroff.  If 
you 'fix' spell to recognize '-a' and pass it to sprog, it does, but it
is not entirely clear what sprog does when aflag is set, circa line 
530 in sprog.c, from a casual perusal of the source.

That said, what is the correct way to label the output from spell 
with a tag of the (mis)spell occurrence ?

Thanks.
-
pip


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-07 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-07  0:40 [9fans] /sys/src/cmd/spell pip
  -- strict thread matches above, loose matches on Subject: below --
2000-07-07 18:18 rob pike
2000-07-06 21:41 pip

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).