berteh / ScribusGenerator

Create beautiful documents with data. Open source pdf (and Scribus) template and mail-merge alternative.
http://berteh.github.io/ScribusGenerator/
MIT License
247 stars 37 forks source link

Variable substitution not working when hyphenation is active on text frame #226

Open caigner opened 4 months ago

caigner commented 4 months ago

Scribus: 1.6.1 ScribusGenerator: latest version

When hyphenation is active on a text frame where the variables are, no substitution takes place inside this text frame. When text is de-hyphenated everything works fine.

Current work around is to place variables in their own text frame, but that might not always be feasible, especially when variables appear in the middle of some text.

caigner commented 4 months ago

I just found out that it is possible to select a portion of a text and selectively deactivate hyphenation. So when placing variables inside a hyphenated text make sure to select the variable and de-hyphenate it!

DavidPesticcio commented 4 months ago

That snippet of information appears to be an ideal candidate for the FAQ :wink:

caigner commented 4 months ago

Good idea!

Even better (from a UX perspective) would be if the variable is treated as not having been hyphenated in the first place, so that users may not need to worry about the hyphenation status of the variable. I don't know whether this is possible.

Is it possible to dehyphenate anything between %...% by the script?