Psword-0.7 gtkdialog bible reading software
-
- Posts: 15
- Joined: Thu 18 Sep 2008, 17:26
One minor bug
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.
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.
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
more recent books
Here you can download more recent books (2008,2008,2010) http://tips-linux.net/en/books
How to delete a bible version?
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
Perhaps somebody has an idea what else I should do.
Greetings, Corvan
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
Re: How to delete a bible version?
You should be able to uninstall it via the puppy package manager.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
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
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.
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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.
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.
When the first dialog box appeared, I used "Download a new sword bible module?" for downloading some modules.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 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
removing modules from sword
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.
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.
Bibleman (bible management from Psword) for xsword
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.
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.
Text wrapping
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.
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.
Here's a folding routine
Version 0.6, insert after line 553: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.
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.
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>
Ibidem