Adding Semantic Domain tab

Hello all,

I’d like to create a Semantic Domains tab beside the language tabs. I’ve seen in the forums that people have done this, but there are no clear instructions for doing it.

Any suggestions appreciated.
Will

If your source is in LIFT format then you need to create a Reversal for a fake language.
In your LIFT file for Semantic Domain you will have a trait.

<trait name="semantic-domain" value="mammals"/>

The Information need to be added to a note or field so it displays in the entry and so it creates a tab.
So for each entry with a sematic domain you want to create the following:

         <note type="category">
            <form lang="sdm">
               <text>mammals</text>
            </form>
         </note>
         <reversal type="sdm">
            <form lang="sdm">
               <text>mammals</text>
            </form>
         </reversal>
         <trait name="semantic-domain" value="mammals"/>

I use the language ISO code of ‘sdm’ but any language code would work. You just need to adjust your Language name in the Languages section of DAB.

I have XSLT2 scripts to do this. But you could also use a Regular Expression or some other script.

I have not tried to do this for Flex XHTML, but it may be possible if you create another Analysis language.