Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 06:30
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Psword-0.7 gtkdialog bible reading software
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 4 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4
Author Message
corvan

Joined: 08 Mar 2010
Posts: 11

PostPosted: Mon 08 Mar 2010, 17:17    Post_subject: 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
Back to top
View user's profile Send_private_message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Mon 08 Mar 2010, 18:12    Post_subject: Re: How to delete a bible version?  

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 Smile
Back to top
View user's profile Send_private_message Visit_website 
disciple

Joined: 20 May 2006
Posts: 6463
Location: Auckland, New Zealand

PostPosted: Tue 09 Mar 2010, 01:15    Post_subject:  

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.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
corvan

Joined: 08 Mar 2010
Posts: 11

PostPosted: Wed 10 Mar 2010, 05:15    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
corvan

Joined: 08 Mar 2010
Posts: 11

PostPosted: Wed 10 Mar 2010, 05:23    Post_subject:  

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
Back to top
View user's profile Send_private_message 
corvan

Joined: 08 Mar 2010
Posts: 11

PostPosted: Sat 13 Mar 2010, 13:54    Post_subject: 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. Smile
Back to top
View user's profile Send_private_message 
Ibidem

Joined: 25 May 2010
Posts: 527
Location: State of Jefferson

PostPosted: Mon 07 Jun 2010, 01:52    Post_subject: 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/viewtopic.php?p=425102#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.
Back to top
View user's profile Send_private_message 
Ibidem

Joined: 25 May 2010
Posts: 527
Location: State of Jefferson

PostPosted: Thu 10 Jun 2010, 14:28    Post_subject: 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.
Back to top
View user's profile Send_private_message 
Ibidem

Joined: 25 May 2010
Posts: 527
Location: State of Jefferson

PostPosted: Thu 24 Jun 2010, 20:23    Post_subject: Here's a folding routine  

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:
#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:


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
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 19 Sep 2011, 16:16    Post_subject:  

updated to 0.7
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 4 of 4 Posts_count   Goto page: Previous 1, 2, 3, 4
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0730s ][ Queries: 13 (0.0058s) ][ GZIP on ]