Re: Displaying SVG with embedded links
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Apr 05, 2026 at 06:42:07PM +0300, Eli Zaretskii wrote: > > Date: Sun, 05 Apr 2026 16:46:00 +0200 > > From: Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> > > > > Eli Zaretskii <[email protected]> writes: > > > > > AFAIK, this is not supported directly, but you could have a :map > > > property in the image descriptor that makes portions of the image > > > sensitive to clicks. See the node "Image Descriptors" in the ELisp > > > manual for more. > > > > I see. This is the mechanism that "osm.el" uses, AFAIU. > > > > 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) > > 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? Cheers -- t
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCadKWhwAKCRAFyCz1etHa RvvuAJ4qFTYNEA+sds/KQpTxJ7yaoEffuwCfWnaSA+akx7i+w64URSNbmwlFVMc= =lOA/ -----END PGP SIGNATURE-----