On 21-1-2011 6:15, Aditya Mahajan wrote:
local cleanname = md5.HEX(original) -- gsub(original,"[^%a%d%.]+","-")
appears to work correctly in my tests. The drawback of this scheme is that instead of
\externalfigure[url ending with .png]
one would have to use
\externalfigure[url ending with .png][method=png]
But \input 'url ending with .tex' still works
The other drawback is the filenames in the cache will be gibberish. But on the plus side, you can use long urls.
Do you think that the drawbacks outweigh the gains?
What exactly do you mean with the suffix issue? We can probably normalize things a bit. Concerning the gibberish ... we can put a file alongside with some info. I need to think a bit about it but indeed it makes no sense to have redundant mechanisms. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------