[CREATE] Gradients, Swatches, Hatches and OpenDocument

Alan Horkan horkana at maths.tcd.ie
Fri Sep 16 09:07:09 PDT 2005


On Tue, 13 Sep 2005, Craig Bradney wrote:

> Date: Tue, 13 Sep 2005 21:39:19 +0200
> From: Craig Bradney <cbradney at zip.com.au>
> To: create at lists.freedesktop.org
> Subject: Re: [CREATE] Gradients, Swatches, Hatches and OpenDocument
>
> > For your convenience I've dropped some files on my web pages
> > http://www.maths.tcd.ie/~horkana/create/
> >
> > Sample OpenOffice/StarOffice XML Gradients (.sog)
> > http://www.maths.tcd.ie/~horkana/create/staroffice-gradients/
> > standard location for these files seems to be
> > /usr/local/OpenOffice.org1.0/user/config/classic.sog
> >
> > Various OpenOffice resources, Gradients, Hatches, Swatches etc
> > http://www.maths.tcd.ie/~horkana/create/openoffice-resources_config/
> >
> > They resources use the openoffice draw markup, and as you can see it
> > is a table full of gradients and very closely resembles SVG the only
> > significant differene being the support for more gradient types
> > http://www.maths.tcd.ie/~horkana/create/openoffice-resources_config/classic
> >.sog
>
> Are there libraries out there that are *not* part of OpenOffice that are non
> GTK and non Qt related, and are cross platform while you are at it?

not that I know of but I'm not entirely sure what this question is asking

scribus would already have code to process xml and these lists are fairly
uncomplicated.  it is not like you would need to add OpenDocument support
to be able to reuse this very small part of their specification.

> Scribus now runs on most *nix, OSX and win32, and we need this stuff ASAP.
> Right now we are just going it alone so we can move our code forward. (Its
> not highly involved, afterall, for our current needs)

If you can copy the chunk of code from your svg importer which takes care
of gradients it wouldn't be particularly hard to reuse it to read the list
of colours contained in a SOG file (it is uncompresed XML).

I have a feeling I'm missing something ... ?

Sincerely

Alan Horkan

Inkscape http://inkscape.org
Abiword http://www.abisource.com
Dia http://gnome.org/projects/dia/
Open Clip Art http://OpenClipArt.org

Alan's Diary http://advogato.org/person/AlanHorkan/




More information about the CREATE mailing list