Quantcast
Channel: SIL Language Software Community - Latest topics
Viewing all articles
Browse latest Browse all 649

Managing suffixes

$
0
0

In the Esperanto language are many suffixes and endings that allow very long words to be constructed. When choosing a word from the lexical model of a touch keyboard, it would be very useful if you could add some suffixes to the word, as needed, simply by pressing a key. I then wrote a test keyboard for handling some suffixes, as shown in the image below, where the “levels” represent the position of the suffix from the end of the word, and the “keys” are the ones to press to alternate between the different suffixes :

immagine

So, for example, if you write the word “vivo”, which means “life” and press the “1” key on your keyboard, it becomes “vivon”. If you press it again, it becomes “vivoj”. Now, if you press the “2” key, it becomes “vivaj”. If you now press the “4” key, it becomes “vivantaj”. But some sequences are not possible, like “ejn”, so I had to handle them in the code.

Since there are so many possible combinations, I invented a method to manage all these suffixes, writing a relatively short code. So I would like to know if you think this is a good method or if there might be a better one.

Thanks

Suffixes.zip (13.9 KB)

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 649

Trending Articles