Giter Club home page Giter Club logo

Comments (5)

Rolf-Smit avatar Rolf-Smit commented on June 16, 2024 1

I may be able to work on this, I have some custom software for my Bible app that can handle these open and close tags, including nesting. However I'm not sure how much work it would be to get that I to this.

I also have a USFM tool that I call a cleaner/normalizer, that is able to filter out these tags from USFM files.

Maybe I could opensource that and you (@shadow-light) would be able to filter them out, is that sufficient?

But I need some time to look into both things.

from biblemulticonverter.

schierlm avatar schierlm commented on June 16, 2024 1

The tag names themselves, i.e, \fig or \va get skipped. Their arguments get written out as plain text. And a warning is issued.

So, in the example from the documentation

\v 1 \va 3\va* Save me by your power, O God;

The number 3 will become part of the verse text of verse 1.

from biblemulticonverter.

schierlm avatar schierlm commented on June 16, 2024

Due to the fact that tag structure in USFM is not as unified as you might like, it would require special casing for the "unsupported" tags. Currently, everything from the backslash to the first non-letter character is skipped. For \fig, you would probably want to skip to the next \fig*, yet for \qs-s you will probably skip to either the following \* or to the \* after the next \qs-e.

That being said, I am not interested in implementing these (or any other) advanced USFM tags, not even to the extent to improve skipping them. If anyone wants to tackle this, patches are of course welcome.

from biblemulticonverter.

shadow-light avatar shadow-light commented on June 16, 2024

No problem, yes I'm also happy to help work on this if needed. If it is fairly simple I could do a PR for this tool. Or if it's complex, a tool to normalize USFM before passing to BibleMultiConverter could also be good.

from biblemulticonverter.

shadow-light avatar shadow-light commented on June 16, 2024

To clarify on the lack of support for ca cp va vp fig fm. Is it just fig that gets written out? Or do the others get included as plain text as well?

It should be fairly trivial just to remove fig instances with a simple regex, so I'll just do that for my use case. I suppose it would be nice to support these tags for conversion to USX at least for completeness one day.

from biblemulticonverter.

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.