DocBook to mdoc(7) converter
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
laserhammer-2.4.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file laserhammer-2.4.tar.gz
.
File metadata
- Download URL: laserhammer-2.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07650ab2d9e1cb7611e81734c0cea3db396a8b34e41e5d4ae209c6d596acbff3 |
|
MD5 | b16755b1be2a15a79108b63f288ab6d7 |
|
BLAKE2b-256 | 8615505178b5120b17e5026b78f4977bf9ef0d2b6ef8543a1d063ffc3513d378 |
File details
Details for the file laserhammer-2.4-py3-none-any.whl
.
File metadata
- Download URL: laserhammer-2.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 388646c746d0b1dd7c4af2ec12d87a17e8477156b37c2389fee0525696048b65 |
|
MD5 | fddcddffd5c89210f6bff1d2dcd7f735 |
|
BLAKE2b-256 | 7f94fe9acacd53bf18908b3074be31bb8779864a3e84d1b0aafad1ff1cbc9d9d |