Myself, Coding, Ranting, and Madness

The Consciousness Stream Continues…

More Footnotes! New Footnotes!

6 Aug 2012 8:00 Tags: None

As part of my overhaul work on this blog, I have now built my own footnotes plug-in, for greater flexibility, with all new functionality, and considerable less code and bandwidth usage.

The design of the footnote has changed1, and they are considerably more flexible2.Any readers who use WordPress and want to use them can find the documentation and current version over at GitHub 4, along with a lot of my other work.

For everyone else, there is the knowledge that I've got rid of the JavaScript pop-ups (which used to actually annoy me, regardless of how useful they probably were to trying to read my prose), and added in a distinction between footnotes and citations, which will make chasing up my references marginally easier. Oh, and there isn't 700KB of jQuery to load up with the page.

Edit: a few days after writing, but before publication I've added in a few more features, working towards an actual stable release. Mousing over a footnote will use the browser's tool-tip to display the text5. The links should also highlight the footnote / marker that you have just been moved to in order to help you keep track of what you're reading.

Edit: only a few hours before this went live So, I got somewhat bored and re-factored the code; it now supports separating out citations and footnotes, and also supports having multiple link backs form the bottom to repeated reference[backref name="one" />. Further to that, my work doing this, setting up Google Currents, and generally mucking around with the WordPress core means that this page should now validate as HTML5. Got a bit of a way to go on the CSS front, though.

As ever, there is a prize for anyone who can guess what snippet of SF the post title is adapted from6, though it would be something of a miraculous day.

  1. 1 They now look like this!
  2. 2 Trust me on this3
  3. 3 See, we can do nesting now. You've got to admit, that is progress
  4. 4 https://github.com/javajawa/Note-n-Cite/
  5. 5 Hopefully, not destroying any formatting too much. Nested comments don't come out too nice, though
  6. 6 Prize may be of non-positive value