I was working on a project that used a lot acronyms and terminology that I didn’t know yet. It was making me crazy, so eventually I created a Terminology extension for media wiki.
You can see a demo of it on CyanogenMod’s Wiki. And see the Terminology source page. (and contribute to it!)
Anyway, hope it helps someone else.
Openpedia.org | 02-Apr-10 at 7:33 am | Permalink
Ben Kahn :: Mediawiki Acronyms…
[Source: Ben Kahn] quoted: I was working on a project that used a lot acronyms and terminology that I didn’t know yet. It was making me crazy, so eventually I created a Terminology extension for media wiki….
rodrigoeiras.eti.br | 07-Jul-10 at 6:05 pm | Permalink
Mediawiki…
I found your entry interesting thus I’ve added a Trackback to it on my weblog
…
TESSIER | 06-Jan-11 at 11:18 am | Permalink
Hi,
I use the terminology plug-in but i have an issue that i can’t resolve.
In the terminology i need to declare some word which bigin with no ascii letter i.e. “éèâï” etc…
Terminology can’t find them in my pages.
for exemple :
;échalotte:blablabla
don’t match
I try to make some change and add a compare test after the following line like above, with utf8_encode/decode or ucfirst but this never match.
function terminologyParseThisNode($doc, $node, $term, $definition) {
$changed = false;
if ($node->nodeType == XML_TEXT_NODE) {
$texts = preg_split(‘/\b(‘.preg_quote($term).’s?)\b/ui’, $node->textContent, -1, PREG_SPLIT_DELIM_CAPTURE);
//here the test i add
if (strstr($node->textContent,utf8_maj_fr($term)) && empty($texts[1]) === true) {
$texts[0] = “”;
$texts[1] = $term;
$texts[2] = “”;
}
//end of the test
if (count($texts) > 1) {
$container = $doc->createElement(‘span’);
….
function utf8_maj_fr($mot) {
$mot = utf8_decode($mot);
$mot = trim($mot);
return $mot;
}
If you have some tips for my issue.
Thanks a lot!