<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Steve,<br><br>I don't know where to fix that.<br>In <a class="header" href="eclipse-javadoc:%E2%98%82=mkgmap/src%3Cuk.me.parabola.mkgmap.osmstyle.actions%7BValueBuilder.java%E2%98%83ValueBuilder">ValueBuilder</a>.addFilter()<br>we receive the string&nbsp; " substring:1:14"<br>(with the leading blank) and that is not removed, so we don't match "substring".<br><br>Gerd<br><br><div>&gt; Date: Fri, 28 Nov 2014 01:04:50 -0700<br>&gt; From: gpetermann_muenchen@hotmail.com<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Subject: Re: [mkgmap-dev] Substring returns full string<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; try without the blanks:<br>&gt; (ncn=yes | rcn=yes) { name '${rcnname|substring:1:14}'} [0x10018 resolution<br>&gt; 22 continue with_actions]<br>&gt; <br>&gt; Gerd<br>&gt; <br>&gt; <br>&gt; gbbickerton wrote<br>&gt; &gt; I have not had this problem with my email before that I know of, however<br>&gt; &gt; it does not solve my problem what I want is a way to shorten names to say<br>&gt; &gt; the first two words as some are very long.<br>&gt; &gt;  I have also tried  <br>&gt; &gt; { name '${rcnname|part:"\s&lt;2"}'} but I am not sure how to separate at<br>&gt; &gt; spaces I have tried ' ' etc without success<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; --<br>&gt; View this message in context: http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603p5825665.html<br>&gt; Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                               </div></body>
</html>