Re: [NTG-context] externalfigure and uppercase extensions
This makes sense. So much so that perhaps it could be added to the core spec-tpd.tex file.
I think it would make more sense for conTeXt to first convert an image's extension to lower case before trying to figure out rule to apply. Otherwise in order to be correct, you would need an entry for "Jpg", "jPg", "jpG", "JPg", "JpG", and "jPG" -- not even counting the permutations for "jpeg".
You could consider using a case-insensitive file system to store your data on, and lowercasing all entity input to ConTeXt, but that is more clumsy than the extra \definefileinsertion-s.
I don't think a case-insensitive FS is going to be an option for us (*nix only). Back to my original question, should "\externalfigure[MY_FIGURE.JPG][type=jpg] work? Or am I misunderstanding the meaning of the type parameter? Cheers, Mike
Santy, Michael wrote:
This makes sense. So much so that perhaps it could be added to the core spec-tpd.tex file.
I think it would make more sense for conTeXt to first convert an image's extension to lower case before trying to figure out rule to apply. Otherwise in order to be correct, you would need an entry for "Jpg", "jPg", "jpG", "JPg", "JpG", and "jPG" -- not even counting the permutations for "jpeg".
You could consider using a case-insensitive file system to store your data on, and lowercasing all entity input to ConTeXt, but that is more clumsy than the extra \definefileinsertion-s.
I don't think a case-insensitive FS is going to be an option for us (*nix only).
Back to my original question, should "\externalfigure[MY_FIGURE.JPG][type=jpg] work? Or am I misunderstanding the meaning of the type parameter?
should work so i have to look into the uppercase suffix, i thought that that was ok, remind me next week Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Santy, Michael wrote:
Back to my original question, should "\externalfigure[MY_FIGURE.JPG][type=jpg] work? Or am I misunderstanding the meaning of the type parameter?
Personally, I thought that \externalfigure[MY_FIGURE.JPG][method=jpg] was supposed to work. But it doesn't, so I must have misunderstood something also. It seems its more related to choosing between e.g. MY_FIGURE.jpg and MY_FIGURE.pdf Best wishes, Taco
participants (3)
-
Hans Hagen
-
Santy, Michael
-
Taco Hoekwater