-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X12 - Segment ISA - Component element separator #246
Comments
The abstraction does not handle well the case of the X12 EDI format in terms of discovering the grammar by inspecting the first line (it was based on EDI Fact where it is simper). What needs to change:
The above also means that in the case of X12 either the grammar or the Stream reader should contain logic specific to X12 and not only relying of IGrammar as a configuration object. While this is not such a difficult task, it is tricky without introducing bloat. Also I have not found the time to update the codebase in quite some time. If it is something you are up then fell free to make a pull request and I will try to check it out. PS: As for the second question the delimiter is special since it is considered to be the "bounds" and not the "data" inside a component so it is escaped when read. This is the reason I describe that there is the need of custom logic for the case of X12 |
OK I understand. I am currently not at a level where I can contribute, I am still discovering the EDI format, and I am currently making the EDI 940 and 943 object models. (note: It not so easy to make reusable segment object through different document type) I will definitely try to contribute back later, once I really understand everything. |
Hi,
I am puzzled because the ISA "component element separator" cannot be read (at positiion 16)
The value is just
null
.However, by implementing the interface IEdiGrammar, it works if the function
IsSpecial
does not take care of the ComponentDataElementSeparator.Please could you help me to understand ? Is it a parser issue ?
Additionally, we are specifying the
ComponentDataElementSeparator
in the grammar instead reading it from the file. I am not sure if this is critical, but could be potentially annoying I suppose. (see #244)Thank you for your library and many thanks in advance for your answer.
The text was updated successfully, but these errors were encountered: