Recent posts

#1
General Discussion / Re: Imagedata format in SLA fi...
Last post by utnik - Today at 05:36:11 PM
hi sunil

if you just need to extract your image from the .sla file, you can do it with a right click on the image. in the pop-up menu you uncheck 'image' → 'embed image'. then scribus will open a window to define the name and location for the extracted image.

utnik

#2
General Discussion / Imagedata format in SLA file
Last post by skhullar - Today at 02:38:41 PM
Hi

I know it's not recommended to parse SLA file as against creating a Py script. However our use case requires parsing. 

We are stuck at embedded Imagedata, which seems to be some kind of compressed base64 format. Need to know how to decode it and extract the image (without a script)

Thanks

Sunil
#3
Installation and Setup / Re: Scribus 1.6.1 app image cr...
Last post by Lemuria - Today at 09:26:10 AM
Happy to report that Scribus 1.6.1 is working for me now.

I use the XFCE environment, so I used the menu editor to add a launcher for Scribus. While my config is still borked, Scribus can now be launched properly since launching from menu doesn't involve loading my ZSH config.

Quote from: RodneyLee on February 27, 2024, 02:38:53 PMtry the flatpak, what OS are you using?
The flatpak works, but the AppImage does too now, so I'll just stick to the AppImage.

Thank you all for your help.
#4
Scripts and Plugins / Re: Table Cell Padding
Last post by AdmFubar - Today at 02:36:33 AM
Not certain about the API being able to change the text styles. (no first hand experience), but from looking over the api calls it looks doable. would be a matter of getting the desired cell selected and applying text styles, iterating through the cells as needed.
While the cels appear as text frames grouped together, I've noticed that the story editor isnt available to edit the text contained in them. This may be to keep from adding text beyond the size allotted in the cell. Might be a parameter to keep in mind when adding text to a cell from a script.
#5
Scripts and Plugins / Re: Table Cell Padding
Last post by sbus-scripter - Today at 12:32:10 AM
Thank you very much to a.l.e & AdmFubar for your inputs/suggestions/help.

So my understanding was incorrect with the padding parameter. I thought padding value is same units as the document, which is not the case here. As a.l.e suggested I used 20 padding value and I can surely see the change.

Another mistake I was doing was trying to verify the change with the UI because I thought Left in "column & text distances" properties is what I was setting which is different setting from what I was setting.


Is it possible to change the cells "column & text distances" properties from the API? this was my initial attempt. Table/cells have very limited api calls. I think they are grouped textframes so I'm assuming if I can get a handle of the cell from the API I should be able to make this changes using the textframe APIs.

Also can I change the cell text style from the API?

Sorry for the loaded question.


setCellLeftPadding(1, 1, 20)
#6
Scripts and Plugins / Re: Table Cell Padding
Last post by AdmFubar - Today at 12:09:36 AM
Quote from: a.l.e on February 27, 2024, 10:18:59 PMa few remarks from my side:

- (1, 1) is not the first cell in the table, but the second column and second row (so you need at least two columns and two rows to see something)
- as far as i can tell, there is no way to see (or set) the padding in the UI (the cell padding is for sure not the value in the "column & text distances" of the text properties).
Uhm yes it is. The cell padding can be adjusted via the UI. It isnt applied until there is actual text is placed in the cell. If all you have is the cursor in the cell it isnt moved in place till you insert some actual text.
#7
Scripts and Plugins / Re: Table Cell Padding
Last post by a.l.e - February 27, 2024, 10:18:59 PM
a few remarks from my side:

- (1, 1) is not the first cell in the table, but the second column and second row (so you need at least two columns and two rows to see something)
- as far as i can tell, there is no way to see (or set) the padding in the UI (the cell padding is for sure not the value in the "column & text distances" of the text properties).
- i have no idea how big 0.5 inch is, but, don't be stingy: put a nice 2 in there and see what happens! (i think that inches are in same order of magnitude as centimeters...)

here it works, and if you don't get any error message, i guess that it's also working on your computer and you might simply be looking at the wrong place...
#8
Scripts and Plugins / Re: Table Cell Padding
Last post by sbus-scripter - February 27, 2024, 09:12:41 PM
Thank you for the reply. I tried with 0.5 but it still doesn't work. I would expect the value to be updated even the value is small. BTW I am using inches as my units.

My expected behavior is for the following value 'Left' to be updated but it is staying at zero.



Scribus: version 1.6.1
OS: MacOS Sonoma 14.2.1
#9
Installation and Setup / Re: Scribus 1.6.1 app image cr...
Last post by a.l.e - February 27, 2024, 07:25:12 PM
the scribus in the appimage should take the qt that is in the appimage, not the one in your system.

but you might indeed have something strange in your configs that screws that up.
#10
Installation and Setup / Re: Scribus 1.6.1 app image cr...
Last post by Lemuria - February 27, 2024, 06:40:58 PM
Quote from: RodneyLee on February 27, 2024, 02:38:53 PMtry the flatpak, what OS are you using?
Ubuntu 20.04, I said it in the original post.

For some weird reason, if I start a new terminal and Ctrl+C early (preventing my config from loading), the AppImage loads as expected. So there's definitely something off with my config which might be loading the wrong Qt libraries (likely conda).

I'll see if the Flatpak does what I need, and probably take a long hard look at my zsh configuration.