Author |
Message |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Wed 08 Oct 2008, 20:31 Post subject:
Psword-0.7 gtkdialog bible reading software Subject description: uses the sword libraries also posted here |
|
Here's a simple gtkdialog program for bible reading using the sword library. It uses the cli tool "diatheke" from the sword package as a backend. The gui will display selected chapters/verses from the selected book using gtklogfileviewer. It has a phrase search option and can be used to download sword bible modules. You will need to install the sword package and the psword package to use it. Psword will be in your "Personal" menu. Sword will make the module install path /usr/share/sword as the default but you can move that to another location if you wish. You will just need to select that location from within the psword gui.
I thought a simple gtkdialog program would be nice to have since all I can find requires gnome (gnomesword), kde (bibletime), or java (jsword). It isn't fancy but it serves its purpose. If anyone uses it please let me know if you find any bugs or want anything added to it.
0.7 - Added a way to remove modules from within the gui as well as alphabetizing the bookmarks and a way to edit bookmarks from within the gui. Created an English .mo file so if anyone wants to internationalize this it'll be easier. Added Ibidem's fix to wrap the lines in the gtkdialog display. Cleaned up the code a bit.
I also compiled the latest sword library. The script will work with either sword package.
 |
Description |
|

Download |
Filename |
psword-0.7.pet |
Filesize |
11.17 KB |
Downloaded |
1166 Time(s) |
Description |
|

Download |
Filename |
sword_dev-1.5.11.pet |
Filesize |
77.24 KB |
Downloaded |
1027 Time(s) |
Last edited by plinej on Mon 19 Sep 2011, 16:15; edited 6 times in total
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Wed 08 Oct 2008, 20:36 Post subject:
|
|
Here's a picture of the 1st dialog box.
If you don't have any sword modules installed you can check the box for "Download a new sword bible module?" and click ok. From there you can select the language and then select the bible you want to download.
Otherwise, select your book and bible version and then click ok to go to the 2nd dialog box below.
Description |
|
Filesize |
20.28 KB |
Viewed |
4258 Time(s) |

|
Last edited by plinej on Wed 08 Oct 2008, 20:42; edited 2 times in total
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Wed 08 Oct 2008, 20:37 Post subject:
|
|
Here's a picture of the 2nd dialog box.
Here you will see the book and bible versions selected from the previous dialog. You can now select the chapter (all is the default) and then enter a verse or a range of verses (e.g. 3-6). Leave the search box blank if you want to display the selections and click ok. You will then get a gtklogfileviewer popup displaying the selected chapters/verses. If you enter a word/phrase in the search box and then click ok you will get a gtklogfileviewer popup displaying all the verses found that meet your search criteria.
Description |
|
Filesize |
18.68 KB |
Viewed |
4758 Time(s) |

|
|
Back to top
|
|
 |
