1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
<h1>Overview</h1>
The man source pages are in groff format.
They may be transformed to two distribution formats:
* man pages: transform using groff man -Tutf8
* html output: using the file tools/tcltk-man2html.tcl
The html output is used, to build the htmlhelp target of the makefile.vc build system.
<h1>Producing output for reading<h1>
<h2>Printed output</h2>
If you want printed output, you'll get something very good from the -Tpdf, -Tps or -Tdvi options to groff (depending on the version installed).
While it isn't a primary target for us these days, it's what Tcl's documentation was always supposed to look like.
<h2>Plain text output</h2>
The best quality text output is with the -Tutf8 option to groff, though -Tascii also works; the ideal option depends on your system encoding. (The <tt>man</tt> command will use one of those.) The result is usually best piped straight into <tt>less</tt>.
<h2>Output for the web</h2>
Use the <tt>make html</tt> in the unix directory, which will build documentation trees for Tcl, Tk and all installed contrib packages. Assume you need an up-to-date version of Tcl installed on your local platform to run this.
The process may be started manually using:
<verbatim>
cltk-man-html \[OPTION\] ...
--help print this help, then exit
--version print version number, then exit
--srcdir=DIR find tcl and tk source below DIR
--htmldir=DIR put generated HTML in DIR
--tcl build tcl help
--tk build tk help
--useversion version of tcl/tk to search for
--verbose whether to print longer messages
</verbatim>
Remark, that there is only one folder for tcl and tk. Tk must be in a folder beside tcl and the folder must be named "tk" + the value of "--version".
<h1>Editing the documentation</h1>
2015-06-18 Donal K. Fellows posted on the core list the following text:
<h2>Editor</h2>
I use emacs but you can use anything you want I suppose. Probably best to not use MS Word; Notepad would be a better choice. :-)
|