Recent posts

#11
Scripts and Plugins / Loading Python libraries, fan...
Last post by a.l.e - November 22, 2026, 11:16:22 AM
Several people have been asking about loading Python libraries for their scripts running inside of Scribus.

While it was (probably) already possible by starting Scribus from a terminal having access to those library or by globally installing the packages, that was not a practical solution, when you wanted to distribute your script.

Some time ago, I've discovered that it's actually possible to "load" a virtual environment and access the locally installed packages from a Script.
It's somehow easy for many libraries, other (like numpy) need to load it in a new thread.

The mechanism at its core is rather simple.
It gets a bit more verbose after having added a few checks, and made it a function that can be used in multiple contexts:

def load_venv(packages):
    """load_venv(packages) -> bool

       Load the virtual environment in venv with the packages

       packages -- A dict, the key being the name of the package and the value
                   a folder in site-packages to test if the package is indeed
                   installed.
                   It can be a list if the package name is identical to
                   the folder name.
    """
    ACTIVATE_PATH = Path(__file__).resolve().parent
    venv_path = ACTIVATE_PATH / 'venv'
    if not venv_path.is_dir():
        show_error(f'You need to create a virtual environment called venv in the script folder:\n\n{venv_path}.\n\nSee the README.md for more details.')
        return False

    # Find site-packages on Windows or Linux/Mac
    site_packages = None

    for pattern in ('Lib/site-packages', 'lib/python*/site-packages'):
        matches = list(venv_path.glob(pattern))
        if matches:
            site_packages = matches[0]
            break

    if site_packages is None:
        show_error("Could not find the site-packages in the virtual environment.")
        return False

    site.addsitedir(site_packages)

    if type(packages) is list:
        packages = dict(zip(packages, packages))
    for package, folder in packages.items():
        if not (site_packages / folder).is_dir():
            show_error(f'You need to pip install {package} in your virtual environment\n\n{ACTIVATE_PATH}.\n\n See the README.md for more details.')
            return False

    return True

Where show_error is:

def show_error(message):
    scribus.messageBox('Scribus - Script Error', message, scribus.ICON_WARNING, scribus.BUTTON_OK)

The other nice discovery from a couple of weeks ago is that there is pure Python package for manipulating PDFs: pypdf!

I've used it for a simple "project management" script I've created for a specific task.
It can merge PDFs from multiple Scribus documents and place two A5 pages on one A4 landscape page or just add the pages that are already A4 landscape in the original document.
It does not work yet from inside of Scribus, but I plan to improve it a bit (automatically update the starting page number...), make it work from inside Scribus and then also publish it here.

But there is another project, where I've used the newly acquired skills.
Lately, a few people bragged about doing foldable fanzines:

https://www.quarantinepubliclibrary.com/tutorial

Shouldn't it be possible to do it also with Scribus?

Here is my new script for it:

https://github.com/aoloe/scribus-script-repository/tree/master/fanzine

This is how the file looks in Scribus:

fanzine-scribus.png

And the imposed PDF:

fanzine.png

Just run the script, with your A7 document open in Scribus and you'll get a PDF with the same name next to it. No questions asked (yes, it will overwrite any existing file, I might add a confirmation in the future...)

The most interesting part: this is a proof of concept for adding imposition to Scribus.
Personally, I'm for creating multiple specific scripts, rather than a highly complex interface for doing every possible type of imposition!

Stay tuned...
#12
Features / new feat LAYERS: "solo" button...
Last post by jeepe - November 22, 2026, 10:22:27 AM
hi,

In music mixing software / applications, the "solo" button is a basic feature.

Click on it, and -- i don't even need to explain :) We all know that ! :)
Okay, for the future reader's sake: the "solo button" makes only that track audible.

"solo"
I think such a button could be great in the layers window.
Show only this layer.
When pressed, the check marks in the visible column for all other rows could be grayed.

