%D \module
%D   [       file=symb-gtahoefler,
%D        version=2005.12.02,
%D          title=\CONTEXT\ Symbol Libraries,
%D       subtitle=Hoefler Ornaments support,
%D         author=Adam T. Lindsay,
%D           date=\currentdate,
%D      copyright={Gerben Wierda, Thomas A. Schmitz, Adam T. Lindsay}]
%C
%C This module is part of the gw\TeX\ re|-|distribution and is
%C prepared by Adam T. Lindsay.

%D Usage is documented in the demo part of the file. Run with:
%D \starttyping
%D texexec --mode=demo --pdf symb-gtahoefler.tex
%D \stoptyping

%D We know the mapfile. That's all we need:

\loadmapfile[gtamacfonts]

\def\HoefO#1{\getglyph{HoeflerTextOrnaments}{#1}}

\startsymbolset[Hoefler Ornaments]

   \definesymbol[Hourglass]             [\HoefO{4}] 
   \definesymbol[LeftHand]              [\HoefO{6}] 
   \definesymbol[RightHand]             [\HoefO{7}] 
   \definesymbol[BrassDashExtender]     [\HoefO{5}] 
   \definesymbol[BrassDashSmooth]       [\HoefO{8}] 
   \definesymbol[BrassDashDimpled]      [\HoefO{13}] 
   \definesymbol[BrassDashLozenge]      [\HoefO{14}] 
   \definesymbol[BorderTile1]           [\HoefO{12}] 
   \definesymbol[BorderTile2]           [\HoefO{11}] 
   \definesymbol[BorderTile3]           [\HoefO{10}] 
   \definesymbol[BorderTile4]           [\HoefO{9}] 
   \definesymbol[BorderTileSpacer]      [\HoefO{60}] 
   \definesymbol[Fleuron]               [\HoefO{33}] 
   \definesymbol[Fleuron2]              [\HoefO{32}] 
   \definesymbol[Acorn]                 [\HoefO{31}] 
   \definesymbol[FleuronDark]           [\HoefO{52}] 
   \definesymbol[FleuronDark2]          [\HoefO{51}] 
   \definesymbol[AcornDark]             [\HoefO{50}] 
   \definesymbol[Sun]                   [\HoefO{53}] 
   \definesymbol[Moon]                  [\HoefO{54}] 
   \definesymbol[Crown]                 [\HoefO{55}] 
   \definesymbol[FleurDeLys]            [\HoefO{56}] 
   \definesymbol[SailingShip]           [\HoefO{57}] 
   \definesymbol[Flourish]              [\HoefO{58}] 
   
\stopsymbolset

\startsymbolset[Hoefler Arab Borders]

   \definesymbol[BorderWaveHorzDownLeft]     [\HoefO{34}] 
   \definesymbol[BorderWaveHorzDownRight]    [\HoefO{35}] 
   \definesymbol[BorderWaveHorzUpLeft]       [\HoefO{36}] 
   \definesymbol[BorderWaveHorzUpRight]      [\HoefO{37}] 
   \definesymbol[BorderWaveVertDownLeft]     [\HoefO{38}] 
   \definesymbol[BorderWaveVertDownRight]    [\HoefO{39}] 
   \definesymbol[BorderWaveVertUpLeft]       [\HoefO{40}] 
   \definesymbol[BorderWaveVertUpRight]      [\HoefO{41}] 
   \definesymbol[BorderScrollHorzDownLeft]   [\HoefO{42}] 
   \definesymbol[BorderScrollHorzDownRight]  [\HoefO{43}] 
   \definesymbol[BorderScrollHorzUpLeft]     [\HoefO{44}] 
   \definesymbol[BorderScrollHorzUpRight]    [\HoefO{45}] 
   \definesymbol[BorderScrollVertDownLeft]   [\HoefO{46}] 
   \definesymbol[BorderScrollVertDownRight]  [\HoefO{47}] 
   \definesymbol[BorderScrollVertUpLeft]     [\HoefO{48}] 
   \definesymbol[BorderScrollVertUpRight]    [\HoefO{49}] 

\stopsymbolset

\startsymbolset[Hoefler Engraved Arab Borders]

   \definesymbol[BorderWaveHorzDownLeft]     [\HoefO{15}] 
   \definesymbol[BorderWaveHorzDownRight]    [\HoefO{16}] 
   \definesymbol[BorderWaveHorzUpLeft]       [\HoefO{17}] 
   \definesymbol[BorderWaveHorzUpRight]      [\HoefO{18}] 
   \definesymbol[BorderWaveVertDownLeft]     [\HoefO{19}] 
   \definesymbol[BorderWaveVertDownRight]    [\HoefO{20}] 
   \definesymbol[BorderWaveVertUpLeft]       [\HoefO{21}] 
   \definesymbol[BorderWaveVertUpRight]      [\HoefO{22}] 
   \definesymbol[BorderScrollHorzDownLeft]   [\HoefO{23}] 
   \definesymbol[BorderScrollHorzDownRight]  [\HoefO{24}] 
   \definesymbol[BorderScrollHorzUpLeft]     [\HoefO{25}] 
   \definesymbol[BorderScrollHorzUpRight]    [\HoefO{26}] 
   \definesymbol[BorderScrollVertDownLeft]   [\HoefO{27}] 
   \definesymbol[BorderScrollVertDownRight]  [\HoefO{28}] 
   \definesymbol[BorderScrollVertUpLeft]     [\HoefO{29}] 
   \definesymbol[BorderScrollVertUpRight]    [\HoefO{30}] 

