] >
Gloss has its own, simple, human readible language that you will be writing in.
The Glosser converts the gloss language to XML, and so the structure is very similar to that of XML and hence XHTML. From now on I shall refer to the Gloss code as the source code and the resulting XHTML or XML will be called the object code. We get from the source code to the object code by 'glossing' the source gloss file. There are a few important things to know:
[This is in text mode]
. Anything written whilst in text mode will remain as text in the object code.this is not in text mode
will result in the following object XML code:
<this><is><not><in><text><mode/></text></in></not></is></this>
this is not in text mode
will give the following object XML code:
<this><is><not><in/></not></is><text/><mode/></this>
or, re-written to show the inclusion:
<this> <is> <not> <in/> </not> </is> <text/> <mode/> </this>
Notice:
tag_name @attribute_name[attribute_value] tag_content
.These characters are entered in gloss by using the escape character - \. For example, to enter an opening curly bracket in the object XHTML code one would type \{
in the gloss source code, or for a backslash one would use \\
.
p [This is a paragraph] ; This is just a comment, and will not be included in the object code.
That just about covers the basics, now for an example of writing gloss source code for an XHTML document.
This page is copyright. Web page design and creation by GLOSS.