diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-08-23 10:01:54 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2018-08-23 10:01:54 +0000 |
commit | 5ee21729b3fe8131ed94906e1d2a1b0765af0989 (patch) | |
tree | 9b9e65a5a9799da3e0774720e93d837c128a3078 /textproc/Makefile | |
parent | c1ef008cd76938b79be97e1b3d113228e1d83107 (diff) | |
download | ports-5ee21729b3fe8131ed94906e1d2a1b0765af0989.tar.gz ports-5ee21729b3fe8131ed94906e1d2a1b0765af0989.zip |
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
Notes
Notes:
svn path=/head/; revision=477865
Diffstat (limited to 'textproc/Makefile')
-rw-r--r-- | textproc/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index bb7589d8fbb4..12fa8384845a 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1316,6 +1316,7 @@ SUBDIR += py-jaxml SUBDIR += py-jtextfsm SUBDIR += py-junit-xml + SUBDIR += py-laserhammer SUBDIR += py-libtre SUBDIR += py-libxml2 SUBDIR += py-libxslt |