I am trying Glossary. However, I cannot get it to work. I follow the README.txt instructions. After enabling the module, I do the following:
1. add a taxonomy content type called "glossary" and then a category called glossary with two child terms - Chinese and English.
2. create both contents - one Chinese term belonging to glossary-Chinese and the other English term belonging to glossary-English.
3. In Glossary Settings page, enable Filtered HTML and check the "Select Vocabulary" checkbox of "glossary".
4. create content of story. Both Chinese term and English term are in the body of this story article. The input format is Filtered HTML (I can see "Glossary terms will be automatically marked with links to their descriptions." there).
Unfortunately, after submitted, no link or icon is created.

I am not sure what is problem.

By the way, I use simplified Chinese languange - zh-hans. (The current locale is set to "zh-hans". The term_data collation is "utf8_general_ci".)

And another thing is that I can see a sentence at General of Glossary Settings page. It reads:
Multibyte string support is disabled; multibyte function overload is disabled.

Comments

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

Does "simplified Chinese" require multibyte? I'm not sure what happens with mixed languages in a single vocabulary. The collation on term_data may cause problems, particularly on the glossary overview page, but usually not in linking the terms.

Some settings to check:
"Match type"
"Case sensitivity" (I did this one to myself an hour ago - added a term that was capitalized, but the usage was not, and the input format was left as "case sensitive.")

If using "superscript," make sure the indicator is large enough to see and click.
If using "icon," make sure the path to the icon is correct.
For initial testing, I would recommend using "acronym," as this is the most visible and cross-browser supported. ("Abbr" may not work in IE.)

artrow’s picture

Thanks for response.

I tried Glossary again and found that Glossary works if a story content created in English only. However, if it is in Chinese language or mixes Chinese with English, Glossary doesn't work. It seems to me that Glossary doesn't support Chinese language. My problem may be caused by "Multibyte string support is disabled; multibyte function overload is disabled." But I am not sure how to enable "Multibyte".

Chinese uses Characters. Each character has 3 bytes in UTF-8 code. In a sentence, characters are rowed one by one without blank space or other separator between them.

nancydru’s picture

I wasn't sure if "simplified" meant it was still characters. To support Chinese then, you will need to have multi-byte support. Your host will have to enable that for you. "Multibyte function overload" is not required, and I've never actually seen it enabled.

Without multibyte support, the Chinese characters will not be recognized - that's why they are not getting flagged. I have no idea if mixing English and Chinese is going to work.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

It's been over two weeks.

Please re-open this issue when you get multibyte support and see if that takes care of the problem.

seren10pity’s picture

Same problem here :

I'm french, and the glossary module doesn't seem to support caracters as à é ô etc. So terms as 'être' ( french equivalent for the verb 'to be' -> often used ) it simply doesn't work...

Does someone have an idea of how I could allow it ?

Thanks

milos1234’s picture

i can confirm that glossary DOES work with multibyte characters and i18n. if its the hovertips you are after make sure you are clearing your entire cache on page load.

try adding this to your settings.php to clear cache

$conf = array(
  // ...
  'cache_inc' => 'includes/cache-install.inc',
  // ...
);
guillaumeduveau’s picture

For french and other latin languages, I've submitted a patch here : #352545: special characters converted in html entities

milos1234’s picture

@guix: have you found a way to run i18n and Glossary without needing to clear cache all the time? It seems to be only necessary for the hovertips addon.

guillaumeduveau’s picture

I wouldn't know, I'm not running i18n, just Drupal with the french translation as the default language.