diff -r 5b32dc297d05 -r 3c36c452f013 sysmodellibs/sysmodelgen/doc/sysmodel/SMG-Input-Files/Dictionary-XMLFile.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysmodellibs/sysmodelgen/doc/sysmodel/SMG-Input-Files/Dictionary-XMLFile.html Wed Oct 13 16:21:25 2010 +0100 @@ -0,0 +1,154 @@ + + + + + + Dictionary XML File in System Model Generator Input Files + + + + + + + + + + +
+ + + + +
+
+
+
+
+
+

Dictionary XML File

+

Purpose

+ You can use the Dictionary XML to provide abbreviations and other short forms for specific words. + The system model generator will create a Localization XML file from this when creating the system model.

+ + +

If using the Localization XML file just to provide abbreviations, you may be better of using a Dictionary XML file instead.

+ +
+
+

Syntax

+
<?xml version="1.0"?> +
<dict> +
<word term="term" d="display-form" abbrev="abbreviation" s="short-form"/> +
<word …/> +
… +
</dict>
+ +

The root element dict takes no attributes. the word element specifies a word, and three forms of information: +

    +
  1. +

    + A display form +

    +
  2. + +
  3. + +

    + An abbreivation +

    +
  4. + +
  5. + +

    + A short form +

    +
  6. + +
+ +

The element word can takes these attributes: +

    +
  • +

    + term="term": This is the term which is to be abbreviated. It's case sensitive and should apper the same way it appears in the system defiition name attribtues. Spaces are not valid, only a single word can be used. +

    +
  • + +
  • +

    + d="display-form": An optional attribute specifing how the term will be displayed if there is enough space. This is where you would show the hyphenation or other special character replacements. This will almost always be the full length word, but with added soft hyphens. For example
    + <word term="Interface" d="Inter&#xad;face"/>
    + <word term="and" d="&amp;"/>
    . +

    +
  • + +
  • +

    + abbrev="abbreivation": An optional attribute specifing a shorter abbreviation for the term which can be used if there is insufficient space for the display form. + This will often be used in combination with d, but is not required to be. + For example
    + <word term="Supplementary" d="Suppl."/>
    + <word term="Documentation" d="Docs"/>
    . +

    +
  • +
  • +

    + s="short-form": An optional attribute specifing the shortest possible form of the term that still makes sense. + This will be used when space is very low. + This can be used instead of abbrev or in addition to it. + For example
    + <word term="Hardware" s="HW"/>
    + <word term="Database" abbrev="Dbase." s="DB"/>
    . +

    +
  • + + +
+
+

Example

+
<?xml version="1.0" ?> +
<dict> +
+ <word term="Multimedia" d="Multi&#xad;media" s="MM"/> +
<word term="Frameworks" d="Frame&#xad;works" abbrev="Fmwks." s="FW"/> +
<word term="Framework" d="Frame&#xad;work" abbrev="Fmwk." s="FW"/> +
<word term="Adaptation" abbrev="Adapt." d="Adapta&#xad;tion"/> +
<word term="Bluetooth" d="Blue&#xad;tooth" abbrev="Btooth." s="BT"/> +
<word term="Localization" d="Localiz&#xad;ation"/> +
<word term="Communications" d="Communi&#xad;cations" abbrev="Comms"/> +
<word term="Provisioning" d="Provision&#xad;ing" s="Prov."/> +
<word term="Phonebook" d="Phone&#xad;book" s="Phbk."/> +
</dict>
+ +
+ +
+ +
+
+
+
+
+
+
+ +
+ +