Re: Displaying SVG with embedded links
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Apr 06, 2026 at 07:55:10AM +0300, Eli Zaretskii wrote: > > Date: Sun, 5 Apr 2026 19:06:21 +0200 > > Cc: Michael Heerdegen <[email protected]>, > > [email protected] > > From: <[email protected]> > > > > > > But I would have to do that all manually, including parsing the svg > > > > file's source - right? > > > > > > Parsing for what purpose? > > > > I think Michael wants a hot spot for each link /whithin/ the SVG. For > > this, he needs to know where those links in the SVG are (NB: in SVG, > > you can embed <a href="...">...</a> elements, they are allowed in the > > definition, and browsers honour them) > > If you mean parsing for the purpose of determining the coordinates of > the links which should be mouse-sensitive, then yes, this will need > SVG parsed. Hopefully, the svg.el package already in Emacs could help > (not that I ever used it for this purpose). Yes, that's how I understand Michael. > > > What I had in mind is just adding :map to the image descriptor which > > > names the SVG file name (or SVG data, if that's how you pass the image > > > to Emacs). > > > > I think Michael wants a more fine-grained approach; if I understand > > you correctly, the whole SVG image would be just one button, right? > > No, there could be several, see the description of :map in the ELisp > manual. Yes, I got that, thanks :-) Cheers -- t
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCadNWmgAKCRAFyCz1etHa Rr04AJ9DQUEBhNSjjMRkVaHJBXcNuoaEIACggP7QpJ6ysdBtbiCSLzFJqQ0M1SI= =IUG/ -----END PGP SIGNATURE-----