How about a .pet of Artha thesaurus / dictionary?

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

xclip -> thesaurus

#16 Post by mcewanw »

That works really well, thanks. I forgot about xclip; I used that (or maybe xsel) myself a year or so ago in something I was working on (foksyfeyer - a screen reader+espeak configured assembly of console apps for Puppy).
github mcewanw

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#17 Post by jakfish »

Now I'm a little lost.

How do I connect your original command of:

<Key mask="A" key="t">exec:gaiksaurus</Key>

to your nifty script?

Apologies for my hard-of-thinking,
Jake

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

#18 Post by mcewanw »

First you create an executable shell script called thesaurus using the new code provided by technosaurus.

Then you put that shell script in /usr/local/bin

then you use:

<Key mask="A" key="t">exec:thesaurus</Key>

[instead of exec:gaiksaurus]
github mcewanw

jakfish
Posts: 762
Joined: Fri 18 Jul 2008, 19:09

#19 Post by jakfish »

Many thanks. I will give this a whirl.

Jake

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#20 Post by technosaurus »

I made a pet here:
http://www.murga-linux.com/puppy/viewtopic.php?t=49249

It can also do text to speech and google search from the clipboard
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Artha works fine in dPup 482beta4

#21 Post by mikeslr »

Thank you sikpuppy for creating the Artha pet, and thank you mcewanw for bringing it to my attention.

Though still in beta, gposil's dpup482 is stable and may be the fastest puplet I've used. Abiword 2.80, its default wordprocessor, doesn't have a thesaurus. Intending to ask gposil about it, I accidentally clicked new topic, and mcewanw, replying, called Artha to my attention. As I indicated in my response to his reply, I'm reporting, after installation, that Artha runs fine under dpup.

A couple of questions, however. Sikpuppy's first message was

"You[b] may [/b] need to do this first:Click" {Emphasis mine} which when done opens to:
"Type about:config in the URL box.
Enter: general.useragent.extra.seamonkey in the filter box.
Double click on the entry.
Change the entry in the popup box to Firefox.
Have fun!"

As I mentioned, on my system Artha runs fine without it, i.e., opens, works, stays in memory, is called up with Alt-Ctl-w. I assume the instructions were to customize Seamonkey or Firefox. What are they supposed to do? and when are they needed? By not doing that, am I missing out on some functionality?

As mentioned, Artha stays resident in memory. Is there some way to turn it off, other than thru pprocess?

Thanks,

Mikeslr

User avatar
sikpuppy
Posts: 415
Joined: Sun 29 Mar 2009, 05:54

Re: Artha works fine in dPup 482beta4

#22 Post by sikpuppy »

mikeslr wrote:Thank you sikpuppy for creating the Artha pet, and thank you mcewanw for bringing it to my attention.

Though still in beta, gposil's dpup482 is stable and may be the fastest puplet I've used. Abiword 2.80, its default wordprocessor, doesn't have a thesaurus. Intending to ask gposil about it, I accidentally clicked new topic, and mcewanw, replying, called Artha to my attention. As I indicated in my response to his reply, I'm reporting, after installation, that Artha runs fine under dpup.

A couple of questions, however. Sikpuppy's first message was

"You[b] may [/b] need to do this first:Click" {Emphasis mine} which when done opens to:
"Type about:config in the URL box.
Enter: general.useragent.extra.seamonkey in the filter box.
Double click on the entry.
Change the entry in the popup box to Firefox.
Have fun!"

As I mentioned, on my system Artha runs fine without it, i.e., opens, works, stays in memory, is called up with Alt-Ctl-w. I assume the instructions were to customize Seamonkey or Firefox. What are they supposed to do? and when are they needed? By not doing that, am I missing out on some functionality?

As mentioned, Artha stays resident in memory. Is there some way to turn it off, other than thru pprocess?

Thanks,

Mikeslr
That's to get the browser to connect properly to the SKydrive upload site, it has nothing to do with Artha. Skydrive doesn't accept Seamonkey as a browser so to download any of my files you need to change that setting.

All it does is pretend Seamonkey is Firefox for the purposes of connecting to sites that are pedantic about that sort of thing.
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

How to turn-off Artha?

#23 Post by mikeslr »

Hi sikpuppy:

Thanks for the response to my previous question. As I mentioned, Artha stays resident in memory unless pprocess is call up and Artha is terminated using it. Both my Desktop and my Laptop have 1 Gig or more of Ram, so for me the memory usage isn't particularly important. However, others with less robust systems may wonder if there was a more elegant way to remove it from memory. If not, perhaps you may consider including that option in the future.

