Re: Where have all my pictures gone?

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

 



Ulf-D. Ehlert skreiv:
> 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?
>   
Files that links (points) to other files instead of containing the 
"real" file. (Also called "shortcuts"). A file "myImage.png.lnk" may for 
example point to the real image file "myImage.png". The ".lnk" don't 
show up in the browser, but they are there.
>   
>> 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.
>   
Some others with this or similar problem(s)?
Would be simpler to trace the problem if I know whether it is a Windows 
or a Cygwin error. For now it looks to me as it is a Windows problem, 
but I am not sure.
>   
>> 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).
>   
Thank you.
I'll give it a try. Perhaps I have to download the gettext manual too 
;-) . At first I have to figure out the difference between the hard 
links and sym links and how to handle them in Windows.
The summer is not the best time for working on the computer. Long days, 
short nights. Time for outdoor living and to be a social creature.

I'm an optimist, so in parallel to working on the link problem I have 
nearly finished my updated Norwegian translation. If my po files works 
well in a Linux environment I could perhaps use my solution mentioned 
above and send my po files + my  image files to someone committing them 
for me?
>   
>> 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! :-)
>   
In fact is was fun, but resulted in a lot of extra reading as I am not 
used to the "Linux way of thinking" and all the letters or words with - 
and -- in front. Some not even logical abridgments.  (As I had an exact 
problem I dropped many of the tutorials and so forth. The hard way of 
learning. Not recommended!).

Thank you for helping
Kolbjoern

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


_______________________________________________
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