Pair viewer

From Apertium
Jump to navigation Jump to search

The Apertium Pairviewer is a HTML5 tool that depicts all Apertium language pairs in an interactive graph initially developed sometime before the Google Code-In 2013. Its source code can be found on GitHub and a demonstration is available here.

Setting up Pairviewer locally

Clone the git repository

Run git clone https://github.com/apertium/pairviewer.git

Set up local server with Python

First, make sure that you have Python installed on your system (you can do this by running python -v). Then, if what you have is Python 3, run python3 -m http.server Otherwise (i.e. you have Python 2), run python -m SimpleHTTPServer.

Open on browser

Now all that's left to do is try out Pairviewer yourself! Open your localhost address (can be copy-pasted from the terminal output of previous step) on a browser. And now you're all set!

Using Pairviewer

How Pairviewer works

Known bugs

There are a few apparent bugs that should be fixed before the pair viewer goes public.

  • in initial view (sometimes?), quz has no line connecting it to spa
  • sometimes two- and three-letter codes don't seem to merge
    • when just trunk and staging are selected, tur/tr and nob/nb are each separate from one another
    • when trunk, staging, and nursery are selected, nob/nb are merged, but tur/tr are separate
  • when all possible pairs are viewed (including ones with missing stems, etc.), pa doesn't have a line connecting it to ur