-
Notifications
You must be signed in to change notification settings - Fork 36
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
add support for inline images - add images dynamicaly into a text frame #213
Comments
It is perfectly feasible... and was actually one of my reasons to develop the tool, just not in a single dynamic text but between multiple dynamic texts (that can all be inserted in a single text frame, in sequence). Since variables (text or images) that would be empty after the substitution are removed by ScribusGenerator you should be able to get the expected result. To take your example I'd cut the data somewhere along the table below, and design the Scribus template accordingly while playing with the anchor of the image frames so that it keeps aligned with the preceding character. Empty texts and images placeholders will be remove when empty, no worry there.
|
Yayyy ! Thanks for the tips! I don't know how to "play with anchors" though... |
you're right. the "inline" object didn't exist yet so I played with absolute positionning and text alignement (right align for text left of the image, for instance) to mimic some inline. It should be possible to adapt the SG code to handle inline objects without too much work, will have a look but I don't exactly know when... if you wanna give it a shot feel free to hack the code and submit a pull request. |
So this way you can only add one image into a text but it's a start! |
It would be super awesome to insert images into text frame dynamically. I don't think it's possible yet, is it? Thanks ;)
Example :
My Text_Frame : "%VAR_my_text%
my_text : "Inflict 3 %VAR_image_for_damage% to the target %VAR_image_for_creature%
The text was updated successfully, but these errors were encountered: