~f0ma/cuneiform-linux/devel

« back to all changes in this revision

Viewing changes to cuneiform_src/Kern/rout/src/html.cpp

  • Committer: Stanislav Ivanov
  • Date: 2017-06-07 15:03:51 UTC
  • Revision ID: ivstdm@gmail.com-20170607150351-dlzbzl54zvs57z57
New command line interface with multipage support and input image filtering.
Alpha state. No checks for build in other platform. Tests is missing.
Magick++ and C++0x is requried.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
                {
241
241
                        // ���������� ����
242
242
                        long lang = CED_GetCharFontLang(hObject);
243
 
                        if (lang != gLanguage)
 
243
                        if (lang != gLanguage && lang > 0)
244
244
                                SetLanguage(lang);
245
245
                        // ����� ������
246
246
                        FontStyle(CED_GetCharFontAttribs(hObject));
327
327
                        // Start of page.
328
328
                        FontStyle(0);
329
329
                        {
330
 
                                ostringstream outStrm;
331
 
                                outStrm << "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 "
332
 
                                               "Transitional//EN\""
333
 
                                                   " \"http://www.w3.org/TR/html4/loose.dtd\">" << endl;
334
 
                                outStrm << "<html><head><title></title>" << endl;
335
 
                                if (gActiveCode==ROUT_CODE_UTF8)
336
 
                                {
337
 
                                        outStrm << "<meta http-equiv=\"Content-Type\""
338
 
                                                       " content=\"text/html;charset=utf-8\" >" << endl;
339
 
                                }
340
 
                                outStrm << "<meta name='ocr-system' content='openocr'>" << endl;
341
 
                                outStrm << "</head>" << endl << "<body>";
342
 
                                strm2buf(outStrm);
 
330
//                              ostringstream outStrm;
 
331
//                              outStrm << "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 "
 
332
//                                             "Transitional//EN\""
 
333
//                                                 " \"http://www.w3.org/TR/html4/loose.dtd\">" << endl;
 
334
//                              outStrm << "<html><head><title></title>" << endl;
 
335
//                              if (gActiveCode==ROUT_CODE_UTF8)
 
336
//                              {
 
337
//                                      outStrm << "<meta http-equiv=\"Content-Type\""
 
338
//                                                     " content=\"text/html;charset=utf-8\" >" << endl;
 
339
//                              }
 
340
//                              outStrm << "<meta name='ocr-system' content='openocr'>" << endl;
 
341
//                              outStrm << "</head>" << endl << "<body>";
 
342
//                              strm2buf(outStrm);
343
343
                        }
344
344
                        {
345
345
                                ostringstream outStrm;
357
357
 
358
358
                case BROWSE_PAGE_END:
359
359
                        // ����� ��������
360
 
                        PUT_STRING("</div>");
 
360
                        PUT_STRING("</div>\n");
361
361
                        // ����� ���������
362
 
                        PUT_STRING("</body></html>\n");
 
362
//                      PUT_STRING("</body></html>\n");
363
363
                        iLine = 1;
364
364
                        break;
365
365