Difference between revisions of "User:Jatinluthra14"

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
   
I'm using Ubuntu 15.10 Willy Werewolf
+
I'm using Ubuntu
   
 
===Change the user===
 
===Change the user===
Line 7: Line 7:
 
su
 
su
 
Enter the root password.
 
Enter the root password.
  +
This is necessary because in some steps sudo does not work properly.
   
 
===Install Requirements===
 
===Install Requirements===
   
 
Type in the following command:
 
Type in the following command:
apt-get install libreoffice python3.4 git make sed findutils zip unzip pkg-config gettext \
+
apt-get install libreoffice python3.x git make sed findutils zip unzip pkg-config gettext \
 
libxml++2.6-dev libarchive-dev zlib1g-dev file-roller
 
libxml++2.6-dev libarchive-dev zlib1g-dev file-roller
 
cd ~
 
cd ~
  +
Here any version of Python 3 can be used.
   
 
* Download Requirements
 
* Download Requirements
Line 41: Line 43:
 
===Install Language===
 
===Install Language===
 
I'll be using Kazakh
 
I'll be using Kazakh
* To install Kazakh, First get it
+
* To install Kazakh language, First get it
 
svn co https://svn.code.sf.net/p/apertium/svn/languages/apertium-kaz/
 
svn co https://svn.code.sf.net/p/apertium/svn/languages/apertium-kaz/
 
cd apertium-kazakh
 
cd apertium-kazakh

Revision as of 03:31, 7 January 2016

How to install libreoffice-voikko on Ubuntu/Debian

I'm using Ubuntu

Change the user

Change the user to root

su

Enter the root password. This is necessary because in some steps sudo does not work properly.

Install Requirements

Type in the following command:

apt-get install libreoffice python3.x git make sed findutils zip unzip pkg-config gettext \
libxml++2.6-dev libarchive-dev zlib1g-dev file-roller
cd ~

Here any version of Python 3 can be used.

  • Download Requirements

Goto http://voikko.puimula.org/sources.html Download all the packages

  • Install Foma
svn co http://foma.googlecode.com/svn/trunk/foma/
cd foma
make && sudo make install
  • Install hfst-ospell
wget http://downloads.sourceforge.net/project/hfst/hfst/source/hfstospell-0.4.0.tar.gz
./configure --enable-zhfst --enable-xml --enable-zip && make && sudo make install
  • Install libvoikko

Extract libvoikko and change the directory

./autogen.sh
./configure --prefix=/usr/local/voikko --with-dictionary-path=/usr/local/voikkodict --enable-hfst; make
make install
  • Install voikko-fi

Extract and change the directory. Then

PATH=/usr/local/voikko/bin:$PATH make vvfst
make vvfst-install DESTDIR=/usr/local/voikkodict

Install Language

I'll be using Kazakh

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

Install LibreOffice-Voikko

Get it

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

Add the language to folder

cp kk.zhfst ./mor-standard/
file-roller -h 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

Test

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

Done

It means Everything is fine and working.