Sunday, September 1, 2013

Creating an audio dictionary with Webonary -- A web version of the Copala Triqui dictionary

For the last several months, I've been working on a web version of the Copala Triqui dictionary, hosted by the kind people at webonary.org  (part of SIL).  They provided the space for the page and the audio files, and Philip was very helpful in giving me advice.

The current version is available at http://copalatriqui.webonary.org/  (This is a preliminary draft, and not everything works correctly.  Comments welcome!)

Steps in getting this to work:
1) Within FLEx, you output XHTML.  There are a few issues about how to set up the dictionary configuration to deal with multiple writing systems.  The hardest thing was working to get all the audio files to display.

The current configuration of the dictionary prior to export is as in the following entry:

Here the names of the audio files for the lemma and the examples come directly after these elements of the entry.

Because I had originally recorded all the audio in .wav format, I needed to convert all the .wav files to .mp3 format for the web.

If you use the Send/Receive function, then normally the audio files will be located at the following place (substituting the name of your own project):



To hold the file names for the new .mp3 files, I created two custom fields -- Audio for Web and Audio for Web Examples.

The configuration for the Dictionary looks like this, with the Audio fields directly after the Headword and the Example:



2.) To upload the audio, you use a special entry to webonary.org via the AjaXplorer interface.  The interface looks like this:

To get the files onto the system, you use the upload button, and then you see an interface like the following:


3.) To convert the .wav to .mp3, I used Audacity.   You can select a group of files in Windows Explorer and drag them onto the Audacity window.  This has the effect of opening them all at once.


Then you can use the File | Export Multiple command to convert bunches of them to .mp3



4.)  The main XHTML output from FLEx needs to be uploaded in Webonary.  After you log in, you go to the Dashboard, then to Tools | Import | SIL FLEx dictionary, where you see a screen like the following:


Here you use the Choose File button to select the XHTML files generated by the Export function of FLEx.

5.) After doing all this, you should get a web page with audio links.  It is necessary to do a certain amount of editing of your webonary dictionary to get the title, menus, etc. to accurately reflect the name of this dictionary project (and not some other Webonary dictionary for a different language).

Here's a picture of the browse screen for entries beginning with m: