Recent posts

#61
Scripts and Plugins / Re: Replacing selected text
Last post by prcek - May 10, 2025, 06:44:32 AM
Thank you very much!
It was really weird to me nobody needed it before. And I didn't find it in any script I checked

I was looking for it in output of
import scribus
help(scribus)

I run it on 1.6.1 (appimage) and it is missing there (checked right now). Could it be the reason it is missing in your generated doc?

It is present in 1.6.3 and 1.6.4. help, though.
#62
Features / Feature: Paste formatting
Last post by transnomadic - May 09, 2025, 08:11:11 PM
I would like the ability to apply the formatting or character style to any hi-lighted text or object from the last text or object that I've copied to my clipboard. The formatting or style would be applied either through a special shortcut (CTRL + SHIFT + V) or through an Edit > Paste format menu item.
#63
Features / Re: Shortcuts for Styles and S...
Last post by a.l.e - May 09, 2025, 06:17:06 PM
it's here:

https://bugs.scribus.net/view.php?id=17162

the patch waits for a good shortcut for being applied
#64
Features / Re: Shortcuts for Styles and S...
Last post by transnomadic - May 09, 2025, 06:14:10 PM
I would love to see support for assigning keyboard shortcuts to styles.

I'm typesetting a book right now, and applying styles takes a considerable amount of my time. Anything to speed that process would make me happier.
#65
Scripts and Plugins / Re: Replacing selected text
Last post by a.l.e - May 09, 2025, 05:06:23 PM
It's

scribus.getSelectedTextRange()
... No idea why it's not in my documentation.
... I guess it's time to fix the script that generates it and do an update!
#66
Scripts and Plugins / Replacing selected text
Last post by prcek - May 09, 2025, 03:28:12 PM
Hello everyone.

I'm trying to write a script that gets a selected text from a frame, changes it and replaces the original text by the new one.

What I cannot find out is how can I get the selection's start position to insert the new text at.

Here is very simplified version of my script, that should put selected text into parentheses.
It expects a text in a text frame selected.
Of course if you select text from start it will work.

import scribus

frame = scribus.getSelectedObject()
txt = scribus.getAllText(frame)
txt = '(' + txt + ')'
scribus.deleteText(frame)

position = 0
scribus.insertText(txt, position, frame)

scribus.layoutTextChain(frame)
scribus.setRedraw(True)
scribus.docChanged(True)

I want to avoid workarounds like getting the selected text and search it to get it's position as there is no certainty it is unique.

Is there any function like getTextSelection([name]) or similar?

#67
General Discussion / Re: Story Editor - Font Menu
Last post by a.l.e - May 09, 2025, 09:51:07 AM
The patch is in.

The next development snapshot will have it.
It's already in the "nightly" AppImage:
#68
Beginner Talk / Re: Unlinking text frames
Last post by occamsrazor - May 07, 2025, 05:55:21 PM
Thank you! I never thought I was supposed to cut the text.
#69
Beginner Talk / Re: Beginner consider giving u...
Last post by Jensus - May 07, 2025, 04:33:44 AM
I found WPS Writer, which seems to work like MS Word (which I haven't used for very long). It is easier to use for this purpose than LibreOffice, image handling is much smoother. For what I see now, WPS Writer is the solution for this kind of document.

If that would not work, Affinity may be an option. It's a professional book editing software that seems to be able to do what I want.

I will keep Scribus, because I have another book project, which is more text and less images, for which Scribus will probably be very useful.

Thanks all for your help.
#70
Raster and Vector Graphics / Re: fuzzy images - why is this...
Last post by AdmFubar - May 07, 2025, 03:43:47 AM
Quote from: rocking on May 06, 2025, 04:02:24 AMThe selected value was "Normal resolution".  I changed it to High and now it looks good.  It's a bit of a pain to do this for every image.


There is a per document setting for image resolution to display. It is in the view menu, It is set to Normal usually. Look for it in the main toolbar, it is usually the last section and has monitor with some color block displayed in it (color management), and an eye icon (print preview), and an edit in preview mode, (looks like an old ink pen) and another drop down menu for previewing your document in various color vision deficient versions)