<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/css"
   href="http://www.albany.edu/~hammond/gellmu/gellmuart.css"?>
<!DOCTYPE article
  PUBLIC "-//GNU GPL: William F. Hammond//DTD GELLMU XML 0.7.0//EN"
  "http://www.albany.edu/~hammond/gellmu/xml/xgellmu.dtd" [
<!ENTITY TableOfContentsFile SYSTEM "teaser.xcn">
<!ENTITY % ComputedEntitiesFile SYSTEM "teaser.xet">
%ComputedEntitiesFile;
]>
<article stem="teaser"
><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><preamble
><surtitle
>HTML Marked Up with GELLMU</surtitle><title
>What Kind of Document is This?</title><author
>William F. Hammond</author><address
>Department of Mathematics <amp
/> Statistics<brk
/>
         The University at Albany<brk
/>
         Albany, New York <spc
/><spc
/>12222 <spc
/><spc
/>(USA)</address><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><nul
/><latexcommand
><bsl
/>setlength<lbr
/><bsl
/>topmargin<rbr
/><lbr
/>-36bp<rbr
/></latexcommand><latexcommand
><bsl
/>setlength<lbr
/><bsl
/>textheight<rbr
/><lbr
/>704bp<rbr
/></latexcommand><nul
/><nul
/><nobanner
/></preamble><body
><Section depth="1" seq = "1" sid="1"
><sunit>&SecRef-1;</sunit
><shead
><label lseq="1">SU-1</label
>Some Markup</shead><parb
>The following is markup under <emph
>basic</emph> <abbr
>GELLMU</abbr> for an
<abbr
>HTML</abbr> document:
<verblist
><nln
><bsl
/>documenttype<lbr
/>html<rbr
/></nln><nln
><bsl
/>newcommand<lbr
/><bsl
/>h1c<rbr
/><lsb
/>1<rsb
/><lbr
/><bsl
/>h1<lsb
/>align<eqc
/><quo
/>center<quo
/><rsb
/><lbr
/><hsh
/>1<rbr
/><rbr
/></nln><nln
><bsl
/>newcommand<lbr
/><bsl
/>qa<rbr
/><lsb
/>2<rsb
/><lbr
/><bsl
/>a<lsb
/>href<eqc
/><quo
/><hsh
/>1<quo
/><rsb
/><lbr
/><hsh
/>2<rbr
/><rbr
/></nln><nln
><bsl
/>newcommand<lbr
/><bsl
/>ua<rbr
/><lsb
/>1<rsb
/><lbr
/><bsl
/>a<lsb
/>href<eqc
/><quo
/><hsh
/>1<quo
/><rsb
/><lbr
/><hsh
/>1<rbr
/><rbr
/></nln><nln
><bsl
/>newcommand<lbr
/><bsl
/>latex<rbr
/><lbr
/><bsl
/>em<lbr
/>LaTeX<rbr
/><rbr
/></nln><nln
><bsl
/>title<lbr
/>HTML<spc
/>Marked<spc
/>Up<spc
/>with<spc
/>GELLMU<rbr
/></nln><nln
><bsl
/>h1c<lbr
/>Is<spc
/><bsl
/>em<lbr
/>This<rbr
/><spc
/>an<spc
/>HTML<spc
/>Document<qum
/><rbr
/></nln><nln
></nln><nln
><bsl
/>p<spc
/>Although<spc
/>this<spc
/>looks<cma
/><spc
/>more<spc
/>or<spc
/>less<cma
/><spc
/>like<spc
/>a<spc
/><bsl
/>latex<spc
/>document<cma
/></nln><nln
>it<spc
/>is<spc
/>really<spc
/>a<spc
/>document<spc
/>written<spc
/>in<spc
/>the<spc
/>HTML<spc
/>language<spc
/>using</nln><nln
><bsl
/>latex<hyp
/>like<spc
/>syntax<per
/></nln><nln
><bsl
/>p</nln><nln
>This<spc
/>document<spc
/>may<spc
/>be<spc
/>easily<spc
/>converted<spc
/>to<spc
/>a<spc
/>normal<spc
/>HTML<spc
/>document</nln><nln
>using<spc
/>the<spc
/><bsl
/>em<lbr
/>basic<rbr
/><spc
/>mode<spc
/>of<spc
/>the<spc
/>GELLMU<spc
/>syntactic<spc
/>translator<cma
/></nln><nln
>which<spc
/>is<spc
/>an<spc
/>Emacs<spc
/>Lisp<spc
/>program<spc
/>available<spc
/>on<spc
/>the<spc
/>web<spc
/>through</nln><nln
><bsl
/>center<lbr
/><bsl
/>ua<lbr
/>http<cln
/><sol
/><sol
/>www<per
/>albany<per
/>edu<sol
/><tld
/>hammond<sol
/>gellmu<sol
/><rbr
/><spc
/><per
/><rbr
/></nln><nln
><bsl
/>p</nln><nln
>GELLMU<spc
/>stands<spc
/>for<spc
/><lsq
/><lsq
/>Generalized<spc
/>Extensible<spc
/><bsl
/>latex<hyp
/>Like<spc
/>Markup<rsq
/><rsq
/><per
/></nln><nln
>Its<spc
/>primary<spc
/>purpose<spc
/>is<spc
/>to<spc
/>serve<spc
/>as<spc
/>a<spc
/>bridge<spc
/>for<spc
/>authors<spc
/>from</nln><nln
><bsl
/>latex<spc
/>to<spc
/>the<spc
/>world<spc
/>of<spc
/>XML<per
/></nln><nln
><bsl
/>p</nln><nln
>Thus<cma
/><spc
/>this<spc
/>usage<spc
/>of<spc
/>GELLMU<spc
/>is<spc
/>basically<spc
/>recreational<spc
/>compared<spc
/>to</nln><nln
>its<spc
/>more<spc
/>serious<spc
/>purpose<cln
/><spc
/>using<spc
/><bsl
/>latex<hyp
/>like<spc
/>markup<spc
/>to<spc
/>write</nln><nln
>for<spc
/>a<spc
/>much<spc
/>richer<spc
/>XML<spc
/>document<spc
/>type<spc
/>than<spc
/>HTML<per
/><spc
/><spc
/>Actually<cma
/><spc
/>this</nln><nln
>document<spc
/>is<spc
/>written<spc
/>for<spc
/><lsq
/><lsq
/>old<rsq
/><rsq
/><spc
/>HTML<cma
/><spc
/>which<spc
/>is<spc
/>an<spc
/>SGML<spc
/>application</nln><nln
>that<spc
/>does<spc
/>not<spc
/>come<spc
/>under<spc
/>XML<per
/><spc
/><spc
/>But<spc
/>there<spc
/>is<spc
/>a<spc
/>canonical<spc
/>way<spc
/>to</nln><nln
>translate<spc
/><lsq
/><lsq
/>old<rsq
/><rsq
/><spc
/>HTML<spc
/>to<spc
/>the<spc
/>XML<spc
/>version<spc
/>of<spc
/>HTML<per
/></nln><nln
><bsl
/>p</nln><nln
>For<spc
/>more<spc
/>information<spc
/>on<spc
/>writing<spc
/>HTML<spc
/>this<spc
/>way<spc
/>see<spc
/>the<spc
/>short<spc
/>article</nln><nln
><bsl
/>qa<lbr
/>http<cln
/><sol
/><sol
/>www<per
/>albany<per
/>edu<sol
/><tld
/>hammond<sol
/>gellmu<sol
/>ghtml<per
/>html<rbr
/><lbr
/><bsl
/>em<lbr
/>Using</nln><nln
>GELLMU<spc
/>to<spc
/>Write<spc
/>HTML<rbr
/><rbr
/><per
/></nln><nln
><bsl
/>p</nln><nln
>For<spc
/>more<spc
/>information<spc
/>on<spc
/>the<spc
/>serious<spc
/>purpose<spc
/>of<spc
/>GELLMU<spc
/>please<spc
/>visit</nln><nln
><bsl
/>qa<lbr
/>http<cln
/><sol
/><sol
/>www<per
/>albany<per
/>edu<sol
/><tld
/>hammond<sol
/>gellmu<sol
/><rbr
/><lbr
/>The<spc
/>GELLMU<spc
/>Web<rbr
/><per
/></nln></verblist>
</parb></Section
><Section depth="1" seq = "2" sid="2"
><sunit>&SecRef-2;</sunit
><shead
><label lseq="2">SU-2</label
>Approximate Rendering</shead><parb
>Now follows a rendering of how the <abbr
>HTML</abbr> should appear<eos
/>
<latexcommand
><bsl
/>pagebreak</latexcommand>
</parb><hrule
/><supsuphdrc
>Is <emph
>This</emph> an HTML Document?</supsuphdrc><cs0
/><parb
> Although this looks, more or less, like a <latex
/> document,
it is really a document written in the HTML language using
<latex
/><hyp
/>like syntax<eos
/>  <cs0
/></parb><parb
>This document may be easily converted to a normal HTML document
using the <emph
>basic</emph> mode of the GELLMU syntactic translator,
which is an Emacs Lisp program available on the web through
<display
><urlanch
>http://www.albany.edu/<tld
/>hammond/gellmu/</urlanch> .</display>  <cs0
/></parb><parb
>GELLMU stands for <quophrase
>Generalized Extensible <latex
/><hyp
/>Like Markup</quophrase><eos
/>
Its primary purpose is to serve as a bridge for authors from
<latex
/> to the world of XML<eos
/>  <cs0
/></parb><parb
>Thus, this usage of GELLMU is basically recreational compared to
its more serious purpose: using <latex
/><hyp
/>like markup to write
for a much richer XML document type than HTML<eos
/>  Actually, this
document is written for <quophrase
>old</quophrase> HTML, which is an SGML application
that does not come under XML<eos
/>  But there is a canonical way to
translate <quophrase
>old</quophrase> HTML to the XML version of HTML<eos
/>  <cs0
/></parb><parb
>For more information on writing HTML this way see the short article
<anch
><anchref
>href="http://www.albany.edu/<tld
/>hammond/gellmu/ghtml.html"</anchref><anchv
><emph
>Using
GELLMU to Write HTML</emph></anchv></anch><eos
/>  <cs0
/></parb><parb
>For more information on the serious purpose of GELLMU please visit
<anch
><anchref
>href="http://www.albany.edu/<tld
/>hammond/gellmu/"</anchref><anchv
>The GELLMU Web</anchv></anch><eos
/>
</parb><hrule
/></Section
><Section depth="1" seq = "3" sid="3"
><sunit>&SecRef-3;</sunit
><shead
><label lseq="3">SU-3</label
>What is Going On?</shead><parb
>First observe that the verbatim section is an <abbr
>HTML</abbr> document
marked up with <abbr
>GELLMU</abbr><eos
/>  It may be converted to <abbr
>HTML</abbr>
with
<display
><quostr
>emacs<spc
/><hyp
/>batch<spc
/><hyp
/>l<spc
/>gellmu<per
/>elc<spc
/><hyp
/>f<spc
/>gellmu<hyp
/>html<spc
/>htease<per
/>glm</quostr></display>
if it is saved to the name <quostr
>htease<per
/>glm</quostr><eos
/></parb><parb
>This document overall is a <latex
/><hyp
/>like document prepared for
<anch
><anchref
>href="http://www.albany.edu/<tld
/>hammond/gellmu/iglm.html"</anchref><anchv
><emph
>regular</emph>
<abbr
>GELLMU</abbr></anchv></anch> under the didactic <abbr
>GELLMU</abbr>
<emph
>article</emph> document type, a document type that has both <abbr
>SGML</abbr>
and <abbr
>XML</abbr> existence<eos
/></parb><parb
>It makes extensive use of the <emph
>newcommand</emph> meta<hyp
/>command in
<abbr
>GELLMU</abbr>, which is macro expansion with arguments<eos
/>  Moreover,
it begins by using the <emph
>verbatim</emph> pseudo<hyp
/>environment to present
<latex
/><hyp
/>like source under <emph
>basic</emph> <abbr
>GELLMU</abbr> for an <abbr
>HTML</abbr>
document<eos
/>  That document itself makes use of <emph
>newcommand</emph><eos
/></parb><parb
>The use of <emph
>newcommand</emph> in the <quophrase
>internal</quophrase> document is exported
to this document using <emph
>newcommand</emph> in this document, recasting
<abbr
>HTML</abbr> constructions into equivalent markup under <emph
>article</emph><eos
/>
The source that appeared inside <emph
>verbatim</emph> wraps is then used
again without wrapping, and appears between horizontal rules<eos
/></parb><parb
>While the didactic production system for <emph
>article</emph> comes with
formatters for the <abbr
>XML</abbr> version only toward the targets
<iseq
>(1)</iseq> <abbr
>HTML</abbr> and <iseq
>(2)</iseq> <latex
/>, the document type is
suitable for handling by any general purpose <abbr
>XML</abbr> processor<eos
/></parb><parb
>Would someone care to format the <abbr
>XML</abbr> version to <iseq
>(3)</iseq> DocBook<eoq
/>
<spc
/><iseq
>(4)</iseq> SGMLTexi? <spc
/><iseq
>(5)</iseq> TEI<eoq
/>  There only about 50 tags
in the <abbr
>XML</abbr>, many of which are easy empties and a few of which
should be thrown away<eos
/>
</parb></Section
></body
></article>
