
6 Apr
2009
6 Apr
'09
11:54 p.m.
I've made some progress on this, and have some code that can prefix tag values with characters thusly: #> highway=motorway {name '${ref|prefix:04} ${name}' | #> '${ref|prefix:04}' | '${name}' } or #> natural=peak {name '${name|def:}${ele|conv:m=>ft|prefix:1f|def:}' } #> [0x6616 resolution 16] Here's my code (I haven't yet set up Emacs to use TAB instead of 4 spaces for indenting this code, so don't consider this to be a proper patch just yet): I've still got some testing to do (for example, I've not tested "subst:" at all), but if anyone spots something to correct, please say so!