aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-laserhammer/pkg-descr
blob: 7500559078af14ca0fdd45d29f5ee9b0c45268e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
LaserHammer is a simple DocBook to mdoc(7) ("UNIX man page syntax")
converter.

The command line utility resides in the scripts/ subdirectory; use
it like this:

	$ laserhammer book.parsed.xml book.7

The 7 above stands for section 7 of man pages, "miscellaneous
documentation".  The 'book.parsed.xml' is a processed XML source
of the FreeBSD Handbook; you can use it as test sample.  The
'book.7' is the example translated into mdoc.

There's also a rudimentary Python module.  Use it like this:

	import laserhammer
	mdoc = laserhammer.laserhammer(file_path) print(mdoc)

WWW: https://github.com/trasz/laserhammer