Difference between revisions of "Languages"

From Apertium
Jump to navigation Jump to search
Line 43: Line 43:
 
|-
 
|-
 
|}
 
|}
  +
  +
==Requiring a monolingual package as a dependency of a pair==
  +
Say you want apertium-[https://en.wikipedia.org/wiki/ISO_639:fie fie]-[https://en.wikipedia.org/wiki/ISO_639:bar bar] to depend on some monolingual data from the apertium-bar package, e.g. <code>apertium-bar/bar.lrx</code> and maybe other such files.
  +
  +
Assuming apertium-bar is set up correctly, you can put the following lines into the <code>configure.ac</code> of apertium-fie-bar:
  +
<pre>
  +
PKG_CHECK_MODULES([APERTIUM_BAR],[apertium-bar])
  +
AC_ARG_VAR(BARSRC, "Source directory for apertium-bar")
  +
AS_IF([test -z "$BARSRC"], [BARSRC=`pkg-config --variable=srcdir apertium-bar`])
  +
</pre>
  +
  +
and in the <code>Makefile.am</code>, you can write rules like this:
  +
<pre>
  +
bar-fie.lrx.bin: $BARSRC/bar.lrx
  +
lrx-comp $< $@
  +
</pre>
  +
  +
Now you'll have to "make install" apertium-bar before running autogen.sh in apertium-fie-bar, and apertium-fie-bar will use the bar.lrx which is installed by apertium-bar in its compilation.
  +
  +
If you make a lot of changes to apertium-bar and want to avoid having to "make install" for each and every change, you can do this in apertium-fie-bar:
  +
<pre>
  +
./autogen.sh BARSRC=/path/to/apertium-bar
  +
</pre>
   
 
==See also==
 
==See also==

Revision as of 19:51, 14 October 2013

If you are looking for the category, click here

Languages is a module of the SVN where monolingual language data lives. Monolingual language data in Apertium is slowly being moved to this new repository scheme. If you feel something is missing, please feel free to contact us.

It can be found here

Contents

Module Language Entries Coverage
apertium-bak Bashkir 46,501 ~66%
apertium-chv Chuvash 10,267 ~85%
apertium-dan Danish - -
apertium-gla Scottish Gaelic - -
apertium-hbs Serbo-Croatian - -
apertium-hye Armenian - -
apertium-kaz Kazakh 36,595 ~94.5%
apertium-kir Kyrgyz 14,424 ~90.4%
apertium-lvs Latvian - -
apertium-mlt Maltese - -
apertium-nog Nogay 1,385 ~81.4%
apertium-rus Russian - -
apertium-sqi Albanian - -
apertium-tat Tatar 55,702 ~91%
apertium-urd Urdu - -

Requiring a monolingual package as a dependency of a pair

Say you want apertium-fie-bar to depend on some monolingual data from the apertium-bar package, e.g. apertium-bar/bar.lrx and maybe other such files.

Assuming apertium-bar is set up correctly, you can put the following lines into the configure.ac of apertium-fie-bar:

PKG_CHECK_MODULES([APERTIUM_BAR],[apertium-bar])
AC_ARG_VAR(BARSRC, "Source directory for apertium-bar")
AS_IF([test -z "$BARSRC"], [BARSRC=`pkg-config --variable=srcdir apertium-bar`])

and in the Makefile.am, you can write rules like this:

bar-fie.lrx.bin: $BARSRC/bar.lrx
	lrx-comp $< $@

Now you'll have to "make install" apertium-bar before running autogen.sh in apertium-fie-bar, and apertium-fie-bar will use the bar.lrx which is installed by apertium-bar in its compilation.

If you make a lot of changes to apertium-bar and want to avoid having to "make install" for each and every change, you can do this in apertium-fie-bar:

./autogen.sh BARSRC=/path/to/apertium-bar

See also