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 Sep 2014, 16:09
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Pbdict - upgrade
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 5723
Location: Valåmoen, Norway

PostPosted: Sun 02 Sep 2007, 08:15    Post subject:  Pbdict - upgrade
Subject description: 2. sept
 

Just 4 minor changes:
- You can press enter after searchword to activate script.
- Exit button now works.
- Changed to gtkdialog3.
- Added icons to buttons.

Files should be placed in /usr/local/pbdict/.

Sigmund
pbdict.tar.gz
Description 
gz

 Download 
Filename  pbdict.tar.gz 
Filesize  1.2 KB 
Downloaded  913 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
nyu


Joined: 14 Mar 2006
Posts: 110
Location: good earth

PostPosted: Tue 16 Oct 2007, 03:40    Post subject:  

Hi Zigbert,

PBdict doesn't work under UTF-8. I want to use UTF-8 to translate
the menu in Japanese. It seems that you are using ISO-8859-1.
I did a simple experiment. I converted "gui.tpl" and "main.pb" to
UTF-8 by using "iconv". The menu is still in English because I didn't
translate anything but the coding is UTF-8 now. When I execute
the program, it won't generate "finalgui" file.
Can you help? Thanks in advance.

nyu
Back to top
View user's profile Send private message 
Henry

Joined: 29 Jul 2006
Posts: 829
Location: Oregon USA

PostPosted: Fri 19 Oct 2007, 21:34    Post subject:  

Hi, Zigbert,

Pressing enter after the searchword still eludes me. I attached a screen shot of a search for pbdict to show my folders. When I try your download of course it says the specified folder /usr/local/pbdict/ does not exist, shall I create it" etc. I've tried a number of variations unsuccessfully. Does this work in 3.01?

If I type pbdict into the console (before applying your upgrade) I get:
----------------------------------------------
# pbdict

(gtkdialog3:8325): Gtk-CRITICAL **: gtk_widget_grab_default: assertion `GTK_WIDGET_CAN_DEFAULT (widget)' failed
-----------------------------------------------
although Pbdict does run correctly as usual..

What can I do to make this work? Perhaps one day the same thing will work in Pfind ;-) Your writing of these handy programs is none the less appreciated - thanks.
pbdict.png
Description 
png

 Download 
Filename  pbdict.png 
Filesize  66.36 KB 
Downloaded  943 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
alienjeff


Joined: 08 Jul 2006
Posts: 2291
Location: Winsted, CT - USA

PostPosted: Fri 19 Oct 2007, 22:42    Post subject:  

Now you know why they call GUIs gooey. Now while we're all at the console, type:

Code:
dict word


and get

Code:
8 definitions found

From The Collaborative International Dictionary of English v.0.48 [gcide]:

  Word \Word\, n. [AS. word; akin to OFries. & OS. word, D. woord,
     G. wort, Icel. or[eth], Sw. & Dan. ord, Goth. wa['u]rd,
     OPruss. wirds, Lith. vardas a name, L. verbum a word; or
     perhaps to Gr. "rh`twr an orator. Cf. {Verb}.]
     [1913 Webster]
     1. The spoken sign of a conception or an idea; an articulate
        or vocal sound, or a combination of articulate and vocal
        sounds, uttered by the human voice, and by custom
        expressing an idea or ideas ... <snip>


Amazing! No fonts, icons or themes to worry about. But there's more. Try:

Code:
dict --h | more


Seems as though there's an awful lot of effort being put into simplifying something that's already quite simple - aka the complication of toast. Whatever happened to K.I.S.S.?

_________________
hangout: ##b0rked on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5723
Location: Valåmoen, Norway

PostPosted: Sat 20 Oct 2007, 02:23    Post subject:  

First! Pbdict is not my code. This is puppybasic, so I guess it is MU who has combined these chars. I only fixed some minor gui-stuff.

Henry wrote:
Pressing enter after the searchword still eludes me. I attached a screen shot of a search for pbdict to show my folders. When I try your download of course it says the specified folder /usr/local/pbdict/ does not exist, shall I create it" etc. I've tried a number of variations unsuccessfully. Does this work in 3.01?


