Giter VIP home page Giter VIP logo

Comments (7)

berteh avatar berteh commented on July 26, 2024

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.

berteh avatar berteh commented on July 26, 2024

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.

berteh avatar berteh commented on July 26, 2024

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.

image

so I'm really interested in knowing how you created that CSV file... please
Colorbug_fixed.csv
Colorbug_fixed.sla.txt
;)

from scribusgenerator.

berteh avatar berteh commented on July 26, 2024

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":

image

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.

magjo avatar magjo commented on July 26, 2024

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.

magjo avatar magjo commented on July 26, 2024

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.

berteh avatar berteh commented on July 26, 2024

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)

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.