<div id="geary-body" dir="auto"><div>Hi Daniel,</div></div><div id="geary-quote" dir="auto"><br>Le dim. 7 févr. 2021 à 4:56, Daniel Goldman <dagoldman@yahoo.com> a écrit :<br><blockquote type="cite"><div class="ydp252f382eyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div>When I make the cairo SVG map, <g id="surface6"> is always generated so far. Can I count on surface6 id not changing? Is it hard-coded, or might change (eg, surface7)? What is significance (if any) to surface6 id, or just hard-coded arbitrary id?</div></div></div></blockquote><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px;"><div><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px;"><br></span></font></div>ids are constructed using an counter. If you replay the same cairo comands, with a given cairo version, you should always get the same id for a given element. But that's not guaranteed. And ids generation can change in a later cairo release. Then SVG generated by cairo was never really meant for later edition or for element referencing. Additional APIs are needed for this purpose.</span></font><div><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px;"><br></span></font></div><div><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px;">Cheers,</span></font></div><div><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px;"><br></span></font></div><div><font face="Helvetica Neue, Helvetica, Arial, sans-serif"><span style="font-size: 13px;">    Emmanuel.</span></font></div></div>