lib/scripts/symbol_input.pl
author wenzelm
Tue, 17 Dec 1996 12:53:14 +0100
changeset 2430 7dc83c3d751a
parent 2423 4550426cf8f7
permissions -rw-r--r--
now refers to absolute paths of binaries;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2423
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     1
# Title:	Distribution/lib/scripts/symbol_input.pl
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     2
# ID:		$Id$
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     3
# Author:	Markus Wenzel, David von Oheimb
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     4
# Copyright	1996 Technische Universitaet Muenchen
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     5
#
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     6
# translate symbols into \<...> sequences.
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     7
# table must be consistent with Pure/Syntax/symbol_font.ML
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     8
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
     9
%tab = (
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    10
  "\xa1", "\\\\<Gamma>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    11
  "\xa2", "\\\\<Delta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    12
  "\xa3", "\\\\<Theta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    13
  "\xa4", "\\\\<Lambda>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    14
  "\xa5", "\\\\<Pi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    15
  "\xa6", "\\\\<Sigma>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    16
  "\xa7", "\\\\<Phi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    17
  "\xa8", "\\\\<Psi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    18
  "\xa9", "\\\\<Omega>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    19
  "\xaa", "\\\\<alpha>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    20
  "\xab", "\\\\<beta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    21
  "\xac", "\\\\<gamma>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    22
  "\xad", "\\\\<delta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    23
  "\xae", "\\\\<epsilon>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    24
  "\xaf", "\\\\<zeta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    25
  "\xb0", "\\\\<eta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    26
  "\xb1", "\\\\<theta>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    27
  "\xb2", "\\\\<kappa>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    28
  "\xb3", "\\\\<lambda>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    29
  "\xb4", "\\\\<mu>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    30
  "\xb5", "\\\\<nu>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    31
  "\xb6", "\\\\<xi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    32
  "\xb7", "\\\\<pi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    33
  "\xb8", "\\\\<rho>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    34
  "\xb9", "\\\\<sigma>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    35
  "\xba", "\\\\<tau>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    36
  "\xbb", "\\\\<phi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    37
  "\xbc", "\\\\<chi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    38
  "\xbd", "\\\\<psi>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    39
  "\xbe", "\\\\<omega>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    40
  "\xbf", "\\\\<not>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    41
  "\xc0", "\\\\<and>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    42
  "\xc1", "\\\\<or>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    43
  "\xc2", "\\\\<forall>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    44
  "\xc3", "\\\\<exists>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    45
  "\xc4", "\\\\<And>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    46
  "\xc5", "\\\\<lceil>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    47
  "\xc6", "\\\\<rceil>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    48
  "\xc7", "\\\\<lfloor>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    49
  "\xc8", "\\\\<rfloor>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    50
  "\xc9", "\\\\<lparr>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    51
  "\xca", "\\\\<rparr>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    52
  "\xcb", "\\\\<lbrakk>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    53
  "\xcc", "\\\\<rbrakk>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    54
  "\xcd", "\\\\<empty>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    55
  "\xce", "\\\\<in>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    56
  "\xcf", "\\\\<subseteq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    57
  "\xd0", "\\\\<inter>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    58
  "\xd1", "\\\\<union>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    59
  "\xd2", "\\\\<Inter>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    60
  "\xd3", "\\\\<Union>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    61
  "\xd4", "\\\\<sqinter>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    62
  "\xd5", "\\\\<squnion>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    63
  "\xd6", "\\\\<Sqinter>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    64
  "\xd7", "\\\\<Squnion>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    65
  "\xd8", "\\\\<bottom>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    66
  "\xd9", "\\\\<doteq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    67
  "\xda", "\\\\<equiv>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    68
  "\xdb", "\\\\<noteq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    69
  "\xdc", "\\\\<sqsubset>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    70
  "\xdd", "\\\\<sqsubseteq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    71
  "\xde", "\\\\<prec>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    72
  "\xdf", "\\\\<preceq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    73
  "\xe0", "\\\\<succ>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    74
  "\xe1", "\\\\<succeq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    75
  "\xe2", "\\\\<sim>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    76
  "\xe3", "\\\\<simeq>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    77
  "\xe4", "\\\\<le>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    78
  "\xe5", "\\\\<ge>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    79
  "\xe6", "\\\\<leftarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    80
  "\xe7", "\\\\<midarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    81
  "\xe8", "\\\\<rightarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    82
  "\xe9", "\\\\<Leftarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    83
  "\xea", "\\\\<Midarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    84
  "\xeb", "\\\\<Rightarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    85
  "\xec", "\\\\<rrightarrow>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    86
  "\xed", "\\\\<mapsto>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    87
  "\xee", "\\\\<leadsto>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    88
  "\xef", "\\\\<up>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    89
  "\xf0", "\\\\<down>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    90
  "\xf1", "\\\\<notin>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    91
  "\xf2", "\\\\<times>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    92
  "\xf3", "\\\\<oplus>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    93
  "\xf4", "\\\\<ominus>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    94
  "\xf5", "\\\\<otimes>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    95
  "\xf6", "\\\\<oslash>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    96
  "\xf7", "\\\\<natural>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    97
  "\xf8", "\\\\<infinity>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    98
  "\xf9", "\\\\<box>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
    99
  "\xfa", "\\\\<diamond>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   100
  "\xfb", "\\\\<circ>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   101
  "\xfc", "\\\\<bullet>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   102
  "\xfd", "\\\\<parallel>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   103
  "\xfe", "\\\\<tick>",
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   104
  "\xff", "\\\\<copyright>");
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   105
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   106
$SIG{INT} = "IGNORE";
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   107
$| = 1;
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   108
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   109
while (<ARGV>) {
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   110
  s/([\xa1-\xff])/$tab{$1}/g;
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   111
  print;
4550426cf8f7 added consistency comment
oheimb
parents:
diff changeset
   112
}