GUI Window

A simple GUI can be used to perform some of the steps needed for compilation of local content. You invoke the GUI as:

python3 $LARA/Code/Python/lara_gui.py

The following window will be displayed:

_images/gui.png

The list on top contains all local config files available under $LARA\Content

  • To perform automatic tagging (i.e. “treetagger”), select a content from the list and click on the Treetagger button. This will call the lara_run.py treetagger ... command.

  • To perform the first invocation of the LARA compiler (i.e. “resources”), select a content file from the list and click on the Resources button. This will call the lara_run.py resources ... command.

  • To perform the second invocation of the LARA compiler (i.e. “word_pages”), select a content file from the list and click on the Word Pages button. This will call the lara_run.py word_pages ... command.

  • To open the compiled HTML file in the browser click the Open in Browser button. This will call the lara_run.py open_in_browser ... command,

  • To start the editor for one of the files, select a content file from the list, pick the filetype and click on the Edit button. This will call the lara_run.py edit ... command.

  • To create a new content under $LARA\Content, enter a content ID in the field and click the Create button. This will call the lara_run.py newcontent ... command,

  • To convert a LARA audio directory, enter the name of the directory in the field (or “Chose” one) and click the Convert button. This will call the lara_run.py audio_dir_to_mp3 ... command,

All of these actions will call the appropriate lara_run.py command. The output will be written to the console window from which the GUI was started, as well as to the Output frame of the GUI window. Warnings and errors that are found in the output are coloured in orange and red resp.

  • To reload the list of contents, click on the Refresh List button.

  • To record commands (like “resource”, “words_pages”, etc.) click on the Record Batch button. After you’re done with recording, click on the Stop Recording button and save the commands in a batch file for later use. (The recording feature is currently only available for the Windows platform).

  • To close the GUI window, click on the x in the upper right corner of the window.