[p.s. I posted the same question on Launchpad-Artha. I'll advise if I get a response.]

Thanks again,

Mike

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

Re: How to turn-off Artha?

#24 Post by mcewanw »

mikeslr wrote:However, others with less robust systems may wonder if there was a more elegant way to remove it from memory.
Just the usual way for apps that stay resident on the tray/taskbar: you right click the icon and select "Quit". At least that is how it works in JWM (Puppy 4.3.1).
github mcewanw

saima122
Posts: 2
Joined: Wed 24 Feb 2010, 10:58

#25 Post by saima122 »

u can also find urdu to eng dictionary from here....

english to urdu dictionary

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#26 Post by technosaurus »

I saw that a new version of artha was recently released, but after learning that it used wordnet, I instead hacked together this little one-liner:

here are my first attempts in case they are useful

Code: Select all

wget -q -O - http://wordnetweb.princeton.edu/perl/webwn?s=$1 |sed "s/<li>/\n<li>/g" | sed "s/<\/ul>/\n/g" |grep "<li>" >/tmp/word.html && defaulthtmlviewer /tmp/word.html

#or this to view as a tailbox 

wget -q -O - http://wordnetweb.princeton.edu/perl/webwn?s=$1 |sed "s/<li>/\n<li>/g" | sed "s/<\/ul>/\n/g" |grep "<li>" |sed "s/<[^>]*>//g" |Xdialog --tailbox - 0 0

#or defaulttextviewer
wget -q -O - http://wordnetweb.princeton.edu/perl/webwn?s=$1 |sed "s/<li>/\n<li>/g" | sed "s/<\/ul>/\n/g" |grep "<li>" |sed "s/<[^>]*>//g" |sed "s/S: //g" >/tmp/word.txt && defaulttextviewer /tmp/word.txt
but then I remembered my gaiksaurus script

Code: Select all

#!/bin/sh
if [ ! $1 ];then
MYWORD=`xclip -o`
else
MYWORD=$@
fi
gaiksaurus $MYWORD
but sometimes the clipboard has something you don't wan't so I settled on this (you can paste into the dialog)

Code: Select all

#!/bin/sh
if [ ! $1 ];then
MYWORD=`Xdialog --stdout --title "Psaurus" --inputbox "Enter a word to look up." 0 0`
else
MYWORD=$@
fi
wget -q -O - http://wordnetweb.princeton.edu/perl/webwn?s=$MYWORD |sed "s/<li>/\n<li>/g" | sed "s/<\/ul>/\n/g" |grep "<li>" |sed "s/<[^>]*>//g" |sed "s/S: //g" >/tmp/word.txt && defaulttextviewer /tmp/word.txt
(it is up to you if you want to turn on word wrap in your text viewer)

and I went ahead and made a command line version since all I had to do was change Xdialog to dialog and delete from the ">" on

(to get a navigable page instead of just text in psaurus change the last line to defaulthtmlviewer http://wordnetweb.princeton.edu/perl/webwn?s=$MYWORD)

... anyhow here is a pet package (sorry no menu entry)
Attachments
psaurus.png
(12.79 KiB) Downloaded 1478 times
Psaurus-0.1.pet
(620 Bytes) Downloaded 910 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Artha thesaurus --works great in 2012 Pups

#27 Post by mikeslr »

Hi all,
Just wanted to mention that this build still works great in the latest Slacko, Precise, OV-Precise, and Exprimo.

mikesLr

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#28 Post by technosaurus »

Wordnet 3.1 was published without announcement a month or 2 ago. I wrote the beginnings of a script to parse the dictionary into C code (not complete, but the idea was to be able to build it as a fast, single portable static executable). Is there any desire for such a beast? ... I totally forgot about Psaurus; does it need any updates?
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
6502coder
Posts: 677
Joined: Mon 23 Mar 2009, 18:07
Location: Western United States

Re: Artha thesaurus --works great in 2012 Pups

#29 Post by 6502coder »

mikeslr wrote:Hi all,
Just wanted to mention that this build still works great in the latest Slacko, Precise, OV-Precise, and Exprimo.

mikesLr
Thanks for the tip! Just added this pet to my Wary 5.1.4.1 setup.


Wary 5.1.4.1 frugal
300 Mhz Pentium II laptop
96 Meg memory
Dual-boot with Win98

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#30 Post by Flash »

Technosaurus, having only just now seen this thread and tried out the Artha .pet (in Racy 5.3), I'm impressed. Could your version of Wordnet make it work even better?

User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

#31 Post by TwoPuppies »

Hi.

I just tried to download the Artha .pet and got a message saying that the file had expired. Any chance of a new download link?
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

#32 Post by Puppus Dogfellow »

TwoPuppies wrote:Hi.

I just tried to download the Artha .pet and got a message saying that the file had expired. Any chance of a new download link?
you can grab a version here. goldendict, also available in that folder, is better. for that you'd need the adjacent wordnet deb and either the 1.0 _ or the 1.5_ pet.

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#33 Post by Geoffrey »

TwoPuppies wrote:Hi.

I just tried to download the Artha .pet and got a message saying that the file had expired. Any chance of a new download link?
There is a artha-1.0.3.pet and wordnet-3.0.pet in the Carolina repo if that's any good to you.

http://smokey01.com/carolina/pet_packages-carolina/
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

#34 Post by TwoPuppies »

Thanks to both Puppus Dogfellow and Geoffrey
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

snayak
Posts: 422
Joined: Wed 14 Sep 2011, 05:49

#35 Post by snayak »

Is there a pet for Fatdog 611?
[Precise 571 on AMD Athlon XP 2000+ with 512MB RAM]
[Fatdog 720 on Intel Pentium B960 with 4GB RAM]

[url]http://srinivas-nayak.blogspot.com/[/url]

Post Reply