On Mon, Apr 04, 2005 at 08:18:23AM +0200, Craig Bradney wrote:
Where are they in your CVS tree? My version is up to date so I can just have a look.
share/palettes in inkscape CVS. Format is [intended to be] gimp's .gpl files, so it's screen colour: 24-bit RGB (no alpha), and a name in freeform text (without newlines, but spaces are allowed).
What format does scribus use? What source file parses them?
Gimp's relevant parser source file is http://cvs.gnome.org/viewcvs/gimp/app/core/gimppalette.c?rev=1.56&view=m...
Inkscape's is src/dialogs/swatches.cpp.
If scribus already has a file format that can represent all of the colour capabilities that scribus/inkscape/gimp will want for swatches, then that'll save us the trouble of coming up with a new format.
Some (premature) comments if we do make a new format: I imagine Gimp would prefer a self-contained format rather than requiring say CSS parsing (as convenient as a CSS-based format might be for inkscape). Still, they might be happy enough if we keep to a strict formatting that allows them to get just the names & rgb values without general CSS parsing.
A couple of vaguely-relevant URLs: SVG 1.2 colour: http://www.w3.org/TR/2004/WD-SVG12-20041027/painting.html (skipping the first few sections); CSS3 color module: http://www.w3.org/TR/2003/CR-css3-color-20030514/.
pjrm.