[scribus] Settting style to a selection
ale.comp_06 at xox.ch
Fri Sep 3 08:59:03 CEST 2010
> i'm looking for a smart way to apply automatically a style (paragraph or
> caracter) to some repetitive text.
> I actually have 2 troubles with that :
> - getting the right text selected
> - applying caracter style to that
> I guess the second point is not feasible with scripter. But is there
> something for the first at least ?
the second one is not possible, but would be a tremendous and very
welcome enhancement to the scripter!
for the first one:
- get the string as a python variable
- do some regexp magic on it to find out where the affected substrings are
- record their positions
- select each of the substrings ("scribus.selectText()")
- apply the formatting
More information about the scribus