I've written before about #symbiosisware, software written only for your own use...

@simontatham@hachyderm.io

I've written before about #symbiosisware, software written only for your own use, and how it tends to end up with a weird feature set.

An example I just shared with someone else on request: my personal tool similar to 'enscript', formatting a text file into a page description for printing. It's a Python program using the Pango and Cairo libraries, outputting a PDF. It also has a feature to syntax-highlight the file, using the fairly standard Python 'pygments' library …

… but pygments was an afterthought. It originally highlighted (and still can) by running #emacs in batch mode and telling it to fontify a buffer.

Writing PDF rather than PS avoided having to implement duplex print settings (you set those in the PDF→printer step, which isn't my problem). Pango handles UTF-8 input (enscript didn't at the time – no idea whether it's now been fixed) and can read Truetype and Opentype font files, not just PFB.

And the emacs-based syntax highlighting? Well, I had some local file formats (DSLs internal to my employer, or invented by me, or both) which standard highlighting libraries don't know about. I wanted to edit those files, so I'd written emacs font-lock-mode configurations for them. Then I wanted to print them with highlighting, and obviously I didn't want to write _another_ syntax highlighter for the same format. So it follows that my printing tool had to be able to use the highlighting rules I already had.

Every step made perfect sense – but now I have a tool that makes people go :O when I describe it to them!