Replace LF LF with CR from a csv file needed and used with SCRIBUSGENERATOR

Previous topic - Next topic

celine

I need some help to substitute search and replace characters LF LF to CR ? to have correct paragraphs jutifieds.

The script :
https://wiki.scribus.net/canvas/Clean-up_the_imported_text_based_on_the_Slovak_typographic_rules

with a line :(u'\u000a'+u'\u000a'+r'+',u'\u000d')

doesn't work and it's a pity because scribus uses RTL very well !

Thank you if you have an answer

a.l.e

Can you please post a demo .sla file with the "wrong" text in one frame and the "right" one in another?

It does not need to be long. A few paragraphs of "Lorem Ipsum" might be enough.

That would help to understand what exactly you need and check if the proposed solution matches your wishes.

Nermander

I assume it is a pasted or imported text that has "typewriter" formatting (i.e. LF+LF) to get spacing between paragraphs.

I have often done  similar replacement in Word.