\stopsymbolset
\doifnotmode{demo}{\endinput}
\setuphead[title]
  [style=\scb,
   align=center,
   header=high,
   footer=high,
   after={\blank[small]}]
\definehead[author][subject]
\setuphead[author]
  [style=\tfa,
   align=center,
   before=]
\setuphead[section]
  [number=no]
\setupindenting[next,medium]
\indenting[yes]
%\setupfloat[figure]
%  [width=5cm]
\setuplayout
  [width=middle,
   cutspace=0pt,
   backspace=31mm,
   topspace=30mm,
   height=middle,
   bottomspace=0pt]
%\showframe
\setuptolerance[strict]
\usetypescriptfile[type-gtamacfonts]
\usetypescript[HoeflerOldStyle][texnansi]
\setupbodyfont[HoeflerOldStyle]
\def\GTAMF{{\sc GTA|*|Mac|*|Fonts}}
\starttext
\title  {GTA Hoefler Ornaments Symbol Set}
\author {Adam T. Lindsay}
\section{Introduction}
This is brief documentation for the gta|*|hoefler symbol set.
It is designed for use with the \GTAMF\ distribution,
available with gw\TeX\ via the i-Installer. 

Use of this symbol set is {\em not} limited to use with the Hoefler
Text font, or even any of the typescripts in the type-gtamacfonts
file. All it requires is that the \GTAMF\ be correctly
installed, and that the symbol file is loaded. You load the file
with:
\starttyping
\usesymbols[gtahoefler]
\stoptyping
Within the file, there are three symbol sets available. They are
documented in the following three sections.

\section{Hoefler Ornaments}
This main set of symbols is enabled with:
\starttyping
\setupsymbolset[Hoefler Ornaments]
\stoptyping
Any symbol in the set is drawn with the usual:
\starttyping
\symbol[blah]
\stoptyping
\unknown where \type{blah} is one of the following:

\showsymbolset[Hoefler Ornaments][n=4]

\page
Some of the symbols are designed to be used together. Here are a couple
examples:
\startbuffer
\setupsymbolset[Hoefler Ornaments]
\startalignment[center]
\dorecurse{12}
          {\symbol[BorderTile2]\symbol[BorderTileSpacer]}%
          \symbol[BorderTile2]\crlf
\dorecurse{12}
          {\symbol[BorderTileSpacer]\symbol[BorderTile4]}%
          \symbol[BorderTileSpacer]\crlf
\dorecurse{12}
          {\symbol[BorderTile2]\symbol[BorderTileSpacer]}%
          \symbol[BorderTile2]\crlf
\stopalignment
\stopbuffer
\typebuffer \getbuffer

\startbuffer
\setupsymbolset[Hoefler Ornaments]
\startalignment[center]
\symbol[BrassDashExtender]\symbol[BrassDashExtender]%
             \symbol[BrassDashDimpled]%
\symbol[BrassDashExtender]\symbol[BrassDashExtender]
\stopalignment
\stopbuffer
\typebuffer \getbuffer
\page
\section{Hoefler Arab Borders}
The second set is a specialized set of border elements, designed
to be used in long rows in various combinations. Again, the
set of symbols is enabled with:
\starttyping
\setupsymbolset[Hoefler Arab Borders]
\stoptyping
Any symbol in the set is drawn with the usual:
\starttyping
\symbol[blah]
\stoptyping
\unknown where \type{blah} is one of the following:

\showsymbolset[Hoefler Arab Borders][n=2]
\page
\section{Hoefler Engraved Arab Borders}
The final set is a more ornate version of the previous one. Note
that the names of each symbol are identical to the above, allowing 
one to swap styles without changing the individual symbols. The
style that is active depends on the loading of \tex{setupsymbolset}:
\starttyping
\setupsymbolset[Hoefler Engraved Arab Borders]
\stoptyping
Any symbol in the set is drawn with the usual:
\starttyping
\symbol[blah]
\stoptyping
\unknown where \type{blah} is one of the following:

\showsymbolset[Hoefler Engraved Arab Borders][n=2]

\blank\blank
\wordright{\em Adam T. Lindsay \symbol[Fleuron]}
\stoptext
