On 24-11-2011 13:36, Robin.Kirkham@csiro.au wrote:
On Monday, 21 November 2011 20:52, Hans Hagen wrote:
Over the weekend I've discovered a couple more problems with \unit so I'll make up some test cases and desired output and post it in a few days.
ok, I'll wait for that then
Hans, all,
I attach a document (source and PDF) with some \unit test cases that don't currently work (even with the most recent beta). It also has a number of suggestions for improvement. Some of this should be construed as personal opinion, but hopefully it isn't too controversial.
I uploaded a new beta. - degrees fixed (special category as it can be standalone or in combination). - per fixed - Hz, dB (actually deci + bel so megabel also works), lx, permille, t, k, Da added - eV, m, \mu m, root added - ad 1: should normally work out ok - ad 2: no looking back (would demand an extra correction pass elsewhere, maybe some day) - ad 3: see remark WS - ad 4: see remark WS (also, the existing module was starting point) - ad 5: depends on what users want - ad 6: see remark WS - ad 7: the old modules had that, maybe this one will have it too; in that case we need a list of descriptions too (for different languages) for units that make sense to be mentioned in such a list - ad 8: manipulating the input this way is somewhat beyond the purpose of a typesetting system - ad 9: much will be configureable; see mkiv file for an example of defining extra units (\registerunit [units] [point=pt, basepoint=bp]); - I myself am not going to look in all kind of other tex stuff that lays around as it's up to users/usage what is added, given that it fits into the model of context; we have the old units modules as starting point ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------