Difference between revisions of "Using Apertium spellers with LibreOffice-Voikko on Debian"

From Apertium
Jump to navigation Jump to search
Line 1: Line 1:
 
How to install libreoffice-voikko on Ubuntu/Debian
 
How to install libreoffice-voikko on Ubuntu/Debian
   
===Install Requirements===
+
==Install Requirements==
   
 
* Install requirements from apt
 
* Install requirements from apt
Line 8: Line 8:
 
Here any version of Python 3 can be used.
 
Here any version of Python 3 can be used.
   
  +
== Install Prerequisites ==
 
=== Setup for Projectjj repo users ===
 
=== Setup for Projectjj repo users ===
   
Line 44: Line 45:
 
sudo make vvfst-install DESTDIR=/usr/local/voikkodict
 
sudo make vvfst-install DESTDIR=/usr/local/voikkodict
   
===Install Language Module===
+
==Install Language Module==
 
I'll be using Kazakh
 
I'll be using Kazakh
 
* To install Kazakh language module, First get it
 
* To install Kazakh language module, First get it
Line 64: Line 65:
 
S: билемейміз
 
S: билемейміз
   
===Install LibreOffice-Voikko===
+
==Install LibreOffice-Voikko==
   
 
Get it
 
Get it
Line 77: Line 78:
 
make oxt
 
make oxt
   
===Adding the extension to LibreOffice===
+
==Adding the extension to LibreOffice==
   
 
* Open LibreOffice
 
* Open LibreOffice
Line 94: Line 95:
 
[[File:Configuring Extension.png]]
 
[[File:Configuring Extension.png]]
   
===Test===
+
==Test your installation==
 
* Goto Tools>Options>Language
 
* Goto Tools>Options>Language
 
* Choose Kazakh
 
* Choose Kazakh

Revision as of 19:25, 10 January 2016

How to install libreoffice-voikko on Ubuntu/Debian

Install Requirements

  • Install requirements from apt
sudo apt-get install libreoffice python3 git make sed findutils zip unzip pkg-config gettext \
libxml++2.6-dev libarchive-dev zlib1g-dev unzip automake autoconf libtool flex bison g++ libreadline-dev

Here any version of Python 3 can be used.

Install Prerequisites

Setup for Projectjj repo users

If you are a Projectjj repo user then some of depedencies can be installed this way. Otherwise if things don't work for you, you can head over to next section.

  • Install foma and hfst-ospell
sudo apt-get install foma hfst-ospell

If not using Projectjj then Compile

  • Install foma
svn co http://foma.googlecode.com/svn/trunk/foma/
make; sudo make install
  • Install hfst-ospell
./configure --enable-zhfst --enable-zip --enable-xml
make
sudo make install

Install Others

  • Install libvoikko
wget http://www.puimula.org/voikko-sources/libvoikko/libvoikko-4.0.tar.gz
tar xvf libvoikko-4.0.tar.gz
cd libvoikko-4.0
./autogen.sh
./configure --prefix=/usr/local/voikko --with-dictionary-path=/usr/local/voikkodict --enable-hfst; make
sudo make install
  • Install voikko-fi
wget http://www.puimula.org/voikko-sources/voikko-fi/voikko-fi-2.0.tar.gz
tar xvf voikko-fi-2.0.tar.gz
cd voikko-fi-2.0
PATH=/usr/local/voikko/bin:$PATH make vvfst
sudo make vvfst-install DESTDIR=/usr/local/voikkodict

Install Language Module

I'll be using Kazakh

  • To install Kazakh language module, First get it
svn co https://svn.code.sf.net/p/apertium/svn/languages/apertium-kaz/
cd apertium-kaz
./autogen.sh --enable-ospell && make && sudo make install && sudo ldconfig
  • Test the working of it
sudo cp kaz.zhfst /usr/local/voikkodict/5/kk.zhfst
echo "қазақша билмеймін" | tr ' ' '\n' | voikkospell -d kk -s
  • The output is
C: қазақша
W: билмеймін
S: билеймін
S: білмеймін
S: билемеймін
S: бөлмеймін
S: билемейміз

Install LibreOffice-Voikko

Get it

git clone https://github.com/voikko/libreoffice-voikko

Add the language module to folder

sudo cp kk.zhfst /usr/local/voikkodict/5/mor-standard/
sudo unzip /usr/local/voikkodict/5/mor-standard/kk.zhfst

Change Directory and Compile

cd libreoffice-voikko/
make oxt

Adding the extension to LibreOffice

  • Open LibreOffice
  • Goto Tools>Extension Manager
  • Click on the Add button
  • Browse to libreoffice-voikko>build
  • Open voikko.oxt

Extension Manager.png

  • Goto Tools>Options
  • Open Language Settings>Writing Aids
  • Click on Edit
  • Change Language to Kazakh

Configuring Extension.png

Test your installation

  • Goto Tools>Options>Language
  • Choose Kazakh
  • Click Ok
  • Type қазақша билмеймін
  • A red wavy line will appear on билмеймін,meaning it's misspelled

Libre-Office-Voikko.png

  • To get correct suggestions, Right click on the mistaken word and suggestions will appear in context menu.
  • If there is any other problem, You can contact Me or Apertium Members.