Giter VIP home page Giter VIP logo

Comments (4)

berteh avatar berteh commented on July 26, 2024

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.

text1 img12 text2 img23 text3 img34 text4
Inflict 3 ./pic/dmg-inline.png to the target ./pic/creature/basilik-inline.png
Inflict 1 ./pic/dmg-inline.png to every ./pic/creature/blue.png creature in the oponent field.
Recover 3 ./pic/health-inline.png and add 2 ./pic/defence-inline.png tokens to all your ./pic/creature/purple.png creatures

from scribusgenerator.

flagadur avatar flagadur commented on July 26, 2024

Yayyy ! Thanks for the tips!

I don't know how to "play with anchors" though...
I tried inline objectifs but it doesn't seem to work with Scribus Generator substitution : https://www.youtube.com/watch?v=8bdQNEVEtDo&ab_channel=GraphicdesignforFree

from scribusgenerator.

berteh avatar berteh commented on July 26, 2024

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.

from scribusgenerator.

flagadur avatar flagadur commented on July 26, 2024

So this way you can only add one image into a text but it's a start!
I'm afraid I'm not skilled enough to improve your code... I would love to though.
If you had some time for it, it would be awesome, but if not no worries, your project is fabulous.
It's my day to day tool for work ;)
If you need some sample projects to share new people with, don't hesitate to ask!

from scribusgenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.