Гость
16 Май 2014 11:53

First of all, thanks for such a cool possibility to enhance my web page!

But I have a problem (actually two, but related) with glossary:

  1. If I add a term to the glossary and this term (or the character combination) is inside links, my links break.
  2. Short terms are quite often in other words too, so they get highlighted as well (which is of course not what I want). Example: 'AR'. Would highlight 'are'.

Question to solve both problems (in my opinion):

How can I add space characters in the term? (So I could add ' AR ' as term)

Thanks in advance!

Последние изменения: 20 Май 2014


Sergey
Total posts: 13,748
18 Май 2014 07:21

Guest How can I add space characters in the term? (So I could add ' AR ' as term)

Yes you can. But AR at the end of the sentance (something AR.) wil not be highlighted. Or coma after AR (something AR, bla bla).

Guest If I add a term to the glossary and this term (or the character combination) is inside links, my links break.

This is very hard to solve problem. I do not have a solution for that actualy. As I have mentioned, it is hard to detect if Glossary word is inside the link or not.


pepperstreet VIP
Total posts: 3,837
20 Май 2014 22:11

Sergey This is very hard to solve problem. I do not have a solution for that actualy. As I have mentioned, it is hard to detect if Glossary word is inside the link or not.

I remember, the old J!1.0/1.5 plugin RD-Glossary was pretty smart in such cases. Not sure about the J25 Glossary. Used it once, but can't recall the details and if it had issues with terms inside links.

Maybe there are other similar plugins that have a filter logic which could help here... i mean as a code reference e.g.:

Unfortunately the AlterBrains Glossary is not for free, but it seems to have a special HTML filter feature!

Excerpt:
"...Ability to configure list of HTML tags where terms won't be highlighted (essential feature for keeping your titles and links clean)..."

Работает на Cobalt