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

Available parsers? #39

Open
fjellandermedia opened this issue Jul 29, 2019 · 4 comments

Comments

@fjellandermedia
Copy link

commented Jul 29, 2019

Excuse me if this is the wrong forum for this issue. If so, please close this thread (but I would in that case much appreciate a referral!)

I’m an independent developer in Sweden working a lot with different mobile and web apps för various church needs. I have encountered the USX format a few times already (developing apps for church needs often involved text from the Bible, who knew?!) and my own parsers of the USX data have been mediocre at best. To be fair I’m in no way an xml expert and my understanding of how to work with it is unfortunately limited.

So my question is: are there any resources available (parsers, xlst files or something) to convert USX format to html (preferably) or even plain text? I’ve seen Haiola, but it’s not entirely clear if that works flawlessly with USX since it’s built for USFX and I would also prefer something I can use in the command line (and I think Haiola is a gui app?). I’ve been duckduckgoing and googling all night but I haven’t found anything else. Any help would be greatly appreciated!

@jonBitgood

This comment has been minimized.

Copy link

commented Aug 1, 2019

It's about as basic as it gets but I've made a usx.xslt that's generally compatible with usx 3.0. It looks nice with the css from API.bible

It'd be nice to get a more functional version put together and pushed here.

@fjellandermedia

This comment has been minimized.

Copy link
Author

commented Aug 1, 2019

Wow, this is great, Jon! Thanks a lot! This goes a long way! I agree that it would be great if there could be any “official” and more functional version at this repo. Maybe even a couple of ones, so you could choose if you’d like verse numbers, comments inline, etc. I think a lot of implementations of bible text in one way or another includes showing it as html.

@jonBitgood

This comment has been minimized.

Copy link

commented Aug 1, 2019

I think you could do that with just a single source file and alter the bible.css? That way users could choose which variations they like without the loss of data. This open source bible reader operates in that way.

Anyways, I'll work on learning xslt and xpath to make a more functional version of the usx.xslt once it's more fleshed out I'll submit a pull request.

@klassenjm

This comment has been minimized.

Copy link
Contributor

commented Aug 1, 2019

@jonBitgood Thanks for replying. I have also inquired with some colleagues familiar with processing USX (including API.Bible). @fjellandermedia There is nothing else I can readily add to the repo here right now. I agree that it will be good to do so, and will welcome your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.