Sindbad~EG File Manager
#define ENGLISH_DLL
/* M. Beeson, for MathXpert.
2.17.98 extracted from symsout.c
To the translator: Do not translate this file directly. It is being
sent to you for information purposes only. What we need from you to
construct a version of this file for your language is simply a complete
list of all two-letter words used in translating mtext.c, ophelp1.c,
and ophelp2.c. The text enclosed in quotation marks below is essentially
such a list for the English version, but organized as program code.
You can just supply the list as text, we will organize it into code like this.
*/
#include <string.h>
#include "export.h" /* Do not translate this or the next 2 lines */
#include "english1.h"
/*_______________________________________________________________________*/
MEXPORT_ENGLISH int two_letter_word(char *buffer)
/* return 0 if buffer contains a two-letter word that
occurs in MathXpert's menus or status line text.
Return 1 otherwise. Buffer is presumed to contain
two characters at least.
*/
{ switch(buffer[0])
{ case 'a':
case 'A':
if(!stricmp(buffer,"an") ||
!stricmp(buffer,"as") ||
!stricmp(buffer,"at")
)
return 0;
return 1;
case 'b':
case 'B':
if(!stricmp(buffer,"by") || !stricmp(buffer,"be"))
return 0;
return 1;
case 'd':
case 'D':
if(!stricmp(buffer,"do"))
return 0;
if(!stricmp(buffer,"de"))
return 0; /* occurs in 'de Moivre' */
return 1;
case 'g':
case 'G':
if(!stricmp(buffer,"go"))
return 0;
return 1;
case 'i':
case 'I':
if(!stricmp(buffer,"in") ||
!stricmp(buffer,"if") ||
!stricmp(buffer,"it") ||
!stricmp(buffer,"is")
)
return 0;
return 1;
case 'l':
if(!stricmp(buffer,"ln"))
return 0;
return 1;
case 'n':
case 'N':
if(!stricmp(buffer,"no"))
return 0;
return 1;
case 'o':
case 'O':
if(!stricmp(buffer,"on") || !stricmp(buffer,"of") || !stricmp(buffer, "or"))
return 0;
return 1;
case 's':
case 'S':
if(!stricmp(buffer,"so"))
return 0;
return 1;
case 't':
case 'T':
if(!stricmp(buffer,"to"))
return 0;
return 1;
case 'u':
case 'U':
if(!stricmp(buffer,"up"))
return 0;
return 1;
case 'w':
case 'W':
if(!stricmp(buffer,"we"))
return 0;
return 1;
default:
return 1;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists