Recent posts

#31
Layout Issues / Re: Copy Size of Object
Last post by utnik - May 19, 2025, 02:28:37 PM
hi hibert42

Quote from: hibert42 on May 19, 2025, 11:09:18 AM...I tried it and it is not snapping to the bleed extension...
for me it does (in 1.6.4 and 1.7.0) – at least as long as 'snap to guides' is active.

utnik
#32
Layout Issues / Re: Copy Size of Object
Last post by hibert42 - May 19, 2025, 11:09:18 AM
well.... I have to admit, I wrote my rsponse before reading yours.

Item Snapping... I did not know about that.
And I have spent the entire last day writing a script.

Well at least I now have a script to set the a frame to the size of the page + bleeding.

Quotescribus will also snap to it, if you have defined one.
is it?
I tried it and it is not snapping to the bleed extension...



du dumm
#33
General Discussion / Re: Footnotes revert to "defau...
Last post by a.l.e - May 19, 2025, 07:19:06 AM
from the screenshots, it might be possible to try to replicate.

but i was thinking of a sample .sla file : - )
it does not need to be the file you're working on, you can create a small one that shows the issues.
#34
General Discussion / Re: Footnotes revert to "defau...
Last post by occamsrazor - May 19, 2025, 01:25:58 AM
In the first document you can see how it is supposed to look and the other shows the way it looks when I open Scribus again.
#35
Layout Issues / Re: Copy Size of Object
Last post by hibert42 - May 18, 2025, 07:50:18 PM
Yeah I already started ;)
It is a good exercise.

Currently I already can set any frame to the pages size but also to any percentage of the pages size and you can choose if you want width, height or both :)

But i won't stop there.
Going to include the following featurs to make a "Frame Tool" Script.
1. Set size not just to that of Pages, but also other objects via "last selected" or "first selected" method.
2. Set Size of multiple frames
3. Also respositioning, the same as in the alignment tool panel, but here you can just resize and align at the time
4. Also including the Align Image inside Frame from the built-in Script
5. Adding Resize Image inside Frame functionality too ...
#36
Scripts and Plugins / Re: No itemDialog?
Last post by a.l.e - May 18, 2025, 06:26:06 PM
itemDialog() has only been added to the API very recently (last week...)

i guess that the last time i've generated the documentation, i was in the branch that i did use to create the scripter function...

if you're brave enough (and need that function), you can now download the community managed nightly build from gitlab:

https://gitlab.com/scribus/scribus/-/jobs/artifacts/master/raw/Scribus-nightly-x86_64.AppImage?job=appimage%3Alinux

it should be in there.

you get even less warranty than with the official scribus : - )
#37
Layout Issues / Re: Copy Size of Object
Last post by a.l.e - May 18, 2025, 06:17:04 PM
since you seem to be comfortable with scripting, you can write scripts for these tasks.

but for the two examples you're mentioning there are also other solutions.

For example 1 you can:

  • if you have not created the text frame yet, copy paste the image frame (sadly, duplicate does not duplicate in place: i've lost that battle) and convert the newly created item into a text frame (it's in the context menu, in the item menu, and can be triggered with the action search). they will have the same size
  • or you can activate the "item snapping" and make both items of the same width
  • or you can use the property palette and copy paste the width of one item into the other one
  • or use guides to define the width of your elements and resize both items to it

which one fits better, depends on your habits and on the specific use case.

concerning example 2:

  • if the page is what is inside of the margins, you can simply activate the image tool and shift click inside of the page (works only if you have not defined any guide).
  • if you want it to be of the size of the page, you can set the width of the image to "pagewidth" and its eight to "pageheight" (yes, those are two variables that are recognized by the measurement fields; you can even do calculations with them like "pageheight + 2 + 1cm")
  • you can also simply activate the snapping to guides and use the mouse to snap the frame to the page.

this having been said, in most cases, you don't want to set the size of the image to the exact size of the page but want to fill the bleed area with it: scribus will also snap to it, if you have defined one. (and if you have 1cm bleed, you can set the position to "-1cm" and then set the width to "pagewidth+2cm")
#38
General Discussion / Re: version confusion
Last post by a.l.e - May 18, 2025, 06:02:30 PM
well, you're saying it yourself : - )

  • 1.6 is a stable version
  • 1.7 is a development version

1.7 is  mostly usable but has some experimental features.
sometimes, something breaks, but important errors tend to be fixed very fast (overnight; we had three examples in the last couple of weeks... after months without any breakages).

depending on your habits and needs, the development version might have features that make it much more comfortable to use.

development "releases" are ok to use:
  • if you make sure that all the features you need for the current project are working well enough for you
  • are ok with the next release being slightly different.

using the current 1.7 code is (IMHO) only ok:

  • if you can compile scribus and keep it up to date or
  • if you are using the "nightly" appimage on linux or
  • if you're using it only for testing purposes and not for production

concerning the API:

  • my documentation page (the impagina.org one) is indeed based on 1.7
  • is currently a bit outdated (i'm working on a new script that exports it... the first rework did fail miserably)
  • in scribus itself, if you press F1, you get also an API documentation for the stable version (basically, it should match the version that you have installed)
#39
Scripts and Plugins / Re: No itemDialog?
Last post by hibert42 - May 18, 2025, 04:29:16 PM
Ok, I just downloaded the 1.7.0 Version of scribus (which looks amazing btw.)
but it gives me the same error...

scribus has no attribute "itemDialog" .... why is it in the api when it is not in scribus.
The API says, it was generated from scribus 1.7 ...

Or am I doing something wrong here?
#40
General Discussion / version confusion
Last post by hibert42 - May 18, 2025, 04:09:53 PM
Hey,
since I am trying to get into scribus scripting due to a more frequent use of this fine peace of software, I am confused about the current version.

scribus.net says that 1.6.x is the current stable version, but here: https://wiki.scribus.net/canvas/1.7.0_Release

it is said, that scribus 1.7 got released.

scribus.net download page lists the 1.7 as development version...

so.. what now?

Is it reccomended to use the 1.7 ?
Is this regarded an experimental release?

I would like to use it and to develope some scripts for it, since the API seems to be the 1.7 and seems to include all kind of cool stuff. But would not like to encounter frequent crashes and all...