Re: Where have all my pictures gone?

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

 



Kolbjørn Stuestøl (Mittwoch, 10. Juni 2009, 23:38):
> I have not found the only person in the world (it seems) who knows
> how to use parameters in .lnk files called from html.

What are .lnk files?

> Instead I experimented a bit with other solutions.
>
> The simplest I found was to copy xml/nn/images to html/nn and
> change all image calls in the html code to be links (shortcuts) by
> adding a ".lnk" prefix to the names af the image files. (Example:
> <img
> src="images/dialogs/layer-dialog.png"> become <img
> src="images/dialogs/layer-dialog.png.lnk"> and so forth).
> (The ".lnk" does not shows up in the (Windows) file browser, but
> does have to be added to get it work).
>
> So, if it does not disturb the project in any way, would it be a
> solution to do so for all?

IMHO this can't be right. After all, this seems to be a weird problem 
(bug?) in Windows/Cygwin only.

> Make the Makefile.GNU or whatever
>     1. copy the xml/lang/images to the html/lang/
>     2. adding ".lnk" to the image file names in the html

I still think my suggestion is better (cleaner):

  o  for non-Windows/Cygwin: don't change anything;
  o  for Windows/Cygwin:
         1. try hardlinks rather than symlinks for linking image files
                    xml/LL/images/...  ->  images/{common,C,LL}/...
            and leave the symlink
                    html/LL/images -> ../../xml/LL/images;
         2. if this doesn't work, copy image files instead of linking;
         3. if this doesn't work, hardlink/copy image files
                    xml/LL/images -> html/LL/images;
         4. if this doesn't work, format harddisk and/or insert an
            Ubuntu (or any other Linux distribution) CD/DVD ;-)

We can do this e.g. using conditionals in the Makefile:
	ifeq ($(CYGWIN),1)
		special commands
	else
		normal commands
	endif
and adding a command line option to "tools/make_image_links.pl" to 
control which method should be used for linking (symlink, hardlink, 
copy).

> BTW: To add all the ".lnk"'s I write my first Python program to do
> the job, or more correctly: I modified some programs found on the
> net. Had to download the Python manual too. So perhaps I'll start
> programming ;-)

Good idea! :-)

Bye,
Ulf

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux