Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Kyrgyz-Keyboard/Apertium-for-Kotlin-on-Android

Repository files navigation

  1. Clear all existence of apertium*, lt-*, hfst from the machine. Use which to find them (usually in /usr/local/bin)

  2. This will install all of the Apertium packages, but we will replace half of them later:

    apt install apertium-dev cg3 hfst  # Ubuntu
  3. Go to lttoolbox-java

    sh autogen.sh
    make
    make  # Might require running second time if the first one fails

    You should be able to run:

    > lt-proc-j -v
    org.apertium.lttoolbox.LTProc version 3.4.2
  4. Go to lttoolbox

    git checkout tags/v3.4.2 -b v3.4.2
    sh autogen.sh
    make

    You should be able to run:

    > lt-proc -v
    lt-proc version 3.4.2

    Check with ls -l /usr/local/bin/

  5. Go to apertium-kir

    Edit configure.ac:

    - PKG_CHECK_MODULES(APERTIUM, apertium >= 3.6.1)
    + PKG_CHECK_MODULES(APERTIUM, apertium >= 3.5.0)
    
    - PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= 3.5.1)
    + PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= 3.4.2)
    
    - PKG_CHECK_MODULES(CG3, cg3 >= 1.3.0)
    
    PKG_CHECK_MODULES(HFST, hfst >= 3.15.0)
    sh autogen.sh
    make  # can take 10+ minutes
  6. In IntelliJ IDEA, create a new project and add lttoolbox-java/dist/lttoolbox.jar as a dependency. Check the box to copy it to lib

  7. Copy apertium-kir/kir.automorf.bin to kotlin_test/src/main/resources/

Note

Currectly ther are symbolic links to lttoolbox.jar and kir.automorf.bin everywhere in the project

CLI Usage:

echo "боюнча" | java -jar lttoolbox.jar lt-proc apertium-kir/kir.automorf.bin

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Languages