The Converter

THL Toolbox > Essays > The Converter

The Converter

Contributor(s): Than Grove, Steven Weinberger

To see the XML that Word styles are converted into and the Word style that corresponds to text in the Type column of the Glossary Table, open the converter Word doc and:

  1. Press Alt F11, it will show you the Visual Basic editor.
  2. Under the View menu, choose Project Explorer.
  3. Open the Modules folder
  4. Double click on the JIATSConvMacros so that you see the code.
  5. In the drop down menu at the top that says "Declarations" (far right drop down menu), select "getElement"; this will display the Word styles and their corresponding XML output. Example:
    ElseIf contains(cs, "author tibetan") Then
            getElement = "<author lang=""tib""></author>"
  6. In the "Declarations" dropdown menu, select "createStyleArray"; this will display the Glossary Table Type column text (and Lang, which is what follows the dash) and its corresponding Word style. Example:
    thdlstys.Add (Array("author-tib", "author Tibetan,at"))

Provided for unrestricted use by the external link: Tibetan and Himalayan Library