For my XML work, I use a dedicated XML editor that understands these things (in my case, OxygenXML, a commercial product). Your challenge, then, is to get from one to the other. It reads the attributes such as bname, bnumber, cnumber, and vnumber to build the structure that is presented when you call up the Scripture Picker within OpenSong. That's the bare minimum that OpenSong needs. In other words, you have a tag that wraps tags that wrap tags, all within an tag. And God said, Let there be light: and there was light. And the Spirit of God moved upon the face of the waters. And the earth was without form, and void and darkness was upon the face of the deep. In the beginning God created the heaven and the earth. What you need to get it into is the hierarchical structure used by Zefania that shows the relationship between book, chapter, and verse in a slightly different way: This is basically a flat structure since every verse also has an element that indicates the book and chapter that it is from as well as the verse number and text. And the evening and the morning were the first day. Genesis 1 5 And God called the light Day, and the darkness he called Night. Genesis 1 4 And God saw the light, that it was good: and God divided the light from the darkness. Genesis 1 3 And God said, Let there be light: and there was light. Genesis 1 2 And the earth was without form, and void and darkness was upon the face of the deep. Genesis 1 1 In the beginning God created the heaven and the earth. If so, email me the complete text (on Gmail, I'm "opensong") and I will look at it over the next few days to see what I can come up with. I can try to get it into the Zefania format if you want me to attempt it. Even if that is the case, I'd probably still want to break it up because it would be less effort than writing the program code to identify it in the middle of the text stream. It's likely that each book would need to be processed separately and then combined at the end unless the books always have the book title centered and in capital letters as KENESE does here. It could be inferred by the verse number resetting to 1, though, and we can assume that chapters number sequentially from 1 to the last with no breaks. I don't see enough contextual clues to identify the start of a chapter. The verse format looks like it is regular, with a paragraph starting with a number or start-end followed by a space. I think this can be automated, but only to a certain extent. That is the biggest question and will help determine if the process is an easy one or a hard one. That means we need to determine if your file has a regular, standard organization. OpenSong only needs to read the file, so you could use the standard operating system security to restrict the user running OpenSong from writing or deleting the file.įirst, though, let us focus on getting your file into something OpenSong can use. In your current file, how do you indicate the books/chapters/verses? Is there something that every book has? Every chapter? Every verse? How do you know where one verse ends? If the file has a predictable pattern, we can find a way to transform it into Zefania format so you do not have to add markup tags to all 31,102 verses.Īs far as a "smart teenager" altering the file, truthfully, I have never considered that possibility. So, what we need to determine is how we can get from what you have now to this. The colors shown here are added by the discussion forum software for clarity they are not part of an XML file. The file is a standard text file (that is, something that Notepad can read, not. Each book has an assigned number (for the Protestant Bibles, sequential numbering from 1-66) and a name (you provide, since it is in the Bible's language), each chapter has a number, and each verse has a number. This shows the very minimum information needed by OpenSong. And there was evening and there was morning, one day. God called the light day, and the darkness He called night. God saw that the light was good and God separated the light from the darkness. Then God said, "Let there be light" and there was light. The earth was formless and void, and darkness was over the surface of the deep, and the Spirit of God was moving over the surface of the waters. In the beginning God created the heavens and the earth.
0 Comments
Leave a Reply. |