Contents

Install

Copy the code and paste in a text file named "Bullets.py" or whatever "*.py".

Run it by "Scripts > Execute script..."

In order to scripts appear in "Scripts > Scribus scripts..." menu, put the file in:* Windows folder "x:\Program files\Scribus 1.3.9\share\scripts\" or in * Linux directory (copy as root) "/usr/share/scribus-nt/scripts/" (I gess). But this folders is for official scripts and could be overwritting when Scribus reinstalls.

Usage

Select a text frame or some paragraphs and run the script by choosing "Scripts" menu, options "Execute script..." or "SCribus scripts". Asked, input the operation type:

"*" will create bulleted list.

A number (up 3 digit) will create a numbered list begining with such number. Ex.: "1)". Range: 0 to 999.

One or two letters, upper or lower case, will create a lettered list begining with such letters with same case. Ex.: "a)". Range: "a" to "zz".

"/" will clear all marks.

An optional character after numbers or letters will be used as separator. Default: dot.

You can change bullets size putting any value but zero in bulletedListCharSize variable.

You can change bullets font putting it Scribus name in bulletedListCharFont variable.

This works for numbers and letters too, with its propers variables.

Get character hex code from menu: "Insert > Special character > [magnifying glass button]".

Change bullet character putting it code in bulletString variable, in place "006F" and "F06F":

Tested and working in Scribus 1.3.9 running in Windows XP, Wine and Ubuntu 10.10.

Caveats

The script will clear any character formating in selected paragraphs (fonts, bold, superscripts etc), as scribus.getText() Python function get just plain text, not formating.

Some fonts can have different encodings depending operational system. Bullets glyphs can't appear if a publication made in Linux is opened in Windows, and vice-versa. This is true for "Dingbats" font from URW foundry.