58 lines
909 B
C
58 lines
909 B
C
#include <stdio.h>
|
|
|
|
char *entity(int symbol)
|
|
{
|
|
switch(symbol)
|
|
{
|
|
case 97:
|
|
return("α");
|
|
case 98:
|
|
return("β");
|
|
case 99:
|
|
return("χ");
|
|
case 100:
|
|
return("δ");
|
|
case 101:
|
|
return("ε");
|
|
case 102:
|
|
return("φ");
|
|
case 103:
|
|
return("γ");
|
|
case 109:
|
|
return("μ");
|
|
case 110:
|
|
return("ν");
|
|
case 111:
|
|
return("ο");
|
|
case 112:
|
|
return("π");
|
|
case 113:
|
|
return("θ");
|
|
case 114:
|
|
return("ρ");
|
|
case 115:
|
|
return("σ");
|
|
case 116:
|
|
return("τ");
|
|
case 117:
|
|
return("υ");
|
|
case 118:
|
|
return("&omega1;");
|
|
case 119:
|
|
return("ω");
|
|
case 120:
|
|
return("ξ");
|
|
case 121:
|
|
return("ψ");
|
|
case 122:
|
|
return("ζ");
|
|
case 177:
|
|
return("±");
|
|
default:
|
|
fprintf(stderr, "symbol %d missing in entity.c\n",
|
|
symbol);
|
|
return("&UnknownEntity;");
|
|
}
|
|
}
|
|
|