Partial words highlighted

Fragment of a discussion from Extension talk:Lingo
Jump to: navigation, search

Just tried to reproduce it, but could not.

What version of PHP, MW and of Lingo are you using?

Is your wiki public so I could have a look?

Cheers,

F.trott15:59, 11 October 2011

Hello and thank you for taking the time to asnwer!

My Wiki, unfortunately, is closed and you would need to register in order to read the articles, so I wouldn't want to bother you this much. Besides, it's not in English...

Anyway, here's a screenshot in which you can clearly see my problem: the word from the Terminology page is "rigor", however it appears highlighted as a part of Grigoriy.

http://tinypic.com/r/14wc1sg/7

As for the versions: MediaWiki 1.17.0, PHP 5.2.17 (cgi), MySQL 5.0.92-community-log

Any ideas?

Zkvvoob14:12, 14 October 2011

And this happens with Lingo 0.2?

Edit: Never mind, I know what the problem is. The algorithm does not properly align on word bounderies for cyrillic script. I'll try to fix it.

F.trott14:49, 14 October 2011

I think I fixed it. Could you try the latest version from SVN?

F.trott19:36, 17 October 2011

It is fixed, indeed. Thank you very much!

On another matter, is there any possibility to have links between some of the entries in the Terminology page? For example, if we have a main entry of a word, another - like the plural form, to extract the explanation from the main entry? This would be very handy, because in Bulgarian the definite article is actually formed by adding a suffix to the word, rather than a separate particle as it is in English.

Zkvvoob18:45, 20 October 2011

Sure it's possible. Just download the latest SVN and then put someting like this into your Terminology page:

;Foo
;Bar
;Baz
:Bogus word used in examples

All three words (Foo, Bar, Baz) will now have the same definition.

Thanks for this good idea! :)

F.trott19:41, 20 October 2011

You are amazing! Thank you so much for the quick reaction and for all your support!

Zkvvoob08:20, 28 October 2011
 

Hello again!

Sorry for bothering you, but only now did I find out that the new syntaxes has a problem. Namely: after a set of several words that are supposed to share a definition, the next word's tooltip picks both its definition and the one of the group above.

Here is a screenshot with your example above put at the top of out Terminology page: http://tinypic.com/r/344pq37/5

Any idea what might be causing this and if there is a way around the problem?

Thanks in advance for your time!

Zkvvoob14:57, 12 November 2011

In my org, we found that this syntax works best:

;baz:Definition 1
;baz:Definition 2

This successfully shows both definitions on hover, and does not create the overlap you reported. Unfortunately, this causes the term to be listed twice on the glossary page, but it's the only way we were able to make more than one definition appear.

Jlemley15:31, 14 November 2011
 

Hi Zkvvoob,

it's fixed now in SVN.

Cheers,

F.trott17:30, 16 November 2011

Once again: THANK YOU VERY MUCH!!!

Zkvvoob14:43, 17 November 2011