Psword-0.7 gtkdialog bible reading software

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#41 Post by plinej »

Well, I don't know about "GENIUS" but you're welcome.

JasonFruit
Posts: 15
Joined: Thu 18 Sep 2008, 17:26

One minor bug

#42 Post by JasonFruit »

I notice that in /usr/share/books, Habakkuk is spelled Habakuk, which makes it so no reference in that book can be retrieved. When I changed it, it worked fine; this might be a good thing to fix in future releases.

I remember when I was fairly young, the preacher asked me during the service to read from the book of Hezekiah . . . and I fell for it. He loved to play jokes on people. For some reason, Habakkuk always reminds me of that.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#43 Post by disciple »

You guys might be interested in xsword/cheatah, which is tiny, but quite basic http://www.murga-linux.com/puppy/viewto ... 610#303610
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#44 Post by plinej »

@ JasonFruit, thanks for letting me know about the Habakkuk book issue. I fixed it and posted an 0.6 version at the beginning of the thread.

danny0085

more recent books

#45 Post by danny0085 »

Here you can download more recent books (2008,2008,2010) http://tips-linux.net/en/books

corvan
Posts: 11
Joined: Mon 08 Mar 2010, 19:57

How to delete a bible version?

#46 Post by corvan »

Hi, I am new to linux and also with regard to Psword. Nice little program! I tried 3 or 4 bible translations - greek, which works perfectly, and also some german, with less success. GerHfa2002 just doen't display any text - is something missing? And how can I remove it from my system - I tried to delete the folder, using ROX, but for some reason the files where there again and again.
Perhaps somebody has an idea what else I should do.
Greetings, Corvan

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: How to delete a bible version?

#47 Post by ttuuxxx »

corvan wrote:Hi, I am new to linux and also with regard to Psword. Nice little program! I tried 3 or 4 bible translations - greek, which works perfectly, and also some german, with less success. GerHfa2002 just doen't display any text - is something missing? And how can I remove it from my system - I tried to delete the folder, using ROX, but for some reason the files where there again and again.
Perhaps somebody has an idea what else I should do.
Greetings, Corvan
You should be able to uninstall it via the puppy package manager.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#48 Post by disciple »

Did GerHfa2002 come as a Puppy package though, Ttuuxxx? I suspect not.
corvan - what path are you trying to delete it from? Maybe you have a frugal install and there are actually several paths to it, and the filesystem is getting confused. Otherwise I don't know what the problem could be... except a corrupt filesystem.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

corvan
Posts: 11
Joined: Mon 08 Mar 2010, 19:57

#49 Post by corvan »

Thanks for your quick reply!

to ttuuxxx: perhaps I should have made it clearer that I don't want to uninstall the whole program, it is just the module which doesn't work that I would like to get rid of.
Or is there I way to use the package manager for removing just one module? If so, please let me know
Corvan.

corvan
Posts: 11
Joined: Mon 08 Mar 2010, 19:57

#50 Post by corvan »

disciple wrote:Did GerHfa2002 come as a Puppy package though, Ttuuxxx? I suspect not.
corvan - what path are you trying to delete it from? Maybe you have a frugal install and there are actually several paths to it, and the filesystem is getting confused. Otherwise I don't know what the problem could be... except a corrupt filesystem.
When the first dialog box appeared, I used "Download a new sword bible module?" for downloading some modules.
When the GerHfa2002 version would not work, I couldn't find any uninstall
box, so I just followed the path shown under
"sword module directory", in my case /urs/share/sword.

I found a folder /usr/share/sword/modules/texts/ztext/gerhfa2002

and deletet it.

But when I now start the program, "select the bible module" still has the entry "Gerhfa2002" - so perhaps it is only the entry I still have to remove?
What is the "official" way to remove modules, if just deleting the folder
as mentioned above won't do it?

Corvan

corvan
Posts: 11
Joined: Mon 08 Mar 2010, 19:57

removing modules from sword

#51 Post by corvan »

I think I have found a solution how to remove an installed module.
Apart from removing the module itself there is a directory
usr/share/sword/mods.d
which contains a .conf file for all installed modules.
Once the gerhfa2002.conf file is removed, the start dialog box of sword
won't offer this module any longer. :)

Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

Bibleman (bible management from Psword) for xsword

#52 Post by Ibidem »

I've hacked Psword into a bible manager (named bibleman) for xsword.
It's not much, but it circumvents the need for diatheke when using xsword.

I posted it over here: http://www.murga-linux.com/puppy/viewto ... 102#425102

(I also included a few xsword/cheatah things--a binary for Lucid, a .desktop file, etc)

I still have to change version/name info; that was just the quick-and-dirty part that gets it working.

Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

Text wrapping

#53 Post by Ibidem »

Here's a quick-and-dirty way to do text wrapping in a terminal:
cat ~/.config/tmp/psword|head -n -1|xargs --delimiter="\n"|fold -s>folded

Note that it removes the version at the tail, via "head -n -1"; xargs handles removing the newlines, so you have a one-line file (you MUST use --delimiter="\n", to prevent it from failing on apostrophes or eating all the occurrences of n); and fold -s folds at spaces. If you remove xarg, it results in something where each verse has at least one line, and no two verses share a line (standard "unwrapped" representation).

You can use "cut -c -<number of chars> --complement" to remove the start of each string, I'd use cut -c -5 --complement (or -4) to handle "Acts", so you don't see the book at every verse. `echo $BOOK|wc -L` should give you the right number, roughly.

Ibidem
Posts: 549
Joined: Wed 26 May 2010, 03:31
Location: State of Jefferson

Here's a folding routine

#54 Post by Ibidem »

plinej wrote:0.5 is up. I've added a "view" button on the display screen that will send the output to geany. You will only see this button if geany is installed on your system. Geany will wrap the lines in its display. I can't figure out how to wrap lines in an "edit" window using an input file within gtkdialog. Maybe someone reading can figure it out. You'll find the code in version 0.5 at /usr/sbin/psword on lines 560 thru 565.
Version 0.6, insert after line 553:

Code: Select all

#Here begins the text folding
export LBOOK=`echo $BOOK|wc -L`
(cat $HOME/.config/tmp/psword |head -n -1 |cut -c -$LBOOK --complement|xargs --delimiter="\n"| fold -s)>$HOME/.config/tmp/psword-fold
#Here ends the folding routine. Change <input file> to psword to deactivate.
And also change what becomes line 566:

Code: Select all


export PSWORD5="
<window title="Psword-$VERSION "icon-name="gtk-index">
<vbox>
<frame $BOOK - chapter $CHAPTER - verse $VERSE - Version = $MODULE>

     <edit>
      <variable>INFO</variable>
      <input file>$HOME/.config/tmp/psword-fold</input>
      <width>600</width>
      <height>500</height>
    </edit>
I don't know gtkdialog, so it's just in shell script.
Ibidem

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#55 Post by plinej »

updated to 0.7

Post Reply