LibreOffice: Difference between revisions
imported>Makefu Created page with "LibreOffice is a multi-platform Word-processor. == uno Python Library == For getting <code>uno.py</code> python library to work the special path <code>/lib/libreoffice/progra..." |
Added hints on hyphenation languages |
||
(8 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
LibreOffice is a multi-platform | LibreOffice is a multi-platform office suite. It consists of programs for word processing (Writer); creating and editing spreadsheets (Calc), slideshows (Impress), diagrams and drawings (Draw); working with databases (Base); and composing mathematical formulae (Math). | ||
== uno Python Library == | == Spellcheck == | ||
For getting <code>uno.py</code> python library to work the special path <code>/lib/libreoffice/program</code> needs to be included into the python path as well as the <code>URE_BOOTSTRAP</code> variable must be set. | |||
In order for spellcheck to work, you will need to install the <code>hunspell</code> package as well as the <code>hunspellDicts.</code> packages for 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> | |||
== Hyphenation == | |||
In order to add hyphenation dictionaries, use | |||
<syntaxhighlight lang="nix"> | |||
environment.systemPackages = with pkgs; [ | |||
libreoffice-qt | |||
hyphenDicts.en_GB # British English | |||
hyphenDicts.de_DE # German, etc. | |||
]; | |||
</syntaxhighlight> | |||
== uno Python Library for API access == | |||
With <code>uno.py</code> it is possible to access the LibreOffice API with Python. For getting <code>uno.py</code> python library to work the special path <code>/lib/libreoffice/program</code> needs to be included into the python path as well as the <code>URE_BOOTSTRAP</code> variable must be set. | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
let | let | ||
office = libreoffice-fresh-unwrapped; | office = pkgs.libreoffice-fresh-unwrapped; | ||
in { | in { | ||
environment.sessionVariables = { | environment.sessionVariables = { | ||
Line 14: | Line 38: | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== KDE / Plasma == | |||
If you use KDE (Plasma) then you'll be better off with <code>libreoffice-qt</code> package. Otherwise you may lack, e.g. main menu bar. | |||
== See also == | |||
* [[Onlyoffice]], software suite that offers online and offline tools for document editing, collaboration, and management. | |||
[[Category:Applications]] |