5 ---------------------------------------------
6 generate unix manpages from reStructured text
7 ---------------------------------------------
9 :Author: grubert@users.sourceforge.net
10 :organization: humankind
11 :Address: 123 Example Street
15 :Copyright: public domain
19 :Manual group: text processing
21 .. TODO: authors and author with name <email>
26 ``rst2man`` ``--help``
28 ``rst2man`` [ OPTIONS ] [ SOURCE [ *destination* ] ]
34 Run it and examine output.
44 For all other options see ``--help``.
50 :rst2man.py xml-schema-catalog.rst xml-schema-catalog.man:
51 create a manpage from xml-schema-catalog.rst
53 .. comments : lorem ipsum lorem ipsum
54 lorem ipsum lorem ipsum
59 *BUG* The section title should be separated from the title above.
61 Test **bold** or **strong** formatting.
70 .period ad line start.
76 * and a longer entry, and a longer entry, and a longer entry, and a longer entry,
77 and a longer entry, and a longer entry, and a longer entry, and a longer entry,
89 a. alphabetically list
101 10. bigger indentation if there are more than nine
102 enumerated items (or there are larger numbers)
104 a second paragraph that should be separated from the previous
105 one and not flowing into.
109 9. dont increment by 1
111 13. Problematic: indentation does not match for nonconsecutive entries.
113 This paragraph must not be indented with the text the last list-item,
114 but start at the left margin of the numbers.
116 a second paragraph that should be separated from the previous
117 one and not flowing into.
125 Definition paragraph 1.
127 Definition paragraph 2.
129 Term starting with period.
137 :first: a short label and a short text
138 :secondly a longer label: and some more text and some more text
139 and some more text and some more text
142 are also a valuable option and simple nonintrusive formatting
149 >>> print 'Python-specific usage examples; begun with ">>>"'
150 Python-specific usage examples; begun with ">>>"
151 >>> print '(cut and pasted from interactive Python sessions)'
152 (cut and pasted from interactive Python sessions)
158 +----------+--------+
160 +----------+--------+
163 +----------+--------+
172 A paragraph following the line block.
173 lorem ipsum lorem ipsum
174 lorem ipsum lorem ipsum
175 lorem ipsum lorem ipsum
176 lorem ipsum lorem ipsum
189 and a paragraph after the literal.
191 some special characters and roff formatting in literal::
193 .SS "." at line start
199 | This is a line block. It ends with a blank line.
200 | Each new line begins with a vertical bar ("|").
201 | Line breaks and initial indents are preserved.
202 | Continuation lines are wrapped portions of long lines;
203 they begin with a space in place of the vertical bar.
204 | The left edge of a continuation line need not be aligned with
205 the left edge of the text above it.
207 | This is a second line block.
209 | Blank lines are permitted internally, but they must begin with a "|".
211 Take it away, Eric the Orchestra Leader!
213 | A one, two, a one two three four
215 | Half a bee, philosophically,
216 | must, *ipso facto*, half not be.
217 | But half the bee has got to be,
218 | *vis a vis* its entity. D'you see?
220 | But can a bee be said to be
221 | or not to be an entire bee,
222 | when half the bee is not a bee,
223 | due to some ancient injury?
243 .. Attention:: Directives at large.
247 Don't take any wooden nickels.
249 .. DANGER:: Mad scientist at work!
251 .. Error:: Does not compute.
253 .. Hint:: It's bigger than a bread box.
256 - Wash behind your ears.
257 - Clean up your room.
261 .. Note:: This is a note.
263 .. Tip:: 15% if the service is good.
265 .. WARNING:: Strong prose may provoke extreme mental exertion.
266 Reader discretion is strongly advised.
268 .. admonition:: And, by the way...
270 You can make up your own admonition too.
272 With more than one paragraph.
274 Text after the admonition.
279 inline references `ref something` .
281 .. container:: verbose
283 Contained verbose. Nothing special.
290 Top section `b` c *d* e **f** g
291 ===============================
293 with character formatting.
303 `docutils <http://docutils.sourceforge.net>`__
307 More information can be found about
309 * xml-schema-catalog at
310 http://xml-schema-catalog.origo.ethz.ch/
312 And see the stars at the sky!
318 Numerous mapping problems.
320 1. Where do we get the manual section number from ? Commandline ?
321 2. docutils authors should be filled into section "AUTHORS".
322 3. be carefull with linebreaks in generated code.
324 bullets and enumerators.