Goal:
when someone is just learning a language, they end up looking up words a-lot. A dictionary is just not the right tool for looking up a list of words, but what is? This tool will be provided with some lojban text by the user, and will help the user read it in several ways.
1 It will read each sentence out loud to the user.
2 It will teach sentence structure by providing the user with jbofi'e output for each sentence in the provided text.
3 It will display the definition for each word in the text as the user reads.
The plan:
Programing language: Perl
UI:
Definition of current word taken from gismu.txt cmavo.txt and NORALUJV.txt. |
Read text.(malglico) |
.i current sentence. |
Unread text. |
jbofi'e output for current sentence |
user interaction:
To be aided in reading a piece of lojban text, the user would paste some lojban text into the "unread text" text box.
The use presses the right arrow: |
If the cursor is at the end of the current sentence text box then: |
All of the text up to the second '.i' in the "unread text" text box is moved up to the "current sentence" text box. http://www.lojban.org/tiki/tiki-download_wiki_attachment.php?attId=132 is used to read the text in the "current sentence" text box to the user. Jbofi'e output for "current sentence" text box is updated. The cursor is sent to the beginning of the "current sentence" text box and the default command for right arrow is executed. |
Default: |
The "definition of current word(the next word in the "current sentence" text box after the cursor) taken from gismu.txt cmavo.txt and NORALUJV.txt" text box is updated for the next word in the "current sentence" text box and the cursor is sent to the end of that word. |
I bet you can guess what back arrow should do...