Py-laserhammer

Jul 20, 2023

Docbook to mdoc(7) converter

LaserHammer is a simple DocBook to mdoc7 “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.laserhammerfile_path printmdoc


Checkout these related ports:
  • Zxing-cpp - ZXing C++ Library for QR code recognition
  • Zu-hunspell - Zulu hunspell dictionaries
  • Zu-aspell - Aspell Zulu dictionary
  • Zq - Easier and faster alternative to jq
  • Zorba - General purpose C++ XQuery processor
  • Zenxml - Simple C++ XML Processing
  • Zed - Command-line tool to manage and query Zed data lakes
  • Yq - Command-line YAML and XML processor, jq wrapper for YAML/XML documents
  • Yould - Pronounceable word generator
  • Yodl - Easy to use but powerful document formatting/preparation language
  • Yi-hunspell - Yiddish hunspell dictionaries
  • Yi-aspell - Aspell Yiddish dictionary
  • Yelp-xsl - DocBook XSLT stylesheets for yelp
  • Yelp-tools - Utilities to help manage documentation for Yelp and the web
  • Ydiff - Diff readability enhancer for color terminals