bones01
Joined: 11 Aug 2008 Posts: 374 Location: Melbourne, Aus
|
Posted: Mon 13 Oct 2008, 18:01 Post subject:
|
|
It seems to be working fine for me. I've downloaded a greek bible, which will be handy to have, but it's all gibberish. If I need to install a Greek font, can you let me know if I need a specific one please?
Thanks.
Also downloaded ESV module. That has some strange characters come up as well, but is readable between them.
Thanks for making this available. I've been trying to find something like this for a while and kept getting lost in the forums.
_________________ Dell Latitude D630 running Puppy 5.2.8 frugal, Macpup 525 frugal (if I can get it working again. Sadly, I couldn't get it fixed )
Precise Puppy 5.4 live DVD
Precise 5.7.3 on USB
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Mon 13 Oct 2008, 19:45 Post subject:
|
|
What module did you download besides ESV? Which locale do you use in Puppy? There is a locale switch in diatheke but I'm not sure if it'll help or not. Try this at the command line:
diatheke -b (module name - e.g. ESV) -o fmnx -k Jn 3:16
and then:
diatheke -b (module name - e.g. ESV) -o fmnx -k Jn 3:16 -l (your locale abbreviation - e.g. en)
See if there's a difference between the two. If the forced locale helps out I can change a bit of code and post a 0.2 version.
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Tue 14 Oct 2008, 04:38 Post subject:
|
|
This looks like the start of something really interesting, Do you think you might make a full GUI with highlight, bookmarks and maybe printing?
just wondering, I might be asking too much at this point, But anyways very good work.
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Tue 14 Oct 2008, 09:33 Post subject:
|
|
Those are good ideas and I'll certainly consider them. Hopefully I'll have some spare time for those improvements.
|
Back to top
|
|
 |
KF6SNJ
Joined: 19 Jun 2007 Posts: 698 Location: Distressed States of Amerika
|
Posted: Tue 21 Oct 2008, 00:55 Post subject:
|
|
I decided to try this on Puppy 4.1 as it was suggested that perhaps Psword could be used in ChurchPup Concordia Edition. Unfortunately, I tried to install the ESV bible and it made about seven or eight attempts before I stopped it. I think that there may yet be some work to do. I will watch how development goes. I won't include in the version of Concordia I am presently working on, but as it progresses, I may consider it in the future. It does hold a lot of promise. I look forward to watching its progress. Who knows, it could eventually become a hightly viable alternative to BibleDesktop. Please keep me posted.
_________________ The only windows I have are those on my home.
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Tue 21 Oct 2008, 10:07 Post subject:
|
|
I'm unsure what problem you're encountering. The ESV bible downloads and installs fine for me (as do countless others that I've tried). Try starting psword from rxvt and post whatever errors are displayed.
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Tue 21 Oct 2008, 10:53 Post subject:
|
|
While I'm waiting for KF6SNJ's reply I thought that maybe the problem could be that www.crosswire.org was down or possibly no internet connection was present when trying to download a bible module. I added a little code that will ping www.crosswire.org first before trying to connect. That will be in 0.2 but I'll wait to see if there's possibly another issue first.
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Tue 21 Oct 2008, 19:24 Post subject:
|
|
Alright, I posted a 0.2 version. Give this one a try and post your results please. I added the ping check to www.crosswire.org when attempting to download a module. I also added the ability to bookmark and exporting to leafpad for printing.
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Wed 22 Oct 2008, 02:20 Post subject:
|
|
plinej wrote: | Alright, I posted a 0.2 version. Give this one a try and post your results please. I added the ping check to www.crosswire.org when attempting to download a module. I also added the ability to bookmark and exporting to leafpad for printing. | Maybe you could export it to Abiword instead? The reason is for maps? Oh by the way do the map files work on here also like Bibletime,? I don't use them, but I'm sure others might.
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Wed 22 Oct 2008, 08:45 Post subject:
|
|
0.3 is up
Okay, I changed it so it exports to abiword for printing. I'm not sure what you mean by the "map files".
|
Back to top
|
|
 |
KF6SNJ
Joined: 19 Jun 2007 Posts: 698 Location: Distressed States of Amerika
|
Posted: Wed 22 Oct 2008, 09:31 Post subject:
|
|
I used Opera to check the crosswire site, so it was not my internet connection or the crosswire site. I am wondering if the download was not 100% complete (never mind that I used wget to get the program). I will check out the 0.3 release this weekend. I think being able to ping crosswire will help. However, I have noticed that Psword is not setup to access crosswire beta. This is a feature that would be needed in Concordia. Also, being able to display maps would be very handy.
_________________ The only windows I have are those on my home.
|
Back to top
|
|
 |
plinej
Joined: 13 Aug 2006 Posts: 1554
|
Posted: Wed 22 Oct 2008, 09:51 Post subject:
|
|
Alright, I'm awaiting your response to figure out why you can't download a module using psword. The program just uses wget to download the modules that are all listed at /usr/share/psword/repos. I'll look into the maps that you guys are talking about but I'm not sure what they are right now. I'll go to crosswire.org and see if I can figure out what you're talking about.
|
Back to top
|
|
 |
|