This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

English Dictionary

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

English Dictionary

Post by Thanhas »

can someone tell me about any online English Dictionary TCL ? English to English please help me with it i seatched alot
Regards
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

I've been planning to make a script for dictionary.com, since its very thorough and returns suggestions when you make spelling errors, but in the meantime I've been using a modifed version of:

Dictionary.tcl
Connects to any RFC-2229 compliant dictionary server and shows you the definition of a word.
http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=639

I have also modified this version to allow searching each particular database that is available from dict.org:
http://members.dandy.net/~fbn/dictionary.tcl.txt
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

wooooo

Post by Thanhas »

Nice very cool but don't you this this is Extra & over msging ?let me show u logs . coz it will make BOT so Slow...

Code: Select all

[12:09:16 PM] <Applets> !define
[12:09:18 PM] -HosTer- Usage: .!define <word>
[12:09:23 PM] <Applets> !define sweet
[12:09:26 PM] -HosTer- "Sweet" gcide "The Collaborative International Dictionary of English v.0.48"
[12:09:27 PM] -HosTer- \Sweet\, a. [Compar. {Sweeter}; superl. {Sweetest}.] [OE.
[12:09:28 PM] -HosTer-   swete, swote, sote, AS. sw[=e]te; akin to OFries. sw[=e]te,
[12:09:30 PM] -HosTer-   OS. sw[=o]ti, D. zoet, G. s["u]ss, OHG. suozi, Icel. saetr,
[12:09:32 PM] -HosTer-   soetr, Sw. s["o]t, Dan. s["o]d, Goth. suts, L. suavis, for
[12:09:34 PM] -HosTer-   suadvis, Gr. ?, Skr. sv[=a]du sweet, svad, sv[=a]d, to
[12:09:36 PM] -HosTer-   sweeten. [root]175. Cf. {Assuage}, {Suave}, {Suasion}.]
[12:09:38 PM] -HosTer-   1. Having an agreeable taste or flavor such as that of sugar;
[12:09:40 PM] -HosTer-      saccharine; -- opposed to sour and bitter; as, a sweet
[12:09:42 PM] -HosTer-      beverage; sweet fruits; sweet oranges.
[12:09:44 PM] -HosTer-      [1913 Webster]
[12:09:46 PM] -HosTer-   2. Pleasing to the smell; fragrant; redolent; balmy; as, a
[12:09:48 PM] -HosTer-      sweet rose; sweet odor; sweet incense.
[12:09:50 PM] -HosTer-      [1913 Webster]
[12:09:52 PM] -HosTer-            The breath of these flowers is sweet to me.
[12:09:54 PM] -HosTer-                                                  --Longfellow.
[12:09:56 PM] -HosTer-      [1913 Webster]
[12:09:58 PM] -HosTer-   3. Pleasing to the ear; soft; melodious; harmonious; as, the
[12:10:00 PM] -HosTer-      sweet notes of a flute or an organ; sweet music; a sweet
[12:10:02 PM] -HosTer-      voice; a sweet singer.
[12:10:04 PM] -HosTer-      [1913 Webster]
[12:10:06 PM] -HosTer-            To make his English sweet upon his tongue.
[12:10:08 PM] -HosTer-                                                  --Chaucer.
[12:10:10 PM] -HosTer-      [1913 Webster]
[12:10:12 PM] -HosTer-            A voice sweet, tremulous, but powerful. --Hawthorne.
[12:10:14 PM] -HosTer-      [1913 Webster]
[12:10:15 PM] * zalim44 (~alper23-@60.48.179.81) has joined #pashtoon
[12:10:16 PM] -HosTer-   4. Pleasing to the eye; beautiful; mild and attractive; fair;
[12:10:18 PM] -HosTer-      as, a sweet face; a sweet color or complexion.
[12:10:20 PM] -HosTer-      [1913 Webster]
[12:10:22 PM] -HosTer-            Sweet interchange
[12:10:24 PM] -HosTer-            Of hill and valley, rivers, woods, and plains.
[12:10:26 PM] -HosTer-                                                  --Milton.
[12:10:28 PM] -HosTer-      [1913 Webster]
[12:10:30 PM] -HosTer-   5. Fresh; not salt or brackish; as, sweet water. --Bacon.
[12:10:32 PM] -HosTer-      [1913 Webster]
[12:10:34 PM] -HosTer-   6. Not changed from a sound or wholesome state. Specifically:
[12:10:36 PM] -HosTer-      (a) Not sour; as, sweet milk or bread.
[12:10:38 PM] -HosTer-      (b) Not state; not putrescent or putrid; not rancid; as,
[12:10:40 PM] -HosTer-          sweet butter; sweet meat or fish.
[12:10:42 PM] -HosTer-          [1913 Webster]
[12:10:45 PM] -HosTer-   7. Plaesing to the mind; mild; gentle; calm; amiable;
[12:10:46 PM] -HosTer-      winning; presuasive; as, sweet manners.
[12:10:48 PM] -HosTer-      [1913 Webster]
[12:10:50 PM] -HosTer-            Canst thou bind the sweet influence of Pleiades?
[12:10:52 PM] -HosTer-                                                  --Job xxxviii.
[12:10:54 PM] -HosTer-                                                  31.
[12:10:56 PM] -HosTer-      [1913 Webster]
[12:10:58 PM] -HosTer-            Mildness and sweet reasonableness is the one
[12:11:00 PM] -HosTer-            established rule of Christian working. --M. Arnold.
[12:11:02 PM] -HosTer-      [1913 Webster]
[12:11:04 PM] -HosTer-   Note: Sweet is often used in the 
formation of self-explaining
[12:11:06 PM] -HosTer-         compounds; as, sweet-blossomed, sweet-featured,
[12:11:08 PM] -HosTer-         sweet-smelling, sweet-tempered, sweet-toned, etc.
[12:11:10 PM] -HosTer-         [1913 Webster]
[12:11:12 PM] -HosTer-   {Sweet alyssum}. (Bot.) See {Alyssum}.
[12:11:14 PM] -HosTer-   {Sweet apple}. (Bot.)
[12:11:16 PM] -HosTer-      (a) Any apple of sweet flavor.
[12:11:18 PM] -HosTer-      (b) See {Sweet-sop}.
[12:11:20 PM] -HosTer-   {Sweet bay}. (Bot.)
[12:11:22 PM] -HosTer-      (a) The laurel ({Laurus nobilis}).
[12:11:25 PM] -HosTer-      (b) Swamp sassafras.
[12:11:28 PM] -HosTer-   {Sweet calabash} (Bot.), a plant of the genus {Passiflora}
[12:11:29 PM] -HosTer-      ({Passiflora maliformis}) growing in the West Indies, and
[12:11:32 PM] -HosTer-      producing a roundish, edible fruit, the size of an apple.
[12:11:32 PM] -HosTer-   {Sweet cicely}. (Bot.)
[12:11:34 PM] -HosTer-      (a) Either of the North American plants of the
[12:11:36 PM] -HosTer-          umbelliferous genus {Osmorrhiza} having aromatic roots
[12:11:38 PM] -HosTer-          and seeds, and white flowers. --Gray.
[12:11:40 PM] -HosTer-      (b) A plant of the genus {Myrrhis} ({Myrrhis odorata})
[12:11:42 PM] -HosTer-          growing in England.
[12:11:44 PM] -HosTer-   {Sweet calamus}, or {Sweet cane}. (Bot.) Same as {Sweet
[12:11:47 PM] -HosTer-      flag}, below.
[12:11:48 PM] -HosTer-   {Sweet Cistus} (Bot.), an evergreen shrub ({Cistus Ladanum})
[12:11:51 PM] -HosTer-      from which the gum ladanum is obtained.
[12:11:52 PM] -HosTer-   {Sweet clover}. (Bot.) See {Melilot}.
[12:11:55 PM] -HosTer-   {Sweet coltsfoot} (Bot.), a kind of butterbur ({Petasites
[12:11:57 PM] -HosTer-      sagittata}) found in Western North America.
[12:11:59 PM] -HosTer-   {Sweet corn} (Bot.), a variety of the maize of a sweet taste.
[12:12:00 PM] -HosTer-      See the Note under {Corn}.
[12:12:02 PM] -HosTer-   {Sweet fern} (Bot.), a small North American shrub ({Comptonia
[12:12:04 PM] -HosTer-      asplenifolia} syn. {Myrica asplenifolia}) having
[12:12:06 PM] -HosTer-      sweet-scented or aromatic leaves resembling fern leaves.
[12:12:08 PM] -HosTer-   {Sweet flag} (Bot.), an endogenous plant ({Acorus Calamus})
[12:12:10 PM] -HosTer-      having long flaglike leaves and a rootstock of a pungent
[12:12:12 PM] -HosTer-      aromatic taste. It is found in wet places in Europe and
[12:12:14 PM] -HosTer-      America. See {Calamus}, 2.
[12:12:16 PM] -HosTer-   {Sweet gale} (Bot.), a shrub ({Myrica Gale}) having bitter
[12:12:18 PM] -HosTer-      fragrant leaves; -- also called {sweet willow}, and {Dutch
[12:12:20 PM] -HosTer-      myrtle}. See 5th {Gale}.
[12:12:22 PM] -HosTer-   {Sweet grass} (Bot.), holy, or Seneca, grass.
[12:12:24 PM] -HosTer- Connection to dict.org:2628 timed out.


LeT me know if that is Option for making line Less
--------------------------
#################################################################
# Set the timeout for connecting to the dictionary server here. #
#################################################################

set dictionary_setting(timeout) "30"

--------------------------

what am i do ? with it just a few usful Line shuold bhug but he bhug to much Extra this will make so so so slow & busy the BOT what u think ?
Regards
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

There's no option to limit the output, which is why I have it sent to privmsg, not to the channel, I'm also afraid that if you used anything besides puthelp, it would flood. Unfortunately some definitions are extremely long. If/when I make a script to work with dictionary.com, I'll be sure to add a line limit config option.

Ohh, there's one idea tho, if you're in dcc chat with the bot, you get MUCH faster output and it won't lag the bot or make it flood off the network.

The option below is for setting the timeout to actually grab the data..If the bot can't grab the data in that many seconds, it gives up trying (otherwise it would hang for a long time waiting..)

set dictionary_setting(timeout) "30"
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

i wish you make one soon this one is Making BOT so slow even slow+DUmbo hehe
ReGards
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

The bot does not get slow at all, it simply sends the messages at a predetermined rate (ie, 1 every 2 seconds for instance)

Use putquick to speed it up and watch how the server behaves toward your eggdrop's flood of messages.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

well it make it slow make it load & then try :)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

