Re: @image for pdf and html

2020-11-24 Thread Christopher Dimech
I am not sure, but can one pass file names to @image with @value?  I remember
that I could not do it when output is pdf or dvi.  Have nat checked what happens
for html output.

Have also looked at @url, and found that it does not break at special characters
as specified in the manual.

Could users have something similar for break file names, as it is frequent that
file names get very long, as happens with url's.

Additionally, @float does not function.

Regards
Christopher


-
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy


> Sent: Tuesday, November 24, 2020 at 11:17 PM
> From: daniela-s...@gmx.it
> To: "Gavin Smith" 
> Cc: "help-texinfo gnu" 
> Subject: Re: @image for pdf and html
>
> > Sent: Tuesday, November 24, 2020 at 10:55 PM
> > From: "Gavin Smith" 
> > To: "Christopher Dimech" 
> > Cc: "help-texinfo gnu" 
> > Subject: Re: @image for pdf and html
> >
> > On Tue, Nov 24, 2020 at 10:11:09PM +0100, Christopher Dimech wrote:
> > > It has been figured that we cannot use the same file for both
> > > pdf/dvi output and html output.  Because if the file has too many
> > > pixels, the image will be too big for html.  We could end up with
> > > many calls to image with different files using @iftex and @ifhtml.
> >
> > You could equally say it's too big for pdf, if the pdf is going to
> > put online.  It's the same image either way.
>
> It is html that is limiting resolution, thus capability must be discussed when
> compared to pdf output.  Html provides serious limitations, unlike in pdf
> where you can select the width and height.  In geology based manual, the 
> resolution
> is the most important aspect of any image.
>
> > I don't see anything wrong with using conditionals for different
> > output formats to specify different image files, if that is what
> > is desired.
>
> There is nothing wrong.  However geology based manuals inherently
> have many images, and defining for both is an extremely cumbersome
> proposition. Besides the fact that images in html have limited use
> because of the number of pixel limitation.  Otherwise you cannot
> see the text.
>
>
>



@image for pdf and html

2020-11-24 Thread daniela-spit
What is your opinion on using the same image file name for
both: (1) pdf, dvi; and (2) html.

@image(file,w,h,alttext,.png)

Meaning that html will search for the filename, but with a token being
appended to it.



Re: @image for pdf and html

2020-11-24 Thread daniela-spit
> Sent: Tuesday, November 24, 2020 at 10:55 PM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "help-texinfo gnu" 
> Subject: Re: @image for pdf and html
>
> On Tue, Nov 24, 2020 at 10:11:09PM +0100, Christopher Dimech wrote:
> > It has been figured that we cannot use the same file for both
> > pdf/dvi output and html output.  Because if the file has too many
> > pixels, the image will be too big for html.  We could end up with
> > many calls to image with different files using @iftex and @ifhtml.
>
> You could equally say it's too big for pdf, if the pdf is going to
> put online.  It's the same image either way.

It is html that is limiting resolution, thus capability must be discussed when
compared to pdf output.  Html provides serious limitations, unlike in pdf
where you can select the width and height.  In geology based manual, the 
resolution
is the most important aspect of any image.

> I don't see anything wrong with using conditionals for different
> output formats to specify different image files, if that is what
> is desired.

There is nothing wrong.  However geology based manuals inherently
have many images, and defining for both is an extremely cumbersome
proposition. Besides the fact that images in html have limited use
because of the number of pixel limitation.  Otherwise you cannot
see the text.




Re: @image for pdf and html

2020-11-24 Thread daniela-spit
> Sent: Tuesday, November 24, 2020 at 10:55 PM
> From: "Gavin Smith" 
> To: "Christopher Dimech" 
> Cc: "help-texinfo gnu" 
> Subject: Re: @image for pdf and html
>
> On Tue, Nov 24, 2020 at 10:11:09PM +0100, Christopher Dimech wrote:
> > It has been figured that we cannot use the same file for both
> > pdf/dvi output and html output.  Because if the file has too many
> > pixels, the image will be too big for html.  We could end up with
> > many calls to image with different files using @iftex and @ifhtml.
>
> You could equally say it's too big for pdf, if the pdf is going to
> put online.  It's the same image either way.

It is html that is limiting resolution, thus capability must be discussed when
compared to pdf output.  Html provides serious limitations, unlike in pdf
where you can select the width and height.  In geology based manual, the 
resolution
is the most important aspect of any image.

> I don't see anything wrong with using conditionals for different
> output formats to specify different image files, if that is what
> is desired.

There is nothing wrong.  However geology based manuals inherently
have many images, and defining for both is an extremely cumbersome
proposition. Besides the fact that images in html have limited use
because of the number of pixel limitation.  Otherwise you cannot
see the text.




Re: @image for pdf and html

2020-11-24 Thread Gavin Smith
On Tue, Nov 24, 2020 at 10:11:09PM +0100, Christopher Dimech wrote:
> It has been figured that we cannot use the same file for both
> pdf/dvi output and html output.  Because if the file has too many
> pixels, the image will be too big for html.  We could end up with
> many calls to image with different files using @iftex and @ifhtml.

You could equally say it's too big for pdf, if the pdf is going to
put online.  It's the same image either way.

I don't see anything wrong with using conditionals for different
output formats to specify different image files, if that is what
is desired.



Re: @image for pdf and html

2020-11-24 Thread Christopher Dimech
It has been figured that we cannot use the same file for both
pdf/dvi output and html output.  Because if the file has too many
pixels, the image will be too big for html.  We could end up with
many calls to image with different files using @iftex and @ifhtml.


> Sent: Tuesday, November 24, 2020 at 10:05 PM
> From: "Gavin Smith" 
> To: daniela-s...@gmx.it
> Cc: "help-texinfo gnu" 
> Subject: Re: @image for pdf and html
>
> On Tue, Nov 24, 2020 at 09:32:15PM +0100, daniela-s...@gmx.it wrote:
> > What is your opinion on using the same image file name for
> > both: (1) pdf, dvi; and (2) html.
> >
> > @image(file,w,h,alttext,.png)
> >
> > Meaning that html will search for the filename, but with a token being
> > appended to it.
>
> Sorry, I don't understand the question.
>
>

-
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy



Re: @image for pdf and html

2020-11-24 Thread Gavin Smith
On Tue, Nov 24, 2020 at 09:32:15PM +0100, daniela-s...@gmx.it wrote:
> What is your opinion on using the same image file name for
> both: (1) pdf, dvi; and (2) html.
> 
> @image(file,w,h,alttext,.png)
> 
> Meaning that html will search for the filename, but with a token being
> appended to it.

Sorry, I don't understand the question.