Wikipedia Wikticonary

Creating and modifying plugins.
Wesley B
Posts: 27
Joined: Sat Feb 19, 2005 11:48 pm

Post by Wesley B » Thu Mar 10, 2005 7:29 pm

I've continued to look into wikipedia options more, and the current wikipedia database, if I remember correctly, is around 32 gigabytes.

Definately too large for me to host locally :lol:

Wikitionary is quite a bit smaller. Not sure if the output would be as nice.

My blog is very low volume, and if anyone knew how this worked in trillian, I'd still be very interested in giving it a try on my blog.

What would the code look like?

Wesley B

User avatar
Posts: 28
Joined: Fri Jan 21, 2005 6:52 am
Location: Caribbean

Post by MidNiteRaver » Thu Mar 10, 2005 8:10 pm

Marinmo wrote:
Wesley B wrote:Is it possible to download a database from wikipedia? I could get along just fine hosting the data locally and giving up having real-time access to the latest definitions and entries.

No it's (practically) not. Sorry. You could manually enter those, or why not just use the abbr tag?

Example (from my own blog);

Code: Select all

As I'm living in Sweden, iTunes is not available to me. This sucks ofcourse, but then again, I never really cared for <abbr title="Digital Rights Management">DRM</abbr> low-bitrate music.

Is manually entering, but on mouseover the title pops up if the user is using a decent browser (not IE).

This works for the words that you rarely type with small definitions. I have a medical based site which will be accessed by laypersons and professionals.

I think a module which allows you to create your own library linked to keywords would be the best was to go.

Wesley B
Posts: 27
Joined: Sat Feb 19, 2005 11:48 pm

Post by Wesley B » Thu Mar 10, 2005 11:47 pm

I'm more interested in the entertainment value, and wouldn't really care to build my own mini-encylcopedia.

So I'd like to get an idea on how complicated code similar to what trillian uses would be, and get the data straight from wikipedia.

Wesley B

User avatar
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany

Post by garvinhicking » Sun Mar 13, 2005 1:19 pm

Creating an own dictionary is easy using the "Content Rewrite" plugin. Search the forum for detailed instructions on using it, but it allows you to rewrite words like "s9y" with "<a href="" title="Serendipity">s9y</a>". And other stuff.

# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy:
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby:

User avatar
Posts: 317
Joined: Wed Apr 27, 2005 5:11 pm

Post by RobA » Fri Jun 10, 2005 7:11 pm

K -

Someone asked, details are here:

This plugin takes a set of definitions/glossary words and displays them when a user hovers over:

Currently it is set up on my site with the following search terms/definitions:

Code: Select all

regexp : A regexp is a Unix Regular Expression; ie a string for pattern matching.
html  : HyperText Markup Language.
plugin: A plugin is a program written by someone that is integrated into another application.
alphanumeric : Consisting of letters and/or numbers, but not other symbols or punctuation marks.

This does slow down my blog rendering, but I have turned it back on by request (for awhile at least). I haven't tested it with the simple cache plugin, but that may speed it up by not having to do all the regexp matching.

This was done for fun, so hopefully someong else will get some use out of it.

A direct download is here:

-Rob A>

Post Reply