
0> In article <4dda9d8f0904060426n7a65d517p33668c0706b872d@mail.gmail.com>, 0> Clinton Gladstone <URL:mailto:clinton.gladstone@googlemail.com> ("Clinton") wrote: Clinton> Attached is alpha coding which enables graphical highway Clinton> symbols in the map. See the attached screen shot for an idea Clinton> of how this looks in mapsource (the symbols A5, B36, etc. now Clinton> appear on the respective highways). Display looks similar on Clinton> my e-trex. Funnily enough, I've just been experimenting with the same thing here! Clinton> 1. An addition to the lines style file, which inserts the Clinton> special code before the highway reference (hex 0x04 for Clinton> motorways, 0x05 for major highways, 0x06 for minor Clinton> highways). I have a patch to ValueBuilder to read arbitrary hex characters: which mean my rules look like
highway=trunk {name '$[04]${ref} ${name}' | '$[04]${ref}' | '${name}' }
and so on. And for peaks,
natural=peak {name '${name}$[1f]${ele|conv:m->ft}' | '${name}' | '$[1f]${ele|conv:m->ft}' } [0x6616 resolution 18]
Clinton> Clinton> I had to use a hex editor to insert these symbols. Clinton> Clinton> 2. A hack in Element.java, which removes a space if it is the Clinton> second character of the highway name. Perhaps the hack should be to remove spaces (or replace with no-break-space (U+0080) if that works) in 'ref' values when substituting? And the non-hack to write a filter action to do so? I could have a look at this if you like.