Automating Bible PBB from XML

Page 1 of 1 (6 items)
This post has 5 Replies | 1 Follower

Posts 27
Tim Sikkema | Forum Activity | Posted: Mon, May 19 2014 4:39 AM

Some time ago I made a PBB Bible in Tok Pisin (a.k.a. "Pidgin," the creole of Papua New Guinea). It works quite nicely. However, it turns out that my source files had mistakes, and also, there were some other features that were missing (e.g. paragraphing, headings, cross-references). I have recently found an updated text with all of those features (freely available and shareable online, and I have secured permission to share in Logos as well), so I'd like to re-work that into a Logos Personal Book. There are also other languages of the South Pacific with Bible translations readily available that could be turned into Logos Personal Books.

I don't have any programming knowledge myself. When I initially made my PBB Bible, I used Word and Excel, a bit of trial and error (OK... a lot!), and a lot of find and replace with wildcards. I could go through that whole process again (and probably more quickly this time), but I'd like to know if anyone already has a way to automate the process. But I suppose that would depend a whole lot on the format of the source file. If the Tok Pisin Bible can be converted, then, I imagine, with minimal extra effort, all those other South Pacific Bibles (in the same XML format) could also be converted.

Below is a selection of the first few verses of the Bible as I received it in XML:

<?xml version="1.0" encoding="UTF-8"?><usfx xmlns:xsi="http://eBible.org/usfx.xsd" xsi:noNamespaceSchemaLocation="usfx.xsd"><languageCode>tpi</languageCode><book id="GEN"><id id="GEN">Tok Pisin Bible

</id><ide charset="65001">- Unicode (UTF-8)</ide><h>STAT

</h><toc level="1">Stat bilong Olgeta Samting

</toc><toc level="2">Stat

</toc><toc level="3">Stt

</toc><p sfm="mt">Stat bilong Olgeta Samting

</p><p sfm="mt" level="2">o

</p><p sfm="mt" level="2">Jenesis

</p><p sfm="imt">Tok i go pas

</p><p sfm="ip">Dispela buk i stori long as o stat bilong olgeta samting. 

*** I CUT PART OF THE INTRODUCTION HERE ***

Dispela buk i stori long bilip bilong ol manmeri bilong bipo tru, bai ol lain i kamap bihain, ol tu i ken ritim na i stap strong long bilip.

</p><c id="1"/>

<p sfm="ms">God i mekim kamap olgeta samting

</p><p sfm="mr">(Sapta 1-2)

</p><s>Stori bilong God i mekim kamap olgeta samting

</s><p><v id="1"/>Bipo

<x caller="-">

<xo>1.1

</xo><xt><ref tgt="ISA.44.24">Ais 44.24</ref>, <ref tgt="JHN.1.1">Jo 1.1</ref>, <ref tgt="JHN.1.3">1.3</ref>, <ref tgt="HEB.1.10">Hi 1.10</ref></xt></x> bipo tru God i mekim kamap skai na graun na olgeta samting i stap long en.

<ve/><v id="2"/>Tasol<fig><description>19</description><catalog>HK 29C</catalog><size>Span</size><location/><copyright/><caption>Graun i stap nating na i narakain tru.</caption><reference>(1.2)</reference></fig> graun i no bin i stap olsem yumi save lukim nau. Nogat. Em i stap nating na i narakain tru. Tudak i karamapim bikpela wara na spirit bilong God i go i kam antap long en. <ve/><v id="3"/>Na

<x caller="-">

<xo>1.3

</xo><xt><ref tgt="2CO.4.6">2 Ko 4.6</ref></xt></x> God i tok olsem, Orait lait i kamap.

<ve/><v id="4"/>God i lukim lait i gutpela, na em i amamas. Na em i brukim tudak na tulait.

<ve/><v id="5"/>Tulait em i kolim na tudak em i kolim Nait i go pinis na moning i kamap. Em i de namba wan.

<ve/></p><p><v id="6-7"/>Bihain

<x caller="-">

<xo>1.6-8

</xo><xt><ref tgt="2PE.3.5">2 Pi 3.5</ref></xt></x> God i tok olsem, Orait dispela banis i kamap. God i mekim dispela banis i kamap bilong banisim wara antap na wara daunbilo.

<ve/><v id="8"/>Na dispela banis em i kolim Nait i go pinis na moning i kamap. Em i de namba 2. 

Posts 2692
DominicM | Forum Activity | Replied: Mon, May 19 2014 4:45 AM

if you could post it in files forum or email it to me at pbb_stuff AT domisoft DOT co DOT uk
I am happy to see if I can help, no guarantees.. but happy to try

Never Deprive Anyone of Hope.. It Might Be ALL They Have

Posts 27
Tim Sikkema | Forum Activity | Replied: Mon, May 19 2014 4:53 AM

DominicM:

if you could post it in files forum or email it to me at pbb_stuff AT domisoft DOT co DOT uk
I am happy to see if I can help, no guarantees.. but happy to try

Thanks, I'll email you.

Posts 1
Jeremy Dion | Forum Activity | Replied: Mon, Nov 13 2017 4:27 AM

Hi there! I will be moving to Papua New Guinea and learning Tok Pisin. If you have these resource (Tok Pisin Bible), would you be able to share it with me in a way that I can import into my Logos Personal Books?

Posts 2851
Sascha John | Forum Activity | Replied: Mon, Nov 13 2017 4:45 AM

Fastest way I know is copy and Past into the Fields

2330.0741.Bible.docx

Posts 2692
DominicM | Forum Activity | Replied: Thu, Nov 30 2017 4:36 PM

Here is the Tok Pisin (New Testament only), but don't have any way of verifying accuracy of original source

2055.tpi-output.docx

Never Deprive Anyone of Hope.. It Might Be ALL They Have

Page 1 of 1 (6 items) | RSS