[scribus] regular tab stops = update =

Gregory Pittman gpittman at iglou.com
Mon Feb 7 16:25:32 UTC 2022


On 2/7/22 10:06, Silvain Dupertuis wrote:
> Thank you for the indication!
> I could not find this setting, now I see it...
> (In my French version :
> /Réglage du document > Outils > Texte > Largeur de tabulation/)
> 
> I still think a *style* would be useful and more flexible (especially to get right align tabs)
> If we can create a script to adjust the tabs positions and types to a regular sequence with a given width
> (so that one could change it with one click and one numeric choice)
> 
> The maths are easy,
> the tricky part is to find out how to get and set the style properties in the script
> (There are some indications here <https://wiki.scribus.net/canvas/Using_createParagraphStyle>, but this page explains how to /create/ a paragraph style, and does not mention tabs)...
> 

Using Scripter for settings tabs is supposedly possible:

under createParagraphStyle():


"tabs" [optional] -> a list of tab definitions
	a tab is defined as a tuple with the following format (position,type,fillchar)
	position [required] -> float value for the position
	type [optional] -> left: 0 [default], right: 1, period: 2, comma: 3, center: 4
	fillchar [optional] -> the char to fill the space; default is none

My guess is that it would take a lot of work to figure this out.
I would prefer to manually make a style with tabs, perhaps in a dummy document, then import it when I wanted it.

Greg



More information about the scribus mailing list