Skip to content
Tcl Source Code Changes To How to edit/test tcl man pages
Login

Changes To How to edit/test tcl man pages

Changes to "How to edit/test tcl man pages" between 2015-06-22 19:32:02 and 2015-06-22 19:54:10

1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
16








-
+







<h1>Editor</h1>

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. :-)

99% of what you might ever want to do when just editing docs can be done without putting a lot of effort into rendering; that's what I usually do.

<h1>Check formatting</h1>

I check the formatting with '<i>groff -Tutf8 -man</i>' and with '<i>make html</i>' (<i> make html-tcl</i> / <i>html-tk</i>) in the unix build tree (which doesn't use groff's -Thtml output mode because that sucks, or at least did a few years ago when I last had time to try it, and which requires an installed tclsh8.6).
I check the formatting with '<i>groff -Tutf8 -man</i>' and with '<i>make html</i>' (<i> make html-tcl HTML_INSTALL_DIR=~/test/html) in the unix build tree (which doesn't use groff's -Thtml output mode because that sucks, or at least did a few years ago when I last had time to try it, and which requires an installed tclsh8.6).
There's a release of groff for cygwin apparently (according to Google) so it ought to be usable for you.

<h1>Printed output</h1>

If you want printed output, you'll get something very good from the -Tps option to groff (and you might want to convert the PS it produces to PDF).
While it isn't a primary target for us these days, it's what Tcl's documentation was always supposed to look like.

︙