According to Stephan Budach:
> Maybe i�m wrong, but i thought that my config file was right. I am copying a
> snipplet of my config file into this mail, the configuration is like this:
>
> locale: de_DE
> lang_dir: /usr/local/htdig/common/german
> bad_word_list: /usr/local/htdig/common/german/bad_words
> endings_affix_file: /usr/local/htdig/common/german/german.aff
> endings_dictionary: /usr/local/htdig/common/german/german.0
> endings_root2word_db: /usr/local/htdig/common/german/root2word.db
> endings_word2root_db: /usr/local/htdig/common/german/word2root.db
>
> You can surely assume that /usr/local/htdig is the installtion directory, so
> everythink should be set up correctly. The locals are installed in
> /usr/share/locale and de_DE ist among them.
>
> Maybe its another problem altogether, since the special chars are displayed in the
> excerpt of the matches.
Your configuration above looks correct to me. You don't need to define
lang_dir above if you don't use it in other definitions, though. It's
not used internally by htdig.
Is there a file called /usr/share/locale/de_DE/LC_CTYPE on your system?
If not, the de_DE locale is not complete. The LC_CTYPE file is the
one that contains the character type database, which htdig needs to
properly recognize accented characters. Even if the file is there, it
may be that the locale implementation is not working correctly on your
system. There are a LOT of systems out there where this is a problem!
You didn't mention what your system type is (i.e. which OS, and if Linux,
which distribution and which version).
The fact that accented characters are displayed in the excerpts doesn't
mean anything. Punctuation is also displayed in excerpts, but isn't
treated as a part of the words. If your locale doesn't correctly setup
the isalpha() and isalnum() functions to recognize accented letters and
umlauts as letters, then htdig treats them just like control characters
or punctuation, so they cause word breaks. The real test is to see which
words wind up in your db.wordlist file, and whether accented words are
fully highlighted.
I believe there are still problems with locale support on Slackware
Linux systems, and probably a number of other UNIX systems. See the
thread entitled "Portuguese" from about a year ago:
http://www.htdig.org/mail/2000/05/index.html#61
I never did get a followup message from Rodrigo indicating whether he had
found a solution, but you may want to try the tips I gave him.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html