Difference between revisions of "User:Jatinluthra14"

From Apertium
Jump to navigation Jump to search
 
(100 intermediate revisions by the same user not shown)
Line 1: Line 1:
This page was written by Jatin Luthra, a 2016 Google Code-in student, which explains how to install Apertium on FreeBSD
How to install libreoffice-voikko on Ubuntu/Debian


=== Install Dependencies ===
I'm using Ubuntu 15.10 Willy Werewolf
For Standard Apertium Translation
pkg install bash gettext libgcrypt libgpg-error libiconv subversion libxml2 libxslt pcre pcre++ pkgconf autoconf automake libtool flex


If you need vislcg3/cg-proc/cg-comp (Constraint Grammar), you should also do:
===Change the user===
pkg install cmake icu boost-all gperf iperf iperf3 gawk
Change the user to root
su
Enter the root password.


=== Compiling and Installing Apertium ===
===Install Requirements===
Now you can move on to [[Minimal_installation_from_SVN]].

Type in the following command:
apt-get install libreoffice python3.4 git make sed findutils zip unzip pkg-config gettext libxml++2.6-dev libarchive-dev zlib1g-dev
cd ~

* 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?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fhfst%2Ffiles%2Fhfst%2Fsource%2F&ts=1452085521&use_mirror=ncu
./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, 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
sudo 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

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===

Latest revision as of 19:07, 19 December 2016

This page was written by Jatin Luthra, a 2016 Google Code-in student, which explains how to install Apertium on FreeBSD

Install Dependencies[edit]

For Standard Apertium Translation

pkg install bash gettext libgcrypt libgpg-error libiconv subversion libxml2 libxslt pcre pcre++ pkgconf autoconf automake libtool flex

If you need vislcg3/cg-proc/cg-comp (Constraint Grammar), you should also do:

pkg install cmake icu boost-all gperf iperf iperf3 gawk

Compiling and Installing Apertium[edit]

Now you can move on to Minimal_installation_from_SVN.