From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#73425: 31.0.50; Support images in HTML versions of ELPA package manuals Date: Sun, 22 Sep 2024 18:23:38 +0000 Message-ID: <87y13j7djp.fsf@posteo.net> References: <86v7ynh9au.fsf@gnu.org> <87h6a78t1t.fsf@posteo.net> <86ldzjh7vu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73425@debbugs.gnu.org, me@eshelyaron.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 22 20:24:58 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 1ssRGU-0009F8-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Sep 2024 20:24:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssRGF-000271-FZ; Sun, 22 Sep 2024 14:24:43 -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 1ssRGC-00026O-4q for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:24:41 -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 1ssRGB-0003T7-RV for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:24:39 -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=aMBFuyQDcyb+C0NaMaHp4j8cGTAzguZwB1mTvu2VB/I=; b=gZ3FIDSW/L1EOzQkwO5IrTxWe6h6SYxyQqUpEwfne8j/NvJu8UVQChflFa0Rfk3fB8fKU+L/H0xPysUyZhr4t6Yg8kcibLxV6SCQZgWRfUD1IndjmG895ynaHlERmIQqr2Oaju164YJGSky5CGeXi+L++h2Cw3ckhBb9yRGFnhJx/bKOSp4F28EOoI+EgNb2YMmNym0yK0qzMnu1mIavu2r3ukyer8i137i0UKqXwlqSF5yyHUfNItPF5Y340DZagiCUs3Ienr0JpQssHujsaxNcyae7BrjZv8lU84xFBr4Jp17YPDvVSDH6+zbRYr6XfVYmEnRLdGMEoq6V08S4dA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssRGX-0002Cu-MK for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2024 18:25:01 +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.17270294518412 (code B ref 73425); Sun, 22 Sep 2024 18:25:01 +0000 Original-Received: (at 73425) by debbugs.gnu.org; 22 Sep 2024 18:24:11 +0000 Original-Received: from localhost ([127.0.0.1]:42748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssRFi-0002Bb-O7 for submit@debbugs.gnu.org; Sun, 22 Sep 2024 14:24:11 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:41271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssRFf-0002B0-9O for 73425@debbugs.gnu.org; Sun, 22 Sep 2024 14:24:08 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 54DD4240028 for <73425@debbugs.gnu.org>; Sun, 22 Sep 2024 20:23:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1727029419; bh=DY+LRCMwXIxzSbeJgmx12ZPTMg2XEuR6r0TSoa7cnfg=; h=From:To:Cc:Subject:Autocrypt:OpenPGP:Date:Message-ID:MIME-Version: Content-Type:From; b=pgYk00t9cPbu9zw0Px4wxGT+4WNHlbXSybn0UETS3ZHnyht91nyCxkPYdBqUimkoQ w1zkbtIchLYHdwKTjxGZcyqFnyPkVONn3zjoKHQvWKpX16Knsu13K/3izS2v7gZeZd i2xLuTLzD5YoSbdglcnJaimSqHOzYutdozzFapH9SH0sy72hmjwtPobSIKPQwF+8t1 tbjW35780ADzwpIrXO2506Y7rszb4Bct3fjEnCMAFT2gMWdrk2TOtUDfrQdJZLwfei bUrzsOGJhsa3ldvAPtuxXMODpRvQ7FjoVX1H2rN0L/yMPKS7qWF0I2Uq7qTjjLtp10 ea1mnWBgKR84Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XBZJB6Txkz6tyK; Sun, 22 Sep 2024 20:23:38 +0200 (CEST) In-Reply-To: <86ldzjh7vu.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 22 Sep 2024 21:15:49 +0300") Autocrypt: addr=philipk@posteo.net; keydata= mDMEZBBQQhYJKwYBBAHaRw8BAQdAHJuofBrfqFh12uQu0Yi7mrl525F28eTmwUDflFNmdui0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiWBBMWCAA+FiEEDg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwMFCQHhM4AFCwkI BwIGFQoJCAsCBBYCAwECHgECF4AACgkQ8xYDWXahwulikAEA77hloUiSrXgFkUVJhlKBpLCHUjA0 mWZ9j9w5d08+jVwBAK6c4iGP7j+/PhbkxaEKa4V3MzIl7zJkcNNjHCXmvFcEuDgEZBBQQhIKKwYB BAGXVQEFAQEHQI5NLiLRjZy3OfSt1dhCmFyn+fN/QKELUYQetiaoe+MMAwEIB4h+BBgWCAAmFiEE Dg7HY17ghYlni8XN8xYDWXahwukFAmQQUEICGwwFCQHhM4AACgkQ8xYDWXahwukm+wEA8cml4JpK NeAu65rg+auKrPOP6TP/4YWRCTIvuYDm0joBALw98AMz7/qMHvSCeU/hw9PL6u6R2EScxtpKnWof z4oM OpenPGP: id=7126E1DE2F0CE35C770BED01F2C3CC513DB89F66; url="https://keys.openpgp.org/vks/v1/by-fingerprint/7126E1DE2F0CE35C770BED01F2C3CC513DB89F66"; preference=signencrypt 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:292250 Archived-At: Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: Eshel Yaron , 73425@debbugs.gnu.org >> Date: Sun, 22 Sep 2024 18:03:26 +0000 >> >> 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). > > "Copied" where and why? Aren't the HTML docs generated in the > package's tree, like the Info docs? No, these are the files we generate for a package under https://elpa.gnu.org/packages: -rw-r--r-- 1 phi phi 368640 Mar 22 2024 compat-29.1.4.5.tar -rw-r--r-- 1 phi phi 11183 Mar 22 2024 compat.html -rw-r--r-- 1 phi phi 997 Mar 22 2024 compat-readme.txt -rw-r--r-- 1 phi phi 1230 Mar 22 2024 compat.svg lrwxrwxrwx 1 phi phi 19 Mar 22 2024 compat.tar -> compat-29.1.4.5.tar -rw-r--r-- 1 phi phi 1016 Mar 22 2024 compat.xml plus the manual under https://elpa.gnu.org/packages/doc/[package name] -rw-r--r-- 1 phi phi 46640 Mar 21 2024 corfu.html (there is another symlink to this file but that is not important now). Other than that, no files are copied out. >> >> - 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. > > This is already supported, for a long time, both in Info and HTML > formats (and in other formats as well; see the node "Image Syntax" in > the Texinfo manual. I did take a look at that node, but I couldn't find anything that would help me. -- Philip Kaludercic on siskin