highlighted words/parts of words

highlighted words/parts of words

by cecile pinot -
အကြောင်းပြန်မှု အရေအတွက်: 4

I hope this has not been discussed already - my apologies if it has, I  haven't found the thread... We have an entry about pronouns in a glossary, and the word "me" is among the synonymous terms. The problem is that every occurrence of "me", including within a word, get highlighted... so that for "problème", the last two letters of the word are highlighted... I tried to modify this by putting a space before the sequence hoping that only "SPACE+me" would be taken into account, but the synonyms section doesn't seem take spaces... this happens only in the synonymous terms section, has anyone had this problem?

Thanks a lot

Cécile

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
cecile pinot ထံသို့ အကြောင်းပြန်ရာတွင်

Re: highlighted words/parts of words

by Martin Dougiamas -
Core developers ၏ ရုပ်ပုံ Documentation writers ၏ ရုပ်ပုံ Moodle HQ ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ Testers ၏ ရုပ်ပုံ
In the glossary entry editing screen, there is a checkbox "Match whole words only", which you should enable.
Martin Dougiamas ထံသို့ အကြောင်းပြန်ရာတွင်

Re: highlighted words/parts of words

by cecile pinot -

Thanks a lot for your answer Martin. I changed the entry, however it seems that messages that were sent before I made this change are still wrongly highlighted (not too serious but I got a bit confused while checking).

Thanks again

Cécile 

Martin Dougiamas ထံသို့ အကြောင်းပြန်ရာတွင်

Re: highlighted words/parts of words

by Ne Nashev -
There are non-english charester before 'me' in that sample word. May be "whole word only" mechanizm hav a bug?
Ne Nashev ထံသို့ အကြောင်းပြန်ရာတွင်

Re: highlighted words/parts of words

by Petr Skoda -
Core developers ၏ ရုပ်ပုံ Documentation writers ၏ ရုပ်ပုံ Peer reviewers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ
IMO present autolinking mechanism in glossary is not suitable for nonascii characters.

There are two highlighting mechanisms in Moodle: in weblib.php/highlight and in mod/glossary/filtr.php/glossary_link_concepts. It is not easy to fix, because PHP's internal functions do not care much about national characters. ၀မ်းနည်း

skodak