From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YNHdCY9dT2MmvgAAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 04:14:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kHvqCY9dT2NoNQEA9RJhRA (envelope-from ) for ; Wed, 19 Oct 2022 04:14:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BC2E614ED2 for ; Wed, 19 Oct 2022 04:14:38 +0200 (CEST) Received: from localhost ([::1]:33968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okybN-00054Q-At for larch@yhetil.org; Tue, 18 Oct 2022 22:14:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okyam-000547-Cg for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 22:14:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:35077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okyak-0005gu-65 for emacs-orgmode@gnu.org; Tue, 18 Oct 2022 22:14:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EDF06240101 for ; Wed, 19 Oct 2022 04:13:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666145636; bh=+JI7UDX/ARw8jV/Gq4EI8u4sXgjl+NaV9yGKFh33OJ0=; h=From:To:Cc:Subject:Date:From; b=RiR8FzejsHTaXJE9z8dUAehLZw8jJj7VpUlbr4HUos1LdVRaSulFbc90DEtQThbiq d4S9ZJli3jqr1RdYriBMVfxUDFBnaqBjk1XclS00rnNc6he/TtqlP5k6H2I9qHMOQY 7/UAYj3eJIslzgLzAl+BA76JqR2ZT2YdpDE/VHTgdy28jlPyCGT/nk6N8NxUfCDDtJ IzwV729Rg7Djqa256ZKlmaViddAte8oGQC2JDa9HXZBJh/QdEVWlUtbxNTyjP2J45Z lcTe6dwIkMTXj5jcs/lBF7akzgi/4AHV78vxte9Xc0H4hMSyTBsuLvW4XJgau/uJvg E0tmrg7dwzfzA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MsZ682K2dz6tnD; Wed, 19 Oct 2022 04:13:51 +0200 (CEST) From: Ihor Radchenko To: Ramesh Nedunchezian Cc: "emacs-orgmode@gnu.org" Subject: Re: Bug: Texinfo export: Inline images are NOT rendered in INFO viewer [9.4.5 (release_9.4.5-354-g40b70c @ /home/rameshnedunchezian/src/org-mode/lisp/)] In-Reply-To: References: Date: Wed, 19 Oct 2022 02:14:38 +0000 Message-ID: <874jw0ef01.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666145678; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=2jdlYn7uu97v3htt/xYDv+8f4+mUjmnkzFzcxbpixJo=; b=UgtJAUurYGRwj7pBB/bQioIaPZ4RN60hzFpj7xA+zooveH8eXNwgr9DAxUkW/tjfQ/ax9X UBj+u7lHenyaiMRWI4iN3ALYJj2ke+uMkATxALZtSU03BLvxCtXiJ7IGoC3+B21m/9ueId 9/qQONSmk3v7y/UWA0qJkVj9MxcCmhV6er2bGsksExMs1CYwPJ01A2YeNDwginQnqqd5j7 WLhd6qMsCZipJygtTQRZRS3T+5/sVwL/ojEScSMCZqREyNfJihD27CrWlfXg/BFvcx8II1 pTKGM3Cp/f+DLrTZGDkYga7E1NZl/TWi19Qv4G25fof+VnXdfwKY985wEGfGXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666145678; a=rsa-sha256; cv=none; b=jXjreESmaqPjj0YT6sjgYzKDyFsLPdJBS2VK0Ms5V5q+Fc+juvwHahzFRpatZGHC874LhR hTnaXrNjswsrBvKPRO7ORW8x9aFMmfrLNACQoB9TEZONT1Bmp4MP2/W8l+TaqhTmR1e/B3 SbBmDf3d8JubqB4mdmrOYfdbK8ectZ4l5/j6c3AjKG2gGlfuBSaxgNXE2tqYG6rMVxeoRj nBCK4ke89YErRac+COjQGSypIUmMD7Kf3UXqdVnE4fJMU35LeefQP6HJTSme1uMOuP7moG b653rTCaO+NXVzAHXIqZX0ULSUJwwETzTFDvPKRpcm5Q5k2xY8p3DnqGoqYo0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RiR8Fzej; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RiR8Fzej; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BC2E614ED2 X-Spam-Score: -5.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: vm/fg/orgwx2 Ramesh Nedunchezian writes: > Bug: Texinfo export: Inline images are NOT rendered in INFO viewer > [9.4.5 (release_9.4.5-354-g40b70c @ /home/rameshnedunchezian/src/org-mode/lisp/)] > > > 1. Unzip the attached zip file. > 2. C-x C-f doc/helm.org. Note that it has inline image. > 3. C-u C-h i doc/helm.info and rename the buffer. Note that it doesn't > display the inline image. > 4. C-u C-h i doc/helm-1.info and rename the buffer. Note that it DOES > display the inline image. > > See the attached screenshot for what the above steps looks like. > > (3) above is a bug. (4) above is after applying the remedy. > > You can do a > > ./helm.sh > > to recreate the above texi files. This file also has additional > observations. > > TLDR: The presence of leading "./" in texi file's `@image ...' > creates the problem. Sorry for the late reply. I am unable to reproduce on the latest main. Re: observations. ## Observation 1: according to ## ## (info "(texinfo) Image Syntax") ## ## Here is the synopsis of the '@image' command: ## @image{FILENAME[, WIDTH[, HEIGHT[, ALTTEXT[, EXTENSION]]]]} ## ## For Info and HTML output, 'makeinfo' uses the optional fifth ## argument EXTENSION to '@image' for the filename extension, if it is ## specified and the file is found. Any leading period should be ## included in EXTENSION. For example: ## ## @image{foo,,,,.xpm} ## ## ## So, just to be on the safe side, it would be a good idea to add a dot to ## the image extension. According to 9.2.1 Image Syntax, In Info output, 'makeinfo' writes a reference to the binary image file (trying FILENAME suffixed with 'EXTENSION', '.EXTENSION', '.png', or '.jpg', in that order) if one exists. It also literally includes the '.txt' file if one exists. This way, Info readers which can display images (such as the Emacs Info browser, running under X) can do so, whereas Info readers which can only use text (such as the standalone Info reader) can display the textual version. Dot is unnecessary. ## Observation 2: Why is the caption getting stripped in the output file? Because texinfo captions cannot have verbatim inside unless you also provide shortcaption. This is a limitation of texinfo. Not Org. If you have any ideas how to better deal with these limitations, please share them. ## Observaion 3: Anyway to take care of the warnings that texi2html ## generates. Can the CAPTION text be used as an alt text, when there ## is no alt text? I see no warnings on my side running ./helm.sh For alt text, won't doing so duplicate the caption and text displayed in place of the figure? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at