Giter Club home page Giter Club logo

Comments (3)

schierlm avatar schierlm commented on May 26, 2024

Hello Phil,

To get rid of features, you can do a second conversion to StrippedDiffable format.

java -jar BibleMultiConverter-AllInOneEdition.jar SWORD modules\texts\ztext\arasvd StrippedDiffable tmp.txt StripFootnotes StripHeadlines StripFormatting

It will output what it stripped and what other features you could strip too (you can add as many features to strip to the end as you want to). In this example, footnotes headlines and formatting are stripped. Then convert as a second step from Diffable:

java -jar BibleMultiConverter-AllInOneEdition.jar Diffable tmp.txt ZefaniaXMLMyBible arasvd_zef.xml

bsname in Zefania XML is supposed to be (copied from the specification):

This attribute holds the book book name in short form, e.g. "Gen", in the language of the Bible book.

So, while bsname in an English Bible may be "Acts", it will be "Apg" for a German Bible. The way to detect it is actually the Book of Acts is via the bnumber attribute (which is 44).

However, you can use the attached XSL to rewrite the bsname based on bnumber if you prefer.

bsname-osis.xsl.zip

I'll leave this issue open - feel free to close it if it answers your questions :)

from biblemulticonverter.

j2l avatar j2l commented on May 26, 2024

I tried and I still get NOTE in the way.
It's not present in the tmp.txt so I guess it's added in the converter, only first verse of each chapter.
The other ZefaniaXML export still write bsname="Genesis" too.

Thank you so much for the xsl. Very useful indeed!

from biblemulticonverter.

schierlm avatar schierlm commented on May 26, 2024

Ah sorry, did not notice you used ZefaniaXMLMyBible format. If you do not want to import into MyBible (www.mybible.de) I would not recommend this format, as it contains several quirks to work around bugs in MyBible:

  • Prologs will be converted into footnotes (I guess this is what tripped you here; you can also StripPrologs with StrippedDiffable if you don't like them) as MyBible crashes on <PROLOG> tags
  • All footnotes get HTML encoded and get an extra <p></p> (as MyBible will HTML decode them before viewing)
  • Reordered (like, 1, 4, 2, 3, 5) or split verses (like 17a, 18a, 17b, 18b) will get merged to a single verse with the lowest verse number, and the "real" verse numbers get added in bold parentheses between the verses, as MyBible wants consecutive verse numbers only
  • whitespace between formatting or grammar tags will get replaced by unicode U+FEFF U+0020 (modifying zero witdh non breaking space followed by normal space) as the normal MyBible importer strips "normal" whitespace between tags, and afterwards strips zero width non breaking spaces, resulting in combining words).

So you'd probably have more work "fixing" these workarounds in your XSL later, than just starting with Zefania XML and implementing the workarounds yourself.

In case your only reason to use this format was to get OSIS-like IDs in the bsname, I guess it is easier to use my XSL instead :)

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.