Auto-linking words with a hyphen?

Auto-linking words with a hyphen?

by Alyssa Leonard -
Number of replies: 5

I'm trying to autolink the word "cross-contamination" in my glossary with a hyphen. It appears that it's the hyphen that is causing it to not work... Any suggestions?

Thanks.

Average of ratings: -
In reply to Alyssa Leonard

Re: Auto-linking words with a hyphen?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Which version of Moodle, please?

In reply to Joseph Rézeau

Re: Auto-linking words with a hyphen?

by Alyssa Leonard -

Oh, sorry! I'm using Moodle 2.5.2. Thanks!

In reply to Alyssa Leonard

Re: Auto-linking words with a hyphen?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

There is no reason why a hyphened word in a glossary should fail to be linked. Did you actually type that entry yourself or did you copy-paste it from somewhere else?

Joseph

screenshot #1

In reply to Joseph Rézeau

Re: Auto-linking words with a hyphen?

by Alyssa Leonard -

I typed the entry myself. I've tried it with "match whole words only" checked and unchecked. 

I also have a definition for just the word "contamination". Could this be causing an issue?

Attachment Capture1.JPG
Attachment Capture2.JPG
In reply to Alyssa Leonard

Re: Auto-linking words with a hyphen?

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Where are you expecting to see the word "cross-contamination" highlighted as a glossary word? In what type of resource? Are other glossary words correctly highlighted in that resource? Can you post a screenshot of the resource containing some some glossary words, including they one with a hyphen? What about other hyphened words?

Joseph