Comments (5)
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.
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.
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.
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.
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)
- Not inserting verse end markers HOT 2
- From .chm format to EquipdEPUB format HOT 1
- Is `ide` valid in USX? HOT 6
- single line OSIS file output HOT 5
- Getting exception errors HOT 4
- Bible name not found HOT 4
- Issue using "-inline" to convert Bible with more than one verse per line HOT 2
- Trouble converting USFM with Strong's numbers to LogosHTML HOT 2
- Help with command line HOT 2
- USFM word level attributes not recognized when there are nested USFM tags HOT 2
- Markdown output format HOT 4
- Help with versification HOT 4
- theWord import: <WT*> tags not implemented HOT 4
- Importing interlinear information from MySword bibles HOT 4
- Export from Accordance 13.3.2 failing on macOS HOT 3
- Bibleworks to theword HOT 1
- MyBible (SQLite3) to ZefaniaXML error HOT 2
- EquipdEpub: mimetype should be stored uncompressed HOT 3
- CCEL's ThML xml? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biblemulticonverter.