LibreOffice: Difference between revisions

From NixOS Wiki
imported>Haizaar
No edit summary
imported>Harärmat
How to make spell check work
Line 1: Line 1:
LibreOffice is a multi-platform Word-processor.
LibreOffice is a multi-platform Word-processor.
== Spellcheck ==
In order for spellcheck to work, you will need to install the <code>hunspell</code> as well as the languages that you would like. For example this installs libreoffice with dictionaries for Ukrainian and Central Thai.
<syntaxHighlight lang=nix>
  environment.systemPackages = with pkgs; [
    libreoffice-qt
    hunspell
    hunspellDicts.uk_UA
    hunspellDicts.th_TH
  ];
</syntaxHighlight>


== uno Python Library ==
== uno Python Library ==

Revision as of 10:32, 22 October 2022

LibreOffice is a multi-platform Word-processor.

Spellcheck

In order for spellcheck to work, you will need to install the hunspell as well as the languages that you would like. For example this installs libreoffice with dictionaries for Ukrainian and Central Thai.

  environment.systemPackages = with pkgs; [
    libreoffice-qt
    hunspell
    hunspellDicts.uk_UA
    hunspellDicts.th_TH
  ];

uno Python Library

For getting uno.py python library to work the special path /lib/libreoffice/program needs to be included into the python path as well as the URE_BOOTSTRAP variable must be set.

let
  office = libreoffice-fresh-unwrapped;
in {
  environment.sessionVariables = {
    PYTHONPATH = "${office}/lib/libreoffice/program";
    URE_BOOTSTRAP = "vnd.sun.star.pathname:${office}/lib/libreoffice/program/fundamentalrc";
  };
}

KDE / Plasma

If you use KDE (Plasma) then you'll be better off with libreoffice-qt package. Otherwise you may lack, e.g. main menu bar.