You've been offered 2 different solutions: Use dcc chat, or use putserv or putquick (which will likely flood your bot off the network.) The bot's not slow responding to other commands, it's simply processing the helpqueue one item at a time, which means you wont see the response for your next helpqueue output until the other stuff is done.

There is a command called "clearqueue" if you want to cancel the helpqueue's output.

Code: Select all

bind dcc n clearq clearq
proc clearq {hand idx text} {
        clearqueue help
        putcmdlog "cleared help queue.."
}
Put that somewhere in a script and then in your dcc chat you can type .clearq and it will cancel all of the helpqueue output.

You could probably also add your own line limit into that script by simply doing a linecount ("incr linecount") and a "while number < 10 && ![eof]" somewhere in the script. I have no motivation to add that myself. Good luck.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

thanks but whats the
.clearq work for i loaded in TCL & typed in BOT DCC the answer is
[12:35:02 PM] <Applets> .clearq
[12:35:02 PM] <(HosTer> [07:38] cleared help queue..
tell me what for is that?
& can u code this
You could probably also add your own line limit into that script by simply doing a linecount ("incr linecount") and a "while number < 10 && ![eof]"
Regards
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

The clearq script is to STOP the helpqueue's output if you don't want to have 5000 lines of output. And NO I will not code the other crap into the existing dictionary script. You can learn to do it yourself, or wait til I decide to write my own. I'm certainly not doing it for your convenience.

-getting pissed off.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

Thanks i will wait for ur releasing.................................................
Regards
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Just thought you'd like to know I've released the dictionary script here:
http://members.dandy.net/~fbn/dictcom.tcl.txt

The main features are done, just need to add more of dictionary.com's databases in the next few days.

So far I have added these:

Databases: Dictionary.com Unabridged Dictionary; American Heritage Dictionary; Webster's 1913 Dictionary;American Heritage Stedman's Medical Dictionary; Merriam-Webster Medical Dictionary, Investopedia; Investopedia

Features are noted here:

http://forum.egghelp.org/viewtopic.php?t=12527
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

wow

Post by Thanhas »

hi
nice & thanks for notifecation,,,

& let me know what do i add in timeout for best & speed replay its defult 30000 can i chnage to less or increase.......
still i did not checked i am on vcand :)
T h a n k s
Regards
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

The timeout config option is for the http::geturl and yes you can make it lower. 30000 is 30 seconds, which works fine for me, my system tends to get really slow when I'm downloading stuff, but if you want a lower timeout, go for it.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

Thanks Man
i will load it as soon as i am back & if had any prob i will surly ask u thanks agian & again
Regards
Post Reply