1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
-
+
|
2015-06-18 Donal K. Fellows posted on the core list the following text:
<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 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).
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</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).
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.
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
|
* A Groff manual: [http://www.premvet.co.uk/premvet/faq/roff.html]
File structure:
* Commands like .xx always at the beginning of a line.
* Comands like \xx may be within the text.
Some used markup:
* <tt>.SH "Text"</tt>: Section header. Text included in html TOC.
* <tt>.SS "Text"</tt>: Subsection header. Text included in html TOC.
* .TP : Paragraph label, start of indented text, text included in html TOC
* \fBText\fR : Bold font
* \fIText\fR : Italic font (\fR (for Roman font) must always follow)
* .RS : Indent paragraph 3 to right start
* .RE : Indent end
* .VS "Text": Mark as new version, "Text" describes version
* .VE "Text": End of mark
* .CS : Source code examples
* .CE : Source code example end
* .SS : Text for a heading
* .SP : Subsection (probably)
* .PP : New line and reset font, margin and indent to default values
* <tt>.TP</tt> : Paragraph label, start of indented text, text included in html TOC. The paragraph label occupies the next source line. It is often followed by a line with a single <tt>.</tt> on it (which does nothing, but makes the nroff code easier to read).
* <tt>\fBText\fR</tt> : Bold font
* <tt>\fIText\fR</tt> : Italic font (\fR (for Roman font) must always follow)
* <tt>.RS</tt> : Indent paragraph 3 to right start
* <tt>.RE</tt> : Indent end
* <tt>.VS "Text"</tt>: Mark as new version, "<tt>Text</tt>" describes version
* <tt>.VE "Text"</tt>: End of mark (the text is just a reminder)
* <tt>.CS</tt> : Source code examples
* <tt>.CE</tt> : Source code example end
* <tt>.SS</tt> : Text for a heading
* <tt>.SP</tt> : Subsection (probably)
* <tt>.PP</tt> : New line and reset font, margin and indent to default values
* <tt>.QW "Text"</tt>: Quoted Word, puts the <tt>Text</tt> in magic quotes when rendered on systems that support that (such as html).
|