← Back to team overview

openlp-core team mailing list archive

[Bug 1321195] Re: Presentation Manager Bible Import

 

Had a quick look at the sample file. It is a zlib compressed text in widechar encoding. The bibleformat itself is more or less a verse per line, like this:
"Genesis 1

1:   In the beginning, God created the heavens and the earth.
2:   The earth was without form and void, and darkness was over the face of the deep. And the Spirit of God was hovering over the face of the waters."

The header of the file and between books there are some special "data fields".
The simple python script below decompresses and decodes a ".tbl" file:

import sys
import zlib

filename = sys.argv[1]
f = open(filename, 'rb')
deflated = zlib.decompress(f.read())
f.close()
out = open(filename + '.txt', 'wt')
out.write(deflated.decode('utf-16', 'replace'))
out.close()

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1321195

Title:
  Presentation Manager Bible Import

Status in OpenLP:
  Confirmed

Bug description:
  Example file is available here:
  http://support.openlp.org/scp/tickets.php?id=2318

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1321195/+subscriptions


References