Skip to content
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

Improved USFM validator/parser #26

Open
schierlm opened this issue Apr 17, 2019 · 1 comment
Open

Improved USFM validator/parser #26

schierlm opened this issue Apr 17, 2019 · 1 comment

Comments

@schierlm
Copy link
Owner

As noticed in #22, the current USFM importer can give unclear error messages when parsing malformed USFM files.

It would be great to have a validator module (similar to XML validators) that can parse the USFM file and output detailed information where (file name, line number) validation errors occur. It would probably also need some kind of electronic description of available tags and their parameter types.

@alerque
Copy link

alerque commented Apr 17, 2019

In my CI jobs that parse Bibles in active development, I use u2o to convert the USFM to OSIS, which is an XML dialect that can be validated against it's spec. This doesn't give very detailed information about the source line numbers etc., but it does give me a heads up when people start messing around with invalid syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants