<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Tekst zonder opmaak Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Arial",sans-serif;
mso-fareast-language:EN-US;}
span.TekstzonderopmaakChar
{mso-style-name:"Tekst zonder opmaak Char";
mso-style-priority:99;
mso-style-link:"Tekst zonder opmaak";
font-family:"Arial",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">In addition to my previous mail,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">I think I found the answer myself, when removing the character from the mkgmap:label:1 value (it was )
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">my highwayshield is gone as well
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Segoe UI Emoji",sans-serif">😊</span><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">I guess its just the way things are ‘solved’ by garmin and I better leave it that way?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">Joris<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span style="mso-fareast-language:NL">Van:</span></b><span style="mso-fareast-language:NL"> mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk>
<b>Namens </b>Joris Bo<br>
<b>Verzonden:</b> vrijdag 22 mei 2020 20:52<br>
<b>Aan:</b> Development list for mkgmap <mkgmap-dev@lists.mkgmap.org.uk><br>
<b>Onderwerp:</b> [mkgmap-dev] Extra leading character after assiging highway shield<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:35.4pt">Hi,<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">For a long time I have seen a leading (space like?) character in front of $Ref which is not there in the osm source.<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">Today I have been chasing the thing trying to finally solve my style-bug, but now I get stuck thinking it looks like the highwayshield assignment is adding it.<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">I studied the manuals around the addlabel command and the mkgmap:label:1 fields but I’m not sure if it is a known side effect<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">I think I can easily fix it after the assignment.<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">I switched to the default style and find the same behavior.<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><img width="342" height="218" style="width:3.5625in;height:2.2708in" id="Afbeelding_x0020_1" src="cid:image002.jpg@01D6307D.D58189D0"></span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">In the finalize section of lines the highway shields are calculated<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">The yellow stuf is my debug comment, the green stuf is the default style, the blue stuf is the echotags result<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">#--------- DEBUG<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">highway = * {set jba1 = '$(mkgmap:label:1)' ; set jba2 = '$(mkgmap:label:2)' ; set jba3 = '$(ref)' ; set jba4 = '$(name)' }<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">#------------------</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL">
<span style="background:aqua;mso-highlight:aqua">Jba1=empty</span></span><span lang="EN-GB" style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL"> = mkgmap:label:1</span><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;background:aqua;mso-highlight:aqua;mso-fareast-language:NL"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL">
</span><span lang="EN-GB" style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;background:aqua;mso-highlight:aqua;mso-fareast-language:NL">Jba2=empty</span><span lang="EN-GB" style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL">
</span><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL">= mkgmap:label:2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;background:aqua;mso-highlight:aqua;mso-fareast-language:NL">jba3=N184</span><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL">
= $ref<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;background:aqua;mso-highlight:aqua;mso-fareast-language:NL">jba3=Luitenant Lippenslaan</span><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL">
= $name<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span style="font-size:8.0pt;font-family:"Tahoma",sans-serif;color:black;mso-fareast-language:NL"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><o:p> </o:p></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime"># Display highway shield for mayor roads if they have a ref and make them searchable by their name<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime">(highway=motorway | highway=trunk) & ref=* {name '${ref|highway-symbol:hbox}'; addlabel '${name}'}<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime">highway=primary & ref=* {name '${ref|highway-symbol:box}' ; addlabel '${name}'}<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime">(highway=secondary | highway=tertiary) & ref=* {name '${ref|highway-symbol:oval}'; addlabel '${name}'}</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">#--------- DEBUG<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">highway = * {set jbb1 = '$(mkgmap:label:1)' ; set jbb2 = '$(mkgmap:label:2)' ; set jbb3 = '$(ref)' ; set jbb4 = '$(name)' }<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">#------------------</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"> I pasted a picture because it visualize the hidden character suddenly appear in front of mkgmap:label:1<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">
</span><img width="224" height="69" style="width:2.3333in;height:.7187in" id="Afbeelding_x0020_2" src="cid:image004.png@01D6307D.D58189D0"><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime">name=* {name '${name}'}<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime">highway=* & ref=* & highway!=motorway & highway!=trunk & highway!=primary & highway!=secondary & highway!=tertiary<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:lime;mso-highlight:lime"> {addlabel '${ref}'}</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB">
<o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB" style="background:yellow;mso-highlight:yellow">highway = * & osmid() = 272407046 {echotags 'looking for prefix'}</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoPlainText" style="margin-left:35.4pt"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
</body>
</html>