home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XFIG / TRANSFIG.2 / TRANSFIG / transfig / fig2dev / iso2tex.c < prev    next >
Encoding:
Text File  |  1992-11-16  |  3.3 KB  |  138 lines

  1. /*
  2.  * TransFig: Facility for Translating Fig code
  3.  * Copyright (c) 1985 Supoj Sutantavibul
  4.  * Copyright (c) 1991 Micah Beck
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation. The authors make no representations about the suitability 
  11.  * of this software for any purpose.  It is provided "as is" without express 
  12.  * or implied warranty.
  13.  *
  14.  * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  16.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  18.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  19.  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20.  * PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  */
  23.  
  24. /* map ISO-Font Symbols to appropriate sequences in TeX */
  25. /* Herbert Bauer 22.11.1991 */
  26.  
  27. /* B.Raichle 12.10.92, changed some of the definitions */
  28.  
  29.  
  30. /* B.Raichle 12.10.92, changed some of the definitions */
  31.  
  32.  
  33. char *ISOtoTeX[] =   /* starts at octal 240 */
  34. {
  35.   "{}",
  36.   "{!`}",    /* inverse ! */
  37.   "{}",        /* cent sign (?) */
  38.   "\\pounds{}",
  39.   "{}",        /* circle with x mark */
  40.   "{}",        /* Yen */
  41.   "{}",        /* some sort of space - doen't work under mwm */
  42.   "\\S{}",    /* paragraph sign */
  43.   "\\\"{}",        /* diaresis points */
  44.   "\\copyright{}",
  45.   "\\b{a}",
  46.   "\\mbox{$\\ll$}",        /* << */
  47.   "{--}",     /* longer dash - doesn't work with mwm */
  48.   "{-}",        /* short dash */
  49.   "{}",        /* trademark */
  50.   "{}",        /* overscore */
  51. /* 0xb0 */
  52.   "{\\lower.2ex\\hbox{\\char\\'27}}",        /* degree */
  53.   "\\mbox{$\\pm$}",    /* plus minus - math mode */
  54.   "\\mbox{$\\mathsurround 0pt{}^2$}",        /* squared  - math mode */
  55.   "\\mbox{$\\mathsurround 0pt{}^3$}",        /* cubed  - math mode */
  56.   "\\'{}",        /* accent egue */
  57.   "\\mbox{$\\mu$}",    /* greek letter mu - math mode */
  58.   "\\P{}",    /* paragraph */
  59.   "\\mbox{$\\cdot$}",    /* centered dot  - math mode */
  60.   "",
  61.   "\\mbox{$\\mathsurround 0pt{}^1$}",        /* superscript 1  - math mode */
  62.   "\\b{o}",
  63.   "\\mbox{$\\gg$}",        /* >> */
  64.   "\\mbox{$1\\over 4$}",    /* 1/4 - math mode */
  65.   "\\mbox{$1\\over 2$}",    /* 1/2 - math mode */
  66.   "\\mbox{$3\\over 4$}",    /* 3/4 - math mode */
  67.   "{?`}",        /* inverse ? */
  68. /* 0xc0 */
  69.   "\\`A",
  70.   "\\'A",
  71.   "\\^A",
  72.   "\\~A",
  73.   "\\\"A",
  74.   "\\AA{}",
  75.   "\\AE{}",
  76.   "\\c C",
  77.   "\\`E",
  78.   "\\'E",
  79.   "\\^E",
  80.   "\\\"E",
  81.   "\\`I",
  82.   "\\'I",
  83.   "\\^I",
  84.   "\\\"I",
  85. /* 0xd0 */
  86.   "{\\rlap{\\raise.3ex\\hbox{--}}D}", /* Eth */
  87.   "\\~N",
  88.   "\\`O",
  89.   "\\'O",
  90.   "\\^O",
  91.   "\\~O",
  92.   "\\\"O",
  93.   "\\mbox{$\\times$}",    /* math mode */
  94.   "\\O{}",
  95.   "\\`U",
  96.   "\\'U",
  97.   "\\^U",
  98.   "\\\"U",
  99.   "\\'Y",
  100.   "{}",        /* letter P wide-spaced */
  101.   "\\ss{}",
  102. /* 0xe0 */
  103.   "\\`a",
  104.   "\\'a",
  105.   "\\^a",
  106.   "\\~a",
  107.   "\\\"a",
  108.   "\\aa{}",
  109.   "\\ae{}",
  110.   "\\c c",
  111.   "\\`e",
  112.   "\\'e",
  113.   "\\^e",
  114.   "\\\"e",
  115.   "\\`\\i{}",
  116.   "\\'\\i{}",
  117.   "\\^\\i{}",
  118.   "\\\"\\i{}",
  119. /* 0xf0 */
  120.   "\\mbox{$\\partial$}",    /* correct?  - math mode */
  121.   "\\~n",
  122.   "\\`o",
  123.   "\\'o",
  124.   "\\^o",
  125.   "\\~o",
  126.   "\\\"o",
  127.   "\\mbox{$\\div$}",    /* math mode */
  128.   "\\o{}",
  129.   "\\`u",
  130.   "\\'u",
  131.   "\\^u",
  132.   "\\\"u",
  133.   "\\'y",
  134.   "{}",        /* letter p wide-spaced */
  135.   "\\\"y"
  136. };
  137.  
  138.