Recent posts

#41
Code / Best forum
Last post by BN_Dev - September 06, 2024, 05:58:47 PM
Hi all,

This forum doesn't seem overly active with regards to development chat.  The Wiki is also a little out of date with regards to the articles on getting involved with development hence me asking.

Is this still the best place to discuss code changes? We found an old mailing list which is deactivated and points to the forum. I have registered at the issue tracker and I'm aware there is an IRC channel too.

I note the development model is a bit more closed compared to most projects on GitHub, with the development happening on SVN.  The issue tracker on GitHub is also quite quiet and not all patches there get merged in.  I understand submitting .patch files against the SVN is the preferred option for the core developers.

I would like to discuss some ideas and get feedback on proposed changes before working on any patches, to ensure that the work matches the development roadplan and would not be wasted.  Which is the best place to thrash out these sorts of ideas and get feedback before doing any work?

Many thanks,
Paul
#42
Text and Typography / Re: Column flow
Last post by BN_Dev - September 06, 2024, 05:44:20 PM
Thanks utnik, I have added our use case and other information to the existing ticket. Hopefully the developers could consider this. I'm sure you're aware how much more productive the feature would make doing layouts; on a large publication it adds up to entire hours per day per person! Many thanks, Paul
#43
General Discussion / Re: Looking for Advice on Usin...
Last post by Flaxx - September 06, 2024, 11:45:16 AM
Quote from: mnawij on July 30, 2024, 09:01:37 PMHi Jessy, I would recommend saving them as image format or pdf from excel and placing them into Scribus, unless you need to edit the tables in Scribus. It is the best way that I have found for quick work to get the job done.

Cheers!

mnawij

Even if I love Scribus and even if your proposal works fine for printed media, it doesn't in cases where you finally want to produce a readable PDF that should be accessible for people needing screen readers as they have reduced visual abilities.

I really would prefer a future Scribus version being able to import PDF or SVG files containing readable text - even correctly formatted if the fonts are either installed or (in case of PDF) properly embedded.
#44
Scripts and Plugins / Re: Create custom functionalit...
Last post by a.l.e - September 05, 2024, 11:14:33 AM
this time too, i'm pretty sure that i've tried it out in the past and failed.
(but i think i wanted to let the scripts define their own shortcuts... which is not really what you are looking for.)

but it's not impossible, and i see why for some setups it might be an interesting feature.

if you're comfortable enough with c++, here an idea how it might be possible to implement it:

- in the "file > preferences > keyboard shortcuts" add a way define custom actions.
- one type of custom action would be "run script...", where you need to define the path to script being run
- then you can attach any shortcut to that specific script.

there some work to be done, but it does not sound like rocket science.
and i would first check with the team if they would accept the feature (if implemented correctly) or if they have hints on how it should be done.

on the other side:
generally speaking, i prefer the approach of adding a list of user's script to the script menu entry and then use the "action search" to trigger specific scripts by (parts of their) name.
(using "normal" shortcuts for launching scripts will mostly lead to weird shortcuts being used...)
but this depends on https://bugs.scribus.net/view.php?id=15579 being accepted.
(it's in my local scribus and works well for me)

following this remark, i think a "simpler" way to implement your feature is to get your computer to track the .sla files in a (list of) given directories and make a backup of it each time they change:

https://superuser.com/questions/226828/how-to-monitor-a-folder-and-trigger-a-command-line-action-when-a-file-is-created

assuming that you're using windows, you will first have to make sure that scribus does not lock for read the files it opens:

https://stackoverflow.com/questions/6167136/how-to-copy-a-file-while-it-is-being-used-by-another-process 

this way, people will not be tempted to define crazy shortcuts and you will get your backups on each save : - )
#45
Scripts and Plugins / Re: Create custom functionalit...
Last post by AdmFubar - September 04, 2024, 09:05:40 PM
I take it that you find the auto backup feature lacking?
#46
Scripts and Plugins / Create custom functionality on...
Last post by abi - September 04, 2024, 01:53:29 PM
Hello,

I am trying to write some additional functionality when a user presses "Ctr + s" which is the default keyboard shortcut for saving the file, i want to create a file copy along with it with timestamp

Please let me know if anyone has tried to overwite the default keyboard shortcut functionality

Thank you

#47
General Discussion / Character style not taken into...
Last post by nenex-ordi-libre - September 04, 2024, 10:48:05 AM
Hi

As I'm not an English speaker, I've translated my message with DeepL, I hope it will be understandable.

In Scribus 1.6.2 I created a character style. But it is not taken into account when I apply it to certain words.

Edit: I forgot to mention that it's in a model. I just realized that when I create a new document from this template the style is taken into account. I opened the template and the style is taken into account.

*************************

Salut

Dans Scribus 1.6.2 j'ai créé un style de caractére. Mais il n'est pas pris en compte quand je l'applique à certain mots.

Édit : j'ai oublié de préciser que c'est dans un modéle. Je viens de me rendre compte qu'en créant un nouveau document à partir de ce modèle le style est bien pris en compte. J'ai ouvert le modèle et là aussi le style est pris en compte.
#48
Installation and Setup / Re: scribus on 4k display
Last post by tim_occ - September 03, 2024, 04:29:47 PM
hi busscri,

please, can you share a screenshot? I guess the icon scale is too small in 1.6.2. Scribus 1.7.0 has SVG based icons that will scale by your screen scale factor.

What is your scale factor in your Ubuntu display settings?
#49
Scripts and Plugins / Re: How to view Error Logs for...
Last post by a.l.e - September 03, 2024, 11:13:56 AM
back from my holidays...

as far as i know, python does not log the erros to disk.

of course, you can catch all errors and write the exceptions to a file... but i'm not sure it's a good idea..

but if you start scribus from a terminal / console, you should be able to see the error from your python scripts.
on linux you will be able to redirect them to a text file.

this having been said, scribus should not crash because of programming errors in python scripts: do you have any example?
on the other side, if you happen to create an infinite loop, then, yes, you have a problem and need to force the closing of scribus (and you better do it before the script eats up all the resources...)

for what is worth, in the recent past, i've tried to start the scripts inside of a python debugger or to attach a debugger to a running script but had no luck with it.
that would be the right solution, if it worked.

personally when creating complex script, i first import a mock of the scripter API and run them outside of scribus.
(the mock only contains the few scribus commands i have already used in my "complex" scripts)
in this way, i have much faster developing cycle and i can stick to my habits when debugging.
(https://github.com/aoloe/scribus-script-repository/tree/master/mockAPI)
#50
Text and Typography / Re: Column flow
Last post by utnik - September 03, 2024, 09:51:23 AM
hi paul

unfortunately this is missing im scribus.
i used to place a separate frame on top of the normal frame with the columns and let the text in the normal frame flow around the 'title' and/or 'leading text' frame.
it's just a workaround. you need to adjust the frame when editing the leading text. but for smaller projects it is doable.
this was requested as a useful feature a couple of years ago.

utnik