From: <mar...@we...> - 2005-04-21 08:59:19
|
Hi all, I'm new to phpwiki and I'm trying to use it for the purposes of the website for creating an open-source thesaurus (see synonimy.sourceforge.net or www.openthesaurus.de). The thesaurus itself uses a strict format of data and wiki style editing would be too cumbersome, but I'd like to have some special pages for users. What I really need is a kind of tagging to use in phpwiki to create special links. There will be pages in my wiki containing lists of words that should be added eventually to the thesaurus. These word lists can be created automatically and words could be enclosed in special brackets like {{}} etc. The wiki could use this tagging to create urls like http://synonimy.sourceforge.net/synset?word=foobar etc. Is it possible to do something like that? Or maybe is it possible to do something more fancy, like generating red underline on words that are not yet in my mysql database, and green underline on words included -- some automated db plugin could parse the page before displaying it (the queries would be quite simple). Thanks to wiki users could comment on some words (for example there are words that are extremely unlikely to have a synonym - like "tooth" for example), and suggest words that feel are important but they could not remember the synonym. Thank you for all your advices on this subject. Regards, Marcin Milkowski (admin of the synonimy.sf.net project) |
From: <mil...@o2...> - 2005-04-21 08:59:38
|
Hi all, I'm new to phpwiki and I'm trying to use it for the purposes of the website for creating an open-source thesaurus (see synonimy.sourceforge.net or www.openthesaurus.de). The thesaurus itself uses a strict format of data and wiki style editing would be too cumbersome, but I'd like to have some special pages for users. What I really need is a kind of tagging to use in phpwiki to create special links. There will be pages in my wiki containing lists of words that should be added eventually to the thesaurus. These word lists can be created automatically and words could be enclosed in special brackets like {{}} etc. The wiki could use this tagging to create urls like http://synonimy.sourceforge.net/synset?word=foobar etc. Is it possible to do something like that? Or maybe is it possible to do something more fancy, like generating red underline on words that are not yet in my mysql database, and green underline on words included -- some automated db plugin could parse the page before displaying it (the queries would be quite simple). Thanks to wiki users could comment on some words (for example there are words that are extremely unlikely to have a synonym - like "tooth" for example), and suggest words that feel are important but they could not remember the synonym. Thank you for all your advices on this subject. Regards, Marcin Milkowski (admin of the synonimy.sf.net project) |
From: Reini U. <ru...@x-...> - 2005-04-21 16:51:41
|
> I'm new to phpwiki and I'm trying to use it for the purposes of the > website for creating an open-source thesaurus (see > synonimy.sourceforge.net or www.openthesaurus.de). The thesaurus itself > uses a strict format of data and wiki style editing would be too > cumbersome, but I'd like to have some special pages for users. > > What I really need is a kind of tagging to use in phpwiki to create > special links. There will be pages in my wiki containing lists of words > that should be added eventually to the thesaurus. These word lists can > be created automatically and words could be enclosed in special brackets > like {{}} etc. The wiki could use this tagging to create urls like > http://synonimy.sourceforge.net/synset?word=foobar etc. Is it possible > to do something like that? Sure. You need to create a special InterWikiMap entry, which maps all words with a special prefix to a special url. like Synset:Unknown => http://synonimy.sourceforge.net/synset?word=foobar map entry: Synset http://synonimy.sourceforge.net/synset?word= > Or maybe is it possible to do something more fancy, like generating red > underline on words that are not yet in my mysql database, and green > underline on words included -- some automated db plugin could parse the > page before displaying it (the queries would be quite simple). phpwiki marks all unknown pages by some class, and all known words with some other class. so you have to map/generate all your words of your database to the wikidb. easiest done by regularly importing pregenerated plain textfiles, without overwrite. just create missing pages. A seperate special mapping to outside databases is planned for 1.5.x but it is not exactly specified yet. Easier will be to create a hook which looks into a seperate database on unknown pages (such as imdb.com) and fill the page by data from the external database combined with some template. > Thanks to wiki users could comment on some words (for example there are > words that are extremely unlikely to have a synonym - like "tooth" for > example), and suggest words that feel are important but they could not > remember the synonym. -- Reini Urban http://phpwiki.org/ http://xarch.tu-graz.ac.at/home/rurban/ |
From: <mar...@we...> - 2005-04-22 16:38:17
|
Reini Urban napisał(a): > > Sure. You need to create a special InterWikiMap entry, which maps all > words with a special prefix to a special url. > like > Synset:Unknown => > http://synonimy.sourceforge.net/synset?word=foobar Yeah, that's a good idea. This works definitely. > phpwiki marks all unknown pages by some class, and all known words > with some other class. > so you have to map/generate all your words of your database to the > wikidb. > easiest done by regularly importing pregenerated plain textfiles, without > overwrite. just create missing pages. How do I do that with PhpWiki running on MySQL? Please take into account that I have over 22,000 words, and generating single text files for all of them doesn't seem a best idea... Or should I simply create page records for all the words in my dictionary? > Easier will be to create a hook which looks into a seperate database on > unknown pages (such as imdb.com) and fill the page by data from the > external database combined with some template. That means I can create a hook that could be spawned by clicking the link of the unknown page? BTW, my first impression is quite good, but the Sidebar theme apparently needs some fixing :( Regards, Marcin |