Giter Club home page Giter Club logo

Comments (9)

benisantos avatar benisantos commented on August 13, 2024 1

I've tried version 1.9.5-SNAPSHOT from master and it works as expected! Thank you so much @MikeEdgar

from staedi.

MikeEdgar avatar MikeEdgar commented on August 13, 2024

Hi @benisantos - is there any way your clients can disable the repetition separator in the UNA? by sending a space? The trouble is that the documentation says it is not used, but then tells you to send a value in UNA :-)

from staedi.

benisantos avatar benisantos commented on August 13, 2024

No, I'm afraid not. There are several clients acting like that, and there is a legacy app supporting those things... :(

from staedi.

MikeEdgar avatar MikeEdgar commented on August 13, 2024

@benisantos - I can add the ability to force the value of a delimiter, i.e. setting the repetition character to a blank space in this case would work. Until that is ready, do you have any way to change that position of the UNA to a blank space prior to parsing it?

from staedi.

benisantos avatar benisantos commented on August 13, 2024

Perfect @MikeEdgar ! In the meantime, we will preprocess the file to "hack" the UNA segment :)

Thank you so much.

from staedi.

MikeEdgar avatar MikeEdgar commented on August 13, 2024

@benisantos - my plan for implementing this change is to only allow the repetition separator to be used if the EDIFACT version is 4 or later (UNB element 1, component 2). This means if you write a UNA segment directly or by overriding the delimiters when writing with the EDIStreamWriter, it will result in a blank written in the UNA for the repetition character. This is the documented use for the UNA prior to EDIFACT version 4. Given that the repetition character is supposed to be ignored for PADIS, this should not be an issue.

Please let me know if you see any issues with that approach.

from staedi.

MikeEdgar avatar MikeEdgar commented on August 13, 2024

@benisantos - I also now noticed that although the documentation states the repeater is not used and does not need to be escaped, the first example shown in the document shows the repeater being escaped...

The existing unit test that used that example was updated for this change: https://github.com/xlate/staedi/pull/81/files#diff-4699360291fcb4eb52a263e42c556afc

from staedi.

MikeEdgar avatar MikeEdgar commented on August 13, 2024

@benisantos - version 1.10.0 has been released with this change included.

from staedi.

benisantos avatar benisantos commented on August 13, 2024

Thank you again @MikeEdgar

from staedi.

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.