Commit: r1553: Using StyleImpl to print out a style now

Version 1553 was commited by steve on 2010-02-02 14:08:52 +0000 (Tue, 02 Feb 2010) BRANCH: style-speed Using StyleImpl to print out a style now gives something that is a valid style which can be read in and, on printing, will be identical to the input.

a) Now that the style-branch action rule handling has been implemented, It would in principle be easy to have different names on pupups/routing instruction, vs "printed" labels. Only I am not able to get it to work... Long time ago, using ";" would result in a name getting split, into two pupups. Now when there is a reference, one can have two different names, using display_name. Display_name however only works in case that one can display a highway shield. Is there some possibility to set different (more comprehensive) names for routing page / poput instructions vs printed labels? See the list below, I would like to have the road type attribute to be used for routing page / pupup labels, but no for "printed labels": highway=unclassified & fixme!=* { set name='${name}'|'ucl' } highway=minor { set name='${name}'|'mnr' } highway=road { set name='${name} rd'|'rd' } highway=service { set name='${name} ser'|'ser' } highway=byway { set name='${name} byw'|'byw' } highway=track & fixme!=* { set name='${name} trk'|'trk' } highway=unsurfaced { set name='${name} usf'|'usf' } highway=path { set name='${name} pth'|'pth' } highway=bridleway { set name='${name} bd'|'bd' } highway=cycleway { set name='${name} CW'|'CW' } highway=footway { set name='${name} ft'|'ft' } highway=steps { set name='${name} steps'|'steps' } highway=pedestrian { set name='${name}'|'pdstrn' } highway=parking_aisle { set name='${name}'|'parking_aisle' } highway=construction { set name='${name}'|'cstrn' } b) Does anyone know, if there is a possibility to shorten names? e.g. I would like to cut: /Big Street/ into /BigStr/ Or /anotherstreet/ into /anotherstr/

0> In article <4B68344D.4080103@gmail.com>, 0> Felix Hartmann <URL:mailto:extremecarver@googlemail.com> ("Felix") wrote: Felix> b) Does anyone know, if there is a possibility to shorten names? Felix> e.g. I would like to cut: Felix> /Big Street/ into /BigStr/ Felix> Or /anotherstreet/ into /anotherstr/ If you'll excuse me plugging my own work, this is the sort of thing that geotagman was invented to do: <set key=name> <replace case="ignore" from="\s*(str)eet$" to="$1"> <value key="name"/> </replace> </set> Felix> a) Now that the style-branch action rule handling has been Felix> implemented, It would in principle be easy to have different Felix> names on pupups/routing instruction, vs "printed" labels. Only I Felix> am not able to get it to work... If anyone is working on this stuff, it would be nice if such things would default to getting their values from some mkgmap:* tags rather than needing distinct actions. For example, if the 'name' action defaulted to getting its value from 'mkgmap:name' then we could use 'set' rules instead of being constrained to the 'add'-like behaviour of 'name' (and geotagman would Just Work ;-).
participants (3)
-
Felix Hartmann
-
svn commit
-
Toby Speight