# Style sheet for a2ps style sheet files
# Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
# Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
# $Id: ssh.ssh,v 1.1.1.1.2.1 2007/12/29 01:58:33 mhatta Exp $
#

#
# This file is part of a2ps.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

## 1.0 Akim Demaille <akim@freefriends.org>
# Created
#
## 1.1 Akim Demaille <akim@freefriends.org>
# In level 2, substitute the latex symbols
#
## 1.2 Akim Demaille <akim@freefriends.org>
# New keywords: closers, documentation, ancestors, alphabets.
# New sequence: /regex/

style "a2ps style sheet" is

written by "Akim Demaille <akim@freefriends.org>"
version is 1.2
requires a2ps 4.9.5

documentation is
   "Second level of highligthing (option samp(-g)samp)) substitutes the LaTeX symbols."
end documentation

first alphabet is
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\\_"
second alphabet is
   "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_"
case sensitive

# Support for the main keywords
keywords in Keyword_strong are

    "a2ps", "alphabet", "alphabets", "ancestors", "are", "by", "case",
    "closers", "C-char", "C-string", "documentation", "end",
    "exceptions", "first", "in", "insensitive", "is", "keywords",
    "requires", "second", "sensitive", "operators", "optional",
    "sequences", "style", "version", "written", "Plain", "Keyword",
    "Keyword_strong", "Comment", "Comment_strong", "Label",
    "Label_strong", "String", "Symbol", "Tag1", "Tag2", "Tag3",
    "Tag4", "Index1", "Index2", "Index3", "Index4", "Encoding",
    "Invisible", "Error"

end keywords

# Support for the predefined symbols
keywords in Keyword are

    "\\forall", "\\exists", "\\suchthat", "\\cong", "\\Alpha",
    "\\Beta", "\\Chi", "\\Delta", "\\Epsilon", "\\Phi", "\\Gamma",
    "\\Eta", "\\Iota", "\\vartheta", "\\Kappa", "\\Lambda", "\\Mu",
    "\\Nu", "\\Omicron", "\\Pi", "\\Theta", "\\Rho", "\\Sigma",
    "\\Tau", "\\Upsilon", "\\varsigma", "\\Omega", "\\Xi", "\\Psi",
    "\\Zeta", "\\therefore", "\\perp", "\\radicalex", "\\alpha",
    "\\beta", "\\chi", "\\delta", "\\epsilon", "\\phi", "\\gamma",
    "\\eta", "\\iota", "\\varphi", "\\kappa", "\\lambda", "\\mu",
    "\\nu", "\\omicron", "\\pi", "\\theta", "\\rho", "\\sigma"
    "\\tau", "\\upsilon", "\\varpi", "\\omega", "\\xi", "\\psi",
    "\\zeta", "\\sim", "\\varUpsilon", "\\prime", "\\leq", "\\infty",
    "\\florin", "\\clubsuit", "\\diamondsuit", "\\heartsuit",
    "\\spadesuit", "\\leftrightarrow", "\\leftarrow", "\\uparrow",
    "\\rightarrow", "\\downarrow", "\\circ", "\\pm", "\\geq",
    "\\times", "\\propto", "\\partial", "\\bullet", "\\div", "\\neq",
    "\\equiv", "\\approx", "\\ldots", "---", "\\carriagereturn",
    "\\aleph", "\\Im", "\\Re", "\\wp", "\\otimes", "\\oplus",
    "\\emptyset", "\\cap", "\\cup", "\\supset", "\\supseteq",
    "\\not\\subset", "\\subset", "\\subseteq", "\\in", "\\not\\in",
    "\\angle", "\\nabla", "\\varregister", "\\varcopyright",
    "\\vartrademark", "\\prod", "\\surd", "\\cdot", "\\not",
    "\\wedge", "\\vee", "\\Leftrightarrow", "\\Leftarrow",
    "\\Uparrow", "\\Rightarrow", "\\Downarrow", "\\vardiamondsuit",
    "\\langle", "\\register", "\\copyright", "\\trademark", "\\sum",
    "\\lceil", "\\lfloor", "\\rangle", "\\int", "\\rceil", "\\rfloor"

end keywords

