<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Tobias,</p>
<p>You don't need regex. There is a replacement table: see <a href="https://www.youtube.com/watch?v=xaepblv3uMU">https://www.youtube.com/watch?v=xaepblv3uMU</a></p>
<p>But I think the replacements will always apply, not just in the case there is no space for the full label.</p>
<p>Andreas</p>
<p>On 2017-03-17 10:13, Tobias Wendorff wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Seems like this is not supported right now.<br /><br /> Substitutions really need regex or expression functionality :(<br /><br /> -- <br /> Von einem iPhone gesendet und wird daher Fehler enthalten...<br /><br /> Am 16.03.2017 um 01:25 schrieb Tobias Wendorff <<a href="mailto:tobias.wendorff@tu-dortmund.de">tobias.wendorff@tu-dortmund.de</a>>:<br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi there!<br /><br /> In ArcGIS, Mapnik and Mapserver it is possible to use alternative fields for labeling on each iteration. This makes it possible to use abbreviations when the full label does not fit in the map.<br /><br /> Is this also possible in QGIS? Perhaps even driven by Python?<br /><br /> ArcGIS has the nice feature to manually browse through each label variant for label editing.<br /><br /> Best regards,<br /> Tobias <br /><br /><span class="sig">-- <br /> Von einem iPhone gesendet und wird daher Fehler enthalten...<br /> _______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span></blockquote>
_______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>