glossary plugin "overreacts"

Found a bug? Tell us!!
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

glossary plugin "overreacts"

Post 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
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post 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
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post 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?
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

the workaround works, thanks.
Ciao, Stephan
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Happy to help out!
Judebert
---
Website | Wishlist | PayPal
Post Reply