You guys who got english as your main language are sometimes much harder to understand than guys from somewhere-else-out-there.
Our english sucks, but are simple.......We are just don't good enough. Crying or Very sad Embarassed Confused Smile Very Happy

Dear Henry.
I have read this over and over, but still don't figure out what the problem is. What is not working? What is downloaded? What eludes you?

Best wishes
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
Henry

Joined: 29 Jul 2006
Posts: 829
Location: Oregon USA

PostPosted: Sat 20 Oct 2007, 09:03    Post subject:  

Dear Sigmund,

I will try to be very clear. In your opening post you wrote:
"- You can press enter after searchword to activate script."

This does not work for me, although you have written on a couple of occasions that it now should. That's why I wrote. The reason I originally suggested this gui change for Pbdict, Pfind, even PSI is simply user convenience, sometimes called "human factors" in design. When one has typed in a search term, it's preferable to simply continue to type the "enter" key (as in Google, e.g.) than to have to reach for the mouse to enter. I have noted before that this is a small, but annoying thing to the typical user, e.g. a writer like me, who uses it a lot, but certainly in the gui, not the cli.

The reason I included the screen shot and the console output was to possibly help in determining why it doesn't work in my Puppy.

Pdict is a wonderful facility, wherever it came from (as apparently Alienjeff agrees ;-) But I understood this modification came from you.

Henry
Back to top
View user's profile Send private message Visit poster's website 
alienjeff


Joined: 08 Jul 2006
Posts: 2291
Location: Winsted, CT - USA

PostPosted: Sat 20 Oct 2007, 09:27    Post subject:  

@Henry:

I prefer "dict" to "PBdict." As a matter of fact, I can't remember the last time I used PBdict, though it must be well over a year ago.

I've got my F4 key assigned to open a console*, so when I need a definition, I hit F4 and type: dict word <enter>. No mouse manipulation or cursor aiming/placement. I can leave my hands on the keyboard where the work gets done. My point is that with PBdict, I have to type the word in anyways, so why needlessly bother with mouse shenanigans and just cut to the chase?

The mouse-GUI thing could be taken to the extreme here with a radio button for each letter of the alphabet. That way we could cater to hunt-and-peckers who refuse to learn touch typing. And think of the boon that would ultimately be down the road for surgeons specializing in carpal tunnel syndrome!

Guess I forgot to tag </sarcasm> to the end of my previous post - or for the emoticon-addicted, Rolling Eyes

* F4 console key binding from ~/.jwm/jwmrc-personal:
Code:
<Key key="F4">exec:rxvt</Key>     <!-- start rxvt console -->

_________________
hangout: ##b0rked on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
Henry

Joined: 29 Jul 2006
Posts: 829
Location: Oregon USA

PostPosted: Sat 20 Oct 2007, 10:05    Post subject:  

Thanks for the tip, alienjeff.

I like it.
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5723
Location: Valåmoen, Norway

PostPosted: Sat 20 Oct 2007, 11:46    Post subject:  

ok Henry - I got you. Wink

I made those changes in Puppy 2.17, and it runs gtk 2.8. The new Puppy 3 has upgraded to gtk 2.10, and I guess that is the reason why it doesn't work correct here. I haven't got the time to investigate this issue more. Unfortunatly, there have been some gtkdialog-issues with Puppy 3.

Thanks for clear explanation
Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Mon 18 Jul 2011, 17:15    Post subject: Re: Pbdict - upgrade
Subject description: 2. sept
 

zigbert wrote:
Just 4 minor changes:
- You can press enter after searchword to activate script.
- Exit button now works.
- Changed to gtkdialog3.
- Added icons to buttons.

Files should be placed in /usr/local/pbdict/.

Sigmund


Thanks for this, Sigmund! and thanks to MU for the original. Cool
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0808s ][ Queries: 12 (0.0090s) ][ GZIP on ]