Author: ncw33
Description:
The diff
- There were a couple of spots in the code with slight problems on the id-choosing scheme. There were indeed tricksy things you could do to break the old code by choosing group names with strategically placed hyphens. I have altered this, so that all ids are valid XHTML, and map entered names properly injectively to generated ids to ensure uniqueness.
- Previously, refs used once were treated separately and the default group is treated slightly oddly. I think some of this was a holdover from an earlier coding of the groups functionality. I have homogenised treatment for these cases a little.
Now, the above make it a bit harder to separate out the changes in my local version to individual patches, so this patch encompasses everthing I did on Friday evening, including the following new exciting features:
- Support for nice footnote symbols. If you create a group called "footnote", you get a nice progression of *†‡ symbols etc. instead of numbers. This is neat and works well, and should be pretty un-controversial.
- Secondly, and more majorly, I have built a parser stage that globs links to notes together. It maps [1][2][nb 3][5][nb 5][6][nb 4][7] ↦ [1,2,5-7,nb 3-nb 4] (an obviously extreme example to show the scheme). In general, the most common case is [13][14][15][16] ↦ [13-16], an improvement that has been requested many times. All links and things work nicely.
Version: unspecified
Severity: enhancement
attachment patch.diff ignored as obsolete