Add <app dir>/../share/hunspell/ to dictionary search path

Review Request #127033 - Created Feb. 10, 2016 and submitted

Information
Kåre Särs
sonnet
Reviewers
kdeframeworks
mlaurent, sandsmark
The default search path for hunspell dictionaries is /usr/share/hunspell/, but that is not a very common directory on windows ;)

For Windows and Mac there are some extra search paths defined in side #ifdefs, but they are hardcoded to the LibreOffice dictionary directories. Unfortunately the extra Windows path points to a 32bit LibreOffice 5 on a 64 bit Windows directory. This patch adds <app dir>/../share/hunspell/ to the search path in case the default is not found. 

If wanted I can add a CMake define for specifying the path relative to the application directory.
Compiled Sonnet and Kate on Windows and got spelling to work :)

It is now possible to add dictionaries to a relocatable <App dir>/../share/hunspell/ and get spelling to work without depending on LibreOffice installation on Windows.

Issues

  • 0
  • 5
  • 0
  • 5
Description From Last Updated
David Faure
Kåre Särs
David Faure
Kåre Särs
Kåre Särs
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit af4c6011d545fec7bf5a1a0a548ae68aa96e2fc8 by Kåre Särs to branch master.
Loading...