From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73425: 31.0.50; Support images in HTML versions of ELPA package manuals Date: Sun, 22 Sep 2024 20:13:52 +0200 Message-ID: References: <86v7ynh9au.fsf@gnu.org> <87h6a78t1t.fsf@posteo.net> Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37795"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 73425@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 22 20:15:03 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ssR6t-0009g1-Li for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Sep 2024 20:15:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssR6c-0000W9-3j; Sun, 22 Sep 2024 14:14:46 -0400 Original-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 1ssR6Z-0000V4-NU for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:14:44 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ssR6W-0002RL-Qb for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:14:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=SZDhDznPzaLotxdE6A/zbwrZ58TBB9NrupeGaHMznd0=; b=VttSmtH9JhuneSE91jiRFsTUAOP+O0GFCfYzbcUkLbGFruc0trNHOw3yyBW3Vjnbpv8Bo0xYW4ZNyD6qMhUG/Kd+p/IawcadVwYa/MZb6DdKoftBHPSovL5fqjcLb8r1yj4Waz0FuW6skfaS3J9YsG9Ih6FZpdxzxKFjugLVO2kqlR1LkwHQR4LkZkk9w2E383q6OKwgYrPfrK0ERy5ls7tq/xxZvNtXnOERBWWaLUNGQ1Gk3my3qBYf+W71uF9Pgndrv63IHqWmNscPFvDRjxbAE74+NApNgGKQ76MNzvBbCKd1eHQ1JIliKWJrwTgvKuxHpwkgCqI4jr6AkAgLzQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssR6s-0001fH-4D for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2024 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73425 X-GNU-PR-Package: emacs Original-Received: via spool by 73425-submit@debbugs.gnu.org id=B73425.17270288616325 (code B ref 73425); Sun, 22 Sep 2024 18:15:02 +0000 Original-Received: (at 73425) by debbugs.gnu.org; 22 Sep 2024 18:14:21 +0000 Original-Received: from localhost ([127.0.0.1]:42733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssR6C-0001dv-FT for submit@debbugs.gnu.org; Sun, 22 Sep 2024 14:14:20 -0400 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:58048 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssR69-0001dl-Or for 73425@debbugs.gnu.org; Sun, 22 Sep 2024 14:14:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1727028835; bh=6AiDSwyQLAIR8/nsb6Tp0B/lD6VadXFttufoTqm6Y3E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kip7q7oNOBoN4YFQl8Lkh+M7fV2/eiAQe9+doSA3CMzKntf/meUqVkjkfU8byNItY aaA7GSopmSEtivQYygyLpcOd1nI8JQhQ0YQtIuslPfPaFrQOArQItQg1KSM5c3L/uG gbiPPcMtz01/CNEx2vuna5ufhW03pNH7eVVpoOXPFPJpbqy0isg6zJ6ZZIzp/b0br2 /G3tGdxIt7WAkaziaBsRIgvh8j5pPKY8EBJNREm/yM50sJoYd+WNA6H9wVX+QjAimw +mghCzUtB2uM79YlpfDCMkuupKzSQPAQlpc0slq8CtbJ+fSSqc0pqmNeVH9Tist1xN oEaoRx2B1DfWg== In-Reply-To: <87h6a78t1t.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 22 Sep 2024 18:03:26 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292247 Archived-At: Philip Kaludercic writes: > Eli Zaretskii writes: > >>> Cc: Philip Kaludercic >>> Date: Sun, 22 Sep 2024 18:06:16 +0200 >>> From: Eshel Yaron via "Bug reports for GNU Emacs, >>> the Swiss army knife of text editors" >>> >>> I'm opening this feature request following a discussion with Philip >>> elsewhere: Texinfo manual can include images, but AFAIK (and please >>> correct me if I'm wrong here) there's currently no way for ELPA packages >>> to include images in their manuals and have these images appear also in >>> the HTML version of the manual that the ELPA server builds and serves. >> >> Why "no way"? If the image files are present at their filenames as >> mentioned by the HTML version of the documentation, they will be shown >> by the browser. > > The issue is that when generating the HTML documentation for > elpa.gnu.org, we don't copy out any files, but just generate the HTML > version of the manual. > > What we need is some kind of an indication in the package specification, > what files should be copied out for the manual to access, as otherwise > the images would only be hidden in the package tarball, that a web > browser cannot access (AFAIK). Yes. >>> An example is my GNU ELPA package Kubed. In the development version, >>> the manual refers to images which are present on my web server, where I >>> provide HTML versions[1][2] of the manual. There, the images are >>> displayed properly. > > Unrelated to this issue, have you considered rendering screenshots as > SVG files using `x-export-frames'? I haven't, but I'll be sure to check it out. Thanks for the tip :) >>> On the ELPA server[3], OTOH, the images are nowhere >>> to be found, and we instead get just the alt text and caption. That's >>> expected, but the alt text is shown with no distinctive styling so the >>> result seems quite confusing. >> >> To show images, your HTML version of the manual should reference local >> files, not URLs from your some other server. And, of course, the >> image files should be part of the package tarball. >> >>> - Include images in the package repository, somehow indicate in the >>> package specification that the manual refers to these images, and have >>> the ELPA server keep the images around in a predictable location, so I >>> can link to it from the manual. >> >> I don't understand why this would be needed. Simply include the image >> files with the package, and the rest should "just work", AFAIU. > > Do you know if TeXinfo has an option to inline images? If the > "makeinfo" command could somehow generate data: urls when exporting > images, then this could be very easily solved. I'm not aware of such an option. BTW, which version of Texinfo does the ELPA server run? Thanks, Eshel