--- /dev/null
+[[!template id=bzrrepo repo=pybtex]]
+
+I keep my [[BibTeX]] databases neat and tidy with my own branch of
+[Pybtex][]. The actual command used to re-format the files is
+
+ $ python -c 'from pybtex.database.input.bibtex import Parser; from pybtex.database.output.clean_bibtex import Writer; p = Parser(); d = p.parse_file("path/to/db.bib"); w = Writer(); w.write_file(d, "path/to/db.bib", p.get_raw_macros())' 2> pybtex.log
+
+Be sure to look over `pybtex.log` and `git diff path/to/db.bib` for
+anything suspicious before committing the new file (you are versioning
+it with [[Git]] right? ;). You may have to do some find-and-replacing
+to handle changed keys and consolidate or rename automatically
+generated macros.
+
+You might also be interested in [bibtool][], but I'm more comfortable
+tweaking things in [[Python]].
+
+
+[Pybtex]: http://pybtex.sourceforge.net/
+[bibtool]: http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool/
+
+
+[[!tag tags/latex]]
+[[!tag tags/programming]]
+[[!tag tags/tools]]
--- /dev/null
+Software versioned in [Bazaar][] or Bazaar-related posts. I only use
+Bazaar when the project I'm hacking already does. When I have a
+choice, I much prefer [[posts/Git]]
+
+[Bazaar]: http://bazaar.canonical.com/
+
+[[!inline pages="link(tags/bzr) and !templates/*" show=10 actions=yes]]
-Software versioned in Git or Git-related posts.
+Software versioned in [[posts/Git]] or Git-related posts.
[[!inline pages="link(tags/git) and !templates/*" show=10 actions=yes]]
--- /dev/null
+<span class="infobox">
+Available in a [[!taglink tags/bzr]] repository.<br />
+Repository: <a href="<TMPL_IF url><TMPL_VAR url><TMPL_ELSE>/~wking/code/bzr/<TMPL_VAR repo></TMPL_IF>" rel="vcs-bzr" title="<TMPL_VAR repo> repository"><TMPL_VAR repo></a><br />
+Author: <TMPL_UNLESS author>W. Trevor King</TMPL_UNLESS><TMPL_VAR author><br />
+</span>
+
+<TMPL_UNLESS repo>
+This template is used to create an infobox for a Bazaar repository. It
+uses these parameters:
+
+* repo - the name of the repository.
+* url - repository url. Defaults to `/~wking/code/bzr/<repo>`.
+* author - the author of the branch. Defaults to `W. Trevor King`.
+
+It also automatically tags the branch with `tags/bzr`.
+</TMPL_UNLESS>
</span>
<TMPL_UNLESS repo>
-This template is used to create an infobox for a git repository. It
+This template is used to create an infobox for a Git repository. It
uses these parameters:
* repo - the name of the repository.