• Home
  • Screenshots
  • Downloads
  • FAQ
  • Help/Contact
  • Blog
  • Development
  • How to customize an option list

    Most people won't need to know the following; you can normally just use the Configuration tool to customize your option lists.

    To share an option list with another project, locate the corresponding file and place it in the right place of the other project.

    For example, after you've customized a PartOfSpeech list, a PartsOfSpeech.xml file will appear in the same directory as your .lift file. To reuse it, just copy this to the same location in another project.

    If an option list exists in the same directory as the .lift file, that option list will be used. If not, then the application uses the option list in the "common" directory under where WeSay was installed.

    The keys in the option list file should match the keys in the data when it is imported.

    The file format is XML with a grammar as follows:

     optionsList -> options
    

    An optionsList contains a single options element

     options -> option+
    

    The options element contains one or more option elements

     option -> key, name, abbreviation?, description?
    

    The option element contains a key element followed by a name element, optionally followed by an abbreviation element optionally followed by a description element

     name,abbreviation,description -> form+
    

    The name, abbreviation and description elements contain one or more form elements

     form -> @ws, #text
    

    The form element contains a ws attribute that indicates the writing system of its content and some textual content.

     key -> #text
    

    The key element contains textual content.

    This page was last modified 06:27, 3 December 2007. This page has been accessed 698 times.