[9fans] file heuristics on troff input
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

comp.os.plan9 Profile…
 Up
[9fans] file heuristics on troff input         


Author: Pietro Gagliardi
Date: Jul 11, 2008 07:47

Just a bit of humor:

COMPUTER ME
%% cd troff
%% file *
advp9prog: directory yes (old attempt at plan 9 programmer's
guide)
algoawk: directory yes (awk book)
bentley.ms: troff -ms input yes (Bentley...
Show full article (2.17Kb)
4 Comments
Re: [9fans] file heuristics on troff input         


Author: hiro
Date: Jul 11, 2008 09:38

> So that's only one file that is absolutely correct. It turns out that the
> problem is file isn't reading the
>
> .FP font
>
> as a troff -ms macro line. In the books, they don't read enough lines to
> see that there are more .PPs than there are #includes. Ah well.
>
> And if you thought that was funny, look at the example of a file that
> actually seeks to more than one line from UNIX in "The UNIX-HATERS Handbook"
> (now a free PDF from its authors).

So you have shown that you are more intelligent than a computer.
Or are you just bored and trolling?
To be honest, I don't find this very funny at all. Even though I wished I could.
1 Comment
Re: [9fans] file heuristics on troff input         


Author: C H Forsyth
Date: Jul 11, 2008 09:51

> bentley.ms: troff -ms input yes (Bentley paper)

doctype might produce better guesses at troff macro packages and preprocessors
no comments
Re: [9fans] file heuristics on troff input         


Author: Iruata Souza
Date: Jul 11, 2008 10:03

On Fri, Jul 11, 2008 at 11:44 AM, Pietro Gagliardi mac.com> wrote:
> Just a bit of humor:
>
> COMPUTER
> ME
> %% cd troff
> %% file *
> advp9prog: directory
> yes (old attempt at plan 9 programmer's guide)
> algoawk: directory
> yes (awk book)
> bentley.ms: troff -ms input yes (Bentley
> paper)
> bentley2.ms: Ascii text wtf?
> (Bentley paper retry)
> cod.ms: troff input why
> not -ms? (paper on calculator program I'm writing)
> cod.ms.part: Ascii file
> doesn't understand .ig and pic? (part of cod.ms that doesn't belong yet)
> forloop.ms: Ascii this ...
Show full article (3.19Kb)
no comments
Re: [9fans] file heuristics on troff input         


Author: Pietro Gagliardi
Date: Jul 11, 2008 10:41

What I'm pointing out is that file doesn't look hard enough to guess
accurately. Something like

.ds da December 4, 3210
.DA \*(da
.TL

would not be detected.

On Jul 11, 2008, at 12:11 PM, hiro wrote:
Show full article (0.91Kb)
no comments