Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caigner opened this issue May 8, 2024 · 3 comments

Comments

@caigner
Copy link

caigner commented May 8, 2024

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
Copy link
Author

caigner commented May 8, 2024

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
Copy link

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

@caigner
Copy link
Author

caigner commented May 21, 2024

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?

@berteh berteh pinned this issue Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants