[scribus] eliminating color sets.

John Culleton John at wexfordpress.com
Thu Sep 3 18:45:31 UTC 2015


On Thu, 3 Sep 2015 09:12:47 -0400
Gregory Pittman <gpittman at iglou.com> wrote:

> On 09/03/2015 08:58 AM, John Culleton wrote:
> > On Thu, 3 Sep 2015 11:32:14 +0200
> > "Owen Cook" <owen.cook at gmx.com> wrote:
> > 
> >>
> >>
> >>> Sent: Thursday, September 03, 2015 at 2:54
> >>> AM From: "John Culleton"
> >>> <John at wexfordpress.com>
> >>
> >>
> >>> I have two of the Glaxy color sets in a
> >>> particular file. I want to get rid of one of
> >>> them which has over 1,000 swatches. There
> >>> is a facility for a merging in a set but
> >>> none that I see for getting rid of a set
> >>> once it is merged in.  
> >>>
> >>> I can work in 1.5.0 or 1.6.0 if necessary.
> >>
> >>
> >>
> >> I am not sure what you want to do exactly,
> >> but if you go
> >> to /Your_Scribus_Directory/share/scribus/swatches
> >> just delete the unwanted swatch?
> >>
> >>
> >>
> >> Owen
> >>
> >>
> >>
> > 
> > the problem is about 1,100 swatches. In the
> > future I will be careful to not choose the
> > wrong palette. 
> > 
> > I will try deleting all or most of the stored
> > swatches in the sla file and see if that
> > works. I will try this on a copy of the file
> > of course.
> > 
> 
> You should be able to find a directory called
> 'swatches' which contains XML files for all the
> color sets. It would probably be easier to
> delete unwanted colors there than one by one in
> Scribus, especially when you're talking about
> 1000 or more.
> 
> Greg

> http://forums.scribus.net
> 

That technique works up front but I don't think
it will work on existing sla files. The swatches
are already in the sla file.

But ah the magic of gvim!
I loaded the sla file into this editor. I
highlighted the swatches by clicking on the top
one, held the left mouse button, and scrolled
down to the last one I wanted to delete. Then I
hit the delete key.

Another way to do it in gvim is to scroll to the
first color, note the line number (shown in the
lower right hand corner of the display), then
scroll down to the last one and note the line
number and then do a colon command like:
:32,1125 d

It is probably easiest to just delete all or all
but one in gvim and then in scribus load the
needed palette(s).

It would e handier of course if one could just
batch delete colors in Scribus by palette name.
But since the individual swatches are just stored
in one list in the sla file that would take
some new programming to add this feature.

Inkscape has an editor feature that gives direct
access to the svg file. That might be handy
(but dangerous of course),  
-- 
John Culleton
Wexford Press
Book layout, typesetting and Indexing
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html



More information about the scribus mailing list