Presentation Manager Bible Import

Bug #1321195 reported by Samuel Mehrbrodt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Confirmed
Wishlist
Unassigned

Bug Description

Samuel Mehrbrodt (sam92)
Changed in openlp:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Tomas Groth (tomasgroth) wrote :

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()

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.