Difference between revisions of "Pair viewer"
Line 1: | Line 1: | ||
The Apertium '''Pairviewer''' is a HTML5 tool that depicts all Apertium [[list of language pairs|language pairs]] in an interactive graph initially developed sometime before the [[GCI|Google Code-In]] 2013. Its source code can be [https://github.com/apertium/pairviewer found on GitHub] and a demonstration is available [http://ilazki.thinkgeek.co.uk/~firespeaker/pairviewer/apertium.html here]. |
The Apertium '''Pairviewer''' is a HTML5 tool that depicts all Apertium [[list of language pairs|language pairs]] in an interactive graph initially developed sometime before the [[GCI|Google Code-In]] 2013. Its source code can be [https://github.com/apertium/pairviewer found on GitHub] and a demonstration is available [http://ilazki.thinkgeek.co.uk/~firespeaker/pairviewer/apertium.html here]. |
||
== Setting up Pairviewer == |
== Setting up Pairviewer locally == |
||
===Clone the git repository'''=== |
|||
Run <code>git clone https://github.com/apertium/pairviewer.git</code> |
|||
===Set up local server with Python=== |
|||
''First'', make sure that you have Python installed on your system (you can do this by running <code>python -v</code>). Then, if what you have is Python 3, run <code>python3 -m http.server</code> Otherwise (i.e. you have Python 2), run <code>python -m SimpleHTTPServer</code>. |
|||
===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 == |
== Using Pairviewer == |
Revision as of 16:53, 6 December 2018
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.
Contents
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