# At level 2 of pretty printing, we want to _see_ the symbols
optional keywords are
   "\\to" \rightarrow,
   "\\item" \bullet,
   "\\backslash" "\\",
   "\\forall" \forall,
   "\\exists" \exists,
   "\\suchthat" \suchthat,
   "\\cong" \cong,
   "\\Alpha" \Alpha,
   "\\Beta" \Beta,
   "\\Chi" \Chi,
   "\\Delta" \Delta,
   "\\Epsilon" \Epsilon,
   "\\Phi" \Phi,
   "\\Gamma" \Gamma,
   "\\Eta" \Eta,
   "\\Iota" \Iota,
   "\\vartheta" \vartheta,
   "\\Kappa" \Kappa,
   "\\Lambda" \Lambda,
   "\\Mu" \Mu,
   "\\Nu" \Nu,
   "\\Omicron" \Omicron,
   "\\Pi" \Pi,
   "\\Theta" \Theta,
   "\\Rho" \Rho,
   "\\Sigma" \Sigma,
   "\\Tau" \Tau,
   "\\Upsilon" \Upsilon,
   "\\varsigma" \varsigma,
   "\\Omega" \Omega,
   "\\Xi" \Xi,
   "\\Psi" \Psi,
   "\\Zeta" \Zeta,
   "\\therefore" \therefore,
   "\\perp" \perp,
   "\\radicalex" \radicalex,
   "\\alpha" \alpha,
   "\\beta" \beta,
   "\\chi" \chi,
   "\\delta" \delta,
   "\\epsilon" \epsilon,
   "\\phi" \phi,
   "\\gamma" \gamma,
   "\\eta" \eta,
   "\\iota" \iota,
   "\\varphi" \phi,
   "\\kappa" \kappa,
   "\\lambda" \lambda,
   "\\mu" \mu,
   "\\nu" \nu,
   "\\omicron" \omicron,
   "\\pi" \pi,
   "\\theta" \theta,
   "\\rho" \rho,
   "\\sigma" \sigma,
   "\\tau" \tau,
   "\\upsilon" \upsilon,
   "\\varpi" \varpi,
   "\\omega" \omega,
   "\\xi" \xi,
   "\\psi" \psi,
   "\\zeta" \zeta,
   "\\sim" \sim,
   "\\varUpsilon" \varUpsilon,
   "\\prime" \prime,
   "\\leq" \leq,
   "\\infty" \infty,
   "\\florin" \florin,
   "\\clubsuit" \clubsuit,
   "\\diamondsuit" \diamondsuit,
   "\\heartsuit" \heartsuit,
   "\\spadesuit" \spadesuit,
   "\\leftrightarrow" \leftrightarrow,
   "\\leftarrow" \leftarrow,
   "\\uparrow" \uparrow,
   "\\rightarrow" \rightarrow,
   "\\downarrow" \downarrow,
   "\\circ" \circ,
   "\\pm" \pm,
   "\\geq" \geq,
   "\\times" \times,
   "\\propto" \propto,
   "\\partial" \partial,
   "\\bullet" \bullet,
   "\\div" \div,
   "\\neq" \neq,
   "\\equiv" \equiv,
   "\\approx" \approx,
   "\\ldots" \ldots,
   "---" ---,
   "\\carriagereturn" \carriagereturn,
   "\\aleph" \aleph,
   "\\Im" \Im,
   "\\Re" \Re,
   "\\wp" \wp,
   "\\otimes" \otimes,
   "\\oplus" \oplus,
   "\\emptyset" \emptyset,
   "\\cap" \cap,
   "\\cup" \cup,
   "\\supset" \supset,
   "\\supseteq" \supseteq,
   "\\not\\subset" \not\subset,
   "\\subset" \subset,
   "\\subseteq" \subseteq,
   "\\in" \in,
   "\\not\\in" \not\in,
   "\\angle" \angle,
   "\\nabla" \nabla,
   "\\varregister" \register,
   "\\varcopyright" \copyright,
   "\\vartrademark" \trademark,
   "\\prod" \prod,
   "\\surd" \surd,
   "\\cdot" \cdot,
   "\\not" \not,
   "\\wedge" \wedge,
   "\\vee" \vee,
   "\\Leftrightarrow" \Leftrightarrow,
   "\\Leftarrow" \Leftarrow,
   "\\Uparrow" \Uparrow,
   "\\Rightarrow" \Rightarrow,
   "\\Downarrow" \Downarrow,
   "\\lozenge" \diamondsuit,
   "\\langle" \langle,
   "\\register" \register,
   "\\copyright" \copyright,
   "\\trademark" \trademark,
   "\\sum" \sum,
   "\\lceil" \lceil,
   "\\lfloor" \lfloor,
   "\\rangle" \rangle,
   "\\int" \int,
   "\\rceil" \rceil,
   "\\rfloor" \rfloor
end keywords

sequences are
  # The comments
  "#" Comment,

  # The name of the style sheet
  "style " Keyword_strong (Label + Index1) " is" Keyword_strong,

  # Strings are exactly the C-strings, though we don't want to
  # have them in the "string" face
  "\"" Plain Plain "\"" Plain
     exceptions are
	"\\\\", "\\\""
     end exceptions,

  # Regexps
  "/" Plain Plain "/" Plain
     exceptions are
	"\\\\", "\\\/"
     end exceptions

end sequences

end style
