// GraphmatThick.cpp : Defines the entry point for the console application.
//
#include "../common/util_classes.h"
#include "../GraphanLib/GraphmatFile.h"
#include "math.h"
void PrintUsageAndExit()
{
printf ("GraphmatThick, Test for Dialing Graphematical Analysis(www.aot.ru)\n");
printf ("Usage: GraphmatThick \n\n");
printf ("where language can be Russian, English, or German\n");
printf (" file is an text or html file in CP-1251 coding\n");
printf (" 1. Russian - CP-1251 coding\n");
printf (" 2. German - ISO-8859-1 coding\n");
printf (" Here are possible options:\n");
printf (" if \"-gra file\" specify file for g-table \n");
printf (" if \"-xml file\" specify file for macrosyntax structure \n");
printf (" if \"-sents file\" specify file for sentence division\n");
printf (" if \"-abbrs file\" specified file the found abbreviation\n");
printf (" if \"-disable-sent-breaker\" is specified then the program disabled sentence breaker\n");
printf (" if \"-use-paragraph-tag\" is specified then the program considers \"
\" as a paragraph delimiter\n");
printf (" if \"-write-non-printable\" is specified then the program considers \"\" as a paragraph delimiter\n");
exit(1);
};
int main(int argc, char* argv[])
{
double a = log(8.0);
try
{
if (argc < 3)
PrintUsageAndExit();
string strErr;
if (!IsRmlRegistered(strErr))
{
printf ("Error: %s!", strErr.c_str());
};
MorphLanguageEnum Langua;
if (!GetLanguageByString (argv[1], Langua))
{
printf ("False language - \"%s\"\n",argv[1]);
return 1;
};
string InputFile = argv[2];
string XmlFile,GraFile,SentsFile,AbbrsFile;
bool bEnableSentenceBreaker = true;
bool bWriteNonPrintable = false;
bool bUseParagraphTagToDivide = false;
string FileName;
for (size_t i=3; i 32)
printf ("1, // %c\n",(BYTE)i);
else
printf ("1, // non-printable\n",(BYTE)i);
else
printf ("0, \n");*/
return 0;
}
catch (CExpc C)
{
printf ("An exception occurred:%s!\n", C.m_strCause.c_str());
}
catch (...)
{
printf ("An exception occurred!\n");
};
return 1;
}