Presentation Manager Bible Import
Bug #1321195 reported by
Samuel Mehrbrodt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenLP |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Example file is available here: http://
Changed in openlp: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
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.read( )) deflated. decode( 'utf-16' , 'replace'))
f = open(filename, 'rb')
deflated = zlib.decompress
f.close()
out = open(filename + '.txt', 'wt')
out.write(
out.close()