<div dir="ltr"><div>Hi, this is an old thread... until this is properly fixed in the index I&#39;d like to share a trick I&#39;m using to generate a gmapsupp.img file where it&#39;s convenient to search for a street name in latin countries (I&#39;m a linux user, no mapsource/basecamp).<br>
<br></div>The issue is, in most latin countries streets are named after real people and in OSM are entered with their full name, i.e. something like &quot;Via Wolfgang Amadeus Mozart&quot; (Via means Street): when looking for the street one need to type &quot;Via Wol...&quot;  and the issue is usually one knows the most meaningful name of the street - Mozart in this case - rather than the full name. And it is boring to type always &quot;Via...&quot;<br>
<div><br>The below  does  the job:  the most meanigful street word (the last one) is set as first one just in the labels used for address search, i.e.: &#39;Via Wolfgang Amadeus Mozart&#39; becomes &#39;Mozart, Via Wolfgang Amadeus&#39; when doing address search while the label displayed on the map remains unchanged:<br>
<br><font size="1"><span style="font-family:courier new,monospace"># Add this in inc/address (just after mkgmap:country has been set)<br># Get the last full word if a \s (whitespace) exist in name<br>( mkgmap:country=ITA  | mkgmap:country=FRA | mkgmap:country=CHE) &amp; highway=* &amp; name ~ &#39;.*\s.*&#39; { set  last:word=&#39;${name|part: :-1}&#39; }<br>
# if the last full word is a roman number - i.e. if a street has been named after a King or a Pope - get the last two words<br>last:word ~ &#39;(I|II|III|IV|V|VI.*|IX|X|XI.*|XV.*|XX.*)&#39;  {set last:word=&#39;${name|part: &gt;-3}&#39; }<br>
# set 3rd and 4th labels (used for address search only) with the last:word as 1st word<br>last:word=*  { set mkgmap:label:3=&#39;${last:word}, ${name|part: &lt;-1}&#39;;set mkgmap:label:4=&#39;${last:word}, ${name|part: &lt;-1}&#39; }</span></font><br>
<br></div><div>Hope it helps!<br></div><div>Enrico<br></div></div>