From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 05 10:01:53 2024 Received: (at submit) by debbugs.gnu.org; 5 Oct 2024 14:01:53 +0000 Received: from localhost ([127.0.0.1]:39331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx5M0-0001F6-W3 for submit@debbugs.gnu.org; Sat, 05 Oct 2024 10:01:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:45652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx5Lz-0001Ez-Jo for submit@debbugs.gnu.org; Sat, 05 Oct 2024 10:01:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sx5Lu-0006dh-G2 for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 10:01:46 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sx5Ls-0002EH-Tx for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 10:01:46 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5c718bb04a3so3913355a12.3 for ; Sat, 05 Oct 2024 07:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728136900; x=1728741700; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=gEKAi+vjM8EXSpPQ+m+XqV+FbWKw9ujhCqU8FVqC3KY=; b=RrFcd46JZFxi+4+Sl+FXQWdFtT0S+N9mU6ps5wO2sN8r2BFfDbPDVHaOwTp+l21WP/ gnJjeOAdN/epddH/dBgWfdsGU2ofNktIY0QJSlxjeQRdXQFzI23Z6zSXrIDnUteEVz/V 3yb3kevGAMp8PqHQk45Lx2wKCkhSGyFt7X4pT9myyj0eBkuk/TiBUF+oHmyg4LbPmnv6 sRkmMnGkSH+JhC/eBv6mQueFrATStRAq2QJm3nsiFiSk3MeEvEfm2PZSTCvUXs0WCEUw 6LPMZv8qfxCfXaqWGMgpreJoRU7ta3ZlGg03qMfOOhJ2sNHWIfl6cRAMlXcPeuO6pGzU /Ifg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728136900; x=1728741700; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gEKAi+vjM8EXSpPQ+m+XqV+FbWKw9ujhCqU8FVqC3KY=; b=OT5ONEYI7qKMCfSrtVIlO8IkcOgXJIRlRkstzYtlLUV/WDi6pKmCLfL7W+HbxAO+3M f6zRI2JTZPOt3Wdq5UzK/A6JH/70t+E2nDeq/j+Z07Ql9Hml11MDVn7ndALW2VhKQ3kT bIUNB7zR4fAdzfEeFDH1/6WNSUuNc7p43F9nKNccuBXJKnHE559bfar36m/x25iv+3sS M6FVEQDEEZWUANoswG5Ut7We888BFEE3Vp2JmPmmh+L9aEeYdkxQYEv/gUAA3f6D8baC VOp6qoqianPwsyJdiY6UMUkLFxv5/eDiaT8XSN7BSegaccOAxeuGbch7H1QIVs0M5TnU mClw== X-Gm-Message-State: AOJu0YwYzrS7wE4JJTr591oZGeg0RBLIdu7M1Bg5FktbAEmy8rlbML2N 9J4ipcvmO5Ygp3vTj1Xl8N5Q2+10vTjE+6JBeJYXEPapesRdDvvGxMg9sA== X-Google-Smtp-Source: AGHT+IG8h8fnzZe2cgCqbcqAkzMcHrgL0XYRUKHiTXI/WJq3Tt8JIndNsCb2sdkwMMOjUHGCwU2azw== X-Received: by 2002:a17:906:ee87:b0:a8b:ddf4:46f1 with SMTP id a640c23a62f3a-a991c077d4amr717486966b.63.1728136900301; Sat, 05 Oct 2024 07:01:40 -0700 (PDT) Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99309aa6afsm129266466b.112.2024.10.05.07.01.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2024 07:01:39 -0700 (PDT) From: Augusto Stoffel To: bug-gnu-emacs@gnu.org Subject: 30.0.90; Math in EWW/shr X-Debbugs-Cc: Date: Sat, 05 Oct 2024 16:01:36 +0200 Message-ID: <87ttdqmywv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) shr has a tendency to display garbled math formulas. For example opening https://developer.mozilla.org/en-US/docs/Web/MathML/Examples/MathML_Pythagorean_Theorem in EWW shows this: > if a and b are the legs and c is the hypotenuse, then a2+b2=c2a^2 + > b^2 = c^2. This happens because HTML elements tend to contain a MathML description of the formula and possibly some "annotations", so what we see above is "a2+b2=c2", the naive rendering of the MathML, concatenated with "a^2 + b^2 = c^2" which is an annotation saying what the formula is in TeX notation. So in as a first improvement I would like to suggest adding this definition: (defun shr-tag-math (dom) (shr-generic (thread-first dom (dom-child-by-tag 'semantics) (dom-child-by-tag 'annotation) (or dom)))) The above page then gets rendered like this: > Specifically, if a and b are the legs and c is the hypotenuse, then > a^2 + b^2 = c^2. In other words, only the TeX annotation is displayed, which is as good as it gets when trying to show math as plain text, IMO. It is possible for the element to include a SVG rendition of the formula. We could consider displaying that if available (not sure how common it is, though). Also, we might consider including infrastructure to render MathML, but this would require external programs (there is no reason to reinvent MathJax). I've done that in one of my packages, see this commit for the relevant code: https://github.com/astoff/devdocs.el/commit/04a8793072f1fc7c23f115e2c7ee83ce669b6fa4 (Actually, I added a version of the above to two of my packages already, so I think it's pretty clear Emacs should have some general math-rendering infrastructure.) From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 05 11:27:20 2024 Received: (at 73641) by debbugs.gnu.org; 5 Oct 2024 15:27:20 +0000 Received: from localhost ([127.0.0.1]:39394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx6gi-0005uf-5t for submit@debbugs.gnu.org; Sat, 05 Oct 2024 11:27:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sx6gg-0005uU-QZ for 73641@debbugs.gnu.org; Sat, 05 Oct 2024 11:27:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sx6eQ-00024e-1W; Sat, 05 Oct 2024 11:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=X/r9bV6IlKhsxPgQ6BHaTUDaE01/RmdGP0i/ke7rNUs=; b=VumFZibhSzJt o3q00dpoCfnTRfhPb0n+0byGeg+NvHu14JUzIHqGzfDQL9wppIhwiSY9Tr2PVevTcYnqLq+NvOV3q P+dQXWF2mIFxNh/OL2Bpqwkz2Ay2ZnbWRadEPKFysjiWIkuYS52k9P6/ln00JcTsMRobcYtoOxwdI J3ZxypJzzDw1H7PNnAtu5VvP+znO4YxKCTBIUH4408z0psIr43uoAzaiZYgzBsrQsSh+XcwGTvinV ErISBx59Yxi4CWE9vpRPe1b8scqpnLIInp4YUHFCm+t5qWAg3oHnVLxRFVmQ6lkLuJglXVt5jXvWX ZcO+2nzMpW4joJMKhvXUnQ==; Date: Sat, 05 Oct 2024 18:24:55 +0300 Message-Id: <8634lawp14.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87ttdqmywv.fsf@gmail.com> (message from Augusto Stoffel on Sat, 05 Oct 2024 16:01:36 +0200) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641 Cc: 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Date: Sat, 05 Oct 2024 16:01:36 +0200 > > It is possible for the element to include a SVG rendition of the > formula. We could consider displaying that if available (not sure how > common it is, though). Also, we might consider including infrastructure > to render MathML, but this would require external programs (there is no > reason to reinvent MathJax). I've done that in one of my packages, see > this commit for the relevant code: > > https://github.com/astoff/devdocs.el/commit/04a8793072f1fc7c23f115e2c7ee83ce669b6fa4 > > (Actually, I added a version of the above to two of my packages already, > so I think it's pretty clear Emacs should have some general > math-rendering infrastructure.) I agree that it would be good for Emacs to support math rendering, but we need to find the best way of doing that, and then look for a library or a program that implements that. Maybe the first step would be to conduct a survey of available methods and tools. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 02:42:54 2024 Received: (at 73641) by debbugs.gnu.org; 10 Oct 2024 06:42:54 +0000 Received: from localhost ([127.0.0.1]:58466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1symsv-0005mj-Sx for submit@debbugs.gnu.org; Thu, 10 Oct 2024 02:42:54 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:44171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1symsu-0005mV-EZ for 73641@debbugs.gnu.org; Thu, 10 Oct 2024 02:42:53 -0400 Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a7aa086b077so78914566b.0 for <73641@debbugs.gnu.org>; Wed, 09 Oct 2024 23:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728542495; x=1729147295; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Zhm3pd6rlubrptWnrsK57geWDDd0+2rFpE8JYzOQf4U=; b=FQbFrhf7jBFX6hpRWVopPu/SYuSNDRDeKPh6PLlDynUodNYo8LRcR8A2IIqXiVVTlJ 0Pw5xNW+n434w0MCH77yAbuezHkKsvfnAe4qZkSCgpgtHzuQe7L1DUo5ypgXPn/QxiGg 6ySSs4FvMrUx4CWrx+drVTt/wZtrbIklrJiOqZ2IjfhpcaAWcXLWtSo0KDjQECWFJEp8 ecE0HOqTdIg3gLDhfS4UEtISA699+vIeX5Pw/3zZZLGqT+kZnuUHzMMgAkZMw3FgVX6Z ZhWnL89AT9p+qGiFUPN01gc62AWR2hdTpR1dPLi8sKDTsV93p5kDD0q6lPo7l9HnfjgO 5DDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728542495; x=1729147295; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Zhm3pd6rlubrptWnrsK57geWDDd0+2rFpE8JYzOQf4U=; b=CEu3ETvhvESRG53CLBDODrhLCvWuhBHJ3awY79taUU+MzTCU6xmXIAzacxXu83n/SQ q614z/v/BytAa0ncFumi57dxWzP0A0KtEYo1vVOKZeg96PFmEYXi0LP2lfcuNrznyBc8 PYrO5Gdyrjjxttx1NCKz+kBtOFgIGfpTDxVrbkx0VnsFVtHPMGIYXPJdMtDoJyveCK2q MzLvIGO4pbVmnHkB+2kimX57bwhdrK8VCHYhAr9FZYdSpi5MtYukxJomgddJI/aPSPZa tXXZ88fffkyhETmgj/Dkpt2f9sH8zDQJ3+Y/pH5x4y5PMqQgqBH005BmVIkq6gLeLeoH vVbA== X-Gm-Message-State: AOJu0YwSGiPc1i8uoQSbFC3VFEiuPr3wB2ZoB4mhxvRBnjmRLkK5sRiJ y/XTgsvI9aQ6HRHDxyyWMWUJO2oHa5aE/AmYaIkNfer1GyQBsSgbQ+tAjQ== X-Google-Smtp-Source: AGHT+IGJHj3qi5630Wqvm+4vwNRkXgwrT+OAHkyvWEflsI6nU297cXMftWeem2IUMl5bESfnCoyjvw== X-Received: by 2002:a17:906:7309:b0:a99:4dc1:b931 with SMTP id a640c23a62f3a-a999e8f728cmr238423066b.64.1728542494769; Wed, 09 Oct 2024 23:41:34 -0700 (PDT) Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a80c0217sm41013566b.110.2024.10.09.23.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 23:41:33 -0700 (PDT) From: Augusto Stoffel To: Eli Zaretskii Subject: Re: bug#73641: 30.0.90; Math in EWW/shr In-Reply-To: <8634lawp14.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 05 Oct 2024 18:24:55 +0300") References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> Date: Thu, 10 Oct 2024 08:41:32 +0200 Message-ID: <87bjzsa28z.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73641 Cc: 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, 5 Oct 2024 at 18:24, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Date: Sat, 05 Oct 2024 16:01:36 +0200 >> >> It is possible for the element to include a SVG rendition of the >> formula. We could consider displaying that if available (not sure how >> common it is, though). Also, we might consider including infrastructure >> to render MathML, but this would require external programs (there is no >> reason to reinvent MathJax). I've done that in one of my packages, see >> this commit for the relevant code: >> >> https://github.com/astoff/devdocs.el/commit/04a8793072f1fc7c23f115e2c7ee83ce669b6fa4 >> >> (Actually, I added a version of the above to two of my packages already, >> so I think it's pretty clear Emacs should have some general >> math-rendering infrastructure.) > > I agree that it would be good for Emacs to support math rendering, but > we need to find the best way of doing that, and then look for a > library or a program that implements that. Maybe the first step would > be to conduct a survey of available methods and tools. Sure, but my suggestion above for a "baseline" implementation of the math tag in shr makes sense anyway IMO. Should I prepare a patch? Now, about your question, I think there aren't too many options: - Good old TeX: widely available among (and only among) scientific people, gigantic and bloated and slow, no MathML support, excellent at rendering TeX, has "shell escape" to worry about. - LuaTeX: like TeX, but probably can do MathML as well. - MathJax: needs JavaScript, otherwise can be bundled with Emacs (takes just 2MB), supports MathML, supports TeX notation but not arbitrary TeX packages, safe by default. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 03:44:13 2024 Received: (at 73641) by debbugs.gnu.org; 10 Oct 2024 07:44:13 +0000 Received: from localhost ([127.0.0.1]:58565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1synqG-0000Tu-Ts for submit@debbugs.gnu.org; Thu, 10 Oct 2024 03:44:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1synqF-0000Te-2A for 73641@debbugs.gnu.org; Thu, 10 Oct 2024 03:44:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1synpy-0001A0-MD; Thu, 10 Oct 2024 03:43:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gVNNlNoOYhM2GjxtP+rsjY+5HazLgP+HgS9YO4+cKYM=; b=l8yrcO5PORte B1bMJmpLKGrtreuv61uKOBwPWdXKEZ/4QPirLgaajXvz6Qit7Q4LX95LFV4RJaACkpgERiObGmEId TkDG4jf75yDQbNbKsmDpf+nvqgS11q+aX5urqzpog8RT+ZGum3osEfwy5G3DEAxg1S4POkqBwPwpB x8TCy16F7mIJVklY6wWWNSnEnq4/xFNihoLDRHWfdltnB2LIaOCBGcyJNOt5tCyOFUgdlqAfHdppN SeVoiQd2JO4K1M0hzo1aIIIvodeZxo3u4mlGjhIsdQJTD7mtTOmi24CIc6fzviFN7EzhMCIxp+iHI tIanXSOANY8CJvmgi+MIPw==; Date: Thu, 10 Oct 2024 10:43:53 +0300 Message-Id: <8634l42yiu.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87bjzsa28z.fsf@gmail.com> (message from Augusto Stoffel on Thu, 10 Oct 2024 08:41:32 +0200) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641 Cc: 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: 73641@debbugs.gnu.org > Date: Thu, 10 Oct 2024 08:41:32 +0200 > > On Sat, 5 Oct 2024 at 18:24, Eli Zaretskii wrote: > > >> From: Augusto Stoffel > >> Date: Sat, 05 Oct 2024 16:01:36 +0200 > >> > >> It is possible for the element to include a SVG rendition of the > >> formula. We could consider displaying that if available (not sure how > >> common it is, though). Also, we might consider including infrastructure > >> to render MathML, but this would require external programs (there is no > >> reason to reinvent MathJax). I've done that in one of my packages, see > >> this commit for the relevant code: > >> > >> https://github.com/astoff/devdocs.el/commit/04a8793072f1fc7c23f115e2c7ee83ce669b6fa4 > >> > >> (Actually, I added a version of the above to two of my packages already, > >> so I think it's pretty clear Emacs should have some general > >> math-rendering infrastructure.) > > > > I agree that it would be good for Emacs to support math rendering, but > > we need to find the best way of doing that, and then look for a > > library or a program that implements that. Maybe the first step would > > be to conduct a survey of available methods and tools. > > Sure, but my suggestion above for a "baseline" implementation of the > math tag in shr makes sense anyway IMO. Should I prepare a patch? I don't think I understand what you are proposing. What is the "baseline" implementation for math tags? what will it entail and what will it allow/enable? > Now, about your question, I think there aren't too many options: > > - Good old TeX: widely available among (and only among) scientific > people, gigantic and bloated and slow, no MathML support, excellent at > rendering TeX, has "shell escape" to worry about. > > - LuaTeX: like TeX, but probably can do MathML as well. > > - MathJax: needs JavaScript, otherwise can be bundled with Emacs (takes > just 2MB), supports MathML, supports TeX notation but not arbitrary > TeX packages, safe by default. The basic question is what these produce as output, and how can Emacs display what they produce? The best alternative for Emacs is to have a tool that can generate characters, which could then be rendered using a suitable font. The (distant) second best is a tool that generates an image. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 06:50:32 2024 Received: (at 73641) by debbugs.gnu.org; 10 Oct 2024 10:50:32 +0000 Received: from localhost ([127.0.0.1]:58816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syqkX-0001oB-1q for submit@debbugs.gnu.org; Thu, 10 Oct 2024 06:50:32 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:57443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syqkV-0001o3-7q for 73641@debbugs.gnu.org; Thu, 10 Oct 2024 06:50:27 -0400 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a99543ab209so107304766b.2 for <73641@debbugs.gnu.org>; Thu, 10 Oct 2024 03:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728557354; x=1729162154; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pbTVPMcNoBE4jpgEB6XJdhC4ODt4g0Kf5MqqjQxHT78=; b=UE9Lo0Zam47eLNdkiiqOBGxn0flsyTwAwMp8iRqT9qh+T7KbXcFwtnxl2qt3Okwtne 4XNnd9XkiuzptbPEDUQVuZJT0CTsO8E+kvOqf+9fBXKRe4hBc4OUnCf5y5OGZLvbSRdT yGIYUYnPBGyy/pHBVIDDFsjWS58vvlRWlKW7R93vVELPTHdlWVk9Y7FTRuYJSOLqSEy7 FLDj88FgE0F9nklGfKaQEdHHw7xho15BGo7/Ms2wM3FFwdWdvSuWud8jC9dLFqReD7Tg LMWpECyxERH+yjvS2c7EcQgB1b8X/f2V1EAeNsuCQxUOVEVt5JX9I31HuE+E8XfVB/eE tYxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728557354; x=1729162154; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pbTVPMcNoBE4jpgEB6XJdhC4ODt4g0Kf5MqqjQxHT78=; b=xFDMOS/M5ZY624H3Cgp6dKtbnpD5KYpuvb+shohdaOA1XkaldOKXTOkrG+SbPUlgNn bIOfpYCi0q+uEesKDKUVp0Yej7xm4iXqo0t9wuGmG7TOx6gbBd5+koMOj7v5i4MHyAUI iIsi/SJ+bK8eGfJmENfjhCA1NfabfTUKLcyQu33yeOddbXJ2igQPYlCp78p6hW+AVnny BCiyTFQYPfQJXfNjPbEl9Vb9dJ29Oax/RnS+ZyK72+71Fk9nmMiwQGXyFbAaoB9WsCpQ 5DdNafwU2jjddvK5Cy1PcK9J84EEy//qjUr09pVRmdP+7gciOFLl5qIb9FnUuImAS/nb 1MBQ== X-Gm-Message-State: AOJu0YzYgq8n2DEsSpCz+oUuA96X5v9m1IhHJfRgs+5albteWDCGdP0f qQ4DNrDV1s1yu0TaOvww4H17LUZy4BLqF9eoaB2Qcz44Tdo3FGgqIt+0CQ== X-Google-Smtp-Source: AGHT+IEAaOOjKu5/blBykf3kVHy7YMDx/eUR7xlRCuhh93sslNHLUFPVZMLH2JY4kJJQzqf5/PKUlQ== X-Received: by 2002:a17:907:944d:b0:a99:7b6f:c8a7 with SMTP id a640c23a62f3a-a998d311b59mr548692366b.46.1728557353767; Thu, 10 Oct 2024 03:49:13 -0700 (PDT) Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a80efc74sm71017066b.190.2024.10.10.03.49.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 03:49:12 -0700 (PDT) From: Augusto Stoffel To: Eli Zaretskii Subject: Re: bug#73641: 30.0.90; Math in EWW/shr In-Reply-To: <8634l42yiu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct 2024 10:43:53 +0300") References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> Date: Thu, 10 Oct 2024 12:49:10 +0200 Message-ID: <87ldyw5j2x.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73641 Cc: 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, 10 Oct 2024 at 10:43, Eli Zaretskii wrote: > I don't think I understand what you are proposing. What is the > "baseline" implementation for math tags? what will it entail and what > will it allow/enable? I refer precisely to the code from the bug's first message, which also has an example of the result. >> Now, about your question, I think there aren't too many options: >> >> - Good old TeX: widely available among (and only among) scientific >> people, gigantic and bloated and slow, no MathML support, excellent at >> rendering TeX, has "shell escape" to worry about. >> >> - LuaTeX: like TeX, but probably can do MathML as well. >> >> - MathJax: needs JavaScript, otherwise can be bundled with Emacs (takes >> just 2MB), supports MathML, supports TeX notation but not arbitrary >> TeX packages, safe by default. > > The basic question is what these produce as output, and how can Emacs > display what they produce? The best alternative for Emacs is to have > a tool that can generate characters, which could then be rendered > using a suitable font. MathJax is this tool. It can render formulas as "HTML with complicated styling" to resize and move around characters and symbols. I don't think Emacs could display such things in general. > The (distant) second best is a tool that generates an image. I think an image with readable text beneath it is quite alright. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 07:34:30 2024 Received: (at 73641) by debbugs.gnu.org; 10 Oct 2024 11:34:31 +0000 Received: from localhost ([127.0.0.1]:58886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syrR8-00044x-JE for submit@debbugs.gnu.org; Thu, 10 Oct 2024 07:34:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syrR6-00044i-1w for 73641@debbugs.gnu.org; Thu, 10 Oct 2024 07:34:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1syrQp-00072p-3i; Thu, 10 Oct 2024 07:34:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ldn4ZMk197UfY3I8N1L6x7T8sxlAYUDsKvPUAdVfrb4=; b=ZYT1yWXlks72 AWNRWtDxqjtR8CLjZ3UuUI1Jap522n78miFm2uHHDjGFzUpCg63OfbxzwU4VRJH4p+9XAQMFfvjBp wk7Mx77feQcx80UNi+pzpNwVQ0ftMYWxUS6Inoe0DC9CPX2ztaav3zX9gjctk4IU2M3i9jWcjUbRk 718PkgEGfhdUMn9SHagGiuVh7g3nLxI0PsXJa/9WknWo+1l8kIlGxpCVNg+HT9DU9DreAzC6ghFWT wOZCoDvUu/fWXZu+tvCnaAN3gLk0qGClfgBg8CAadUht37dXQw+aP70pBQ4T2/gqV9EhCdH9N52l3 NY1apcTqKSBiml5LZH0P0w==; Date: Thu, 10 Oct 2024 14:34:07 +0300 Message-Id: <86r08o19ao.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87ldyw5j2x.fsf@gmail.com> (message from Augusto Stoffel on Thu, 10 Oct 2024 12:49:10 +0200) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641 Cc: 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: 73641@debbugs.gnu.org > Date: Thu, 10 Oct 2024 12:49:10 +0200 > > On Thu, 10 Oct 2024 at 10:43, Eli Zaretskii wrote: > > > I don't think I understand what you are proposing. What is the > > "baseline" implementation for math tags? what will it entail and what > > will it allow/enable? > > I refer precisely to the code from the bug's first message, which also > has an example of the result. Ah, okay. That's fine, but please add some comment there that we fall back to the text variant because we don't (yet) know how to do better. > > The basic question is what these produce as output, and how can Emacs > > display what they produce? The best alternative for Emacs is to have > > a tool that can generate characters, which could then be rendered > > using a suitable font. > > MathJax is this tool. It can render formulas as "HTML with complicated > styling" to resize and move around characters and symbols. I don't > think Emacs could display such things in general. Do you know what is missing for us to be able to display that? > > The (distant) second best is a tool that generates an image. > > I think an image with readable text beneath it is quite alright. Display of inline images in Emacs has quite a few limitations that make it less desirable for this purpose, IMO. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 10 16:24:58 2024 Received: (at 73641) by debbugs.gnu.org; 10 Oct 2024 20:24:58 +0000 Received: from localhost ([127.0.0.1]:60674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syziT-00077S-VZ for submit@debbugs.gnu.org; Thu, 10 Oct 2024 16:24:58 -0400 Received: from out-175.mta1.migadu.com ([95.215.58.175]:24944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syziR-000776-BE for 73641@debbugs.gnu.org; Thu, 10 Oct 2024 16:24:57 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1728591877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Rxe7qrhp9SKInr0E2j9/1FHkJ+AfAKp/3vtIek1gLtk=; b=WKKDfi2DRa6KkzuT2UWT1vxkBdx6oFXdmjQXO51e24i6iMKHqA4kqhXZfh27d8NvoUMweA OOEOXmlkXLMRwqdAvudAeZJWp/sV1gC0U5eu668XgaWZz7c8RnyLdwit4ByUOFhRN/WiSo ZRWnS/EmGnkl5zEJ+kT50Le2+jenm23C4MbpzUXiKjypbJ096DoVQQKy+oAgEqHgFDZkYW OveC+tO1tKT+taBrj/c24CIHMVU1pLpLsxsziSwqC3+fmpiy9SOMnln9PcKEySwbTALHAd GXsDzIGdH9ddjW+QWrsVplELFWJNSyeJ/dGiPCNk9BaC4nRIrlBx2kSb+qwcaw== From: Jeremy Bryant To: Eli Zaretskii Subject: Re: bug#73641: 30.0.90; Math in EWW/shr In-Reply-To: <86r08o19ao.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct 2024 14:34:07 +0300") References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> Date: Thu, 10 Oct 2024 21:24:31 +0100 Message-ID: <878quvln9c.fsf@jeremybryant.net> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73641 Cc: Augusto Stoffel , Sacha Chua , 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> From: Augusto Stoffel >> Cc: 73641@debbugs.gnu.org >> Date: Thu, 10 Oct 2024 12:49:10 +0200 >> >> On Thu, 10 Oct 2024 at 10:43, Eli Zaretskii wrote: >> >> > I don't think I understand what you are proposing. What is the >> > "baseline" implementation for math tags? what will it entail and what >> > will it allow/enable? >> >> I refer precisely to the code from the bug's first message, which also >> has an example of the result. > > Ah, okay. That's fine, but please add some comment there that we fall > back to the text variant because we don't (yet) know how to do better. > >> > The basic question is what these produce as output, and how can Emacs >> > display what they produce? The best alternative for Emacs is to have >> > a tool that can generate characters, which could then be rendered >> > using a suitable font. >> >> MathJax is this tool. It can render formulas as "HTML with complicated >> styling" to resize and move around characters and symbols. I don't >> think Emacs could display such things in general. > > Do you know what is missing for us to be able to display that? > >> > The (distant) second best is a tool that generates an image. >> >> I think an image with readable text beneath it is quite alright. > > Display of inline images in Emacs has quite a few limitations that > make it less desirable for this purpose, IMO. > > Thanks. As this is related to shr and displaying svg images, this reminds me of a patch of Sacha earlier this year. Perhaps Sacha you have a suggestion on this? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 10:25:32 2024 Received: (at 73641) by debbugs.gnu.org; 12 Oct 2024 14:25:32 +0000 Received: from localhost ([127.0.0.1]:46412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szd3k-0002g2-0g for submit@debbugs.gnu.org; Sat, 12 Oct 2024 10:25:32 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:58390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szd3i-0002fv-JJ for 73641@debbugs.gnu.org; Sat, 12 Oct 2024 10:25:31 -0400 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a994ecf79e7so461201166b.0 for <73641@debbugs.gnu.org>; Sat, 12 Oct 2024 07:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728743055; x=1729347855; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=qGHajiPakWgEmeqzjxweWPl5bPI0KPg2m7hdNRiv0Bo=; b=W1yA0cQUGLxLdqfeAoJGmq76bOjKIQV8vU67UFnvgqZhpisc9s1w0pmk7eFwF07jrB uwr2EI19HSo9jnmLBwedy27cterpFuFTwPV41VeK8CAsEmecARZmd+hv6RppfFFtHbyD pjL3echUq7rb/dO1Qoc3nL65Kmvf4siXFo7owiZUIS7u9mPc8+N/u1yLp3MRxZPJ5z2R Hr/0zS+cldu4aXkkQw4FCE9jkKUNikeiWBpB/bGtfanrCQDqSOTSN+8RC486dlT+Hni0 RArRosdDjwbXUFP4nZFv+1G4un/TMPoAE2vZSBdKPm/oatlpV/v7lbbiu8xsl4jDtKhn Z99g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728743055; x=1729347855; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qGHajiPakWgEmeqzjxweWPl5bPI0KPg2m7hdNRiv0Bo=; b=LnBFbi/JnViiPU8FftHAUwSmPGm/4YmuPUAoce2cOcHM4Cll1lyt90k46METzbOS+J vxjpOP5WsWH1sznqNBv5uZ4hu38boN40A2v9qvMB0cGJuhbQnyhRjDz+gBfq5uyIB5dF nTyGckc/rjZZOrMjyJRq6Wjb633wUsgH4OC2Bf3729GwrHM7p+rmCpoxqhYWAtevFwga aePt4VmPPyr8fvC+ErabsmlH7w6gfXzGrSelqA+EJVAJSwMUlBcbd/INt3cBlXjJSG3q jx/GnOtHfmEjul05bNej72E5wMVwNhLxRcanZNTN5dJ4af2Y5z3EHBfykAzjb/ec52Ta hJCw== X-Forwarded-Encrypted: i=1; AJvYcCWAPNMoU3d3P9TZ0diVaEB+czo3WmEEYT7HURxXf9SH1wjp3OsJ3ML11yoJNIv7x2O7syDruA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywc7CLHzyLdJBJIxvsX4vtUKfoIV0BMBf1bxbxXw8yuA7U3CDpb N6X9w1txkegrHQoTtgLJmu0Wnd8BkyWF9wBXEaZRHXzCGFMvQjvy X-Google-Smtp-Source: AGHT+IGg0WsD6sqo2QI04UvnznTUzaijiHUVyHIwMfjVlgAF2MJz4X0GUbRqYQpiNxtbu0fQQbf5Yw== X-Received: by 2002:a17:907:d29:b0:a99:f4be:7a6c with SMTP id a640c23a62f3a-a99f4be8860mr130637866b.52.1728743055224; Sat, 12 Oct 2024 07:24:15 -0700 (PDT) Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f25dc6sm328150766b.72.2024.10.12.07.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 07:24:14 -0700 (PDT) From: Augusto Stoffel To: Jeremy Bryant Subject: Re: bug#73641: 30.0.90; Math in EWW/shr In-Reply-To: <878quvln9c.fsf@jeremybryant.net> (Jeremy Bryant's message of "Thu, 10 Oct 2024 21:24:31 +0100") References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> Date: Sat, 12 Oct 2024 16:24:12 +0200 Message-ID: <87plo5jt6b.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73641 Cc: Eli Zaretskii , Sacha Chua , 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On Thu, 10 Oct 2024 at 21:24, Jeremy Bryant wrote: > As this is related to shr and displaying svg images, this reminds me of > a patch of Sacha earlier this year. > > Perhaps Sacha you have a suggestion on this? Independent of that, I've attached a patch containing the "baseline" action that can be later refined. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-shr.el-Define-rendering-rule-for-math-tag.patch >From 8b772c709eb8527fd8e7ebfab65980d64dfa2f02 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 12 Oct 2024 16:20:47 +0200 Subject: [PATCH] shr.el: Define rendering rule for math tag * lisp/net/shr.el (shr-tag-math): New function, see bug#73641. --- lisp/net/shr.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index f1062acf7e4..fff478a69c9 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -2264,6 +2264,15 @@ shr-tag-bdi (shr-generic dom) (insert ?\N{POP DIRECTIONAL ISOLATE})) +(defun shr-tag-math (dom) + ;; Display an annotation (typically TeX notation) if available. + (shr-generic + (thread-first + dom + (dom-child-by-tag 'semantics) + (dom-child-by-tag 'annotation) + (or dom)))) + ;;; Outline Support (defun shr-outline-search (&optional bound move backward looking-at) "A function that can be used as `outline-search-function' for rendered html. -- 2.46.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 11:23:46 2024 Received: (at 73641) by debbugs.gnu.org; 12 Oct 2024 15:23:47 +0000 Received: from localhost ([127.0.0.1]:48478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szdy6-0006O9-Bi for submit@debbugs.gnu.org; Sat, 12 Oct 2024 11:23:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szdy1-0006NG-Mm for 73641@debbugs.gnu.org; Sat, 12 Oct 2024 11:23:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szdib-00073h-45; Sat, 12 Oct 2024 11:07:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PU56z5AKFkrBDNiXYUlt1HGaEGzmYocF4XaJ0Amm6dk=; b=Np6bRvX/id5c FPgPP1hbwOWrYdLXKXdRSNh/NAQNvYtUaKRmqmvRpEZGZG75W2mFI7o222zUYcQThlzxu/K92hS7C d5UkMSYKX896EIB/WESYbw9FyCHU8gT4M3aVfCu1Gt/yLFzK3SWAOtQV/8jz+8WrTpY9zUe9yDOHM 6ZDXjKR343JHzqXL1wk+YwyZPMCmd+EH8PlRlR5HS4rtR/vVtkzEYd9bjwr/HqhuVuvV0pM2u+BuP rBQzJ2SQgMaV8nLOq5jg8FyLI47xK+0ghTitwL2Tx7FM0y1gHj1qMd5xBWrdqrpzBJthWwsyvecWq 5xBbas1C4rvZWiTQ4v4HLw==; Date: Sat, 12 Oct 2024 18:07:41 +0300 Message-Id: <86zfn9uzpe.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87plo5jt6b.fsf@gmail.com> (message from Augusto Stoffel on Sat, 12 Oct 2024 16:24:12 +0200) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> <87plo5jt6b.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641 Cc: jb@jeremybryant.net, sacha@sachachua.com, 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: Eli Zaretskii , 73641@debbugs.gnu.org, Sacha Chua > > Date: Sat, 12 Oct 2024 16:24:12 +0200 > > On Thu, 10 Oct 2024 at 21:24, Jeremy Bryant wrote: > > > As this is related to shr and displaying svg images, this reminds me of > > a patch of Sacha earlier this year. > > > > Perhaps Sacha you have a suggestion on this? > > Independent of that, I've attached a patch containing the "baseline" > action that can be later refined. Thanks, but can we please have a comment here explaining why we do that? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 13:15:13 2024 Received: (at 73641) by debbugs.gnu.org; 12 Oct 2024 17:15:13 +0000 Received: from localhost ([127.0.0.1]:53528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szfhx-0005dP-2k for submit@debbugs.gnu.org; Sat, 12 Oct 2024 13:15:13 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:51609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szfhu-0005dA-L5 for 73641@debbugs.gnu.org; Sat, 12 Oct 2024 13:15:11 -0400 Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a93c1cc74fdso472914366b.3 for <73641@debbugs.gnu.org>; Sat, 12 Oct 2024 10:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728753230; x=1729358030; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Swgbk3s6O22veAMcTvqERnHi/bphhHYZ4YH7ch95EiA=; b=DmBHngs6LRrWZtyYRztMVQ+SpF5Y1miQOtJp8I9MP3LQUouMoD8XaB8LZrDj+M8HCG +kT0sQGpob8D57q+qKg4XZVeR3KH2jpPXsuDIGFp+B2yKtdviOuRjWLZjsaYaR9d1sRC +j0smFnEAyHeAGGHTE+fkwWJz87WercJZ4aVfhx2PMluD+zTPooOOPDeg5CQUsq/BUC7 o5HEEng/uJZvHPe582/bTw+pSr0rWWKjpN7DJRXlmFcIFvj+PdcFcpfAWRzwdOybVuwI mNo7553yGEZu8Mh7CCXlLul6Bv5FfxEaRMSCp2eIsLgPEBoZSn43M9wnVWIzNLnRkxB7 aBvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728753230; x=1729358030; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Swgbk3s6O22veAMcTvqERnHi/bphhHYZ4YH7ch95EiA=; b=VejlTq3ocwaJXtY3Lxt0mZcUnnJl6W+nLW91aIdAZW2BsW7h/ht12KMSdspSga4L9J FJPswyoCIzPh0aGHCQo3biY/C5xoDj48BU2MR8onC3RmfMgnhFDBi8LPibWUeEOFK+CR kMuZdhzcQNRJnfalO4oDtqmJTTVaPpM0KJ4hl5fxdL9M3WCvk/r5sdXy+czKKC0uRhzq 1IYi8Z2u7E16apN8ybm+KElOlP4MKgHijMCslMt0Fi2EzsHL8IeAl1y5Fdfjpq4j7vld /RUBUecUZniyDqj6p3XBLMcBU92N56t1TU1K7eVew4/C4Fhd+NYFDL0tYKD1tRlxACN9 trHA== X-Forwarded-Encrypted: i=1; AJvYcCWz5UmJB3VQy44/gyLzKt0eY+V2tI+S0DoRFwD7tGao7USmowuvDBatj0gdSWYtCZyW03AW0A==@debbugs.gnu.org X-Gm-Message-State: AOJu0YywUlYUltgH/gH3Y20Mw5wBXdzrQ4+6tHCmbpFmo4u0mwRtaMqo PFq9vlRHzKa0IlwDU1m25IWlgCv+nEJC1OhMtrennVNOLBlty/fn8olThA== X-Google-Smtp-Source: AGHT+IFSPBaQYqtNrMEYksusmqW3DAEr3JNGRQS4M5fmIRrV0c4dOYq4UXJpUZ0fVe5jjfCD9seHtw== X-Received: by 2002:a17:907:d17:b0:a99:ee42:1f38 with SMTP id a640c23a62f3a-a99ee421fdamr236507766b.31.1728753230197; Sat, 12 Oct 2024 10:13:50 -0700 (PDT) Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a80dd875sm346771066b.178.2024.10.12.10.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 10:13:49 -0700 (PDT) From: Augusto Stoffel To: Eli Zaretskii Subject: Re: bug#73641: 30.0.90; Math in EWW/shr In-Reply-To: <86zfn9uzpe.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Oct 2024 18:07:41 +0300") References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> <87plo5jt6b.fsf@gmail.com> <86zfn9uzpe.fsf@gnu.org> Date: Sat, 12 Oct 2024 19:13:48 +0200 Message-ID: <87bjzpjlbn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73641 Cc: jb@jeremybryant.net, sacha@sachachua.com, 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On Sat, 12 Oct 2024 at 18:07, Eli Zaretskii wrote: > Thanks, but can we please have a comment here explaining why we do > that? How about this? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-shr.el-Define-rendering-rule-for-math-tag.patch >From 0d3f0ad219e9cd0c9f79113d137cab5bbdeed2e1 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 12 Oct 2024 16:20:47 +0200 Subject: [PATCH] shr.el: Define rendering rule for math tag * lisp/net/shr.el (shr-tag-math): New function, see bug#73641. --- lisp/net/shr.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index f1062acf7e4..0c37ef67bbb 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -2264,6 +2264,18 @@ shr-tag-bdi (shr-generic dom) (insert ?\N{POP DIRECTIONAL ISOLATE})) +(defun shr-tag-math (dom) + ;; Sometimes a math element contains a plain text annotation + ;; (typically TeX notation) in addition to MathML markup. If we pass + ;; that to `dom-generic', the formula is printed twice. So we select + ;; only the annotation if available. + (shr-generic + (thread-first + dom + (dom-child-by-tag 'semantics) + (dom-child-by-tag 'annotation) + (or dom)))) + ;;; Outline Support (defun shr-outline-search (&optional bound move backward looking-at) "A function that can be used as `outline-search-function' for rendered html. -- 2.46.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 12 14:40:17 2024 Received: (at 73641) by debbugs.gnu.org; 12 Oct 2024 18:40:17 +0000 Received: from localhost ([127.0.0.1]:56657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szh2G-0002VK-AH for submit@debbugs.gnu.org; Sat, 12 Oct 2024 14:40:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szh29-0002Th-Aa for 73641@debbugs.gnu.org; Sat, 12 Oct 2024 14:40:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szgfQ-0005Oy-EB; Sat, 12 Oct 2024 14:16:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tCG0tQYGiCdP5fgu+5fEA23urDKhtnepxoWHXW9P0EQ=; b=XxNKmjhqE4jV 1WBwp9qpk25HkoTQsHTm32lSWTpRCYMKYDU9IYZYIMyt+xTKLYykU75EJb1m8o6yawuoiRnKPptgO I08up8Abm1pp/km6sAhaPJNro2H3ExcIbpOznhlYhlsDJMxC+9bqjME6QcFSe7EBYyw/z0fFeTvoC DiOVn68QJ0HAP/lZkjiFgywBsA9Eyc0JXGfAvo0f/TOebISP1CruTN9g3FKcu8Ht09+MWEAu2SZPH iDmKcOC5S26/fme0pdGiFXcHPVQSIH8YQPr2ZxkOiBCuyg60sAVDCnGSnaMK7cxVlR7oPCsanZ87v NSE753gRB494KMr0Yxs02w==; Date: Sat, 12 Oct 2024 21:16:35 +0300 Message-Id: <86set1uqyk.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87bjzpjlbn.fsf@gmail.com> (message from Augusto Stoffel on Sat, 12 Oct 2024 19:13:48 +0200) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> <87plo5jt6b.fsf@gmail.com> <86zfn9uzpe.fsf@gnu.org> <87bjzpjlbn.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641 Cc: jb@jeremybryant.net, sacha@sachachua.com, 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: jb@jeremybryant.net, 73641@debbugs.gnu.org, sacha@sachachua.com > Date: Sat, 12 Oct 2024 19:13:48 +0200 > > On Sat, 12 Oct 2024 at 18:07, Eli Zaretskii wrote: > > > Thanks, but can we please have a comment here explaining why we do > > that? > > How about this? LGTM, thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 06:26:12 2024 Received: (at 73641) by debbugs.gnu.org; 27 Oct 2024 10:26:12 +0000 Received: from localhost ([127.0.0.1]:43922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t50TM-00065Z-7D for submit@debbugs.gnu.org; Sun, 27 Oct 2024 06:26:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t50TJ-00065I-DQ for 73641@debbugs.gnu.org; Sun, 27 Oct 2024 06:26:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t50Se-0003Xl-QD; Sun, 27 Oct 2024 06:25:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CR8+DcOdDI72rCZIeFM3Gevl7IHJPDneMg7EsrsJ7Os=; b=nxBi+Spm0IPt BNmbnKRniBIhotvVlHrIUiUantULeJmTtDVXzNtuOE6bpkKmIfASFPNkNslrK5YZIIVyo99XBySmF k4p5UiKsCfcG7riGHd+YneoU90turLYCLIhLShA9MOfxKopaXismLicIye6ko5hhQG1mqXoJ/IpkM 6hlK+62BAcbAYvUtzh+6sHRkbVnjEHRqsevdrdIdv9dP6OnlY1D+u806Rk+gwQ9/jVUXZjkq16Szf PNgg64FodEI82Hcm+JHkBcqvAPil+04s7D7pGkGxWiH5yqlWUGFN1LYPDR64zphcAENfsowGlGMZI b7/ltbOE/LpABeTSgsDa0Q==; Date: Sun, 27 Oct 2024 12:25:26 +0200 Message-Id: <86ldy9alm1.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87bjzpjlbn.fsf@gmail.com> (message from Augusto Stoffel on Sat, 12 Oct 2024 19:13:48 +0200) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> <87plo5jt6b.fsf@gmail.com> <86zfn9uzpe.fsf@gnu.org> <87bjzpjlbn.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641 Cc: jb@jeremybryant.net, sacha@sachachua.com, 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: jb@jeremybryant.net, 73641@debbugs.gnu.org, sacha@sachachua.com > Date: Sat, 12 Oct 2024 19:13:48 +0200 > > On Sat, 12 Oct 2024 at 18:07, Eli Zaretskii wrote: > > > Thanks, but can we please have a comment here explaining why we do > > that? > > How about this? As I said, this LGTM, but I'm unsure how you'd like to proceed. Should I install this, and you will follow up with some code which uses this new function? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 29 02:45:53 2024 Received: (at 73641) by debbugs.gnu.org; 29 Oct 2024 06:45:53 +0000 Received: from localhost ([127.0.0.1]:55660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5fzF-0006E6-0q for submit@debbugs.gnu.org; Tue, 29 Oct 2024 02:45:53 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:45381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5fzD-0006Dq-8R for 73641@debbugs.gnu.org; Tue, 29 Oct 2024 02:45:52 -0400 Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a9a0c40849cso834622866b.3 for <73641@debbugs.gnu.org>; Mon, 28 Oct 2024 23:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730184285; x=1730789085; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4KuFRPqLeFea4xRTnq4UOKpf4mOxjGTBxEpZcUtVl3E=; b=bCLksRAOVTJpyxqLxbdiD/Nq711XJjD5jBL0lgfxHsVnrr50EH4gd/Q//FeepTLE1V m2jVFvBYNZG7I12d/DACtHk4ajY+epL7NF0uAm27DF1bnJ94oDm9Xzq0XNmEep8DUGUW zQ+VUS9bk9WppJpnRkf7+iLKUEL1ERD6tKZiusICCFhMleufatUzeKmFXl4yXWTFCOb7 rY4337pM9d/1XuAu5/8ij/14YDmAKVE+5n3nWCQI9qD908pPfsagjDrG/36KjZCsowhV coVBpucjJ20N8wJsk1SvWUrv99HeyiP5qcmBvlLuFs8/YyPau61UYQpkrRyYw0Tslh0k vx7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730184285; x=1730789085; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4KuFRPqLeFea4xRTnq4UOKpf4mOxjGTBxEpZcUtVl3E=; b=DiMYWR/uaVdJID38UBMUFwblRl2Sb5wTkBc2w2O2Q09ZrPXLip3HpTxZJLjbwNZ0JI getx+nNfVjVLZSjDz0uzeqZIQbmvLvzpzETtzR/ieeqUlt+RxKgBdv6kQ1S35mpcCNd8 eTa97Ve0+KTubOI4TENPRWukKzv8mo+JMSJNKwuUig8KEM/KnP8M9AFM7O3dsApb8ncQ lGD6OqY/Y4nWTHaqQV0GCMf0ZrlnLIIO947TAssEAx2QO6PhARvB96ryJXDPjwqOsUzU O5xhn2am5YGn64OJxdzZci+m6n5dMKjjYA81I6qAHKiMglpaUpvh5F9tM9QJ5WyNTc/I G54A== X-Forwarded-Encrypted: i=1; AJvYcCUkMjk3rMtclLPQVz93GJfmFmB91Rngwh52D1D/Ra9JLOMrT37yfT8sdvOKhDrV9yOTY9Z6tA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzjYAiu5WG2uynTzb3dwJTHR9VNnWtB97Ff9Na5HYw8U2JF1A98 p1ZRWSYslwRJAWsZUAuod3YXMm7BmToncz8MHgHJ037xNJc1Yice X-Google-Smtp-Source: AGHT+IHoHfvrVzmyVNdDdYsTFmFSTlt8H2jR0to6s4APHgoAUxY5tigfGoTGsExph4Sx4kYtTcJzUQ== X-Received: by 2002:a17:907:7f16:b0:a9a:646e:d2f7 with SMTP id a640c23a62f3a-a9de6196286mr959081466b.61.1730184285104; Mon, 28 Oct 2024 23:44:45 -0700 (PDT) Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b1f037045sm440976966b.86.2024.10.28.23.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 23:44:43 -0700 (PDT) From: Augusto Stoffel To: Eli Zaretskii Subject: Re: bug#73641: 30.0.90; Math in EWW/shr In-Reply-To: <86ldy9alm1.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Oct 2024 12:25:26 +0200") References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> <87plo5jt6b.fsf@gmail.com> <86zfn9uzpe.fsf@gnu.org> <87bjzpjlbn.fsf@gmail.com> <86ldy9alm1.fsf@gnu.org> Date: Tue, 29 Oct 2024 07:44:42 +0100 Message-ID: <87o733wgpx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73641 Cc: jb@jeremybryant.net, sacha@sachachua.com, 73641@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, 27 Oct 2024 at 12:25, Eli Zaretskii wrote: >> From: Augusto Stoffel >> Cc: jb@jeremybryant.net, 73641@debbugs.gnu.org, sacha@sachachua.com >> Date: Sat, 12 Oct 2024 19:13:48 +0200 >> >> On Sat, 12 Oct 2024 at 18:07, Eli Zaretskii wrote: >> >> > Thanks, but can we please have a comment here explaining why we do >> > that? >> >> How about this? > > As I said, this LGTM, but I'm unsure how you'd like to proceed. > Should I install this, and you will follow up with some code which > uses this new function? >From my perspective it can be installed, and no follow up code is needed. At some point shr calls (intern (format "shr-tag-%s" ...)), so the code that uses the new function is already there. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 06:21:23 2024 Received: (at 73641-done) by debbugs.gnu.org; 31 Oct 2024 10:21:23 +0000 Received: from localhost ([127.0.0.1]:41449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6SIs-0002WY-QW for submit@debbugs.gnu.org; Thu, 31 Oct 2024 06:21:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6SIp-0002WQ-W3 for 73641-done@debbugs.gnu.org; Thu, 31 Oct 2024 06:21:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6SIk-0005bL-IA; Thu, 31 Oct 2024 06:21:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/pQmXBRTeDx0gMKG1M3rld8cyXp6mm/PIxQsdFClujk=; b=BJzAw6sz0yJT 2HvQ2xsmij+iGZbldLaowVndCVD+ulg+YRZkFAPeLK07Hfwe3hRbNJJBSEMHnwL4dI5eOvGAaDoCr DHNEPDrW4R+zy6kUZTl4oWu5739IOOvu924Wb63TnYpzzBRaiQ5w5YH7lZwxVJbNfZLurK/13VzPX eFDlQcrlpgBNxMliU2ea1ojXDGBiWHjd1qqCCGJHKlkOgMYXT+4pHdfgdUzAuwgeCDNviG5K44UdZ OxcKATH6Tq6a46i2JCO6S/ZxEMqdo4LR8pEn7CIU3Zo1XjjoTY4kf1giBLHVekJhZ3wnOWQiQWZn5 9XF26YBpkezQ1MA6H1CfWA==; Date: Thu, 31 Oct 2024 12:21:11 +0200 Message-Id: <86o7303754.fsf@gnu.org> From: Eli Zaretskii To: Augusto Stoffel In-Reply-To: <87o733wgpx.fsf@gmail.com> (message from Augusto Stoffel on Tue, 29 Oct 2024 07:44:42 +0100) Subject: Re: bug#73641: 30.0.90; Math in EWW/shr References: <87ttdqmywv.fsf@gmail.com> <8634lawp14.fsf@gnu.org> <87bjzsa28z.fsf@gmail.com> <8634l42yiu.fsf@gnu.org> <87ldyw5j2x.fsf@gmail.com> <86r08o19ao.fsf@gnu.org> <878quvln9c.fsf@jeremybryant.net> <87plo5jt6b.fsf@gmail.com> <86zfn9uzpe.fsf@gnu.org> <87bjzpjlbn.fsf@gmail.com> <86ldy9alm1.fsf@gnu.org> <87o733wgpx.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73641-done Cc: jb@jeremybryant.net, sacha@sachachua.com, 73641-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Augusto Stoffel > Cc: jb@jeremybryant.net, 73641@debbugs.gnu.org, sacha@sachachua.com > Date: Tue, 29 Oct 2024 07:44:42 +0100 > > On Sun, 27 Oct 2024 at 12:25, Eli Zaretskii wrote: > > >> From: Augusto Stoffel > >> Cc: jb@jeremybryant.net, 73641@debbugs.gnu.org, sacha@sachachua.com > >> Date: Sat, 12 Oct 2024 19:13:48 +0200 > >> > >> On Sat, 12 Oct 2024 at 18:07, Eli Zaretskii wrote: > >> > >> > Thanks, but can we please have a comment here explaining why we do > >> > that? > >> > >> How about this? > > > > As I said, this LGTM, but I'm unsure how you'd like to proceed. > > Should I install this, and you will follow up with some code which > > uses this new function? > > >From my perspective it can be installed, and no follow up code is > needed. At some point shr calls (intern (format "shr-tag-%s" ...)), so > the code that uses the new function is already there. Thanks, installed on master, and closing the bug. From unknown Sat Aug 16 18:09:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 28 Nov 2024 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator