When copying text from a PDF, we often get the text line by line.
https://github.com/aoloe/scribus-script-repository/tree/master/join-lines
Today, I wrote a script that joins those lines in paragraphs.
If you copy the "scribus-script-repository" repository on your disk and add it to your script folders in "Preferences > Scripts", then you can simply run it from the Scripts menu:
join-lines.gif
Of course, you can also just copy the Python file in your own collection of scripts.
Please read the README in the folder linked above for the exact behavior of the script.
hi ale
thank you! saves a lot of work.
utnik
This is handy. I paste a lot of text from old PDFs into our newsletter, and the broken lines drive me round the bend. I will give the script a try next time I have a long piece to clean up.
In MS Word I used to just do a few search and replace.
Replace all ^p with ^l.
Replace all ^l^l with ^p
Replace all (remaining) ^l with space.
Then as cleanup you can replace all double spaces with a single space. May need to run more than once.
But ok, I eventually put these into a simple Word macro.
Indeed, depending of the content you're "joining" a set of search and replace will give you better results, since it will keep the formatting.
From a quick check, I don't think that Scribus provides access to the Search and Replace function... we will need to change that : - )