texi2html-bug
[Top][All Lists]
Advanced

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

[Texi2html-bug] path to @images with output dir and cwd!=texifiledir


From: Reinhold Kainhofer
Subject: [Texi2html-bug] path to @images with output dir and cwd!=texifiledir
Date: Sun, 10 Aug 2008 17:41:31 +0200
User-agent: KMail/1.9.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Patrice,
Another issue I'm encountering with path names: I have a file with 
    @image{lily-flat-bw,,,png}
Now, texi2html seems quite inconsistent with the path to the image if output 
dir is used:

I have the following directory structure:
- -) testdir
      -) images_relative
            -) texi2html_images.texi
            -) lily-flat-bw.png

The .texi file includes the png file. 

Case a) In "testdir/image_relative" run
    texi2html --split=section --out=out-www/ texi2html_images.texi
The img in out-www/texi2html_images.html will now be
       <img src=".././lily-flat-bw.png" alt="png">
which accidentaly works, but not as intended.


Case b) Now, in "testdir", run 
    texi2html --split=section --out=images_relative/out-www/  \
        images_relative/texi2html_images.texi
The img in images_relative/out-www/texi2html_images.html will be:
       <img src="../images_relative/lily-flat-bw.png" alt="png">
Obviously, the link is wrong.


Case c) Now, in "testdir", run 
    texi2html --split=section --out=images_relative/out-www/subdir/  \
        images_relative/texi2html_images.texi
The img in images_relative/out-www/subdir/texi2html_images.html will also be:
       <img src="../images_relative/lily-flat-bw.png" alt="png">



For comparison: makeinfo --html in all cases generates 
     <img src="lily-flat-bw.png" alt="png">
i.e. the img file is in the same dir as the html file, which is what I would 
expect, too.

A trivial sample file with that dir structure is at:
http://www.fam.tuwien.ac.at/~reinhold/temp/images_relative.zip

The culprit seems to be that texi2html somehow again messes up relative pathes 
and their anchor dirs: The first component "../" seems to come from the fact 
that I'm using --out and indicates a file position relative to --out (if I'm 
using --out=., then the link will besrc="./lily-flat-bw.png") . The second 
component, however ("images_relative/" or "./") is relative to the CWD!

Since my original @image call didn't include any path information, shouldn't 
the output also be without path information? 

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFInwwuTqjEwhXvPN0RAsNrAKC6kiCuWBqPUsFa4z8qV8pIdb9Z0ACffcMD
c0TSgJdZ8ozB0QkesSOR9kw=
=U69H
-----END PGP SIGNATURE-----




reply via email to

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