Recent posts

#71
Scripts and Plugins / Textbox Frame Size when creati...
Last post by shab.t786 - November 12, 2024, 05:53:48 AM
sizeObject(...)
sizeObject(width, height [, "name"])
Resizes the object "name" to the given width and height. If "name" is not given the currently selected item is used.

I am trying to use this function to resize a text frame created. But it does not work
  text_frame = scribus.createText(x_pos, y_pos, width, height)
           
            # Insert only the cleaned text into the Scribus text box
            scribus.insertText(clean_text, -1, text_frame)

            # Optional: Set font styling
            scribus.setFontSize(10, text_frame)
            scribus.setFont("Baloo 2 Medium", text_frame)

            # Set columns for the text frame
            scribus.setColumns(2, text_frame)  # Adjust the number of columns as needed

            # Resize the object (if needed)
            scribus.sizeObject(width, height, text_frame)

            # Redraw all elements
            scribus.redrawAll()
#72
General Discussion / Re: What's the best way to dea...
Last post by apastuszak - November 11, 2024, 09:43:44 PM
Can you make tables using a script? I'd like to try that, if possible.

And, you're not the only ones with weak table functionality. I have a copy of Affinity Publisher and it's not much better.
#73
Scripts and Plugins / Re: Is there a way to delete a...
Last post by dtribby - November 11, 2024, 09:18:02 PM
Thanks! That would be great.
#74
General Discussion / Re: What's the best way to dea...
Last post by MrB - November 11, 2024, 09:03:02 PM
Unfortunately, we need to do a lot of work on the table functionality to make it really useful. Ideally, your scenario is just one way of making tables, yes.
#75
Scripts and Plugins / Re: Is there a way to delete a...
Last post by a.l.e - November 11, 2024, 07:53:44 PM
I did a quick search and, indeed, the command seems to be missing from the scripted API.

But it's probably easy to add.

On Thursday, I could give it a try.
#76
General Discussion / What's the best way to deal wi...
Last post by apastuszak - November 11, 2024, 03:41:01 PM
The built in table feature isn't really working as well as I would like. And just using tabs in a text column isn't working for me either.

The workaround I came up with after Googling was to design the able in Libreoffice Calc, copy and paste it into LibreOffice Draw, export it as an SVG and import that into Scribus. That works well enough, but is kind of a pain to use. You also can't edit the table in Scribus if you find a typo.

Does anyone have a good workflow for doing tables in Scribus?

In a perfect world, I'd love to just feed an app a csv file, pick a table style and have it just create a table for me.
#77
Tutorials, Tips and How-Tos / Re: Here's a SOLUTION to add/r...
Last post by Juliansegovia - November 11, 2024, 02:20:06 PM
Scribus has its internal python scripting facility. Have you tried that development path? The reason I asked is that I am looking for a solution to your same problem but though an approach that will not involve navigating the screen but through Scribus internals. Unfortunately, I'm still searching.

This is quite frustrating for me because bold and italics are supposed to be basic rich text manipulations that merits a very simple keyboard strokes like <Ctrl-B> and <Ctrl-I> as in most richtext editors.

If you have tried the python way and concluded that it's impossible, please let me know so I can abandon the thought.
#78
Scripts and Plugins / Is there a way to delete a par...
Last post by dtribby - November 11, 2024, 07:49:40 AM
I'm testing out Scribus 1.6.2 after having used 1.4.x for years. The main sticking point is all of the extra paragraph styles created when loading text from a file.

I've got a script that will tell me all of the unused paragraph styles whose names begin with the name of the current frame. I would like to delete all of them from the script, but could not find a Scribus function that does that action.

Is there a way to delete a paragraph style from a script?
#79
Free discussion / Re: [SOLVED] Writing a book wi...
Last post by Erik96 - November 08, 2024, 10:22:12 AM
It would be very interesting for persons with similar projects as yours if you could share your thoughts and experiences as you proceed with your book.
BTW: I am starting with a book and I am thinking also at which SW to use.
Until now I used OpenOffice and converted it to other formats. I am also thinking at LateX.
Thank you very much in advance
Erich
#80
Layout Issues / Re: Aligning objects selecting...
Last post by AdmFubar - November 08, 2024, 03:47:29 AM
Thanks for the clarification, I will have to check that. It was late and i was tired when i was testing these options.