[scribus-dev] Gettext plugin for XPress Tags import
louis.desjardins at gmail.com
Tue Jul 21 16:22:56 CEST 2009
2009/7/20 Thomas Zastrow <listen at thomas-zastrow.de>
> Louis Desjardins schrieb:
> > How should we handle name collisions?
> > - keep original Scribus style
> > - redefine Scribus style with new attributes
> > - create new Scribus style with a different name
> > - always prefix all imported styles to keep them separated from
> > normal Scribus styles
> > Well... Keep original is a must, imo. Create a new Scribus style with
> > a different name seems a good solution.
> Hhmm, what happens, if someone tries to import more than one XTagged
> file with the same styles (-names)? I think, this would be an absolutely
> usual operation: importing XTagged text number 1 with a style called
> "xyz" and then trying to import another XTagged file 2 which also
> contains a style "xyz"?
> Perhaps here is user interaction necessary: Should the style a) replaced
> b) ignore "xyz" from the new file?
In this case I would suggest that Scribus automatically adds a number
version to that style. So "xyz-1" and "xyz-2" and so on. This way, all the
styles bearing the same name will appear grouped in the list. Then it is up
to the user to sort this out. Does that make sense? I acknowledge that the
style actually applied to a paragraph would have its name changed as well...
Maybe not as easy to do as it seems but the programmers will tell us that!
One other way would be to simply warn the user about the existence of those
styles only if Scribus detects that there are differences in the settings of
those styles. If the styles have the same name and are identical, then no
need for a warning. It may well happen that the texts to import would have
been structured using identical styles from one text document to another.
a) replace by existing style
b) ignore style
c) add and change name to... (with a default suggestion of xyz+number)
> scribus-dev mailing list
> scribus-dev at lists.scribus.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the scribus-dev