In Ardour, multiple tracks can be soloed ...
which reminds me to suggest: don't  :)
let "solo" mean only one :)

Why a solo button would be good?

Cause changing the check marks at layers can possible be a source for mistakes.
If you want to see only one, meaning also that only that one can be "grabbed", clicked,
then why make others invisible? especially for that short period of time?

----------------------

Another possible feature at the layers window:

A background color for the column "locked".

Why this would be good? Why a locked layer is special?

Because you think it's already finished, it's good as is.
No more modification.

If that column gets a color, it will also serve as a visual reference...
You don't have to travel with your eye up to the top row to see which column is which :)
You'll see:

locked

one column to the right? "wrap images"
one to the left? "will print"

Just an idea...
I mean, tow ideas :)

Peter

#13
Text and Typography / add a "do hyphenate"' button t...
Last post by jeepe - November 21, 2026, 10:55:14 PM
hi,

sorry for the little bit impolite title, I was struggling to make it fit in :)

I wanted to suggest a button that I thought was missing...

But then It came to my mind: perhaps I saw it in version 1.7 !!! :) :)

It's there!  It is wonderful!!!

at hyphenation & language, below the hyph. settings, there is a pair of buttons:

Hyphenate / Dehyphenate

Beautiful !!!!


thank you for developing Scribus

Peter


#14
Raster and Vector Graphics / Re: Bad SVG support
Last post by OSDP - November 21, 2026, 09:37:06 PM
Sometimes, it's the contours that can cause problems. Here, if it is possible, "transform the contour into a path" (possibly by joining it to his form). It's a little gymnastics to learn. And to remember. Most of the time, it solves everything. Like changing the fonts to path for sure !
#15
Free discussion / Re: ArtCraft
Last post by OSDP - November 21, 2026, 08:30:52 PM
After some research, they announced it in "X" :

- «Take a deep breath, because we're about to spill the tea ☕️ Affinity is coming to Linux, it's in active development, but we've got no ETA to spill just yet.»

There are articles about this on the web :

https://www.omgubuntu.co.uk/2026/11/affinity-linux-release-confirmed

https://goodtech.info/affinity-linux-version-native-developpement-canva-adobe/
#16
General Discussion / Re: Using Scribus with my old ...
Last post by AdmFubar - November 21, 2026, 07:47:44 PM
Older as in the 2006-2012 model era? Might see a bit sluggish but that will depends on the size of the project. Only issue i could see would be how much ram you have available on your system. The more the better to handle larger projects with. Someone with more experience with those mas will give you a better information.
#17
General Discussion / Re: Using Scribus with my old ...
Last post by utnik - November 21, 2026, 02:01:07 PM
working on an intel macbook pro from 2019 with scribus 1.6.7 and 1.7.4 – no related problems so far.

utnik
#18
Free discussion / Re: Forum not very active...
Last post by a.l.e - November 21, 2026, 09:03:56 AM
Merci pour les deux liens.

"Scribus en pratique" me semble être un très bonne resource pour apprendre à bien utiliser Scribus!
#19
Raster and Vector Graphics / Re: Bad SVG support
Last post by NorrisFByrd - November 21, 2026, 08:12:34 AM
I ran into the same thing with a logo I had made in Inkscape, it looked fine there but Scribus dropped a couple of the fills. What worked for me was opening the file in Inkscape first and converting the text to paths, then saving a plain SVG copy before importing it. The PDF route OSDP mentioned helped me too on one stubborn file, I exported it as PDF from Inkscape and placed that instead, and the shapes came through clean. Worth checking which version of Scribus you are on as well, the newer ones handle gradients a bit better in my experience.
#20
General Discussion / Re: Crash deleting multiple pa...
Last post by AdmFubar - November 20, 2026, 09:24:31 PM
uploading your slack is frowned upon in the Church of the Subgenius. You need  to keep your slack and acquire more to be one with "Bob". :P