<div dir="ltr">That all makes sense. Thanks for the response. I guess from my limited perspective, I lost some useful functionality when Cairo was adopted for SVG rendering, and it's a bit frustrating; but it does still work. If they can integrate that functionality it would certainly be great, even as a selectable option (either to use text elements or not).<div>
<br></div><div>Thanks to you and Thomas.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 31, 2013 at 9:58 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12/31/2013 9:22 AM, Jefferson Williams wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
When you say "a specific rendering driver"... I am not a professional<br>
programmer and am not trying to speak above my level, but it seems to me<br>
that producing a text element in an SVG file is a fairly trivial task<br>
compared to rendering the text into vectors, which is what Cairo does<br>
now. The text doesn't need to be "rendered" at all, but simply inserted<br></div>
into a text element such as this example from <a href="http://w3.org" target="_blank">w3.org</a> <<a href="http://w3.org" target="_blank">http://w3.org</a>>:<div class="im"><br>
<br>
<text x="250" y="150" font-family="Verdana" font-size="55" fill="blue"<br>
>Hello, out there</text><br>
<br>
Thoughts? I realize that this is a Cairo issue, not a Mapserver issue,<br>
since the SVG rendering was moved out of Mapserver; but would you agree<br>
that this would be a fairly simple task from a programming perspective?<br>
</div></blockquote>
<br>
The concept is simple as you state, but you are missing the expectation that the SVG text looks simpler if not the same as the text rendered by other drivers. So while you only have to dump the text there is still a lot of work to compute the size, position, scaling, orientation, etc for that piece of text and then you have to also deal with text rendered along a line which is rendered as glyphs not strings, not to mention how you want to deal with rendering texts like Arabic and other script like texts.<br>
<br>
So yes, straight forward until you start trying to make things like similar. If you got an SVG where you only needed to change one text string but instead had to fiddle with all of them because of the above issues, that I think would not be a good solution.<br>
<br>
My guess today if you take an SVG file into something like inkscape, it is a fairly easy process to window the text vectors and replace them with a new text element, even if it is annoying.<br>
<br>
That said, I'm not saying that this is a bad idea as I can see it might be very useful. I'm only trying to set an appropriate expectation to the size of the effort. I'll leave the details to Thomas.<br>
<br>
-Steve W<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
On Tue, Dec 31, 2013 at 7:14 AM, thomas bonfort<br></div><div class="im">
<<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a> <mailto:<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.<u></u>com</a>>> wrote:<br>
<br>
Jefferson,<br>
There is currently no way to produce those elements with mapserver,<br>
and to my knowledge there are no plans to do so yet. A specific<br>
rendering driver would need to be implemented to achieve this, but has<br>
not yet been funded or proposed.<br>
<br>
regards,<br>
thomas<br>
<br>
On 24 December 2013 17:42, Jefferson Williams<br>
<<a href="mailto:jefferson.d.williams@gmail.com" target="_blank">jefferson.d.williams@gmail.<u></u>com</a><br></div><div class="im">
<mailto:<a href="mailto:jefferson.d.williams@gmail.com" target="_blank">jefferson.d.williams@<u></u>gmail.com</a>>> wrote:<br>
> I'm a long-time user of PHP Mapscript and have written code to<br>
produce maps<br>
> for Wikipedia. Older versions of Mapscript produced SVG files that<br>
> contained text elements. In more recent versions, text is<br>
produced as a<br>
> series of vectors instead, which means that the text cannot be<br>
edited.<br>
> Often auto-generated maps need to be tweaked in various ways<br>
before they are<br>
> ready for the public. Now I can move text, but I cannot edit it.<br>
><br>
> Is there a way with 6.2 or 6.4 that labels can be produced as<br>
text elements<br>
> in the resulting SVG file?<br>
><br>
> --<br>
><br>
> Jeff Williams<br>
><br>
> ______________________________<u></u>_________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br></div>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.<u></u>osgeo.org</a>><div class="im"><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
<br>
<br>
<br>
<br>
--<br>
<br>
Jeff Williams<br>
<br>
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br>Jeff Williams
</div>