#13 Make an educated guess at the right dictionary to use

closed
None
5
2007-06-21
2007-06-05
No

When invoked from the command line without a -d parameter, hunspell tries to use "default.{aff,dic}" unconditionally.

On most Linux distributions (and probably other OSes that use hunspell), the dictionary directory contains files named after the supported language, following the same naming scheme as the LANG/LC_* environment variables.

It should be safe to assume the user wants a dictionary for $LANG if none was specified and default.{aff,dic} doesn't exist.

Discussion

  • Németh László

    Logged In: YES
    user_id=726595
    Originator: NO

    Fixed. Thanks for your patch. Note: Hunspell uses langinfo() instead of LC_* variables. You can also specify the dictionary searching path via DICPATH environment variable.

     
  • Németh László

    • assigned_to: nobody --> nemethl
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks