Recent posts

#11
General Discussion / Re: How to show the file name ...
Last post by Geoat - February 29, 2024, 11:01:28 AM
Oh, great !
But I am not fluent in python.
What I have to do ?
Can you explain me from beginning ?
#12
Scripts and Plugins / Re: Sample scripts and plugin
Last post by a.l.e - February 29, 2024, 09:21:26 AM
this is my collection of scribus scripts:

https://github.com/aoloe/scribus-script-repository

the most recent ones contains best practices that i consider to be better : - )

when you open the scribus help, in the "for developers" section you have some help for creating scripts.

personally, i tend to use the web version i have created:

https://impagina.org/scribus-scripter-api/
#13
General Discussion / Re: How to show the file name ...
Last post by a.l.e - February 29, 2024, 09:18:04 AM
yes, it's easy to do that with a python script that you run inside of scribus:

scribus.setText(scribus.getDocName(), 'Text1')
- this adds the document name with its path to the the text frame named 'Text1'
- if you only want the name without the path, you can use the python's pathlib library
- if the the text frame is on a master page, you will first need to activate that master page (scribus.editMasterPage())
#14
Scripts and Plugins / Sample scripts and plugin
Last post by skhullar - February 29, 2024, 09:00:23 AM
Hi Team

Just started here. Need help.
Need some sample scripts and plugin to start understanding how they work
And where can we get documentation to create some of our own

Thanks

Sunil
 
#15
General Discussion / Re: How to show the file name ...
Last post by Geoat - February 29, 2024, 08:56:13 AM
Good morning,
Thank you for your answer, I am afraid it is not possible.
In fact, what I would like is for the name of the file to appear on the printed version (discreetly), so that the various stakeholders are sure to have the same version.
I was thinking of a macro introducing this name, in the same way as inserting a special character (page number or special character).
#16
General Discussion / Re: How to show the file name ...
Last post by a.l.e - February 29, 2024, 07:33:52 AM
no, i don't think it's possible, sorry.

as far as i can tell, this is a feature that is typical for word processing, but not so frequent when doing layouts.

(probably because, if you're putting so much effort in the way your document looks, you don't want to "leak" the details about the name of your document...)

(also, with layouts, you will probably version the whole folder, not the .sla file... and if you're doing it correctly, you will use a revision system, not renaming files... and if one is renaming files, i fear that the typical file will be called "My Work - proofed (Final)_For print (Colors fixed).sla"... and you don't want to see that in a printed file : - )
#17
General Discussion / Re: Imagedata format in SLA fi...
Last post by a.l.e - February 29, 2024, 07:19:53 AM
no, i'm not asking you to look into the code.

i'm suggesting that you can find the solution by looking into the code.
or, at least, this is how i would do it.
if you're parsing the xml, and -- among other things -- want to extract the images from the xml soup you probably know how to do that.

good luck!

p.s.: you are parsing an undocumented file format... at some time, you will need to go into the code to understand what's the meaning of the things you will be finding...
#18
General Discussion / Re: Imagedata format in SLA fi...
Last post by skhullar - February 29, 2024, 06:37:44 AM
Hi a.l.e

I was hoping to get some ready made help. But you are asking me to look into code. That will involve lot of deep diving, I wanted to avoid.

#19
Text and Typography / Re: Is it possible to save tex...
Last post by AdmFubar - February 29, 2024, 03:30:31 AM
I'm a little lost by what you mean by "text filters", some details please.
And when you say you "re-imported" what do you mean by this?  did you import the same text? as in replacing what you had imported previously? or is this new text? and is it being added to  the previous import? or is it replacing it?
#20
Text and Typography / Re: automatically generated co...
Last post by rsharman - February 29, 2024, 12:05:02 AM
Perhaps when you imported styles you didn't check "Replace Existing Style"?  The default is "Rename Imported Style" and that might be the problem you saw.