unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: LdBeth <andpuke@foxmail.com>,
	Notmuch Mailing List <notmuch@notmuchmail.org>
Subject: Re: notmuch-emacs: svg icon cannot be rendered by emacs-mac
Date: Thu, 13 Jan 2022 19:43:38 +0200	[thread overview]
Message-ID: <m2y23j1qgl.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <tencent_127AA231767438AC66FEE4DDB4BBF51DF909@qq.com>

On Wed, Jan 12 2022, LdBeth wrote:

> The svg icons included in notmuch-emacs cannot be correctly rendered
> by emacs-mac (https://bitbucket.org/mituharu/emacs-mac/src/master/),
>
> The empty SVG created by `svg-image' function from svg.el has XML
> attribute `xmlns' like:
>
> "<svg width=\"50\" height=\"50\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">
> </svg>"
>
> which is missing from SVG icons defined in `notmuch-tag.el'

First, IMO mac svg renderer is lame not to be lenient enough 
(and dont follow Postel's Law...) to just render those... anyway

... probably just adding xmlns=\"http://www.w3.org/2000/svg\"
to the svg strings in notmuch-tag.el could work. 
This just needs someone to test it. Adding the code is pretty easy :D,
but either someone w/ mac should do and test the change -- and send
patch email -- or definite information what works so someone else(tm)
(or her friend!) can do the change w/o testing :D

This is very easy to test, in started emacs first load notmuch, then
load notmuch-tag.el into new buffer, edit suitable svg functions, then
M-x eval-buffer (all these before executing any notmuch functions as
the first evaluation of those functions may be the only time those 
are called...

Tomi

PS: the new notmuch-logo.svg has the above xmlns in its implementation so
that should work :D

>
> Thanks.
>
> --
> LDB

      reply	other threads:[~2022-01-13 17:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 12:44 notmuch-emacs: svg icon cannot be rendered by emacs-mac LdBeth
2022-01-13 17:43 ` Tomi Ollila [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y23j1qgl.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=andpuke@foxmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).