Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699660 - app-office/libreoffice fails to detect Dutch spelling dictionary app-dicts/myspell-nl
Summary: app-office/libreoffice fails to detect Dutch spelling dictionary app-dicts/my...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-11-09 11:24 UTC by Nowa Ammerlaan
Modified: 2021-06-09 07:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nowa Ammerlaan gentoo-dev 2019-11-09 11:24:44 UTC
Libreoffice was unable to find the Dutch dictionary installed on my system (app-dicts/myspell-nl). Other applications (e.g. kate, kile etc) don't have this problem. 

This is in my make.conf: L10N="en en-US en-GB nl nl-NL en-NL"
Both myspell-nl, hunspell and app-office/libreoffice-l10n  with nl USE flag are installed.

I had created a post on the forum here: https://forums.gentoo.org/viewtopic.php?p=8386858#8386858
And a helpful user pointed me to the solution, which was to add some symlinks:

andrew-gentoo-pc andrew # ln -s /usr/share/hunspell/nl.dic /usr/share/hunspell/nl_NL.dic
andrew-gentoo-pc andrew # ln -s /usr/share/hunspell/nl.aff /usr/share/hunspell/nl_NL.aff
andrew-gentoo-pc andrew # ln /usr/share/myspell/nl.aff /usr/share/myspell/nl_NL.aff
andrew-gentoo-pc andrew # ln /usr/share/myspell/nl.dic /usr/share/myspell/nl_NL.dic
andrew-gentoo-pc andrew # ln /usr/share/myspell/th_nl_v2.dat /usr/share/myspell/th_nl_NL_v2.dat
andrew-gentoo-pc andrew # ln /usr/share/myspell/th_nl_v2.idx /usr/share/myspell/th_nl_NL_v2.idx 

It seems like libreoffice wants to have dictionary files in the 'language_region' format. The behaviour of myspell-nl was changed in bug 607080, the argument is made there that the Dutch language is standardized across regions. While this may be true, the fix to this bug report leads to problems with libreoffice, as the dictionary file is no longer named as it expects. 
I suggest to either revert the change from bug 607080, meaning to change this:
src_prepare() {
	default
	# Fix regions, bug #607080
   	mv nl_NL.aff nl.aff || die
	mv nl_NL.dic nl.dic || die
	mv hyph_nl_NL.dic hyph_nl.dic || die

	# remove dutch translated license so it aint installed
	rm -rf licentie* || die
}

back to this:
src_prepare() {
	# thesarus has ugly name
	mv th_nl_v2.dat th_nl_NL_v2.dat || die
	mv th_nl_v2.idx th_nl_NL_v2.idx || die

	# remove dutch translated license so it aint installed
	rm -rf licentie* || die
}

Or to just add symlinks between the nl and nl_NL files, like I did above. Personally I prefer this solution because it makes it easy to also symlink the regional dictionaries of other regions (e.g. nl_BE) in accordance to the argument made in bug 607080.
Comment 1 Larry the Git Cow gentoo-dev 2019-11-18 06:14:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a589dc23b0e0179fdf13971881c768c5d24e9da4

commit a589dc23b0e0179fdf13971881c768c5d24e9da4
Author:     Wim Muskee <wimmuskee@gmail.com>
AuthorDate: 2019-11-16 17:36:17 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-11-18 06:14:13 +0000

    app-dicts/myspell-nl: add territory locale formatted entries
    
    Closes: https://bugs.gentoo.org/699660
    Signed-off-by: Wim Muskee <wimmuskee@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/13675
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-dicts/myspell-nl/myspell-nl-2.10g-r2.ebuild | 63 +++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
Comment 2 Erik Quaeghebeur 2021-01-02 11:49:54 UTC
For completeness: https://bugs.documentfoundation.org/show_bug.cgi?id=64830