Comments (6)
In my opinion the \ide
tag is only valid in USFM, and not in USX or USFX.
The system should also behave as such:
- When converting from USFM, text is read accordingly
- When converting to USFM,
\ide UTF-8
is written and the file is written as UTF-8 - Neither USFX nor USX formats have any special logic concerning the
\ide
tag.
The only path where I am unsure is when you use ParatextConverter
to convert USFM to one of the other Paratext formats. In that case, ide
tag gets stored in the book attributes and may (did not verify this though) be written out to other Paratext formats. Pinging @Rolf-Smit as he overhauled the USFX/USX support in commit 891a996, which probably introduced this change.
from biblemulticonverter.
Thank you for confirming my suspicion.
@Rolf-Smit, do you remember why you added the '\ide` tag to the book attributes?
If not, I'll remove it (and the check to avoid writing it out for USFM export in
from biblemulticonverter.
Yes that was my thinking, but when converting from USFM to USX using ParatextConverter the ide
is getting written out as a para element:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<usx version="3.0"><book code="1CH" style="id">World English Bible (WEB)</book>
<para style="ide">UTF-8</para>
<para style="h">1 Chronicles</para>
<para style="toc1">The First Book of Chronicles</para>
I'm simply ignoring it now when converting to HTML but it might be good to get rid of in case future projects get stuck trying to parse it.
from biblemulticonverter.
@schierlm I don't remember why it was added. Maybe it was to preserve the original encoding? But that doesn't make sense anyways, since USFM is always written out as UTF-8 and other formats like USX must be written in UTF-8.
I would say, remove it.
from biblemulticonverter.
Thanks!
from biblemulticonverter.
It turns out apparently it is valid. I discovered that not all elements are documented but can still be found in the schema: https://github.com/ubsicap/usx/blob/master/schema/usx.rng
ide
is there, but as we discussed it doesn't really have any value as encoding is handled at the XML level, and if you want to convert back to USFM you could potentially choose whatever encoding you liked.
(no action needed, just thought I'd document this for future readers)
from biblemulticonverter.
Related Issues (20)
- 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 2
- Import Beblia xml bibles HOT 1
- Support OliveTree csv format HOT 2
- Support Olivetree format HOT 3
- Using a Property file to override values in the info table? HOT 3
- Update MyBibleZone verse tag parsing to conform to latest specification HOT 5
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.