Comments (4)
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.
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.
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.
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)
- ValueError in ScribusGeneratorCLI.py --help HOT 1
- Invalid --firstrow and --lastrow options HOT 2
- Multiple %VAR_ keynames to run script using different CSVs HOT 4
- ScribusGenerator not using To Frame Size in image frame settings HOT 5
- No module named 'Tkinter' -- solved HOT 4
- Link vector/SVG files with Generator HOT 5
- csv import keep text with text styles, bold, list, em, ... HOT 1
- No module named 'scribus'
- Cannot Fetch image from folder HOT 2
- Fetching an image into an image frame in Scribus and export it as a new layer in the generated the PDF file. HOT 3
- [TYPO] in README.md HOT 1
- Clarifications on how `%SG_NEXT-RECORD%` works... HOT 5
- Scribus Generator not working HOT 2
- Colorize Image Effect changes the colour in generated document HOT 1
- --single overlapps pages
- Help wanted. Add Danish and German æ, ø, å and ä, ö HOT 2
- ModuleNotFoundError: No module named 'Tkinter' HOT 6
- How to set my layout as portrait or landscape dynamically HOT 6
- Cannot specify %VAR_logo% using Scribus1.5.8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scribusgenerator.