This little Java UI application was created to help me learn French and can be used to help learn any language.
It is programmed using the Java Swing library and reads an lang.xml
as input: -
<?xml version="1.0" encoding="utf-8"?>
<language name="french" specialchars="àâçéèêëîôùû">
<course name="Level 1">
<lesson name="Week 1">
<topic name="Conversation (Introducing yourself)">
<item a="Bonjour Monsieur" q="Hello (to a man)"/>
<item a="Je m'appelle" q="I am called ..."/>
...
</topic>
...
</lesson>
...
</course>
...
</langauge>
The structure is as follows: -
<language>
- top level element withname
attribute (e.g.french
) and a list of special characters which can be access via the UI. This contains one or more ...<course>
elements - contains aname
attribute e.g.Level 1
. These contain one or more ...<lesson>
elements - contains aname
attribute which could be each week of the course (e.g.Week 1
).
These contain one or more ...<topic>
elements - containsname
attribute describe topic of learning e.g.Conversation (Introducing yourself)
. There could be 3 or 4 of these for each lesson.
These contains one or more ...<item>
elements - containsq
anda
(question and answer) attributes.
The application reads this XML file and provides the user the ability to quickly test what they learned.
If you are only interested in running BobLang (and not developing it) then simply download
the latest release of boblang.jar
to a folder on your computer.
If Java is installed, BobLang can be run as follows: -
java -jar boblang.jar
NOTE: BobLang won't work unless there is a valid lang.xml
at the same location.
You can either create your own or use the lang.xml
which is included with boblang.
A GitHub link to the latest version is available
here.
Ensure you have the following: -
- GIT - used for downloading and contributing new source
- Java JDK - is required to build the BobLang project. and Maven are installed and setup properly.
- Maven - required for dependancies.
Once these are downloaded and properly installed you can download the code via a git clone,
perform a maven build and run the Java self-contained-jar boblang.jar
which maven builds in the
target
folder.
# Change to a folder of your choice
cd workspace
# Download source from boblang repo on GitHub
git clone https://github.com/bobmarks/boblang.git
# Build project using Maven
mvn install
# Run boblang
java -jar target/boblang.jar
You can also run the application through your IDE of choice e.g. Eclipse.
Any questions email the author (Bob Marks) at [email protected]