From Fedora Project Wiki

LibreOffice Dictionaries

Summary

Add a new libreoffice-dictionaries source package in Fedora providing hunspell spellcheck dictionaries sourced directly from the LibreOffice upstream dictionaries repository, packaged as individual per-language subpackages named libreoffice-dict-<lang>.

Owner

Current status

Detailed Description

The LibreOffice project maintains its own collection of hunspell dictionaries at https://github.com/LibreOffice/dictionaries, updated in sync with each LibreOffice release. These dictionaries are maintained separately from the existing hunspell-<lang> packages in Fedora and in some cases provide more up-to-date word lists.

This Change introduces the libreoffice-dictionaries source package, which builds 71 binary subpackages covering over 66 languages. Each subpackage:

  • Installs .aff and .dic hunspell dictionary files into /usr/share/hunspell/
  • Declares Conflicts: hunspell-<lang> so it does not co-install with the existing Fedora-maintained package for the same language
  • Declares Requires: hunspell-filesystem for the directory ownership dependency

Notable new additions compared to existing Fedora hunspell-* packages include:

  • Bengali (libreoffice-dict-bn_BD)
  • English regional variants split into five subpackages: libreoffice-dict-en-AU, libreoffice-dict-en-CA, libreoffice-dict-en-GB, libreoffice-dict-en-US, libreoffice-dict-en-ZA
  • Aragonese (libreoffice-dict-an), Tibetan (libreoffice-dict-bo), Bosnian (libreoffice-dict-bs), Central Kurdish (libreoffice-dict-ckb), Guarani (libreoffice-dict-gug), Lao (libreoffice-dict-lo), Sanskrit (libreoffice-dict-sa)

The spec file uses embedded RPM Lua scripting to generate all subpackage definitions programmatically from a single data table, avoiding hundreds of lines of repetitive boilerplate.

This Change will not make libreoffice-dict-* packages as a default dictionary packages in Fedora 45. We will test them in Fedora 45 and then we will make them default in Fedora langpacks packages in next Fedora 46 release.

Feedback

Benefit to Fedora

 * Users installing LibreOffice will have access to dictionaries that are versioned and tested together with each LibreOffice release, reducing spellcheck regressions caused by version skew between LibreOffice and independently-packaged dictionaries.
 * Provides coverage for languages and regional locales not currently available as standalone hunspell-* packages in Fedora.
 * The Conflicts: tagging ensures clean, unambiguous dictionary ownership — users can choose between the Fedora-maintained hunspell-<lang> or the LibreOffice-sourced libreoffice-dict-<lang>, but not both simultaneously.

Scope

  • Proposal owners: Create and maintain the libreoffice-dictionaries package in Fedora.
  • Other developers: No changes required to existing hunspell-* packages. The Conflicts: tag handles coexistence cleanly.
  • Release engineering: New source package to be added to Fedora 45 dist-git. No mass rebuild required.
  • Policies and guidelines: Package follows Fedora Packaging Guidelines. Per-language SPDX licenses are declared on each subpackage. Files in /usr/share/hunspell/ are owned via the hunspell-filesystem dependency.
  • Trademark approval: N/A (not needed for this Change)
  • Alignment with the Fedora Strategy:

Upgrade/compatibility impact

This is a new source package with no prior presence in Fedora. No existing packages are modified. The Conflicts: relationship with existing hunspell-<lang> packages is intentional and ensures that users upgrading from a system with hunspell-fr (for example) will not inadvertently end up with conflicting dictionary files if libreoffice-dict-fr is installed.

How To Test

If you have any libreoffice langpack package installed e.g. libreoffice-langpack-fr then to use new libreoffice-dict-fr dictionary package, run the command dnf install libreoffice-dict-fr --allowerasing which will remove libreoffice-langpack-fr meta-package and hunspell-fr package but will install libreoffice-dict-fr dictionary package.

1. Install any subpackage, for example:

 dnf install libreoffice-dict-fr libreoffice-dict-en-GB libreoffice-dict-de

2. Verify the dictionary files are installed:

 ls /usr/share/hunspell/fr_FR.* /usr/share/hunspell/en_GB.* /usr/share/hunspell/de_DE.*                                                    

3. Verify locale symlinks are present (e.g. for en-GB aliases):

 ls -la /usr/share/hunspell/en_IE.* /usr/share/hunspell/en_IN.* /usr/share/hunspell/en_NZ.*

4. Confirm spellcheck works in LibreOffice Writer by setting the document language to the installed locale. 5. Confirm that attempting to install both hunspell-fr and libreoffice-dict-fr simultaneously results in a conflict reported by dnf.

User Experience

Dependencies

Contingency Plan

  • Contingency mechanism: If the package is not ready, it is simply not included in Fedora 45. No other packages depend on it yet.
  • Contingency deadline: Final freeze for Fedora 45.
  • Blocks release? No.

Documentation

No documentation changes required.

Release Notes

A new libreoffice-dictionaries package is available in Fedora 45, providing hunspell spell check dictionaries sourced directly from the LibreOffice upstream repository. Install individual language packages such as libreoffice-dict-fr, libreoffice-dict-de or libreoffice-dict-en-GB to enable spell checking for those languages in LibreOffice and any other application using hunspell.