Zope Newbie ZCatalog question
I have a ZCatalog up and running fine except that accented characters are being ignored in the indexes. (Using Zope 2.6.2) After having trawled through the internet I understand that if I change the -L option on Zope startup this should fix my problem. But my site will be in spanish french and english so which language option do I add to the -L option ? Sorry if this trodden ground...I have found a couple of similar posts but with no solutions. Alison ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html
Alison Taylder wrote:
I have a ZCatalog up and running fine except that accented characters are being ignored in the indexes. (Using Zope 2.6.2)
You may wish to try Andreas' TextIndexNG, I'm not sure how well ZCTextIndex handles i18n. That said, what character encoding are your accents in? What splitter / lexicon are you using? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Alison Taylder wrote at 2004-3-22 23:15 +0000:
I have a ZCatalog up and running fine except that accented characters are being ignored in the indexes. (Using Zope 2.6.2)
After having trawled through the internet I understand that if I change the -L option on Zope startup this should fix my problem. But my site will be in spanish french and english so which language option do I add to the -L option ?
The easiest way may be to use Unicode. The Unicode splitter should be independent from the chosen "locale". If this is not an option for you, you may define your own "locale". You need to worry only with "LC_CTYPE" (i.e. the classification of characters). -- Dieter
Thank you for your reply. I feel as if I am hovering somewhere near the solution. This has helped me to search the internet once more to find kindred souls and I have found the following archive: http://mail.zope.org/pipermail/zope/2003-June/137115.html This email echoes my problem that the new ZCTextIndex only has a choice of 2 splitters "HTML Aware splitter" and "Whitespace splitter" neither of which help me. So how do I implement a unicode splitter ? However, it does appear that if I install TextIndexNG this may solve my woes. Failing that I will attempt to change the locale. Thanks for your help, Alison --- Dieter Maurer <dieter@handshake.de> wrote: > Alison Taylder wrote at 2004-3-22 23:15 +0000:
I have a ZCatalog up and running fine except that accented characters are being ignored in the indexes. (Using Zope 2.6.2)
After having trawled through the internet I understand that if I change the -L option on Zope startup this should fix my problem. But my site will be in spanish french and english so which language option do I add to the -L option ?
The easiest way may be to use Unicode. The Unicode splitter should be independent from the chosen "locale".
If this is not an option for you, you may define your own "locale". You need to worry only with "LC_CTYPE" (i.e. the classification of characters).
-- Dieter
___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html
participants (3)
-
Alison Taylder -
Chris Withers -
Dieter Maurer