RSS/Atom feed Twitter
Site is read-only, email is disabled

removing duplicate names from our data collection

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

removing duplicate names from our data collection Sven Neumann 20 Nov 16:12
  removing duplicate names from our data collection Steven P. Ulrick 20 Nov 19:23
   removing duplicate names from our data collection Sven Neumann 20 Nov 23:49
Sven Neumann
2003-11-20 16:12:47 UTC (about 21 years ago)

removing duplicate names from our data collection

Hi,

here's an easy task for a potential contributor: At the moment a few of the brushes (and perhaps other data files as well) that we distribute with the GIMP tarball, have the same name. An example are the three "Pencil Sketch" brushes which should probably have the pixel size added to their names.

GIMP takes care of duplicate names and adds #n to the name so that every brush has a unique name. It would of course be a lot better if we wouldn't distribute files with duplicate names. So if someone wants to contribute but hesitated to do so because of lack of coding skills, here's a job that doesn't require any. All you need to do is to identify duplicates, open the respective files and save them with unique names. Then send me a tarball of the files that needed to be changed. Please let the list know if you are interested so we avoid multiple people working on this at the same time.

Sven

Steven P. Ulrick
2003-11-20 19:23:53 UTC (about 21 years ago)

removing duplicate names from our data collection

On 20 Nov 2003 16:12:47 +0100
Sven Neumann wrote:

Hi,

here's an easy task for a potential contributor: At the moment a few of the brushes (and perhaps other data files as well) that we distribute with the GIMP tarball, have the same name. An example are the three "Pencil Sketch" brushes which should probably have the pixel size added to their names.

GIMP takes care of duplicate names and adds #n to the name so that every brush has a unique name. It would of course be a lot better if we wouldn't distribute files with duplicate names. So if someone wants to contribute but hesitated to do so because of lack of coding skills, here's a job that doesn't require any. All you need to do is to identify duplicates, open the respective files and save them with unique names. Then send me a tarball of the files that needed to be changed. Please let the list know if you are interested so we avoid multiple people working on this at the same time.

Sven

Hello, Sven :)
Could you please send me, or tell me how to get, the files that I would need to rename, and then give me a reasonably detailed description of what you want? I would love to help, and I definitely fit the bill of not having any coding experience, but in the interest of excellence, I would like to have the above requested information before I commit to this task.
I truly hope to be able to help you with this. If I understand the description you gave in the above quoted message, this might be right up my alley :)

Have a Great Day :) Steven P. Ulrick

Sven Neumann
2003-11-20 23:49:29 UTC (about 21 years ago)

removing duplicate names from our data collection

Hi,

"Steven P. Ulrick" writes:

Could you please send me, or tell me how to get, the files that I would need to rename,

The files are in the GIMP source tree, preferably the latest released tarball (1.3.22) or a CVS checkout. We are talking about the standard set of brushes, patterns, gradients, palettes, ... that live in the data directory in the GIMP source tree. These files are installed to a systemwide GIMP data directory and that's what you see when you look at the brushes, patterns, gradients, palettes views.

and then give me a reasonably detailed description of what you want?

The task is to make sure that no two items of the same type share the same name. So far I only know of a handful of brushes with duplicate names. There might be others though and someone should check for this.

GIMP data files are either easily editable text file (gradients, palettes, ...) or binary files (brushes, patterns, ...). GIMP can open the latter formats as an image format. This means you can open a GIMP brush as an image simply by opening it just like any other image file. When you save the brush (or pattern, ...) using "Save As", you will get to a dialog that allows you to change some parameters including the name. This is described in more detail in:

http://www.linuxfocus.org/English/November2003/article314.shtml

So, there are the tools you need to rename our data files. It might be worthwhile to not only check for duplicates but also to attempt to unify the style used for the names. For example, do they all start with a capital letter?

Sven