Page 1 of 1

glossary plugin "overreacts"

Posted: Fri Sep 22, 2006 8:16 pm
by stm999999999
hello,

following problem:

defined glossary-item:

Code: Select all

ABBR:abbreviation
in the entry-text

ABBR becomes ABBR[?] - allright

but

abbreviation becomes abbr[?]eviation

this is not so good I think :-(

possible solution:

watch, if after the defined phrase is a white space (or ":", ",","." ...)

or

make it case sensitive?

perhaps a view to the contentrewrite-plugin? with this plugin

abbreviation is still abbreviation

Posted: Sat Sep 23, 2006 2:40 pm
by judebert
I'm looking at the code, and it checks for \b (word boundary) before and after the abbr term.

I doubt that you're using an old version of the plugin, but could you check just to be sure? I'm looking at SPARTACUS version 1.4, CVS revision 1.3.

Posted: Sat Sep 23, 2006 3:48 pm
by stm999999999
it's at supersized: version: 1.4

you can have al look at blog

http://blog.defo.info/archives/18-Willkommen.html

with "Einige Abk[?]ürzungen"

and in glossary is defined:

ABK:Ausbildungskommission - zur Beratung des Fachbereichsrats

Posted: Mon Sep 25, 2006 11:14 pm
by judebert
I'll bet it's an encoding/language problem: /b (word boundary) probably just checks for non-ASCII characters or something. That u-with-umlaut qualifies as a "word boundary" in that case.

Unfortunately, I'm an ignorant American, and I have no idea what to do with language problems. I know that UTF-8 is the way to go, but that's no help in this case. We'll have to wait for Garvin (or someone more knowledgeable) to help out on this one.

Posted: Tue Sep 26, 2006 2:02 am
by stm999999999
I'll bet it's an encoding/language problem: /b (word boundary) probably just checks for non-ASCII characters or something. That u-with-umlaut qualifies as a "word boundary" in that case.
Yeah, it is it: "Einige Abkuerzungen" is not affected.
Unfortunately, I'm an ignorant American, and I have no idea what to do with language problems. I know that UTF-8 is the way to go, but that's no help in this case. We'll have to wait for Garvin (or someone more knowledgeable) to help out on this one.
perhaps is it a good idea to make it case sensitive like the contentrewrite-plugin? Not only for my ü-problem (this is not so important) but in general?

Posted: Tue Sep 26, 2006 4:12 am
by judebert
I just committed that to CVS. It occurs to me that, if others needs multiple cases for their abbreviations, they can just add them in their configuration.

Posted: Tue Sep 26, 2006 1:55 pm
by stm999999999
the workaround works, thanks.

Posted: Fri Sep 29, 2006 7:22 pm
by judebert
Happy to help out!