File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ This directory contains a browser written in Python for "Info files"
2+ as used by the Emacs documentation system. The browser requires that
3+ Python is built with the "stdwin" option and runs under X11 or the
4+ Mac window system.
5+
6+ Now you can read Info files even if you can't spare the memory, time or
7+ disk space to run Emacs. (I have used this extensively on a Macintosh
8+ with 1 Megabyte main memory and a 20 Meg harddisk.)
9+
10+ You can give this to someone with great fear of complex computer
11+ systems, as long as they can use a mouse.
12+
13+ Another reason to use this is to encourage the use of Info for on-line
14+ documentation of software that is not related to Emacs or GNU.
15+ (In particular, I plan to redo the Python and STDWIN documentation
16+ in texinfo.)
17+
18+ The main program is in file "ib.py"; this accepts a file name and a
19+ node name as optional command line arguments, i.e., its usage is
20+
21+ python ib.py [file [node]]
22+
23+
24+ Configuration:
25+
26+ - The pathname of the directory (or directories) containing
27+ the standard Info files should be set by editing the
28+ value assigned to INFOPATH in module ifile.py.
29+
30+ - The default font should be set by editing the value of FONT
31+ in this module (ibrowse.py).
32+
33+ - For fastest I/O, you may look at BLOCKSIZE and a few other
34+ constants in ifile.py.
Original file line number Diff line number Diff line change 1+ : ${ARCH}=`arch`
2+ exec /ufs/guido/bin/$ARCH/python ib.py ${1+"$@"}
Original file line number Diff line number Diff line change 1+ #! /usr/local/bin/python
2+
3+ # Call ibrowse (the info file browser) under UNIX.
4+
5+ import sys
6+ import ibrowse
7+
8+ if len (sys .argv ) > 1 :
9+ file = sys .argv [1 ]
10+ if len (sys .argv ) > 2 :
11+ if len (sys .argv ) > 3 :
12+ sys .stdout = sys .stderr
13+ print 'usage:' , sys .argv [0 ], '[file [node]]'
14+ sys .exit (2 )
15+ else :
16+ node = sys .argv [2 ]
17+ else :
18+ node = ''
19+ ibrowse .start ('(' + file + ')' + node )
20+ else :
21+ ibrowse .main ()
You can’t perform that action at this time.
0 commit comments