The time now is Mon 23 Apr 2018, 04:27
All times are UTC - 4 |
Author |
Message |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: 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
Description |
|

Download |
Filename |
pbdict.tar.gz |
Filesize |
1.2 KB |
Downloaded |
1126 Time(s) |
|
Back to top
|
|
 |
nyu

Joined: 14 Mar 2006 Posts: 110 Location: good earth
|
Posted: 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
|
|
 |
Henry
Joined: 29 Jul 2006 Posts: 865 Location: Oregon USA
|
Posted: 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.
Description |
|

Download |
Filename |
pbdict.png |
Filesize |
66.36 KB |
Downloaded |
1167 Time(s) |
|
Back to top
|
|
 |
alienjeff

Joined: 08 Jul 2006 Posts: 2291 Location: Winsted, CT - USA
|
Posted: 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:
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:
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
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: 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.
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
|
|
 |
Henry
Joined: 29 Jul 2006 Posts: 865 Location: Oregon USA
|
Posted: 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
|
|
 |
alienjeff

Joined: 08 Jul 2006 Posts: 2291 Location: Winsted, CT - USA
|
Posted: 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,
* 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
|
|
 |
Henry
Joined: 29 Jul 2006 Posts: 865 Location: Oregon USA
|
Posted: Sat 20 Oct 2007, 10:05 Post subject:
|
|
Thanks for the tip, alienjeff.
I like it.
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Sat 20 Oct 2007, 11:46 Post subject:
|
|
ok Henry - I got you.
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
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: 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.
|
Back to top
|
|
 |
|
|
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
|