>I need to add superscripts and subscripts into the definition of a word.
A deeper analysis of your needs will prove fruitful -- I claim that
what you need is to add markup denoting "this number modifies the
number of atoms represented by the preceding atomic symbel". TEI-Lite
could provide for this by using NUM with an appropriate type=
attribute. Your stylesheet can then subscript those numbers, which is
how chemists denote such things, if I recall correctly.
However, my analysis, it turns out, is actually more flawed than
yours. For if you need to denote "number of atoms" in your markup,
then surely you need to denote "this set of letters is an atomic
symbol", too; and probably "this set of atomic symbols and number
represents a molecule". And for a normal dictionary (as opposed to a
chemist's dictionary) you probably *don't* need to do this.
So if, in fact, representing the atomic structure of ethanol in your
markup is what you want, TEI-Lite is probably not the tool you want
-- we could probably force it into service by using some combination
of FORMULA, IDENT, IDNO, NUM, and RS. But even there, to properly
declare FORMULA you'd need to use the full TEI, not Lite. You might
want to see what the chemists have done with CML, the Chemical Markup
But if in fact you're completely willing to throw out all the
information about what these atomic symbols and subscripted numbers
represent, and just want a place to tell your stylesheet or other
output-generating processor "this is subscripted", I'd recommend
rend= of either NUM (for it is, in fact, a number), or HI (remaining
all but completely agnostic about why it's subscripted).
At the WWP, the value of rend= that we would use is "sub()". To
indicate various levels of subscription we could use
rend="sub(+1)" or rend="sub(2)"
but we don't actually have any software that will process any of the
more specific stuff.
I readily admit that
C<hi rend="sub()">2</hi>H<hi rend="sub()">5</hi>OH
is a bit cumbersome, and it might make more sense to use
in your local storage format, with an automated routine to change it
to the above TEI for interchange.
Alternatively, espicially if you know what your rendering engine will
eventually be, you could use the supplied TEI mechanism:
<!NOTATION TeX PUBLIC
'-//Donald E. Knuth 1983//NOTATION TeX Mathematical Markup//EN'>
<!-- or whatever the appropriate TeX or other notation is -->
-- Syd Bauman, EMT-Paramedic
SGML & XML programmer / analyst
Brown University Women Writers Project
[log in to unmask] 401-863-3835