help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying images for html output


From: Christopher Dimech
Subject: Re: Displaying images for html output
Date: Wed, 18 Nov 2020 13:47:02 +0100

Image Extension
===============

> Yes, it is confirmed, as far as I can tell.

Thusly, @image must use ".png", also for html output to get the following to 
work

@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

File Location
=============

Regarding splitting the file location to use @value

E.g.

From
@image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}

To

@set imgpath ../Ideogr/Ch03b--Chmed
@set imgname igc03--01--Sicl--CircAmRg
@image{@value{imgpath}/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}
@image{@value{imgpath}/@value{imgname},8cm,8cm,AltText,.png}

This works for html output, but not for pdf.

Could these two things (File Extension, @value in file location)
be added to the TODO list for Texinfo?

Regards
Christopher


> Sent: Tuesday, November 17, 2020 at 2:35 PM
> From: "Patrice Dumas" <pertusus@free.fr>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Gavin Smith" <gavinsmith0123@gmail.com>, "help-texinfo gnu" 
> <help-texinfo@gnu.org>
> Subject: Re: Displaying images for html output
>
> On Tue, Nov 17, 2020 at 01:47:41PM +0100, Christopher Dimech wrote:
> > > > @image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,png}
> > > >
> > > > Furthermore, you cannot put ".png" as the fifth argument because for 
> > > > html that will
> > > > fail.  You have to put "png", without the period dot.
> > >
> > > This would be a bug if it is true.  The manual says to include the period:
> >
> > Have you confirmed the bug, Gavin, Patrice?
>
> Yes, it is confirmed, as far as I can tell.
>
> >
> >
> >
> > > Sent: Sunday, November 15, 2020 at 6:42 PM
> > > From: "Gavin Smith" <gavinsmith0123@gmail.com>
> > > To: "Christopher Dimech" <dimech@gmx.com>
> > > Cc: "help-texinfo gnu" <help-texinfo@gnu.org>
> > > Subject: Re: Displaying images for html output
> > >
> > > On Sun, Nov 15, 2020 at 05:12:13PM +0100, Christopher Dimech wrote:
> > > >
> > > > It is the fifth and I still get the Alt Text Attribute.
> > > >
> > > > The output was
> > > >
> > > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg
> > > >
> > > > If I put
> > > >
> > > > @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,.png}
> > > >
> > > > I get AltText
> > > >
> > > > But now I have understood the problem,
> > > >
> > > > Although the file exists at 
> > > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png
> > > > because the html index file resides in a subdirectory generated by 
> > > > texi2any, the
> > > > code got to be changed to
> > > >
> > > > @image{../../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,8cm,8cm,AltText,png}
> > > >
> > > > Furthermore, you cannot put ".png" as the fifth argument because for 
> > > > html that will
> > > > fail.  You have to put "png", without the period dot.
> > >
> > > This would be a bug if it is true.  The manual says to include the period:
> > >
> > >    * 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}
> > >
> >
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]