Recent posts

#1
Features / Feature: Paste formatting
Last post by transnomadic - Today at 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.
#2
Features / Re: Shortcuts for Styles and S...
Last post by a.l.e - Today at 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
#3
Features / Re: Shortcuts for Styles and S...
Last post by transnomadic - Today at 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.
#4
Scripts and Plugins / Re: Replacing selected text
Last post by a.l.e - Today at 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!
#5
Scripts and Plugins / Replacing selected text
Last post by prcek - Today at 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?

#6
General Discussion / Re: Story Editor - Font Menu
Last post by a.l.e - Today at 09:51:07 AM
The patch is in.

The next development snapshot will have it.
It's already in the "nightly" AppImage:
#7
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.
#8
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.
#9
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)
#10
Raster and Vector Graphics / Re: fuzzy images - why is this...
Last post by Nermander - May 06, 2025, 08:33:16 PM
The setting only affects the display when working on the document. PDF export will use the full resolution no matter this preview setting.

And in Document setup, under Item tools and Images you can set the default (but I suspect it only applies to newly created image frames).

I am not sure if there is an easy way to change for all already created image frames, but using the Outline window it is a lot easier than to do it on each page. Maybe it is possible to select multiple image frames and change the setting for all of them at the same time...

Yes, that seemed to work, I created two image frames, selected them both and changing the Preview setting then changed it for both.