[CREATE] Categorizing resources

Dave Neary dneary at free.fr
Fri Feb 20 02:09:17 PST 2009


Hi,

> On Wed, Feb 18, 2009 at 12:25 PM, Aurimas Juška <aurimas.juska at gmail.com> wrote:

>> <?xml version='1.0' encoding='UTF-8'?>
>> <tags>
>>  <resource identifier="/home/auris/gimp/trunk/build/share/gimp/2.0/brushes/confetti.gih"
>> checksum="d136b60fdd9cf41693a485a329b32e95">
>>    <tag>aaa</tag>
>>  </resource>
>> </tags>
>>
>> Resources are mapped with entries in tags.xml using:
>>  * identifier - filename for resources stored on disk. Easy to
>> understand, but can be different between computers and platforms.

How about allowing the identifier to be a relative path?

identifier="bruches/confetti.gih"

and having a search path defined for such cases (/usr/share/gimp-2.0;
$HOME/.gimp-2.0; /usr/share/create; $HOME/.create;
/usr/share/openclipart; etc)?

>>  * checksum - uniquely represent resource. However, how checksum is
>> calculated (which data from resource is used, algorithm) seem hard to
>> standardize. Useless when user wants to edit tags.xml manually (or
>> with a simple script).

md5sum on the file contents seems reasonable & easy... what would the
problem be with this?

Cheers,
Dave.

-- 
Dave Neary
dneary at free.fr
Tel: +33 9 51 13 46 45
Cell: +33 6 77 01 92 13


More information about the CREATE mailing list