Comments (7)
hello and thanks for the feedback.
I see the name of your dynamic color %VAR_color1% has a small case "c" in the SLA template, instead of the capital "C" used in the data and text frame... that may be part of the issue.
from scribusgenerator.
besides the above problem I did spot an issue with your data (CSV) file :
It seems to have been created/encoded in some way that did lead ScribusGenerator to break the reading/parsing of that data, prepending a \ufeff byte before the header line.
I'm looking into it now... but just so I can understand: how did you create this CSV file please ? (what software+OS+settings if any) ?
FYI (and my personal notes) the header of data file has been parsed into %VAR_\ufeffNumber;Bibnumber;Class;Col1% ... and that definitely will not work. likely related to BOM UTF-8/UTF-16: https://stackoverflow.com/questions/17912307/u-ufeff-in-python-string
from scribusgenerator.
indeed once both the (minorcase) name and CSV format issue are fixed the script works:
I create my CSV by using either LibreOffice, OpenOffice or GoogleDocsSheets, that all have native working export to CSV... contrary to MS Excel.
so I'm really interested in knowing how you created that CSV file... please
Colorbug_fixed.csv
Colorbug_fixed.sla.txt
;)
from scribusgenerator.
Turns out this encoding byte is not leading to any error, so I will disregard it unless you come back with contradictory information.
To get your original CSV data to work (after fixing color name) you just need to make sure to mention the proper "semicolon" separator character, instead of the default "comma":
have fun, and don't hesitate to share your work in the gallery : https://github.com/berteh/ScribusGenerator/wiki#gallery-of-examples--some-templates
from scribusgenerator.
Thanks for your quick response!
I used Excel (latest version I think) on Windows 11, with Swedish settings. The original csv file included some Swedish characters (å and ö), which I replaced in case that was the cause (Blue was Blå, and Green was Grön).
from scribusgenerator.
I got it working by just changing %VAR_color1% to %VAR_Color1%.
Sorry to take up your time with a typo. I am very thankful for your quick and friendly help!
from scribusgenerator.
great. by the way: sweedish characters should work without problems. I tested it in data and template at least... not in variables names yet, but it should be ok.
from scribusgenerator.
Related Issues (20)
- 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
- add support for inline images - add images dynamicaly into a text frame HOT 4
- 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
- s HOT 1
- Is it possible to print %VAR_COUNT%, also noted the duplication of a last entry in .csv HOT 1
- Variable substitution not working when hyphenation is active on text frame HOT 3
- Last row duplicates to fill the remaining placeholders in the template when using SG_NEXT-RECORD HOT 4
- Allow the CLI to generate PDFs HOT 1
- warn user for variables in template that do not appear in data columns
- Missing some texts from csv
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.