loop 2709 lib/action/lex.swf4.c loop: loop 2734 lib/action/lex.swf4.c goto loop; loop 3084 lib/action/lex.swf5.c loop: loop 3109 lib/action/lex.swf5.c goto loop; loop 8543 lib/as3/parser.tab.c code_t*loop = c = abc_label(c); loop 8561 lib/as3/parser.tab.c c = abc_iftrue(c, loop); loop 255 lib/gocr/gocr.h int loop(pix *p, int x, int y, int l, int cs, int col, DIRECTION r); loop 323 lib/gocr/ocr0.c if( loop(box1->p,xl,yu,xr-xl,cs,0,RI) loop 324 lib/gocr/ocr0.c - loop(box1->p,xr,yu,xr-xl,cs,0,LE) loop 325 lib/gocr/ocr0.c > loop(box1->p,xl,yl,xr-xl,cs,0,RI) // +dx/8 loop 326 lib/gocr/ocr0.c - loop(box1->p,xr,yl,xr-xl,cs,0,LE)+1) // -dx/8 ) // é Nov03 loop 341 lib/gocr/ocr0.c if( loop(box1->p,xl,yu,xr-xl,cs,0,RI) loop 342 lib/gocr/ocr0.c - loop(box1->p,xr,yu,xr-xl,cs,0,LE) loop 343 lib/gocr/ocr0.c < loop(box1->p,xl,yl,xr-xl,cs,0,RI) // -dx/8 loop 344 lib/gocr/ocr0.c - loop(box1->p,xr,yl,xr-xl,cs,0,LE) -1 ) // +dx/8 ) à Nov03 loop 354 lib/gocr/ocr0.c i1=loop(box1->p,xl ,(yu+yl)/2,xr-xl+1,cs,0,RI); loop 355 lib/gocr/ocr0.c i1=loop(box1->p,xl+i1,(yu+yl)/2,xr-xl+1,cs,1,RI); loop 356 lib/gocr/ocr0.c i2=loop(box1->p,(xl+xr)/2,yu ,yl-yu+1,cs,0,DO); loop 357 lib/gocr/ocr0.c i2=loop(box1->p,(xl+xr)/2,yu+i2,yl-yu+1,cs,1,DO); loop 377 lib/gocr/ocr0.c if( ( loop(box1->p,xl,yu ,xr-xl,cs,0,RI) loop 378 lib/gocr/ocr0.c > loop(box1->p,xl,yl ,xr-xl,cs,0,RI)-dx/8 loop 379 lib/gocr/ocr0.c || loop(box1->p,xl,yu ,xr-xl,cs,0,RI) loop 380 lib/gocr/ocr0.c > loop(box1->p,xl,yl-1,xr-xl,cs,0,RI)-dx/8 ) loop 381 lib/gocr/ocr0.c && ( loop(box1->p,xr,yu ,xr-xl,cs,0,LE) loop 382 lib/gocr/ocr0.c > loop(box1->p,xr,yl ,xr-xl,cs,0,LE)-dx/8 loop 383 lib/gocr/ocr0.c || loop(box1->p,xr,yu ,xr-xl,cs,0,LE) loop 384 lib/gocr/ocr0.c > loop(box1->p,xr,yl-1,xr-xl,cs,0,LE)-dx/8 ) loop 390 lib/gocr/ocr0.c if( ( loop(box1->p,xl,yu ,xr-xl,cs,0,RI) loop 391 lib/gocr/ocr0.c < loop(box1->p,xl,yl ,xr-xl,cs,0,RI)-dx/10 loop 392 lib/gocr/ocr0.c || loop(box1->p,xl,yu+1,xr-xl,cs,0,RI) loop 393 lib/gocr/ocr0.c < loop(box1->p,xl,yl ,xr-xl,cs,0,RI)-dx/10 ) loop 394 lib/gocr/ocr0.c && ( loop(box1->p,xr,yu ,xr-xl,cs,0,LE) loop 395 lib/gocr/ocr0.c < loop(box1->p,xr,yl ,xr-xl,cs,0,LE)-dx/10 loop 396 lib/gocr/ocr0.c || loop(box1->p,xr,yu+1,xr-xl,cs,0,LE) loop 397 lib/gocr/ocr0.c < loop(box1->p,xr,yl ,xr-xl,cs,0,LE)-dx/10 ) loop 404 lib/gocr/ocr0.c loop(box1->p,xl,yu ,xr-xl,cs,0,RI) loop 405 lib/gocr/ocr0.c + loop(box1->p,xl,yl ,xr-xl,cs,0,RI) loop 406 lib/gocr/ocr0.c - 2*loop(box1->p,xl,(yl+yu)/2,xr-xl,cs,0,RI) > dx/16+1 loop 408 lib/gocr/ocr0.c if( ( loop(box1->p,xl,yu ,xr-xl,cs,0,RI) loop 409 lib/gocr/ocr0.c < loop(box1->p,xl,yl ,xr-xl,cs,0,RI)-dx/10 loop 410 lib/gocr/ocr0.c || loop(box1->p,xl,yu+1,xr-xl,cs,0,RI) loop 411 lib/gocr/ocr0.c < loop(box1->p,xl,yl ,xr-xl,cs,0,RI)-dx/10 ) loop 412 lib/gocr/ocr0.c && ( loop(box1->p,xr,yu ,xr-xl,cs,0,LE) loop 413 lib/gocr/ocr0.c < loop(box1->p,xr,yl ,xr-xl,cs,0,LE)-dx/10 loop 414 lib/gocr/ocr0.c || loop(box1->p,xr,yu+1,xr-xl,cs,0,LE) loop 415 lib/gocr/ocr0.c < loop(box1->p,xr,yl ,xr-xl,cs,0,LE)-dx/10 ) loop 422 lib/gocr/ocr0.c if( loop(box1->p,xl,yu,xr-xl,cs,0,RI) loop 423 lib/gocr/ocr0.c > loop(box1->p,xl,yl,xr-xl,cs,0,RI) loop 424 lib/gocr/ocr0.c && loop(box1->p,xr,yu,xr-xl,cs,0,LE) loop 425 lib/gocr/ocr0.c < loop(box1->p,xr,yl,xr-xl,cs,0,LE) loop 472 lib/gocr/ocr0.c if( loop(box1->p,x0,y0+dy/2,x1-x0,cs,0,RI)>dx/3 ) Break; // rough test loop 473 lib/gocr/ocr0.c if( loop(box1->p,x0+dx/2,y0,y1-y0,cs,0,DO)>dy/3 ) Break; loop 474 lib/gocr/ocr0.c if( loop(box1->p,x0+dx/2,y1,y1-y0,cs,0,UP)>dy/3 ) Break; loop 481 lib/gocr/ocr0.c i=loop(box1->p,x0,y0+dy/2,x1-x0,cs,0,RI); if( i>dx/2 ) Break; loop 482 lib/gocr/ocr0.c j=loop(box1->p,x0,y0 ,x1-x0,cs,0,RI); if( j<i ) Break; loop 483 lib/gocr/ocr0.c j=loop(box1->p,x0,y1 ,x1-x0,cs,0,RI); if( j<i ) Break; loop 484 lib/gocr/ocr0.c i=loop(box1->p,x0+dx/2,y0,y1-y0,cs,0,DO); if( i>dx/2 ) Break; loop 485 lib/gocr/ocr0.c j=loop(box1->p,x1-dx/3,y0,y1-y0,cs,0,DO); if( j<i ) i=j; loop 486 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y0,y1-y0,cs,0,DO); if( j<i ) Break; loop 487 lib/gocr/ocr0.c j=loop(box1->p,x1 ,y0,y1-y0,cs,0,DO); if( j<i ) Break; loop 488 lib/gocr/ocr0.c i=loop(box1->p,x0+dx/2,y1,y1-y0,cs,0,UP); if( i>dx/2 ) Break; loop 489 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y1,y1-y0,cs,0,UP); if( j<i ) Break; loop 490 lib/gocr/ocr0.c j=loop(box1->p,x1 ,y1,y1-y0,cs,0,UP); if( j<i ) Break; loop 491 lib/gocr/ocr0.c j=2*loop(box1->p,x0, (y0+y1)/2,x1-x0,cs,0,RI) loop 492 lib/gocr/ocr0.c -loop(box1->p,x0,(3*y0+y1)/4,x1-x0,cs,0,RI) loop 493 lib/gocr/ocr0.c -loop(box1->p,x0,(y0+3*y1)/4,x1-x0,cs,0,RI); loop 502 lib/gocr/ocr0.c j=loop(box1->p,x1,i,y1-y0,cs,0,LE); loop 508 lib/gocr/ocr0.c j =loop(box1->p,x0 ,i,y1-y0,cs,0,RI); if (j>dx/2) break; loop 509 lib/gocr/ocr0.c j =loop(box1->p,x0+j,i,y1-y0,cs,1,RI); loop 513 lib/gocr/ocr0.c j =loop(box1->p,x1 ,i,y1-y0,cs,0,LE); loop 514 lib/gocr/ocr0.c j =loop(box1->p,x1-j,i,y1-y0,cs,1,LE); loop 517 lib/gocr/ocr0.c x =loop(box1->p,x1 ,y,y1-y0,cs,0,LE); loop 518 lib/gocr/ocr0.c x+=loop(box1->p,x1-x,y,y1-y0,cs,1,LE); loop 519 lib/gocr/ocr0.c x+=loop(box1->p,x1-x,y,y1-y0,cs,0,LE); loop 556 lib/gocr/ocr0.c j=loop(box1->p,x0,i,x1-x0,cs,0,RI); loop 570 lib/gocr/ocr0.c && loop(box1->p,x1,y1-dy/3,dx,cs,0,LE)<=dx/8 ) { loop 571 lib/gocr/ocr0.c x = loop(box1->p,x0,y0+dy/2,dx,cs,0,RI); loop 572 lib/gocr/ocr0.c if( loop(box1->p,x0,y0+dy/4,dx,cs,0,RI)<=x loop 573 lib/gocr/ocr0.c && loop(box1->p,x0,y0+dy/8,dx,cs,0,RI)<=x ) Break; loop 574 lib/gocr/ocr0.c if( loop(box1->p,x0,y1-dy/4,dx,cs,0,RI)<=x loop 575 lib/gocr/ocr0.c && loop(box1->p,x0,y1-dy/8,dx,cs,0,RI)<=x ) Break; loop 577 lib/gocr/ocr0.c x = loop(sdata->bp,0,dy-2 ,dx,cs,0,RI); loop 578 lib/gocr/ocr0.c if( loop(sdata->bp,0,dy-1-dy/8,dx,cs,0,RI)>x && dy>16) Break; // some Q loop 636 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y,dx,cs,0,RI); loop 637 lib/gocr/ocr0.c j=loop(box1->p,x0+j,y,dx,cs,1,RI); if( j>dx/3 ) i=0; loop 657 lib/gocr/ocr0.c i=loop(box1->p,x0,y0+dy/4,dx,cs,0,RI); if(i>dx/2) Break; loop 658 lib/gocr/ocr0.c j=loop(box1->p,x0,y0+dy/2,dx,cs,0,RI); if(j<i-dx/4 || j>i+dx/8) Break; i=j; loop 659 lib/gocr/ocr0.c j=loop(box1->p,x0,y1-dy/4,dx,cs,0,RI); if(j<i-dx/4 || j>i+dx/8) Break; loop 660 lib/gocr/ocr0.c j=loop(box1->p,x1,y1-dy/4,dx,cs,0,LE); loop 662 lib/gocr/ocr0.c { i=loop(box1->p,x0,y,dx,cs,0,RI); loop 697 lib/gocr/ocr0.c if( loop(sdata->bp,dx/2,0,dy,cs,0,DO) > dy/8 && sdata->hchar ) Break; /* tt */ loop 703 lib/gocr/ocr0.c y=loop(sdata->bp,dx-1-dx/4,0,dy,cs,0,DO); if(y>dy/2) Break; loop 713 lib/gocr/ocr0.c x =loop(sdata->bp,0,y,dx ,cs,0,RI); if(x> dx/4) Break; // search 1st v-line loop 714 lib/gocr/ocr0.c x+=loop(sdata->bp,x,y,dx-x,cs,1,RI); if(x> dx/2) Break; i1=x; // 1st gap loop 715 lib/gocr/ocr0.c x+=loop(sdata->bp,x,y,dx-x,cs,0,RI); if(x< dx/2) Break; i2=x; // 2nd v-line loop 716 lib/gocr/ocr0.c x+=loop(sdata->bp,x,y,dx-x,cs,1,RI); if(x<3*dx/4) Break; i3=x; // 2nd gap loop 721 lib/gocr/ocr0.c for(x=i1;x<i2;x++) if( loop(sdata->bp,x, 0,dy,cs,0,DO)>=i ) break; loop 723 lib/gocr/ocr0.c for(x=i1;x<i2;x++) if( loop(sdata->bp,x,dy-1,dy,cs,0,UP) >dy/4 ) break; loop 727 lib/gocr/ocr0.c i=loop(sdata->bp,x,0,dy,cs,0,DO); loop 728 lib/gocr/ocr0.c i=loop(sdata->bp,x,i,dy,cs,1,DO); // measure thickness loop 733 lib/gocr/ocr0.c if( loop(sdata->bp,dx-1,dy-1-dy/8,dx,cs,0,LE) loop 734 lib/gocr/ocr0.c +loop(sdata->bp, 0,dy-1-dy/8,dx,cs,0,RI)-dx/8-1 loop 735 lib/gocr/ocr0.c > loop(sdata->bp,dx-1,dy-1-dy/2,dx,cs,0,LE) loop 736 lib/gocr/ocr0.c +loop(sdata->bp, 0,dy-1-dy/2,dx,cs,0,RI) ) ad=90*ad/100; // broken o loop 738 lib/gocr/ocr0.c if( loop(sdata->bp,dx-1, dy/2,dx,cs,0,LE)==0 loop 739 lib/gocr/ocr0.c && loop(sdata->bp,dx-1,dy-1-dy/8,dx,cs,0,RI)>dx/8 ) ad=98*ad/100; // broken o loop 743 lib/gocr/ocr0.c i =loop(sdata->bp,0,dy/2-dy/8,dx,cs,0,RI); if (i>dx/4) Break; loop 744 lib/gocr/ocr0.c i+=loop(sdata->bp,i,dy/2-dy/8,dx,cs,1,RI); if (i>dx/2) Break; loop 745 lib/gocr/ocr0.c i+=loop(sdata->bp,i,dy/2-dy/8,dx,cs,0,RI); loop 747 lib/gocr/ocr0.c i+=loop(sdata->bp,i,dy/2-dy/8,dx,cs,1,RI); loop 752 lib/gocr/ocr0.c i= loop(sdata->bp,dx-1 ,dy/2,dx,cs,0,LE); if(i>5) loop 754 lib/gocr/ocr0.c i+=loop(sdata->bp,dx-1-i,dy/2,dx,cs,1,LE); loop 768 lib/gocr/ocr0.c i=loop(sdata->bp,dx-1, dy-1,dx,cs,0,LE); if (i>dx/2) loop 769 lib/gocr/ocr0.c i=loop(sdata->bp,dx-1, dy-2,dx,cs,0,LE); loop 770 lib/gocr/ocr0.c x=loop(sdata->bp,dx-1,dy-1-dy/4,dx,cs,0,LE); loop 772 lib/gocr/ocr0.c x=loop(sdata->bp, 0,dy-1,dx,cs,0,LE); // check for serifs loop 773 lib/gocr/ocr0.c i=loop(sdata->bp, 0,dy-2,dx,cs,0,LE); if (i<x) x=i; loop 774 lib/gocr/ocr0.c i=loop(sdata->bp, 0, 1,dx,cs,0,LE); if (i<x) x=i; loop 775 lib/gocr/ocr0.c i=loop(sdata->bp, 0, 2,dx,cs,0,LE); if (i<x) x=i; loop 816 lib/gocr/ocr0.c x = loop(bp,dx-1 ,dy-1,dx,cs,0,LE); // ~ melted kl loop 817 lib/gocr/ocr0.c x = loop(bp,dx-1-x,dy-1,dx,cs,1,LE); if( x>dx/2 ) Break; loop 819 lib/gocr/ocr0.c if( loop(bp, 0,7*dy/16,dx,cs,0,RI) loop 820 lib/gocr/ocr0.c + loop(bp,dx-1,7*dy/16,dx,cs,0,LE) > dx/2 ) Break; // ~K loop 823 lib/gocr/ocr0.c && loop(bp, dx/4,dy-1, dy,cs,0,UP)<dy/4 loop 824 lib/gocr/ocr0.c && loop(bp,3*dx/8,dy-1, dy,cs,0,UP)<dy/4 ) loop 825 lib/gocr/ocr0.c if( loop(bp, 0,dy-1-dy/ 8,dx,cs,0,RI) loop 826 lib/gocr/ocr0.c < loop(bp, 0,dy-1-dy/16,dx,cs,0,RI)-dx/32 ) Break; // ~it_u loop 833 lib/gocr/ocr0.c if( loop(bp,3*dx/4, 0,dy,cs,0,DO) loop 834 lib/gocr/ocr0.c > loop(bp,2*dx/4, 0,dy,cs,0,DO) loop 835 lib/gocr/ocr0.c && loop(bp,3*dx/4,dy-1,dy,cs,0,UP) loop 836 lib/gocr/ocr0.c < loop(bp,2*dx/4,dy-1,dy,cs,0,UP) ) Break; // ~N loop 837 lib/gocr/ocr0.c if( loop(bp,3*dx/4, dy/8,dy,cs,0,DO) loop 838 lib/gocr/ocr0.c > loop(bp,2*dx/4, dy/8,dy,cs,0,DO) loop 839 lib/gocr/ocr0.c && loop(bp,3*dx/4,dy-1-dy/8,dy,cs,0,UP) loop 840 lib/gocr/ocr0.c < loop(bp,2*dx/4,dy-1-dy/8,dy,cs,0,UP) ) Break; // ~serif_N loop 851 lib/gocr/ocr0.c x =loop(bp,dx-1 ,y-1,dx,cs,0,LE); loop 852 lib/gocr/ocr0.c x+=loop(bp,dx-1-x,y-1,dx,cs,1,LE); loop 853 lib/gocr/ocr0.c x+=loop(bp,dx-1-x,y-1,dx,cs,0,LE); loop 854 lib/gocr/ocr0.c if( loop(bp,dx-x,y-1,dy,cs,0,UP)>y-2 ) Break; // ~N loop 860 lib/gocr/ocr0.c y=loop(bp,x,0,dy,cs,0,DO); if(y>i2) {i2=y;i1=x;} else break; } loop 861 lib/gocr/ocr0.c i3=i2+loop(bp,i1,i2,dy-i2,cs,1,DO); loop 870 lib/gocr/ocr0.c t1=loop(bp,0 ,3*dy/4,dx,cs,0,RI); loop 871 lib/gocr/ocr0.c t1=loop(bp,t1,3*dy/4,dx,cs,1,RI); // thickness of line? loop 884 lib/gocr/ocr0.c i1 =loop(bp, 0, dy/4,dx,cs,0,RI); loop 885 lib/gocr/ocr0.c i1+=loop(bp,i1, dy/4,dx,cs,1,RI); loop 886 lib/gocr/ocr0.c i1+=loop(bp,i1, dy/4,dx,cs,0,RI); loop 887 lib/gocr/ocr0.c i2 =loop(bp, 0,3*dy/4,dx,cs,0,RI); loop 888 lib/gocr/ocr0.c i2+=loop(bp,i2,3*dy/4,dx,cs,1,RI); loop 889 lib/gocr/ocr0.c i2+=loop(bp,i2,3*dy/4,dx,cs,0,RI); loop 891 lib/gocr/ocr0.c i1+=loop(bp,i1, dy/4,dx,cs,1,RI); loop 892 lib/gocr/ocr0.c i2+=loop(bp,i2,3*dy/4,dx,cs,1,RI); loop 894 lib/gocr/ocr0.c i1+=loop(bp,i1, dy/4,dx,cs,0,RI); loop 895 lib/gocr/ocr0.c i2+=loop(bp,i2,3*dy/4,dx,cs,0,RI); loop 906 lib/gocr/ocr0.c if (dx<5 && loop(bp,dx/2,0,dy,cs,0,DO)>=3*dy/8) ad=96*ad/100; // 4x6 H loop 920 lib/gocr/ocr0.c if( loop(bp,3*dx/8, 0,dy,cs,0,DO) >dy/2 loop 921 lib/gocr/ocr0.c && loop(bp,5*dx/8,dy-1,dy,cs,0,UP) >dy/2 ) ad=95*ad/100; loop 925 lib/gocr/ocr0.c if( loop(bp,0, dy/4,dx,cs,0,RI) loop 926 lib/gocr/ocr0.c < loop(bp,0,dy-1-dy/8,dx,cs,0,RI)-dx/16 ) Break; // ~wi glued loop 1118 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/3,dx,cs,0,LE)+dx/8 loop 1119 lib/gocr/ocr0.c < loop(bp,dx-1,dy/2,dx,cs,0,LE) loop 1120 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)+dx/8 loop 1121 lib/gocr/ocr0.c < loop(bp,dx-1,dy/2,dx,cs,0,LE)) Break; // ~k Okt00 loop 1122 lib/gocr/ocr0.c i=loop(bp,0,dy-1-dy/4,dx,cs,0,RI); loop 1129 lib/gocr/ocr0.c i =loop(bp,0,dy/4,dx,cs,0,RI); loop 1130 lib/gocr/ocr0.c i+=loop(bp,i,dy/4,dx,cs,1,RI)+1; loop 1132 lib/gocr/ocr0.c if( loop(bp,i,0,dy,cs,0,DO)>5*dy/8 ) { loop 1139 lib/gocr/ocr0.c i=loop(bp,dx-1,3*dy/4,dx,cs,0,LE); // melted "fr" for vertikal letters loop 1140 lib/gocr/ocr0.c if (i>dx/4 && loop(bp,dx-1-i,dy-1,dy,cs,1,UP)>dy/2) { loop 1143 lib/gocr/ocr0.c i=loop(bp,dx-1,1+dy/16,dx,cs,0,LE); if (i<dx/4) { loop 1149 lib/gocr/ocr0.c if (loop(box1->p,x1,y0+1+dy/16,dx,cs,0,LE)<dx/4) { loop 1152 lib/gocr/ocr0.c if (loop(box1->p,x1,y0 ,dx,cs,0,LE)<dx/4 loop 1153 lib/gocr/ocr0.c || loop(box1->p,x1,y0+1,dx,cs,0,LE)<dx/4) { loop 1185 lib/gocr/ocr0.c if( loop(bp,0 ,dy/8,dx,cs,0,RI) loop 1186 lib/gocr/ocr0.c + loop(bp,dx-1,dy/8,dx,cs,0,LE)>dx/2 ) Break; // ~A loop 1188 lib/gocr/ocr0.c { j=loop(box1->p,x0 ,y,dx,cs,0,RI) loop 1189 lib/gocr/ocr0.c +loop(box1->p,x1 ,y,dx,cs,0,LE); if( j>dx/2 ) i=0; if(j>j1)j1=j; } loop 1192 lib/gocr/ocr0.c { j=loop(bp,0 ,y,dx,cs,0,RI) loop 1193 lib/gocr/ocr0.c +loop(bp,dx-1,y,dx,cs,0,LE); if( j1-j>dx/5 ) i=0; } loop 1196 lib/gocr/ocr0.c { j=loop(box1->p,x0 ,y,dx,cs,0,RI); loop 1197 lib/gocr/ocr0.c j=loop(box1->p,x0+j,y,dx,cs,1,RI); if( j>i ) { i=j; ya=y; } } loop 1222 lib/gocr/ocr0.c i1=loop(bp,dx-1, dy/4,dx,cs,0,LE); if(i1>dx/2) Break; loop 1223 lib/gocr/ocr0.c i2=loop(bp,dx-1, dy/2,dx,cs,0,LE); if(i2<i1-dx/4 || i2>i1+dx/8) Break; loop 1224 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE); if(i3<i2-dx/4 || i3>i2+dx/8) Break; loop 1228 lib/gocr/ocr0.c i1=loop(bp, 0, dy/4,dx,cs,0,RI); loop 1229 lib/gocr/ocr0.c i1=loop(bp, i1, dy/4,dx,cs,1,RI); loop 1230 lib/gocr/ocr0.c i2=loop(bp, 0,dy-1-dy/4,dx,cs,0,RI); loop 1231 lib/gocr/ocr0.c i2=loop(bp, i2,dy-1-dy/4,dx,cs,1,RI); loop 1232 lib/gocr/ocr0.c i3=loop(bp,dx-1 ,dy-1-dy/4,dx,cs,0,LE); loop 1233 lib/gocr/ocr0.c i3=loop(bp,dx-1-i3,dy-1-dy/4,dx,cs,1,LE); loop 1234 lib/gocr/ocr0.c i =loop(bp, 0,dy/2+1+dy/8,dx,cs,0,RI); loop 1235 lib/gocr/ocr0.c i+=loop(bp, i,dy/2+1+dy/8,dx,cs,1,RI); loop 1236 lib/gocr/ocr0.c i =loop(bp, i,dy/2+1+dy/8,dx,cs,0,RI); loop 1239 lib/gocr/ocr0.c if ( loop(bp,dx-1, 3*dy/8,dx,cs,0,LE) loop 1240 lib/gocr/ocr0.c -loop(bp,dx-1, dy/8,dx,cs,0,LE)>dx/4 loop 1241 lib/gocr/ocr0.c && loop(bp,dx-1, 3*dy/8,dx,cs,0,LE) loop 1242 lib/gocr/ocr0.c -loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)>dx/4 ) Break; // ~K loop 1315 lib/gocr/ocr0.c i1=loop(bp,0,dy/2-dy/4,dx,cs,0,RI); loop 1316 lib/gocr/ocr0.c i2=loop(bp,0,dy/2 ,dx,cs,0,RI);if(i2>dx/2) Break; loop 1317 lib/gocr/ocr0.c i3=loop(bp,0,dy/2+dy/4,dx,cs,0,RI); loop 1336 lib/gocr/ocr0.c i= loop(bp,dx-1,y,dx,cs,0,LE); if(i>x) { x=i;j=y; } loop 1338 lib/gocr/ocr0.c if (x + loop(bp,dx-1-x,y,dx,cs,1,LE)/2 <dx/4) Break; loop 1339 lib/gocr/ocr0.c if (x + loop(bp,dx-1-x,y,dx,cs,1,LE)/2 <dx/2) ad=98*ad/100; loop 1341 lib/gocr/ocr0.c i =loop(bp,dx-1,dy-1,dx,cs,0,LE); if(i>dx/2) loop 1342 lib/gocr/ocr0.c i =loop(bp,dx-1,dy-2,dx,cs,0,LE); if(i>dx/2) Break; loop 1343 lib/gocr/ocr0.c i+=loop(bp,dx-1-i,dy-1,dx,cs,1,LE)/2; loop 1355 lib/gocr/ocr0.c i=loop(bp,0,dy-1,dx,cs,0,RI); loop 1356 lib/gocr/ocr0.c i=loop(bp,i,dy-1,dx,cs,1,RI); if (dx>8 && 4*i>3*dx) Break; // ~glued_tz loop 1357 lib/gocr/ocr0.c i =loop(bp,0,dy/4,dx,cs,0,RI); loop 1359 lib/gocr/ocr0.c && i+loop(bp,i,dy/4,dx,cs,1,RI)>dx/2 loop 1360 lib/gocr/ocr0.c && loop(bp, 0,0,dx,cs,0,RI)<=dx/4 loop 1361 lib/gocr/ocr0.c && loop(bp,dx-1,0,dx,cs,0,LE)>=dx/2 ) ad=90*ad/100; // divided Q loop 1389 lib/gocr/ocr0.c y= loop(box1->p,x,y0,y1-y0,cs,0,DO); if (y>3*dy/4) { i=1;break; } loop 1391 lib/gocr/ocr0.c j =loop(box1->p,x-1,y0+y-1,x1-x0,cs,0,LE)/2; loop 1392 lib/gocr/ocr0.c y+=loop(box1->p,x-j,y0+y-1,y1-y0,cs,0,DO)-1; loop 1397 lib/gocr/ocr0.c i=loop(box1->p,x,y1,dy,cs,0,UP); loop 1399 lib/gocr/ocr0.c if (i>0) { i2=loop(box1->p,x-1,y1-i-1,dy,cs,0,UP); loop 1419 lib/gocr/ocr0.c && loop(bp,0, dy/4,dx,cs,0,RI) loop 1420 lib/gocr/ocr0.c +loop(bp,0,3*dy/4,dx,cs,0,RI) loop 1421 lib/gocr/ocr0.c <2*loop(bp,0, dy/2,dx,cs,0,RI)-2-dx/32 ) Break; // ~X loop 1423 lib/gocr/ocr0.c i=loop(box1->p,x1,y0+ dy/4,x1-x0+1,cs,0,LE); if(i>dx/2) Break; loop 1424 lib/gocr/ocr0.c j=loop(box1->p,x1,y0+ dy/2,x1-x0+1,cs,0,LE); loop 1425 lib/gocr/ocr0.c x=loop(box1->p,x1,y0+3*dy/8,x1-x0+1,cs,0,LE); if(x>j) j=x; loop 1427 lib/gocr/ocr0.c j=loop(box1->p,x1,y1-dy/4,x1-x0+1,cs,0,LE); if(j>=i ) Break; loop 1435 lib/gocr/ocr0.c ya= dy/4;xa=loop(bp,0,ya,dx,cs,0,RI);xa+=loop(bp,xa,ya,dx,cs,1,RI)/2; loop 1436 lib/gocr/ocr0.c yc=dy-dy/4;xc=loop(bp,0,yc,dx,cs,0,RI);xc+=loop(bp,xc,yc,dx,cs,1,RI)/2; loop 1437 lib/gocr/ocr0.c yb=dy/2; xb=dx-1-loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 1439 lib/gocr/ocr0.c x =loop(bp,dx-1, y,dx,cs,0,LE); if(x<xd){ xd=x;yd= y; } loop 1440 lib/gocr/ocr0.c x =loop(bp,dx-1,dy-1-y,dx,cs,0,LE); if(x<xf){ xf=x;yf=dy-1-y; } loop 1441 lib/gocr/ocr0.c x =loop(bp,dx-1,dy/2+y,dx,cs,0,LE); if(x>xe){ xe=x;ye=dy/2+y; } loop 1442 lib/gocr/ocr0.c x =loop(bp,dx-1,dy/2-y,dx,cs,0,LE); if(x>xe){ xe=x;ye=dy/2-y; } loop 1444 lib/gocr/ocr0.c x =loop(bp,0 ,dy/2+y,dx,cs,0,RI); // middle left border loop 1445 lib/gocr/ocr0.c x+=loop(bp,x ,dy/2+y,dx,cs,1,RI); // test 2nd cross loop 1446 lib/gocr/ocr0.c x+=loop(bp,x ,dy/2+y,dx,cs,0,RI); if(x<xb){ xb=x;yb=dy/2+y; } loop 1448 lib/gocr/ocr0.c x =loop(bp,0 ,dy/2-y,dx,cs,0,RI); loop 1449 lib/gocr/ocr0.c x+=loop(bp,x ,dy/2-y,dx,cs,1,RI); // test 2nd cross loop 1450 lib/gocr/ocr0.c x+=loop(bp,x ,dy/2-y,dx,cs,0,RI); if(x<xb){ xb=x;yb=dy/2-y; } loop 1451 lib/gocr/ocr0.c x =dx-1-loop(bp,dx-1,dy/2-y,dx,cs,0,LE); if(x<xb){ xb=x;yb=dy/2-y; } loop 1454 lib/gocr/ocr0.c xb+=loop(bp,xb,yb,dx,cs,1,RI)/4; // detect center of line loop 1455 lib/gocr/ocr0.c xe-=loop(bp,xe,ye,dx,cs,1,LE)/4; loop 1456 lib/gocr/ocr0.c xd-=loop(bp,xd,yd,dx,cs,1,LE)/4; loop 1457 lib/gocr/ocr0.c xf-=loop(bp,xf,yf,dx,cs,1,LE)/4; loop 1467 lib/gocr/ocr0.c i=loop(bp,xb,yb,xb,cs,1,LE); // thick center? see font22 loop 1471 lib/gocr/ocr0.c xe+=loop(bp,xe,ye,dx,cs,1,RI); if( xe>=xf ) Break; // ~{\it n} loop 1474 lib/gocr/ocr0.c if( loop(bp,0,1,dy,cs,1,DO)<=3*dx/4 loop 1475 lib/gocr/ocr0.c && loop(bp,1,1,dy,cs,1,DO)<=3*dx/4 loop 1476 lib/gocr/ocr0.c && loop(bp,2,1,dy,cs,1,DO)<=3*dx/4 ) Break; // ~x loop 1478 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE)<=dx/8){ loop 1562 lib/gocr/ocr0.c i=loop(bp,0,y,dx,cs,0,RI); if( y>dy/4 && i>5*dx/8 ) break; loop 1563 lib/gocr/ocr0.c i=loop(bp,i,y,dx,cs,1,RI); if( i>x ) { x=i;j=y; } loop 1570 lib/gocr/ocr0.c i=loop(bp,(dx+1)/2,0,dy,cs,0,DO)/2; loop 1575 lib/gocr/ocr0.c if (loop(bp,3*dx/4, 0,dy,cs,0,DO)>dy/8 loop 1576 lib/gocr/ocr0.c && loop(bp,3*dx/4-1,0,dy,cs,0,DO)>dy/8) Break; // upper bow loop 1582 lib/gocr/ocr0.c i=loop(bp,0,j,dx,cs,0,RI); loop 1583 lib/gocr/ocr0.c i=loop(bp,i,j,dx,cs,1,RI); // thickness vert. line loop 1604 lib/gocr/ocr0.c j=loop(bp,0,dy/8,dx,cs,0,RI); // if j>dx/2 we have italic f loop 1607 lib/gocr/ocr0.c if (loop(bp,0,i,dx,cs,0,RI)>(j+dx/4)) break; loop 1610 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)<dx/2 ) loop 1611 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)-1 loop 1612 lib/gocr/ocr0.c <=loop(bp,dx-1, y ,dx,cs,0,LE) ) loop 1613 lib/gocr/ocr0.c if( loop(bp,dx-1, y-1,dx,cs,0,LE) loop 1614 lib/gocr/ocr0.c <=loop(bp,dx-1, y ,dx,cs,0,LE) ) Break; // ~1 loop 1616 lib/gocr/ocr0.c if( loop(bp,0,dy/2,dx,cs,0,RI)-1 loop 1617 lib/gocr/ocr0.c >loop(bp,0, 1,dx,cs,0,RI) ) Break; // ~X loop 1637 lib/gocr/ocr0.c x=loop(bp,0 ,y,dx,cs,0,RI);if(x<i1)i1=x; loop 1638 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE);if(x<i2)i2=x; loop 1642 lib/gocr/ocr0.c if( loop(bp,0,3*dy/4,dx,cs,0,RI)<i1-dx/4 ) Break; loop 1644 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)>3*dx/4 ) loop 1645 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1,dy,cs,0,UP)<dx/2 ) Break; // ~c loop 1647 lib/gocr/ocr0.c if( loop(bp, 0,2*dy/3 ,dx,cs,0,RI)>2*dx/3 loop 1648 lib/gocr/ocr0.c || loop(bp, 0,2*dy/3-1,dx,cs,0,RI)>2*dx/3 ) loop 1649 lib/gocr/ocr0.c if( loop(bp,dx-1, dy/4 ,dx,cs,0,LE)>2*dx/3 ) Break; // ~5 ~S loop 1661 lib/gocr/ocr0.c if( loop(bp,dx-1 ,3*dy/4,dx,cs,0,LE)- loop 1662 lib/gocr/ocr0.c loop(bp,0 ,3*dy/4,dx,cs,0,RI)>dx/5+1 loop 1663 lib/gocr/ocr0.c && loop(bp,dx-1-dx/8,dy-1 ,dy,cs,0,UP)<dy/4 ) { loop 1664 lib/gocr/ocr0.c if( loop(bp,dx-1 ,5*dy/16,dx,cs,0,LE)- loop 1665 lib/gocr/ocr0.c loop(bp,0 ,5*dy/16,dx,cs,0,RI)>=dx/5+1) ad=98*ad/100; // ~E loop 1666 lib/gocr/ocr0.c i=loop(bp,dx/8,0,dy,cs,0,DO); loop 1673 lib/gocr/ocr0.c i = loop(bp,dx-1 ,3*dy/4,dx ,cs,0,LE)/2; loop 1674 lib/gocr/ocr0.c if (loop(bp,dx-1-i , dy-1,dy/2,cs,0,UP)<dy/4) loop 1675 lib/gocr/ocr0.c if (loop(bp,0 ,3*dy/4,dx ,cs,0,RI)<dx/4) { loop 1679 lib/gocr/ocr0.c if( loop(bp,0,dy/4,dx ,cs,0,RI)>1 loop 1680 lib/gocr/ocr0.c && loop(bp,0, 0,dy/4,cs,0,DO)<dy/4 ) { loop 1719 lib/gocr/ocr0.c y = loop(box1->p,x0+dx/2,y1 ,dy,cs,0,UP); if (y>1+dy/8) Break; loop 1720 lib/gocr/ocr0.c y+= loop(box1->p,x0+dx/2,y1-y,dy,cs,1,UP); if (y>dy/3) Break; loop 1721 lib/gocr/ocr0.c y=y1-y-loop(box1->p,x0+dx/2,y1-y,dy,cs,0,UP)/2; if (y<y0+3*dy/8) Break; loop 1731 lib/gocr/ocr0.c if( loop(box1->p,x0,y0+ y ,dx,cs,0,RI) loop 1732 lib/gocr/ocr0.c > loop(box1->p,x0,y0+dy/4,dx,cs,0,RI)+dx/32 ) loop 1735 lib/gocr/ocr0.c i1=loop(box1->p,x0,y0+dy/4,dx,cs,0,RI); loop 1736 lib/gocr/ocr0.c i2=loop(box1->p,x0,y0+dy/2,dx,cs,0,RI); loop 1737 lib/gocr/ocr0.c i =loop(box1->p,x0,y0+dy/2-dy/ 8,dx,cs,0,RI); if(i>i2) i2=i; loop 1738 lib/gocr/ocr0.c i =loop(box1->p,x0,y0+dy/2-dy/16,dx,cs,0,RI); if(i>i2) i2=i; loop 1739 lib/gocr/ocr0.c i3=loop(box1->p,x0,y1-dy/4,dx,cs,0,RI); loop 1743 lib/gocr/ocr0.c if( loop(box1->p,x0,y0+ 1 ,dx,cs,0,RI) loop 1744 lib/gocr/ocr0.c >= loop(box1->p,x0,y0+ 3 ,dx,cs,0,RI)+dx/32 ) loop 1745 lib/gocr/ocr0.c if( loop(box1->p,x0,y0+ 0 ,dx,cs,0,RI) loop 1746 lib/gocr/ocr0.c > loop(box1->p,x0,y0+ 3 ,dx,cs,0,RI)+dx/32 ) loop 1747 lib/gocr/ocr0.c if( loop(box1->p,x0,y1- 0 ,dx,cs,0,RI) loop 1748 lib/gocr/ocr0.c > loop(box1->p,x0,y1- 3 ,dx,cs,0,RI)+dx/32 ) loop 1749 lib/gocr/ocr0.c if( loop(box1->p,x0,y1- 1 ,dx,cs,0,RI) loop 1750 lib/gocr/ocr0.c > loop(box1->p,x0,y1- 3 ,dx,cs,0,RI)+dx/32 ) Break; // ~8 Aug00 loop 1763 lib/gocr/ocr0.c { i=loop(box1->p,x0,y0+y,dx,cs,0,RI); if( i>x+dx/9 ) break; loop 1768 lib/gocr/ocr0.c { i=loop(bp,dx-1,dy-y,dx,cs,0,LE); loop 1772 lib/gocr/ocr0.c x=loop(bp,0,dy/2 ,dx,cs,0,RI); loop 1773 lib/gocr/ocr0.c i=loop(bp,0,dy/2-1,dx,cs,0,RI); if (i>x) x=i; // allow dust loop 1774 lib/gocr/ocr0.c i=loop(bp,0,dy/2+1,dx,cs,0,RI); if (i>x) x=i; loop 1775 lib/gocr/ocr0.c if ( loop(bp,0, dy/8,dx,cs,0,RI) loop 1776 lib/gocr/ocr0.c +loop(bp,0,7*dy/8,dx,cs,0,RI) > 2*x+1 ) Break; // not konvex! loop 1780 lib/gocr/ocr0.c x =loop(bp,0,dy/4,dx,cs,0,RI); loop 1781 lib/gocr/ocr0.c if(loop(bp,0,dy/2,dx,cs,0,RI)>x+dx/8) ad=97*ad/100; loop 1813 lib/gocr/ocr0.c i=loop(bp,dx-1,dy-1 ,dx,cs,0,LE); loop 1814 lib/gocr/ocr0.c j=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); if(j>i) Break; loop 1850 lib/gocr/ocr0.c i=loop(bp,0,y,x1-x0,cs,0,RI); loop 1857 lib/gocr/ocr0.c i=loop(bp,bp->x-1,y,x1-x0,cs,0,LE); loop 1864 lib/gocr/ocr0.c i=loop(bp,bp->x-1,y,x1-x0,cs,0,LE); loop 1869 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1 ,dx,cs,0,LE) <= loop 1870 lib/gocr/ocr0.c loop(bp,dx-1,dy-2-dy/16,dx,cs,0,LE) ) Break; // P loop 1872 lib/gocr/ocr0.c y=loop(bp,dx/2,dy-1,dy,cs,0,UP)-1; if (dy>16) y/=2; loop 1877 lib/gocr/ocr0.c ya=loop(bp, 0,dy-1,dy,cs,0,UP); loop 1878 lib/gocr/ocr0.c yb=loop(bp,dx/16+1,dy-1,dy,cs,0,UP); loop 1881 lib/gocr/ocr0.c if ( loop(bp, dx/2, 0,dy,cs,0,DO) loop 1882 lib/gocr/ocr0.c -loop(bp, dx/2,dy-1,dy,cs,0,UP) > dy/8 ) ad=97*ad/100; // ~b loop 1886 lib/gocr/ocr0.c if (loop(bp, 0, 0,dx,cs,0,RI)>=dx/2 loop 1887 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1,dx,cs,0,LE)>=dx/2 loop 1888 lib/gocr/ocr0.c && loop(bp, 0,dy/2,dx,cs,0,RI)< 2 ) ad=96*ad/100; // thin O loop 1911 lib/gocr/ocr0.c if( loop(bp,bp->x-1, bp->y/4,x1-x0,cs,0,LE) > loop 1912 lib/gocr/ocr0.c loop(bp,bp->x-1,3*bp->y/4,x1-x0,cs,0,LE)+1 ) Break; loop 1959 lib/gocr/ocr0.c j=loop(bp,dx-1,dy-1-y,dx,cs,0,LE); if(j<3 || 3*j<dx) break; // ~f Jun00 loop 1964 lib/gocr/ocr0.c j=loop(bp,0,y,dx,cs,0,RI); loop 1965 lib/gocr/ocr0.c j=loop(bp,j,y,dx,cs,1,RI); if( j>dx/2 ) i=0; } loop 1968 lib/gocr/ocr0.c x=loop(bp,0,dy-1-dy/4,dx,cs,0,RI); loop 1969 lib/gocr/ocr0.c x=loop(bp,x,dy-1-dy/4,dx,cs,1,RI); // strichdicke loop 1971 lib/gocr/ocr0.c { j=loop(bp,0,y,dx,cs,0,RI); loop 1972 lib/gocr/ocr0.c j=loop(bp,j,y,dx,cs,1,RI); if( j>dx/3 && ((j>2*x && dx>8) || j>x+1)) i=0; } loop 1977 lib/gocr/ocr0.c x =loop(bp,dx-1,y,dx,cs,0,LE); if(x<2) continue; // skip serifs loop 1978 lib/gocr/ocr0.c j =loop(bp,dx-x,y,dy/4,cs,0,UP); loop 1979 lib/gocr/ocr0.c x+=loop(bp,dx-x,y-j+1,dx,cs,0,LE); if (x>=dx/3) { i=0; break; } loop 1992 lib/gocr/ocr0.c i=loop(bp,dx-1,dy-1,dx,cs,0,LE); // serif or E ? loop 1994 lib/gocr/ocr0.c if (loop(bp,dx-1,(dy+4)/8,dx,cs,0,LE)>dx/8 // no serif loop 1995 lib/gocr/ocr0.c || loop(bp, 0, dy-3,dx,cs,0,RI)<1) break; loop 2001 lib/gocr/ocr0.c if( loop(bp,0, bp->y/4,dx,cs,0,RI) < loop 2002 lib/gocr/ocr0.c loop(bp,0,3*bp->y/4,dx,cs,0,RI)-1 ) Break; loop 2017 lib/gocr/ocr0.c i= loop(bp,0,3*bp->y/4,dx,cs,0,RI)-1; loop 2018 lib/gocr/ocr0.c if (i>=0 && loop(bp,dy-1,i,dy,cs,0,UP)<=3*dy/4 ) ad=ad*98/100; loop 2021 lib/gocr/ocr0.c i= loop(bp,bp->x-1,bp->y/4,dx,cs,0,LE); loop 2023 lib/gocr/ocr0.c j=i+loop(bp,bp->x-1-i,bp->y/4, dx ,cs,1,LE); loop 2024 lib/gocr/ocr0.c j= loop(bp,bp->x-1-j,bp->y/4,3*dy/4,cs,0,DO); loop 2026 lib/gocr/ocr0.c i=loop(bp,bp->x-1,0,dx,cs,0,LE); loop 2063 lib/gocr/ocr0.c y=loop(bp,x,0,dy,cs,0,DO); if(y>i)i=y; if(y<i && i>1) break; loop 2092 lib/gocr/ocr0.c i=loop(bp,0,dy-1-dy/16,dx,cs,0,RI); loop 2093 lib/gocr/ocr0.c j=loop(bp,0,dy-1-dy/8 ,dx,cs,0,RI); loop 2096 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/16,dx,cs,0,LE) loop 2097 lib/gocr/ocr0.c > loop(bp,dx-1,dy/8 ,dx,cs,0,LE)+1+dx/32 ) Break; // ~bad 0 (thinn) loop 2099 lib/gocr/ocr0.c if( loop(bp, 0, dy-1,dx,cs,1,RI)==dx loop 2100 lib/gocr/ocr0.c && loop(bp,dx-1,3*dy/4,dx,cs,0,LE)>dx/16 loop 2101 lib/gocr/ocr0.c && loop(bp, 0,3*dy/4,dx,cs,0,RI)>dx/16 loop 2102 lib/gocr/ocr0.c && loop(bp,dx-1, dy/2,dx,cs,0,LE)>dx/16 loop 2103 lib/gocr/ocr0.c && loop(bp, 0, dy/2,dx,cs,0,RI)>dx/16 loop 2106 lib/gocr/ocr0.c i=loop(bp, 0,dy-2-dy/8,dx,cs,0,RI); loop 2107 lib/gocr/ocr0.c j=loop(bp,dx-1,dy-2-dy/8,dx,cs,0,LE); loop 2112 lib/gocr/ocr0.c if ( loop(bp,dx/2,dy-1,dy,cs,0,UP)>0 ) ad=98*ad/100; // w loop 2145 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE); if(8*x>5*dx) break; loop 2148 lib/gocr/ocr0.c y=loop(bp,x,0,dy,cs,0,DO); if(y>i)i=y; if(y<i && i>1) break; loop 2193 lib/gocr/ocr0.c x=loop(bp,dx/2,0,dx,cs,1,RI)+dx/2; // be sure in the upper gap loop 2194 lib/gocr/ocr0.c y=loop(bp, x,0,(dy+1)/2,cs,0,DO)-1; // (x,y) should be in the gap loop 2211 lib/gocr/ocr0.c if( loop(bp,0 ,dy/6 ,dx,cs,0,RI) loop 2212 lib/gocr/ocr0.c >=loop(bp,0 ,dy-1-dy/3,dx,cs,0,RI) && dy>6 ) Break; loop 2213 lib/gocr/ocr0.c if( loop(bp,0 ,dy-1-dy/3,dx,cs,0,RI) loop 2214 lib/gocr/ocr0.c >loop(bp,0 ,dy-1-dy/8,dx,cs,0,RI) loop 2215 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1-dy/3,dx,cs,0,LE) loop 2216 lib/gocr/ocr0.c >loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE) ) Break; // better OR ? loop 2217 lib/gocr/ocr0.c if( loop(bp,0 ,dy-1-dy/3,dx,cs,0,RI) loop 2218 lib/gocr/ocr0.c >=loop(bp,0 ,dy-1-dy/8,dx,cs,0,RI) loop 2219 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1-dy/3,dx,cs,0,LE) loop 2220 lib/gocr/ocr0.c >=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE) ) ad=99*ad/100; // font21 loop 2221 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/6 ,dx,cs,0,LE) loop 2222 lib/gocr/ocr0.c >=loop(bp,dx-1,dy-1-dy/3,dx,cs,0,LE) && dy>6 ) Break; loop 2223 lib/gocr/ocr0.c x=loop(bp,0,dy-1,dx,cs,0,RI); // 3*x>dx changed to 2*x>dx May2001 JS loop 2224 lib/gocr/ocr0.c x=loop(bp,x,dy-1,dx,cs,1,RI); if ( dx>14 && 2*x>dx ) Break; // U loop 2230 lib/gocr/ocr0.c i=loop(bp, 0,dy-1-dy/16,dx,cs,0,RI) loop 2231 lib/gocr/ocr0.c +loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE); loop 2232 lib/gocr/ocr0.c j=loop(bp, 0,dy-1-dy/4 ,dx,cs,0,RI) loop 2233 lib/gocr/ocr0.c +loop(bp,dx-1,dy-1-dy/4 ,dx,cs,0,LE); loop 2237 lib/gocr/ocr0.c i=loop(bp, 0, 0,dx,cs,0,RI); loop 2238 lib/gocr/ocr0.c i=loop(bp, i, 0,dx,cs,1,RI); i1=i; // thickness loop 2239 lib/gocr/ocr0.c i=loop(bp, 0, 1,dx,cs,0,RI); loop 2240 lib/gocr/ocr0.c i=loop(bp, i, 1,dx,cs,1,RI); if(i>i1) i1=i; // thiggest loop 2241 lib/gocr/ocr0.c i=loop(bp, 0,dy/4,dx,cs,0,RI); loop 2242 lib/gocr/ocr0.c i=loop(bp, i,dy/4,dx,cs,1,RI); i2=i; loop 2243 lib/gocr/ocr0.c i=loop(bp, 0,dy ,dx,cs,0,RI); loop 2244 lib/gocr/ocr0.c i=loop(bp, i,dy ,dx,cs,1,RI); i3=i; // thickness loop 2245 lib/gocr/ocr0.c i=loop(bp, 0,dy-1,dx,cs,0,RI); loop 2246 lib/gocr/ocr0.c i=loop(bp, i,dy-1,dx,cs,1,RI); if(i>i3) i3=i; // thiggest loop 2254 lib/gocr/ocr0.c j=loop(bp, 0,dy-1-dy/4 ,dx,cs,0,RI); loop 2255 lib/gocr/ocr0.c j=loop(bp, j,dy-1-dy/4 ,dx,cs,1,RI); loop 2262 lib/gocr/ocr0.c if( loop(bp,0 ,dy-1-dy/4,dx,cs,0,RI) loop 2263 lib/gocr/ocr0.c >loop(bp,0 ,dy-1 ,dx,cs,0,RI) ) ad=96*ad/100; loop 2291 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)<=dx/8 ) Break; loop 2292 lib/gocr/ocr0.c x= loop(bp,dx-1,dy/2,dx,cs,0,LE); if (x<=dx/2) ad=99*ad/100; // ~t loop 2293 lib/gocr/ocr0.c if (loop(bp,dx-1-x/2,0,dy,cs,0,DO)>dy/8) ad=99*ad/100; // ~t loop 2295 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)<=dx/8+2 ) Break; // ~v Jun00 loop 2301 lib/gocr/ocr0.c i1= loop(bp,0 ,y,dx,cs,0,RI); if(i1>3*dx/8) break; loop 2302 lib/gocr/ocr0.c i2= loop(bp,dx-1,y,dx,cs,0,LE); if(i1>i2) break; loop 2312 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE)>5*dx/8 // not a C loop 2315 lib/gocr/ocr0.c if( loop(bp, 0,5*dy/8,dx,cs,0,RI)<=dx/8 loop 2316 lib/gocr/ocr0.c && loop(bp,dx-1,5*dy/8,dx,cs,0,LE)>=5*dy/8 loop 2317 lib/gocr/ocr0.c && loop(bp,dx/2, dy-1,dy,cs,0,UP)<=dy/8 ) Break; // ~c loop 2319 lib/gocr/ocr0.c if( loop(bp, 0,3*dy/8,dx,cs,0,RI) loop 2320 lib/gocr/ocr0.c > loop(bp,dx-1,3*dy/8,dx,cs,0,LE)+dx/8 ) { loop 2321 lib/gocr/ocr0.c if( loop(bp, 0, dy/8,dx,cs,0,RI)<dx/8 ) Break; // ~z (broken) loop 2325 lib/gocr/ocr0.c if( loop(bp,0,dy/3,dx,cs,0,RI)>3*dx/4 ) Break; // ~i loop 2326 lib/gocr/ocr0.c if( loop(bp,0,dy/4,dx,cs,0,RI)>3*dx/8 // ~I loop 2336 lib/gocr/ocr0.c if (loop(bp,dx-1-dx/4,dy-1,dx,cs,0,UP)<dy/4) ad=98*ad/100; // ~f (serif) loop 2352 lib/gocr/ocr0.c if (loop(bp, dx/2, dy/4,dy,cs,0,DO)>dy/2) Break; // ~C loop 2353 lib/gocr/ocr0.c if (loop(bp, dx/2, 0,dy,cs,0,DO)>dy/8 loop 2354 lib/gocr/ocr0.c && loop(bp, dx/2,dy/16,dx,cs,0,RI)<dx/2 loop 2363 lib/gocr/ocr0.c i=loop(box1->p,x,y1,dy,cs,0,UP); loop 2365 lib/gocr/ocr0.c if (i>0) { i2=loop(box1->p,x-1,y1-i-1,dy,cs,0,UP); loop 2382 lib/gocr/ocr0.c x=loop(bp,dx-1, dy/4,dx,cs,0,LE); if(x>dx/2) Break; i=x; // ru loop 2383 lib/gocr/ocr0.c x=loop(bp,dx-1, dy/2,dx,cs,0,LE); if(x<=i ) Break; i=x; // rc loop 2384 lib/gocr/ocr0.c x=loop(bp,dx-1, 5*dy/8,dx,cs,0,LE); if(x>i ) i=x; loop 2385 lib/gocr/ocr0.c x=loop(bp,dx-1, 6*dy/8,dx,cs,0,LE); if(x>i ) i=x; loop 2386 lib/gocr/ocr0.c x=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); if(x>=i ) Break; // rd loop 2388 lib/gocr/ocr0.c i1=loop(bp,0, dy/4,dx,cs,0,RI); // straight loop 2389 lib/gocr/ocr0.c i2=loop(bp,0, dy/2,dx,cs,0,RI); loop 2390 lib/gocr/ocr0.c i3=loop(bp,0,dy-1-dy/4,dx,cs,0,RI); if( abs(i1+i3-2*i2)>1+dx/16 ) Break; loop 2392 lib/gocr/ocr0.c if (loop(bp,dx-1, dy/2,dx,cs,0,LE)>=loop(bp,dx-1, dy-1,dx,cs,0,LE) loop 2393 lib/gocr/ocr0.c && loop(bp,dx-1,3*dy/16,dx,cs,0,LE)>=loop(bp,dx-1,dy/16,dx,cs,0,LE)+dx/8 ) Break; // ~ff loop 2395 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-2 ,dx,cs,0,LE) loop 2396 lib/gocr/ocr0.c >loop(bp,dx-1,dy-2-dy/8,dx,cs,0,LE)) { loop 2398 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE)==0 loop 2399 lib/gocr/ocr0.c && loop(bp,dx-1,dy-2-dy/8,dx,cs,0,LE)>0 ) Break; // broken B ?? loop 2434 lib/gocr/ocr0.c x =loop(bp,dx-1,dy/2,dx,cs,0,LE); if(3*x>dx) Break; // ~K loop 2461 lib/gocr/ocr0.c x =loop(bp,0,y,dx ,cs,0,RI); if(x> dx/4) Break; // search 1st v-line loop 2462 lib/gocr/ocr0.c x+=loop(bp,x,y,dx-x,cs,1,RI); if(x> dx/2) Break; i1=x; // first gap loop 2463 lib/gocr/ocr0.c x+=loop(bp,x,y,dx-x,cs,0,RI); if(x>3*dx/4) Break; i2=x; // 2nd v-line loop 2464 lib/gocr/ocr0.c x+=loop(bp,x,y,dx-x,cs,1,RI); if(x>6*dx/8) Break; i3=x; // 2nd gap loop 2465 lib/gocr/ocr0.c x+=loop(bp,x,y,dx-x,cs,0,RI); if(x<5*dx/8) Break; i4=x; // 3th v-line loop 2471 lib/gocr/ocr0.c i =loop(bp,0,5*dy/8,dx,cs,0,RI); loop 2472 lib/gocr/ocr0.c i =loop(bp,i,5*dy/8,dx,cs,1,RI); loop 2473 lib/gocr/ocr0.c x =loop(bp,0,dy-dy/32-1,dx,cs,0,RI); loop 2474 lib/gocr/ocr0.c x =loop(bp,x,dy-dy/32-1,dx,cs,1,RI); loop 2477 lib/gocr/ocr0.c i=loop(bp,x,dy-1,dy,cs,0,UP); if (i>y) y=i; loop 2481 lib/gocr/ocr0.c i=loop(bp,x,dy-1,dy,cs,0,UP); if (i>y) y=i; loop 2484 lib/gocr/ocr0.c for(x=i1;x<i4;x++) if( loop(bp,x,0,dy,cs,0,DO)>=dy/2 ) break; loop 2489 lib/gocr/ocr0.c i=loop(bp,x,0,dy,cs,0,DO); loop 2490 lib/gocr/ocr0.c i=loop(bp,x,i,dy,cs,1,DO); // measure thickness loop 2498 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/16,dx,cs,0,LE)<2 loop 2499 lib/gocr/ocr0.c && loop(bp,dx-1,dy/4 ,dx,cs,0,LE)>3 ) Break; // melted WT loop 2501 lib/gocr/ocr0.c x=loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 2502 lib/gocr/ocr0.c if (x>2 && loop(bp,dx-1-x/2,0,dy,cs,0,DO)<dy/2) Break; // melt toc loop 2503 lib/gocr/ocr0.c if (loop(bp,(i3+i4)/2,0,dy,cs,0,DO)>dy/2) Break; // N loop 2506 lib/gocr/ocr0.c if( loop(bp,1, dy/4,dx,cs,0,RI) loop 2507 lib/gocr/ocr0.c >loop(bp,0,7*dy/8,dx,cs,0,RI) ) loop 2511 lib/gocr/ocr0.c x =loop(bp,0,dy/4,dx,cs,0,RI); loop 2512 lib/gocr/ocr0.c x+=loop(bp,x,dy/4,dx,cs,1,RI); loop 2514 lib/gocr/ocr0.c i=loop(bp,x,0,dy,cs,0,DO); loop 2544 lib/gocr/ocr0.c i1= loop (bp, dx/8,0,dy,cs,0,DO); // left side loop 2545 lib/gocr/ocr0.c i2= loop (bp,dx-1-dx/8,0,dy,cs,0,DO); // right side loop 2546 lib/gocr/ocr0.c i3= loop (bp, dx/8,i1,dy,cs,1,DO); // left side loop 2547 lib/gocr/ocr0.c i4= loop (bp,dx-1-dx/8,i2,dy,cs,1,DO); // right side loop 2550 lib/gocr/ocr0.c i= loop (bp,x,0,dy,cs,0,DO); loop 2560 lib/gocr/ocr0.c i=dx/4+loop(bp,dx/4,y,dx,cs,0,RI); // left side of vertical line loop 2561 lib/gocr/ocr0.c j= loop(bp, i,y,dx,cs,1,RI); // width of vertical line loop 2566 lib/gocr/ocr0.c i= loop(bp,dx/4,y,dx,cs,0,RI); loop 2567 lib/gocr/ocr0.c i= loop(bp, i,y,dx,cs,1,RI);if(4*i>3*x) break; //~I loop 2570 lib/gocr/ocr0.c i =dx/4+loop(bp,dx/4,dy/4,dx,cs,0,RI);if(i>3*dx/4) Break; // ~7 loop 2571 lib/gocr/ocr0.c i+= loop(bp,i ,dy/4,dx,cs,1,RI);if(i>3*dx/4) Break; loop 2578 lib/gocr/ocr0.c && loop(bp,0, 0,dy/2,cs,0,DO)>=dy/4 loop 2579 lib/gocr/ocr0.c && loop(bp,0,dy-1,dy ,cs,0,UP)<=dy/2) ad=96*ad/100; // ~J loop 2581 lib/gocr/ocr0.c if( loop(bp,0,dy-1,dx,cs,0,RI)<=dx/8) ad=99*ad/100; // ~J loop 2582 lib/gocr/ocr0.c i = loop(bp,0,dy/2,dx,cs,0,RI); loop 2583 lib/gocr/ocr0.c j = loop(bp,i,dy/2,dx,cs,1,RI); loop 2598 lib/gocr/ocr0.c i=loop(bp,0,y,dx,cs,0,RI); loop 2599 lib/gocr/ocr0.c i=loop(bp,i,y,dx,cs,1,RI); if( i>x ) { x=i;yb=j=y; } // hor. line loop 2608 lib/gocr/ocr0.c if ( loop(bp,dx-1-3*x/4,yb,dy,cs,1,UP) loop 2609 lib/gocr/ocr0.c <=loop(bp,dx-1-1*x/4,yb,dy,cs,1,UP)+1 ) loop 2610 lib/gocr/ocr0.c if ( loop(bp,0 ,dy/2,dy,cs,1,UP)>dx/8 ) Break; // ~C loop 2615 lib/gocr/ocr0.c i=loop(bp,dx-1,0,dx,cs,0,LE); loop 2619 lib/gocr/ocr0.c j=loop(bp,dx-1,y,dx,cs,0,LE); if(j-i>1) break; i=j; loop 2623 lib/gocr/ocr0.c i=loop(bp,dx-1,yb,dx,cs,0,LE); loop 2625 lib/gocr/ocr0.c if( loop(bp,dx-1,y,dx,cs,0,LE)>i ) break; loop 2628 lib/gocr/ocr0.c j=loop(bp,0, dy/2,dx,cs,0,RI); loop 2629 lib/gocr/ocr0.c j=loop(bp,j, dy/2,dx,cs,1,RI); i=j; // thickness loop 2630 lib/gocr/ocr0.c j=loop(bp,0, dy/4,dx,cs,0,RI); loop 2631 lib/gocr/ocr0.c j=loop(bp,j, dy/4,dx,cs,1,RI); if (j<i) i=j; // thickness loop 2632 lib/gocr/ocr0.c j=loop(bp,0,3*dy/4,dx,cs,0,RI); loop 2633 lib/gocr/ocr0.c j=loop(bp,j,3*dy/4,dx,cs,1,RI); if (j<i) i=j; // thickness loop 2636 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)-dx/8 loop 2637 lib/gocr/ocr0.c <=loop(bp,dx-1, yb ,dx,cs,0,LE) ) loop 2638 lib/gocr/ocr0.c if( loop(bp,dx-1, yb ,dx,cs,0,LE)-dx/8 loop 2639 lib/gocr/ocr0.c >=loop(bp,dx-1,yb/2,dx,cs,0,LE) ) Break; // ~1 ??? loop 2652 lib/gocr/ocr0.c && loop(bp, 0, 3*dy/4,dx,cs,0,RI) loop 2653 lib/gocr/ocr0.c >=loop(bp, 0, dy-2,dx,cs,0,RI) loop 2654 lib/gocr/ocr0.c && loop(bp,dx-1, 3*dy/4,dx,cs,0,LE) loop 2655 lib/gocr/ocr0.c <=loop(bp,dx-1, dy-2,dx,cs,0,LE) loop 2656 lib/gocr/ocr0.c && loop(bp,dx-1, 1,dx,cs,0,LE)+dx/16 loop 2657 lib/gocr/ocr0.c <loop(bp,dx-1,3*dy/16,dx,cs,0,LE) loop 2658 lib/gocr/ocr0.c && ( loop(bp, 0, 1,dx,cs,0,RI) loop 2659 lib/gocr/ocr0.c >loop(bp, 0,3*dy/16,dx,cs,0,RI)+dx/16 loop 2660 lib/gocr/ocr0.c || loop(bp,dx-1, 0,dx,cs,0,LE)==0 loop 2661 lib/gocr/ocr0.c || loop(bp,dx-1, 1,dx,cs,0,LE)==0) ) ad=96*ad/100; // ~f Jan02 loop 2663 lib/gocr/ocr0.c x=loop(bp,dx-1,3*dy/16,dx,cs,0,LE); loop 2665 lib/gocr/ocr0.c if (loop(bp,dx-x,0,dy,cs,0,DO)<3*dy/16 loop 2666 lib/gocr/ocr0.c && loop(bp, 0, 3*dy/4,dx,cs,0,RI)+1 loop 2667 lib/gocr/ocr0.c >=loop(bp, 0, dy-2,dx,cs,0,RI) loop 2668 lib/gocr/ocr0.c && loop(bp,dx-1, 3*dy/4,dx,cs,0,LE) loop 2669 lib/gocr/ocr0.c <=loop(bp,dx-1, dy-2,dx,cs,0,LE) ) Break; loop 2682 lib/gocr/ocr0.c if (loop(bp,dx/2 ,dy-1,dy,cs,0,UP)>dy/4) Break; // ~h loop 2683 lib/gocr/ocr0.c if (loop(bp,dx/2+1,dy-1,dy,cs,0,UP)>dy/4) Break; // ~h loop 2686 lib/gocr/ocr0.c x= loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 2687 lib/gocr/ocr0.c i= loop(bp,dx-1,dy/8,dx,cs,0,LE); loop 2688 lib/gocr/ocr0.c if (i>x && loop(bp,dx-x,0,dy,cs,0,DO)>=dy/2) ad=90*ad/100; /* ~\ */ loop 2690 lib/gocr/ocr0.c x= loop(bp,0, 0,dx,cs,0,RI); loop 2691 lib/gocr/ocr0.c i= loop(bp,0, 1,dx,cs,0,RI); if (i<x) x=i; loop 2692 lib/gocr/ocr0.c i= loop(bp,0,dy/4,dx,cs,0,RI); loop 2732 lib/gocr/ocr0.c x =loop(bp,0,y,dx,cs,0,RI); if(x>3*dx/8) Break; /* slanted too */ loop 2733 lib/gocr/ocr0.c x +=loop(bp,x,y,dx,cs,1,RI); if(x>5*dx/8) Break; /* fat too */ loop 2734 lib/gocr/ocr0.c i1 =loop(bp,x,y,dx,cs,0,RI); i1=(i1+2*x)/2; // upper center x loop 2736 lib/gocr/ocr0.c x =loop(bp,dx-1 ,y,dx,cs,0,LE); if(x>dx/4) Break; loop 2737 lib/gocr/ocr0.c x +=loop(bp,dx-1-x,y,dx,cs,1,LE); if(dx>5 && dy>7 && x>dx/2) Break; loop 2739 lib/gocr/ocr0.c i2 =loop(bp,dx-1-x,y,dx,cs,0,LE); i2=dx-1-(i2+2*x)/2; // upper center x loop 2743 lib/gocr/ocr0.c y=dy/2-loop(bp,dx-1,dy/2,dy/2,cs,1,UP); loop 2748 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE);if(x>dx/8) break; loop 2752 lib/gocr/ocr0.c y=dy/2+loop(bp,0,dy/2,dy/2,cs,1,DO); loop 2759 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy-1,dx,cs,0,LE); loop 2760 lib/gocr/ocr0.c i2=loop(bp,dx-1,dy-2,dx,cs,0,LE); loop 2763 lib/gocr/ocr0.c i1=loop(bp, 0, 0,dx,cs,0,RI); loop 2764 lib/gocr/ocr0.c i2=loop(bp, 0, 1,dx,cs,0,RI); loop 2769 lib/gocr/ocr0.c i1=loop(bp, 0,dy/2,dx,cs,0,RI); loop 2770 lib/gocr/ocr0.c i1=loop(bp, i1,dy/2,dx,cs,1,RI); loop 2773 lib/gocr/ocr0.c i1=loop(bp,0, dy/16,dx,cs,0,RI); loop 2774 lib/gocr/ocr0.c i2=loop(bp,0,4*dy/16,dx,cs,0,RI); loop 2775 lib/gocr/ocr0.c i3=loop(bp,0,7*dy/16,dx,cs,0,RI); loop 2779 lib/gocr/ocr0.c i1+=loop(bp,i1, dy/16,dx,cs,1,RI); loop 2780 lib/gocr/ocr0.c i2+=loop(bp,i2,4*dy/16,dx,cs,1,RI); loop 2781 lib/gocr/ocr0.c i3+=loop(bp,i3,7*dy/16,dx,cs,1,RI); loop 2790 lib/gocr/ocr0.c if ( loop(bp, dx-1,dy-2-dy/32,dx,cs,0,LE) loop 2791 lib/gocr/ocr0.c > loop(bp, 0, 1+dy/32,dx,cs,0,RI) + dx/4 ) Break; // ~5 Dec00 loop 2796 lib/gocr/ocr0.c if ( loop(bp, dx-1,dy-1-dy/32,dx,cs,0,LE) loop 2797 lib/gocr/ocr0.c > loop(bp, 0, 0+dy/32,dx,cs,0,RI) ) ad=99*ad/100; // ~5 loop 2798 lib/gocr/ocr0.c if ( loop(bp, 0,dy-1-dy/32,dx,cs,0,RI) loop 2799 lib/gocr/ocr0.c > loop(bp, dx-1, 0+dy/32,dx,cs,0,LE) ) ad=99*ad/100; // ~5 loop 2835 lib/gocr/ocr0.c y =loop(bp,dx/16,0,dy,cs,0,DO); if(y<=dy/8) loop 2836 lib/gocr/ocr0.c y+=loop(bp,dx/16,y,dy,cs,1,DO); if(16*y>=15*dy) Break; // ~B loop 2845 lib/gocr/ocr0.c i=loop(bp,dx-1,y,dy,cs,0,LE); if (i>x) x=i; loop 2924 lib/gocr/ocr0.c x=loop(bp,0,y,dx,cs,0,RI); // Kante abfallend <=> Z loop 2931 lib/gocr/ocr0.c x=loop(bp,dx-1 ,y,dx/4,cs,0,LE); loop 2932 lib/gocr/ocr0.c x=loop(bp,dx-1-x,y,dx/2,cs,1,LE); if(x>i){ i=x;i1=y; } loop 2935 lib/gocr/ocr0.c x =loop(bp,0,i1,dx ,cs,0,RI); loop 2936 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx-x,cs,1,RI); // left vertical bow loop 2937 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx-x,cs,0,RI); if (x>=dx) ad=90*ad/100; loop 2962 lib/gocr/ocr0.c j=loop(box1->p,x0,y,dx,cs,0,RI); loop 2964 lib/gocr/ocr0.c j+=loop(box1->p,x0+j-2,y+1,dx,cs,0,RI)-2; loop 2972 lib/gocr/ocr0.c if( loop(box1->p,x0,y1 ,dy,cs,0,RI)>dx/3 && loop 2973 lib/gocr/ocr0.c loop(box1->p,x0,y1-1,dy,cs,0,RI)>dx/3) Break; // no q loop 2975 lib/gocr/ocr0.c j=loop(box1->p,x1,y,dx,cs,0,LE); loop 2978 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy/8 ,dx,cs,0,LE); if(i1>dx/2) Break; loop 2979 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); loop 2980 lib/gocr/ocr0.c i2=loop(bp,dx-1,dy/2 ,dx,cs,0,LE); if(i1+i3<2*i2-dx/8) Break; // konvex loop 2981 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy/4 ,dx,cs,0,LE); if(i1>dx/2) Break; loop 2982 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); loop 2984 lib/gocr/ocr0.c i2=loop(bp,dx-1,y,dx,cs,0,LE); loop 2987 lib/gocr/ocr0.c x=loop(bp,dx -1,6*dy/8,dx,cs,0,LE); if(x>0){ x--; // robust loop 2988 lib/gocr/ocr0.c y=loop(bp,dx-x-1, dy-1,dy,cs,0,UP); loop 3179 lib/gocr/ocr0.c i=loop(bp,x,0,dy,cs,0,DO); if(i>y){ yc=y=i;xc=x; } loop 3181 lib/gocr/ocr0.c ya=dy/8; xa=xc-loop(bp,xc,ya,dx,cs,0,LE); if(xa< 0) Break; loop 3182 lib/gocr/ocr0.c yb=dy/8; xb=xc+loop(bp,xc,yb,dx,cs,0,RI); if(xb>=dx) Break; loop 3187 lib/gocr/ocr0.c yd=dy-1-dy/8;xd=dx-1-loop(bp,dx-1,yd,dx,cs,0,LE); loop 3196 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1,dx,cs,0,LE)<1) Break; loop 3224 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)+dx/8+1 // Jul00 loop 3225 lib/gocr/ocr0.c < loop(bp, 0,dy-1-dy/8,dx,cs,0,RI) ) Break; loop 3227 lib/gocr/ocr0.c i=loop(bp,x,0,dy,cs,0,DO); if(i>y) y=i; loop 3230 lib/gocr/ocr0.c x =loop(bp, 0 , y,dx,cs,0,RI); if(x<xa){ xa=x;ya=y; } loop 3231 lib/gocr/ocr0.c x =loop(bp,dx-1 , y,dx,cs,0,LE); if(x<xb){ xb=x;yb=y; } loop 3236 lib/gocr/ocr0.c x =loop(bp,dx-1 ,y,dx,cs,0,LE); loop 3237 lib/gocr/ocr0.c x+=loop(bp,dx-1-x,y,dx,cs,1,LE); loop 3238 lib/gocr/ocr0.c j =loop(bp,dx-1-x,y,dx,cs,0,LE); if(j<=i){ i=j;yc=y;xc=dx-1-x-j/2; } loop 3240 lib/gocr/ocr0.c yc+=loop(bp,xc,yc,i,cs,1,DO)/2; loop 3241 lib/gocr/ocr0.c xa+= loop(bp,xa ,ya,dx,cs,1,RI)/2; loop 3242 lib/gocr/ocr0.c xb=dx-1-loop(bp,dx-1,yb,dx,cs,1,LE)/2; loop 3243 lib/gocr/ocr0.c yd=dy-1-dy/8;xd=dx-1-loop(bp,dx-1,yd,dx,cs,0,LE); if(xd>6*dx/8) Break; loop 3246 lib/gocr/ocr0.c j=loop(bp,dx-1,dy-1-i,dx,cs,0,LE); loop 3249 lib/gocr/ocr0.c } if (i<dy/4) xd-=loop(bp,xd,yd,dx,cs,1,LE)/2; loop 3264 lib/gocr/ocr0.c xb+=loop(bp,xb,yb,dx/4,cs,1,RI)-1; loop 3265 lib/gocr/ocr0.c yb+=loop(bp,xb,yb,dy/8,cs,1,DO)-1; loop 3276 lib/gocr/ocr0.c xa=loop(bp,0,dy/8,dx,cs,0,RI); loop 3277 lib/gocr/ocr0.c xb=loop(bp,0,dy/2,dx,cs,0,RI); loop 3278 lib/gocr/ocr0.c xc=loop(bp,0,dy-1,dx,cs,0,RI); loop 3448 lib/gocr/ocr0.c t1=loop(bp,0 ,dy/4,dx,cs,0,RI); loop 3449 lib/gocr/ocr0.c t1=loop(bp,t1,dy/4,dx,cs,1,RI); // thickness of line? loop 3455 lib/gocr/ocr0.c if (abs(loop(bp, 1,dy-1,dy,cs,0,UP) loop 3456 lib/gocr/ocr0.c -loop(bp,dx-2,dy-1,dy,cs,0,UP))>dy/8+1) Break; // 4x6 N loop 3457 lib/gocr/ocr0.c if ( ( loop(bp, 1, 0,dy,cs,0,DO)>=dy-2 loop 3458 lib/gocr/ocr0.c && loop(bp, 0,dy-1,dy,cs,0,UP)>0) loop 3459 lib/gocr/ocr0.c || ( loop(bp,dx-2, 0,dy,cs,0,DO)>=dy-2 loop 3460 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1,dy,cs,0,UP)>0)) Break; // 4x6 UV loop 3466 lib/gocr/ocr0.c x =loop(bp,0 ,yb,dx,cs,0,RI); loop 3467 lib/gocr/ocr0.c xb=loop(bp,x ,yb,dx,cs,1,RI);xb=x+xb/2; if(xb>dx/2) Break; loop 3468 lib/gocr/ocr0.c x =loop(bp,dx-1 ,yb,dx,cs,0,LE); loop 3469 lib/gocr/ocr0.c xd=loop(bp,dx-1-x,yb,dx,cs,1,LE);xd=dx-1-x-xd/2;if(xd<3*dx/8) Break; loop 3471 lib/gocr/ocr0.c if((i=loop(bp,x,dy-1,dy,cs,0,UP))>y){xc=x;y=i;} loop 3474 lib/gocr/ocr0.c y=loop(bp,xc,ya,dy,cs,1,UP);if(y)y--; loop 3482 lib/gocr/ocr0.c x =loop(bp,0 ,1 ,dx,cs,0,RI); loop 3483 lib/gocr/ocr0.c xa=loop(bp,x ,1 ,dx,cs,1,RI); loop 3490 lib/gocr/ocr0.c x =loop(bp,dx-1 ,1 ,dx,cs,0,LE); loop 3491 lib/gocr/ocr0.c xe=loop(bp,dx-1-x,1 ,dx,cs,1,LE);xe=dx-1-x-xe/2; loop 3495 lib/gocr/ocr0.c i= loop(bp,xa ,1 ,dx,cs,1,RI); loop 3511 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE); if( x>i ) i=x; if( x<i-2 ) break; loop 3538 lib/gocr/ocr0.c x =loop(bp,0 ,yb,dx,cs,0,RI); loop 3539 lib/gocr/ocr0.c x+=loop(bp,x ,yb,dx,cs,1,RI); if(x>dx/2) Break; loop 3540 lib/gocr/ocr0.c xb=loop(bp,x ,yb,dx,cs,0,RI);xb=x+xb/2; if(xb>dx/2) Break; loop 3541 lib/gocr/ocr0.c x =loop(bp,dx-1 ,yb,dx,cs,0,LE); loop 3542 lib/gocr/ocr0.c x+=loop(bp,dx-1-x,yb,dx,cs,1,LE); loop 3543 lib/gocr/ocr0.c xd=loop(bp,dx-1-x,yb,dx,cs,0,LE);xd=dx-1-x-xd/2;if(xd<3*dx/8) Break; loop 3553 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE); if( x>i ) i=x; if( x<i-2 ) break; loop 3594 lib/gocr/ocr0.c x =loop(bp,0,i1,dx,cs,0,RI); if(x>3*dx/4) Break; loop 3595 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx,cs,1,RI); if(x>3*dx/4) Break; i2=x; loop 3596 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx,cs,0,RI); if(x<3*dx/8) Break; i2=(x+i2)/2; loop 3598 lib/gocr/ocr0.c y+=loop(bp,i2,y,dy,cs,1,DO); loop 3599 lib/gocr/ocr0.c y+=loop(bp,i2,y,dy,cs,0,DO); if(y>3*dy/4) ad=ad*99/100; loop 3618 lib/gocr/ocr0.c i1=loop(bp,dx-1,ya+ (dy-ya)/4,dx,cs,0,LE); loop 3619 lib/gocr/ocr0.c i2=loop(bp,dx-1,ya+ (dy-ya)/2,dx,cs,0,LE); loop 3620 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-(dy-ya)/4,dx,cs,0,LE); loop 3624 lib/gocr/ocr0.c i1=loop(bp,0 ,ya+ (dy-ya)/4,dx,cs,0,RI); // linke senkr. linie loop 3625 lib/gocr/ocr0.c i2=loop(bp,0 ,ya+ (dy-ya)/2,dx,cs,0,RI); loop 3626 lib/gocr/ocr0.c i3=loop(bp,0 ,dy-1-(dy-ya)/4,dx,cs,0,RI); loop 3632 lib/gocr/ocr0.c i1=loop(bp, 0, y,dx,cs,0,RI); loop 3633 lib/gocr/ocr0.c i2=loop(bp,dx-1, y,dx,cs,0,LE); loop 3636 lib/gocr/ocr0.c if ( loop(bp, 0,dy-1-dy/8,dx,cs,0,RI) loop 3637 lib/gocr/ocr0.c -loop(bp, 0,dy/2 ,dx,cs,0,RI)>0) ad=97*ad/100; // italic-a loop 3659 lib/gocr/ocr0.c if( loop(bp,3*dx/8,0,dy,cs,0,DO) > 3*dy/16 ) Break; // ~d loop 3664 lib/gocr/ocr0.c i=loop(bp,x, 0,y1-y0,cs,0,DO); if (i>dy/2) break; loop 3665 lib/gocr/ocr0.c i=loop(bp,x,dy-1,y1-y0,cs,0,UP); if (i>dy/2) break; loop 3672 lib/gocr/ocr0.c i1=loop(bp,0, dy/8,dx,cs,0,RI); loop 3673 lib/gocr/ocr0.c i3=loop(bp,0,3*dy/4,dx,cs,0,RI); loop 3675 lib/gocr/ocr0.c i2=loop(bp,0,y,dx,cs,0,RI);if(2*i2>i1+i3+1) break; loop 3679 lib/gocr/ocr0.c if( loop(bp,x,dy/4,dy/2,cs,1,DO)>dy/4 ) break; loop 3687 lib/gocr/ocr0.c i =loop(bp,0,dy/4,dx,cs,0,RI); loop 3688 lib/gocr/ocr0.c i =loop(bp,i,dy/4,dx,cs,1,RI); loop 3690 lib/gocr/ocr0.c i =loop(bp,0,dy/4,dx,cs,0,RI); loop 3691 lib/gocr/ocr0.c i+=loop(bp,i,dy/4,dx,cs,1,RI); loop 3694 lib/gocr/ocr0.c x =loop(bp,0,y-1,dx,cs,0,RI); loop 3695 lib/gocr/ocr0.c x+=loop(bp,x,y-1,dx,cs,1,RI); loop 3718 lib/gocr/ocr0.c i = loop(bp,dx/2, 0 ,dy,cs,0,DO); if (i>dy/4) Break; loop 3719 lib/gocr/ocr0.c i+= loop(bp,dx/2, i ,dy,cs,1,DO); if (i>dy/2) Break; loop 3720 lib/gocr/ocr0.c i = loop(bp,dx/2, i ,dy,cs,0,DO); if (i<dy/4) Break; loop 3726 lib/gocr/ocr0.c i = loop(bp,dx/2,dy-1 ,dy,cs,0,UP); if (i>dy/3) Break; loop 3727 lib/gocr/ocr0.c y = i+loop(bp,dx/2,dy-1-i,dy,cs,1,UP); if (i>dy/2) Break; loop 3733 lib/gocr/ocr0.c { if (loop(bp, 0,dy-1-dy/16,dx,cs,0,RI) loop 3734 lib/gocr/ocr0.c <4*loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE)) { Break;} loop 3748 lib/gocr/ocr0.c if( loop(bp,0 ,0 ,x1-x0,cs,0,RI)<= loop 3749 lib/gocr/ocr0.c loop(bp,0 ,2 ,x1-x0,cs,0,RI) ) Break; loop 3751 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1,x1-x0,cs,0,LE)> dx/4 loop 3752 lib/gocr/ocr0.c && loop(bp,dx-1,dy-2,x1-x0,cs,0,LE)> (dx+4)/8 ) ad=97*ad/100; loop 3754 lib/gocr/ocr0.c x=loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE); loop 3755 lib/gocr/ocr0.c i=loop(bp,dx-1, dy/4,dx,cs,0,LE); if (abs(x-i)>dx/4) Break; loop 3758 lib/gocr/ocr0.c i=loop(bp,x, 0,y1-y0,cs,0,DO); if (i>dy/2) break; loop 3759 lib/gocr/ocr0.c i=loop(bp,x,dy-1,y1-y0,cs,0,UP); if (i>dy/2) break; loop 3764 lib/gocr/ocr0.c if( loop(bp,dx-1, 0,y1-y0,cs,0,DO)> dy/4 loop 3765 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1,y1-y0,cs,0,UP)> dy/4 ) Break; // ~o loop 3766 lib/gocr/ocr0.c if( loop(bp,dx/2,dy-1,y1-y0,cs,0,UP)> dy/4 ) Break; // ~q loop 3793 lib/gocr/ocr0.c x =loop(bp,0,i1,dx,cs,0,RI); if(x>3*dx/4) break; loop 3794 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx,cs,1,RI); if(x>3*dx/4) break; i2=x; loop 3795 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx,cs,0,RI); if(x<3*dx/8) break; i2=(x+i2)/2; loop 3797 lib/gocr/ocr0.c y+=loop(bp,i2,y,dy,cs,1,DO); loop 3798 lib/gocr/ocr0.c y+=loop(bp,i2,y,dy,cs,0,DO); if(y>3*dy/4) ad=ad*99/100; loop 3819 lib/gocr/ocr0.c i1=loop(bp,dx-1, dy/4,dx,cs,0,LE); loop 3820 lib/gocr/ocr0.c i2=loop(bp,dx-1, dy/2,dx,cs,0,LE); loop 3821 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE); loop 3824 lib/gocr/ocr0.c i1=loop(bp,0 , dy/4,dx,cs,0,RI); // linke senkr. linie loop 3825 lib/gocr/ocr0.c i2=loop(bp,0 , dy/2,dx,cs,0,RI); loop 3826 lib/gocr/ocr0.c i3=loop(bp,0 ,dy-1-dy/4,dx,cs,0,RI); loop 3831 lib/gocr/ocr0.c i1=loop(bp, 0, y,dx,cs,0,RI); loop 3832 lib/gocr/ocr0.c i2=loop(bp,dx-1, y,dx,cs,0,LE); loop 3867 lib/gocr/ocr0.c t1=loop(bp, 0,dy/2,dx,cs,0,RI); loop 3868 lib/gocr/ocr0.c t1=loop(bp,t1,dy/2,dx,cs,1,RI); loop 3872 lib/gocr/ocr0.c i=y-1+loop(box1->p,x0+dx/2,i1,dy,cs,0,DO); loop 3876 lib/gocr/ocr0.c i3=y+1-loop(box1->p,x0+5*dx/8,i1,dy,cs,0,UP); loop 3877 lib/gocr/ocr0.c i =y+1-loop(box1->p,x0+4*dx/8,i1,dy,cs,0,UP); if(i<i3) i3=i; loop 3885 lib/gocr/ocr0.c if (loop(box1->p,x0,y0+3*dy/4,dx,cs,0,RI)>dx/16) loop 3899 lib/gocr/ocr0.c i=loop(bp,0,dy/2,dx,cs,0,RI); loop 3900 lib/gocr/ocr0.c for(y=0;y<dy;y++)if( loop(bp,0,y,dx,cs,0,RI)<i-1-dx/32 ) break; loop 3904 lib/gocr/ocr0.c x =loop(bp,0,y,dx,cs,0,RI); loop 3905 lib/gocr/ocr0.c x+=loop(bp,x,y,dx,cs,1,RI); if(x>i5) i5=x; loop 3906 lib/gocr/ocr0.c i =loop(bp,x,y,dx,cs,0,RI); if(i<i4) i4=i; loop 3911 lib/gocr/ocr0.c x= loop(bp,0,dy/2,dx,cs,0,RI); loop 3912 lib/gocr/ocr0.c x=x +loop(bp,x,dy/2,dx,cs,1,RI); loop 3913 lib/gocr/ocr0.c y=dy/2-loop(bp,x,dy/2,dy,cs,0,UP)-1; loop 3914 lib/gocr/ocr0.c i=x +loop(bp,x,y,dx,cs,1,RI); loop 3915 lib/gocr/ocr0.c i=i +loop(bp,i,y,dx,cs,0,RI); loop 3922 lib/gocr/ocr0.c x= loop(bp,0, dy/16,dx,cs,0,RI); loop 3923 lib/gocr/ocr0.c x=+loop(bp,0,dy-1-dy/16,dx,cs,0,RI); loop 3924 lib/gocr/ocr0.c i= loop(bp,0, dy/2 ,dx,cs,0,RI)*2; loop 3934 lib/gocr/ocr0.c x =loop(bp, 0,dy/2,dx,cs,0,RI); loop 3935 lib/gocr/ocr0.c i =loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 3937 lib/gocr/ocr0.c if( loop(bp, 0,7*dy/8,dx,cs,0,RI) > x+dx/8 loop 3938 lib/gocr/ocr0.c && loop(bp, 0, dy/8,dx,cs,0,RI) > x+dx/8 loop 3939 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1-dy/ 8,dx,cs,0,LE) loop 3940 lib/gocr/ocr0.c > loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE) loop 3941 lib/gocr/ocr0.c && loop(bp,dx-1, dy/ 8,dx,cs,0,LE) loop 3942 lib/gocr/ocr0.c > loop(bp,dx-1, dy/16,dx,cs,0,LE) ) Break; // ~( loop 3947 lib/gocr/ocr0.c if ( loop(bp,5*dx/8,i2-y0,dy,cs,0,DO) > 2*dy/8 ){ loop 3964 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE) < 6*dx/8 ) ad=98*ad/100; loop 3966 lib/gocr/ocr0.c i= loop(bp,dx-1,dy/16,dx,cs,0,LE); loop 3967 lib/gocr/ocr0.c j= loop(bp,dx/2,0 ,dy,cs,0,DO); loop 3971 lib/gocr/ocr0.c i= loop(bp,dx-1,dy-1,dy,cs,0,UP); loop 3972 lib/gocr/ocr0.c j= loop(bp,dx/2,dy-1,dy,cs,0,UP); loop 3974 lib/gocr/ocr0.c i= loop(bp,dx-1, 0,dy,cs,0,DO); loop 3975 lib/gocr/ocr0.c j= loop(bp,dx/2, 0,dy,cs,0,DO); loop 3977 lib/gocr/ocr0.c if (loop(bp,0,dy-1-dy/8,dx,cs,0,RI)>= 3*dx/4) ad=98*ad/100; // < loop 3978 lib/gocr/ocr0.c if (loop(bp,0,dy-1-dy/8,dx,cs,0,RI)>=(dx+1)/2) ad=98*ad/100; // < loop 3979 lib/gocr/ocr0.c if (loop(bp,0, dy/8,dx,cs,0,RI)>=dx/2) ad=98*ad/100; // < loop 4001 lib/gocr/ocr0.c i=loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 4005 lib/gocr/ocr0.c if (dx<8 && 3*loop(bp,dx-1,0,dy,cs,0,DO)<=dy) break; // ~G loop 4007 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y,dx,cs,0,RI); loop 4008 lib/gocr/ocr0.c j=loop(box1->p,x0+j,y,dx,cs,1,RI); if( j>i ){ i=j;i1=y; } loop 4011 lib/gocr/ocr0.c i=loop(box1->p,x0 ,y0+dy/2,dx,cs,0,RI); if( i>dx/2 ) Break; loop 4012 lib/gocr/ocr0.c j=loop(box1->p,x0+i,y0+dy/2,dx,cs,1,RI); if( i+j>dx/2 ) Break; i2=j; loop 4013 lib/gocr/ocr0.c if (loop(bp,dx-1, 0,dx,cs,0,LE)<dx/8 loop 4014 lib/gocr/ocr0.c && loop(bp,dx-1, dy/4,dx,cs,0,LE)>dx/2 loop 4015 lib/gocr/ocr0.c && loop(bp, 0,5*dy/8,dx,cs,0,RI)<dx/4 loop 4016 lib/gocr/ocr0.c && loop(bp,dx-1,3*dy/4,dx,cs,0,LE)<dx/4) Break; // ~G loop 4018 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y,dx,cs,0,RI); loop 4020 lib/gocr/ocr0.c x=loop(box1->p,x0+j,y,dx,cs,1,RI); loop 4026 lib/gocr/ocr0.c if (loop(bp,0,dy-1,dx,cs,0,RI) loop 4027 lib/gocr/ocr0.c -loop(bp,0,dy-3,dx,cs,0,RI)>1+dx/16) ad=96*ad/100; // ~c loop 4028 lib/gocr/ocr0.c if (loop(box1->p,x0+dx/4,y1,dy,cs,0,UP)>1+dy/16) ad=99*ad/100; // ~4 loop 4032 lib/gocr/ocr0.c if (5*dx<2*dy && loop(box1->p,x0,y1,dx,cs,0,RI)>dx/4) ad=99*ad/100; // ~l loop 4049 lib/gocr/ocr0.c j = loop(bp,0,y,dx,cs,0,RI); loop 4050 lib/gocr/ocr0.c j = loop(bp,j,y,dx,cs,1,RI); loop 4058 lib/gocr/ocr0.c j = loop(bp,0,y,dx,cs,0,RI); loop 4060 lib/gocr/ocr0.c j = loop(bp,j,y,dx,cs,1,RI); loop 4064 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy-1,dx,cs,0,LE)>3*dx/8 loop 4065 lib/gocr/ocr0.c || loop(bp, 0,dy-1,dx,cs,0,RI)>3*dx/8) Break; // ~7 loop 4068 lib/gocr/ocr0.c x =loop(bp,0, 0,dx,cs,0,RI); loop 4069 lib/gocr/ocr0.c i3=loop(bp,x, 0,dx,cs,0,RI); loop 4070 lib/gocr/ocr0.c x =loop(bp,0, 1,dx,cs,0,RI); loop 4071 lib/gocr/ocr0.c x =loop(bp,x, 1,dx,cs,0,RI); if(x>i3) i3=x; loop 4072 lib/gocr/ocr0.c x =loop(bp,0,dy-1,dx,cs,0,RI); loop 4073 lib/gocr/ocr0.c i4=loop(bp,x,dy-1,dx,cs,0,RI); loop 4074 lib/gocr/ocr0.c x =loop(bp,0,dy-2,dx,cs,0,RI); loop 4075 lib/gocr/ocr0.c x =loop(bp,x,dy-2,dx,cs,0,RI); if(x>i4) i4=x; loop 4079 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE); if(x>i+1) break; i=x; loop 4117 lib/gocr/ocr0.c i=loop(bp,bp->x-1,y,x1-x0,cs,0,LE); loop 4125 lib/gocr/ocr0.c i=loop(bp,0,y,x1-x0,cs,0,RI); loop 4133 lib/gocr/ocr0.c i=loop(bp,dx-1,dy/16,dx,cs,0,LE); loop 4134 lib/gocr/ocr0.c j=loop(bp,dx-1,dy/2 ,dx,cs,0,LE); loop 4141 lib/gocr/ocr0.c i =loop(bp,0,y,dx,cs,0,RI); loop 4142 lib/gocr/ocr0.c i+=loop(bp,i,y,dx,cs,1,RI); loop 4143 lib/gocr/ocr0.c i+=loop(bp,i,y,dx,cs,0,RI)/2; // middle of v-gap loop 4148 lib/gocr/ocr0.c && loop(bp, 0,3*dy/4,dx,cs,0,RI)>=dx/4 loop 4149 lib/gocr/ocr0.c && loop(bp, 0,7*dy/8,dx,cs,0,RI)<=dx/8 loop 4150 lib/gocr/ocr0.c && loop(bp,dx-1,3*dy/4,dx,cs,0,LE)<=dx/8 loop 4151 lib/gocr/ocr0.c && loop(bp,dx-1,7*dy/8,dx,cs,0,LE)<=dx/8 ) Break; // ~J loop 4154 lib/gocr/ocr0.c if ( loop(bp,0,dy/4,dx,cs,0,RI)>dx/2 loop 4157 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy/2,dx,cs,0,LE)>dx/2 loop 4159 lib/gocr/ocr0.c if (loop(bp,0,dy-1,dx,cs,0,RI)<dx/8) ad=99*ad/100; // ~L loop 4168 lib/gocr/ocr0.c if( loop(bp,dx/4,dy-1 ,dy,cs,0,UP)< dy/4 loop 4169 lib/gocr/ocr0.c && loop(bp, 0,dy-1-dy/8,dx,cs,0,RI)>=dx/2 loop 4170 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)<=dx/4 ){ loop 4172 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy/2,dx,cs,0,LE)==0 ) Break; loop 4182 lib/gocr/ocr0.c x=loop(bp,0,y,dx,cs,0,RI); loop 4185 lib/gocr/ocr0.c if( x>=loop(bp,0,y+1,dx,cs,0,RI) ) loop 4186 lib/gocr/ocr0.c if( loop(bp,0 ,0,dy,cs,0,DO)>1 ) loop 4187 lib/gocr/ocr0.c if( loop(bp,0 ,0,dy,cs,0,DO) loop 4188 lib/gocr/ocr0.c - loop(bp,dx/16+1,0,dy,cs,0,DO) < dx/16+1 ) Break; // ~1 Jul00,Nov00 loop 4192 lib/gocr/ocr0.c i= loop(bp,0,0,dy,cs,0,DO); loop 4193 lib/gocr/ocr0.c if( loop(bp,dx/2,1,dy,cs,1,DO)>=dy-2 loop 4194 lib/gocr/ocr0.c && loop(bp,0,dy/2,dx,cs,0,RI)>=2 loop 4201 lib/gocr/ocr0.c i=loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 4202 lib/gocr/ocr0.c if( loop(bp, 0,dy/2,dx,cs,0,RI)>=dx/2 loop 4209 lib/gocr/ocr0.c x =loop(bp, 0,dy/2,dx,cs,0,RI); // konvex/konkav? ~() loop 4210 lib/gocr/ocr0.c i =loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 4211 lib/gocr/ocr0.c if( loop(bp, 0,7*dy/8,dx,cs,0,RI) > x+dx/8 loop 4212 lib/gocr/ocr0.c && loop(bp, 0, dy/8,dx,cs,0,RI) > x+dx/8 loop 4213 lib/gocr/ocr0.c && loop(bp,dx-1,7*dy/8,dx,cs,0,LE) < i-dx/8 loop 4214 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) < i-dx/8 ) Break; // ~( loop 4215 lib/gocr/ocr0.c if( loop(bp, 0,7*dy/8,dx,cs,0,RI) < x-dx/8 loop 4216 lib/gocr/ocr0.c && loop(bp, 0, dy/8,dx,cs,0,RI) < x-dx/8 loop 4217 lib/gocr/ocr0.c && loop(bp,dx-1,7*dy/8,dx,cs,0,LE) > i+dx/8 loop 4218 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) > i+dx/8 ) Break; // ~) loop 4220 lib/gocr/ocr0.c i= loop(bp, 0, 0,dy,cs,0,DO); // horizontal line? loop 4222 lib/gocr/ocr0.c if( loop(bp,dx-1,3*dy/16,dx,cs,0,LE)-dx/8 loop 4223 lib/gocr/ocr0.c >loop(bp,dx-1, i,dx,cs,0,LE) loop 4224 lib/gocr/ocr0.c || loop(bp,dx-1,3*dy/16,dx,cs,0,LE)-dx/8 loop 4225 lib/gocr/ocr0.c >loop(bp,dx-1, i+1,dx,cs,0,LE) ) loop 4226 lib/gocr/ocr0.c if( loop(bp,dx-1,8*dy/16,dx,cs,0,LE)-dx/8 loop 4227 lib/gocr/ocr0.c >loop(bp,dx-1, i,dx,cs,0,LE) loop 4228 lib/gocr/ocr0.c || loop(bp,dx-1,8*dy/16,dx,cs,0,LE)-dx/8 loop 4229 lib/gocr/ocr0.c >loop(bp,dx-1, i+1,dx,cs,0,LE) ) loop 4230 lib/gocr/ocr0.c if( loop(bp, 0,3*dy/16,dx,cs,0,RI)-dx/8 loop 4231 lib/gocr/ocr0.c >loop(bp, 0, i,dx,cs,0,RI) loop 4232 lib/gocr/ocr0.c || loop(bp, 0,3*dy/16,dx,cs,0,RI)-dx/8 loop 4233 lib/gocr/ocr0.c >loop(bp, 0, i+1,dx,cs,0,RI) ) loop 4234 lib/gocr/ocr0.c if( loop(bp, 0,8*dy/16,dx,cs,0,RI)-dx/8 loop 4235 lib/gocr/ocr0.c >loop(bp, 0, i,dx,cs,0,RI) loop 4236 lib/gocr/ocr0.c || loop(bp, 0,8*dy/16,dx,cs,0,RI)-dx/8 loop 4237 lib/gocr/ocr0.c >loop(bp, 0, i+1,dx,cs,0,RI) ) Break; // ~t loop 4238 lib/gocr/ocr0.c if( loop(bp, 0,i-1,dx,cs,0,RI)>1 && dx<6 ) Break; // ~t loop 4239 lib/gocr/ocr0.c if( loop(bp, 0,8*dy/16,dx,cs,0,RI)>dx/8 loop 4240 lib/gocr/ocr0.c && loop(bp, 0, i,dx,cs,1,RI)>=dx-1 loop 4241 lib/gocr/ocr0.c && loop(bp,dx-1,8*dy/16,dx,cs,0,LE)>dx/8 loop 4242 lib/gocr/ocr0.c && loop(bp,dx-1, i-1,dx,cs,0,LE)>dx/8 ) Break; // ~t loop 4245 lib/gocr/ocr0.c if( loop(bp,0, 1,dx,cs,0,RI)>=dx/2 loop 4246 lib/gocr/ocr0.c && ( loop(bp,0,dy-2,dx,cs,0,RI)<=dx/8 loop 4247 lib/gocr/ocr0.c || loop(bp,0,dy-1,dx,cs,0,RI)<=dx/8 ) ) loop 4248 lib/gocr/ocr0.c if( ( loop(bp,dx-1, 0,dx,cs,0,LE)<=dx/8 loop 4249 lib/gocr/ocr0.c || loop(bp,dx-1, 1,dx,cs,0,LE)<=dx/8 ) loop 4250 lib/gocr/ocr0.c && loop(bp,dx-1,dy-2,dx,cs,0,LE)>=dx/2 ) ad=98*ad/100; // ~/ loop 4254 lib/gocr/ocr0.c if (!hchar || loop(bp,0,dy/4,dx,cs,0,RI)>dx/2){ // ~z loop 4255 lib/gocr/ocr0.c i=loop(bp,0,dy/16 ,dx,cs,0,RI); loop 4256 lib/gocr/ocr0.c i=loop(bp,i,dy/16 ,dx,cs,1,RI); j=i; loop 4257 lib/gocr/ocr0.c i=loop(bp,0,dy/16+1,dx,cs,0,RI); loop 4258 lib/gocr/ocr0.c i=loop(bp,i,dy/16+1,dx,cs,1,RI); if (i>j) j=i; loop 4259 lib/gocr/ocr0.c i=loop(bp,0,dy/16+2,dx,cs,0,RI); loop 4260 lib/gocr/ocr0.c i=loop(bp,i,dy/16+2,dx,cs,1,RI); if (i>j) j=i; loop 4323 lib/gocr/ocr0.c if( loop(bp,0 ,0 ,x1-x0,cs,0,RI)<= loop 4324 lib/gocr/ocr0.c loop(bp,0 ,2 ,x1-x0,cs,0,RI) ) Break; loop 4326 lib/gocr/ocr0.c x=loop(bp,dx-1,dy-1-dy/3,x1-x0,cs,0,LE); // should be minimum loop 4328 lib/gocr/ocr0.c i=loop(bp,dx-1,y,x1-x0,cs,0,LE); loop 4334 lib/gocr/ocr0.c if( loop(bp,0, dy/16,dx,cs,0,RI) loop 4335 lib/gocr/ocr0.c + loop(bp,0,dy-1-dy/16,dx,cs,0,RI) loop 4336 lib/gocr/ocr0.c <= 2*loop(bp,0, dy/2 ,dx,cs,0,RI)+dx/8 ) Break; // not konvex loop 4337 lib/gocr/ocr0.c if( loop(bp,0 , 1+dy/16,dx,cs,0,RI) + dx/4 loop 4338 lib/gocr/ocr0.c <= loop(bp,dx-1, 1+dy/16,dx,cs,0,LE) ) Break; // Dec00 loop 4340 lib/gocr/ocr0.c if( loop(bp,dx-1, dy/16,dx,cs,0,LE)>dx/8 ) loop 4341 lib/gocr/ocr0.c if( loop(bp,0 , dy/16,dx,cs,0,RI)<dx/16 ) Break; loop 4342 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE)>dx/8 ) loop 4343 lib/gocr/ocr0.c if( loop(bp,0 ,dy-1-dy/16,dx,cs,0,RI)<dx/16 ) Break; loop 4352 lib/gocr/ocr0.c i =loop(bp,x,dy-1 ,y1-y0,cs,0,UP); loop 4353 lib/gocr/ocr0.c i+=loop(bp,x,dy-1-i,y1-y0,cs,1,UP); loop 4361 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1,x1-x0,cs,0,LE)<dx/8) ad=98*ad/100; // \it a loop 4362 lib/gocr/ocr0.c if (loop(bp,dx-1, 0,x1-x0,cs,0,LE)<dx/8) ad=98*ad/100; // \it a loop 4363 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1-dy/8,x1-x0,cs,0,LE)+1+dx/16 loop 4364 lib/gocr/ocr0.c <loop(bp, 0,dy-1-dy/8,x1-x0,cs,0,RI)) loop 4366 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1,y1-y0,cs,0,UP)+1+(dy+3)/8 loop 4367 lib/gocr/ocr0.c <loop(bp, 0,dy-1,y1-y0,cs,0,UP)) loop 4370 lib/gocr/ocr0.c if (abs(loop(bp,dx/2, 0,dy,cs,0,DO) loop 4371 lib/gocr/ocr0.c -loop(bp,dx/2,dy-1,dy,cs,0,UP))>dy/8 loop 4405 lib/gocr/ocr0.c i= loop(bp,dx-1,3*dy/4,dx,cs,0,LE); if (i<dx/4) Break; loop 4416 lib/gocr/ocr0.c i= loop(bp,0,dy/2,dx,cs,0,RI); if(i<1) i++; loop 4420 lib/gocr/ocr0.c i1= loop(bp, 0,3*dy/8,dx,cs,0,RI); if (i1>=dx/2) ad=90*ad/100; loop 4421 lib/gocr/ocr0.c i2=i1+loop(bp,i1,3*dy/8,dx,cs,1,RI); // upper x-position of v line loop 4422 lib/gocr/ocr0.c i3= loop(bp, 0,7*dy/8,dx,cs,0,RI); loop 4423 lib/gocr/ocr0.c i4=i3+loop(bp,i3,7*dy/8,dx,cs,1,RI); // lower x-position of v line loop 4427 lib/gocr/ocr0.c i= loop(bp,0,y,dx,cs,0,RI); if(i>x+dx/16) break; loop 4430 lib/gocr/ocr0.c i=loop(bp,dx-1,y,dx,cs,0,LE); loop 4445 lib/gocr/ocr0.c i= loop(bp,bp->x-1, bp->y/4, dx ,cs,0,LE); loop 4446 lib/gocr/ocr0.c i=i+loop(bp,bp->x-1-i,bp->y/4, dx ,cs,1,LE); loop 4447 lib/gocr/ocr0.c j= loop(bp,bp->x-1-i,bp->y/4,3*dy/4,cs,0,DO); loop 4496 lib/gocr/ocr0.c if( loop(bp,0 ,0 ,dx,cs,0,RI) loop 4497 lib/gocr/ocr0.c < loop(bp,0 ,2 ,dx,cs,0,RI) ) Break; loop 4498 lib/gocr/ocr0.c if( loop(bp,0 ,dy/8+2,dx,cs,0,RI) loop 4499 lib/gocr/ocr0.c +loop(bp,dx-1,dy/8+2,dx,cs,0,LE) > 5*dx/8 ) Break; // ~4 Okt00 loop 4501 lib/gocr/ocr0.c x= loop(bp,dx-1,3*dy/8,dy,cs,0,LE); if( x>dx/4 ) Break; loop 4502 lib/gocr/ocr0.c if( loop(bp,dx-1-x,0 ,dy,cs,0,DO) loop 4503 lib/gocr/ocr0.c <= loop(bp,dx-2-x,0 ,dy,cs,0,DO) ) Break; // 4 loop 4505 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-2,dx,cs,0,LE) loop 4506 lib/gocr/ocr0.c <= loop(bp,dx-1,dy/2,dx,cs,0,LE) ) loop 4507 lib/gocr/ocr0.c if( loop(bp, 1,dy-1,dy,cs,0,UP) loop 4508 lib/gocr/ocr0.c <= loop(bp,dx/2,dy-1,dy,cs,0,UP) ) loop 4509 lib/gocr/ocr0.c if( loop(bp, 0,dy-2,dx,cs,0,RI)>dx/2 ) loop 4510 lib/gocr/ocr0.c if( loop(bp, 0, 0,dx,cs,0,RI)>dx/2 ) Break; // 4 loop 4512 lib/gocr/ocr0.c if( loop(bp,dx-1,3*dy/4,dx,cs,0,LE) loop 4513 lib/gocr/ocr0.c + loop(bp, 0,3*dy/4,dx,cs,0,RI) loop 4514 lib/gocr/ocr0.c < loop(bp,dx-1,2*dy/4,dx,cs,0,LE) loop 4515 lib/gocr/ocr0.c + loop(bp, 0,2*dy/4,dx,cs,0,RI) ) ad=94*ad/100; // 4 loop 4516 lib/gocr/ocr0.c if( loop(bp,0 ,3*dy/4,dx,cs,1,RI) >= dx ) ad=94*ad/100; // 4 loop 4519 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/3,dx,cs,0,LE)> dx/4 ) Break; loop 4520 lib/gocr/ocr0.c j=loop(bp,dx/2,dy-1,dy,cs,0,UP); loop 4535 lib/gocr/ocr0.c i=loop(bp,dx-1,y,dx,cs,0,LE);if(i>x){ x=i; } loop 4558 lib/gocr/ocr0.c i=loop(box1->p,x0,y,dx,cs,0,RI); loop 4564 lib/gocr/ocr0.c if( loop(box1->p,x0+dx/16,j,dy,cs,0,UP)<1+dy/16 ){ loop 4568 lib/gocr/ocr0.c if( loop(box1->p,x0+dx/16,j-dy/32-1,dy,cs,1,RI)>=dx-dx/8 loop 4569 lib/gocr/ocr0.c || loop(box1->p,x0+dx/16,j-dy/16-1,dy,cs,1,RI)>=dx-dx/8 ){ loop 4583 lib/gocr/ocr0.c if( loop(bp,0,dy-1-dy/4,dx,cs,0,RI)>5*dx/8 loop 4623 lib/gocr/ocr0.c i= loop(bp,dx/2,dy-1 ,dy,cs,0,UP); loop 4625 lib/gocr/ocr0.c i+=loop(bp,dx/2,dy-1-i,dy,cs,1,UP); loop 4652 lib/gocr/ocr0.c if (loop(bp,dx-1,y+(y1-ya+1)/32,dx,cs,0,LE)>dx/2) // unusual (right part of ouml) loop 4672 lib/gocr/ocr0.c xa=loop(bp, 0,yc-1,dx,cs,0,RI); loop 4673 lib/gocr/ocr0.c xb=loop(bp,dx-1,yc-1,dx,cs,0,LE); loop 4675 lib/gocr/ocr0.c xb-loop(bp,dx-1,yc,dx,cs,0,LE) /* Dec00 */ loop 4676 lib/gocr/ocr0.c > xa-loop(bp, 0,yc,dx,cs,0,RI) ){ loop 4677 lib/gocr/ocr0.c y= loop(bp,dx-xb,yc-1,dy,cs,0,DO); loop 4679 lib/gocr/ocr0.c i=loop(bp,dx-xb-1,yc-1+y-1,dy,cs,0,DO); loop 4684 lib/gocr/ocr0.c y= loop(bp,11*xa/16,yc-1,dy,cs,0,DO); loop 4689 lib/gocr/ocr0.c x=loop(bp,0 ,ye+1,dx,cs,0,RI); loop 4690 lib/gocr/ocr0.c y=loop(bp,x-1,ye+1,dy,cs,0,UP); loop 4691 lib/gocr/ocr0.c i=loop(bp,x ,ye+2-y,dy,cs,0,UP); loop 4696 lib/gocr/ocr0.c && loop(bp,0, 0,dx,cs,0,RI)+1 loop 4697 lib/gocr/ocr0.c < loop(bp,0,dx/2,dx,cs,0,RI) ) ad=97*ad/100; loop 4700 lib/gocr/ocr0.c if( loop(bp, 0,2*dy/4,dx,cs,0,RI) loop 4701 lib/gocr/ocr0.c -loop(bp,dx-1,2*dy/4,dx,cs,0,LE)>dx/8 ) Break; loop 4706 lib/gocr/ocr0.c if( loop(bp,dx-1,3*dy/4,dx,cs,0,LE)>dx/2 loop 4707 lib/gocr/ocr0.c && loop(bp,dx-1, dy-1,dx,cs,0,LE)<dx/4 ) Break; // ~d=cl loop 4733 lib/gocr/ocr0.c if( loop(bp,dx-1,y+(y1-ya+1)/32,dx,cs,0,LE)>dx/2 ) Break; // unusual (right part of ouml) loop 4751 lib/gocr/ocr0.c xa=loop(bp, 0,yc-1,dx,cs,0,RI); loop 4752 lib/gocr/ocr0.c xb=loop(bp,dx-1,yc-1,dx,cs,0,LE); loop 4754 lib/gocr/ocr0.c xb-loop(bp,dx-1,yc,dx,cs,0,LE) /* Dec00 */ loop 4755 lib/gocr/ocr0.c > xa-loop(bp, 0,yc,dx,cs,0,RI) ){ loop 4756 lib/gocr/ocr0.c y= loop(bp,dx-xb,yc-1,dy,cs,0,DO); loop 4758 lib/gocr/ocr0.c i=loop(bp,dx-xb-1,yc-1+y-1,dy,cs,0,DO); loop 4763 lib/gocr/ocr0.c y= loop(bp,11*xa/16,yc-1,dy,cs,0,DO); loop 4768 lib/gocr/ocr0.c x=loop(bp,0 ,ye+1,dx,cs,0,RI); loop 4769 lib/gocr/ocr0.c y=loop(bp,x-1,ye+1,dy,cs,0,UP); loop 4770 lib/gocr/ocr0.c i=loop(bp,x ,ye+2-y,dy,cs,0,UP); loop 4775 lib/gocr/ocr0.c && loop(bp,0, 0,dx,cs,0,RI)+1 loop 4776 lib/gocr/ocr0.c < loop(bp,0,dx/2,dx,cs,0,RI) ) ad=97*ad/100; loop 4777 lib/gocr/ocr0.c if (loop(bp,0,dy-1,dx,cs,0,RI) loop 4778 lib/gocr/ocr0.c -loop(bp,0,dy-3,dx,cs,0,RI)>1+dx/16) ad=96*ad/100; // ~c loop 4781 lib/gocr/ocr0.c if( loop(bp, 0,2*dy/4,dx,cs,0,RI) loop 4782 lib/gocr/ocr0.c -loop(bp,dx-1,2*dy/4,dx,cs,0,LE)<=dx/8 ) Break; loop 4798 lib/gocr/ocr0.c x =loop(bp,0, dy/2,dx,cs,0,RI); // konvex? divided Q loop 4799 lib/gocr/ocr0.c if(loop(bp,0,7*dy/8,dx,cs,0,RI) > x+dx/8) Break; loop 4804 lib/gocr/ocr0.c x =loop(bp,0, dy/2,dx,cs,0,RI); loop 4805 lib/gocr/ocr0.c i5=loop(bp,x, dy/2,dx,cs,1,RI); // center width loop 4807 lib/gocr/ocr0.c x =loop(bp,0, y,dx,cs,0,RI); loop 4808 lib/gocr/ocr0.c x =loop(bp,x, y,dx,cs,1,RI); // width loop 4815 lib/gocr/ocr0.c x =loop(bp,0, y,dx,cs,0,RI); loop 4816 lib/gocr/ocr0.c x =loop(bp,x, y,dx,cs,1,RI); if(x>i1){ i1=x;i2=y; } loop 4819 lib/gocr/ocr0.c x =loop(bp,0, y,dx,cs,0,RI); loop 4820 lib/gocr/ocr0.c x =loop(bp,x, y,dx,cs,1,RI); if(x>i3){ i3=x;i4=y; } loop 4828 lib/gocr/ocr0.c x =loop(bp,0, dy/8,dx,cs,0,RI); i1=x; loop 4829 lib/gocr/ocr0.c x+=loop(bp,x, dy/8,dx,cs,1,RI); i1=(i1+x-1)/2; loop 4831 lib/gocr/ocr0.c x =loop(bp,0,dy-1-dy/8,dx,cs,0,RI); i2=x; loop 4832 lib/gocr/ocr0.c x+=loop(bp,x,dy-1-dy/8,dx,cs,1,RI); i2=(i2+x-1)/2; loop 4833 lib/gocr/ocr0.c x =loop(bp,0,dy-2-dy/8,dx,cs,0,RI); i=x; loop 4834 lib/gocr/ocr0.c x+=loop(bp,x,dy-2-dy/8,dx,cs,1,RI); i=(i+x-1)/2; if( i>i2 ) i2=i; loop 4843 lib/gocr/ocr0.c x =loop(bp,i1, y+0,dx,cs,1,LE); i=x; loop 4844 lib/gocr/ocr0.c x =loop(bp,i1, y+1,dx,cs,1,LE); if(x>i)i=x; loop 4845 lib/gocr/ocr0.c x =loop(bp,i1, y+0,dx,cs,1,RI); j=x; loop 4846 lib/gocr/ocr0.c x =loop(bp,i1, y+1,dx,cs,1,RI); if(x>j)j=x; if(abs(i-j)>1+dx/8)Break; loop 4847 lib/gocr/ocr0.c x =loop(bp,i2,dy-y-1,dx,cs,1,LE); j=x; loop 4848 lib/gocr/ocr0.c x =loop(bp,i2,dy-y-2,dx,cs,1,LE); if(x>j)j=x; if(abs(i-j)>1+dx/8)Break; loop 4849 lib/gocr/ocr0.c x =loop(bp,i2,dy-y-1,dx,cs,1,RI); j=x; loop 4850 lib/gocr/ocr0.c x =loop(bp,i2,dy-y-2,dx,cs,1,RI); if(x>j)j=x; if(abs(i-j)>1+dx/8)Break; loop 4853 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/16 ,dx,cs,0,LE) loop 4854 lib/gocr/ocr0.c > loop(bp,dx-1,dy/4 ,dx,cs,0,LE)+1+dx/32 ) Break; // ~bad ) (thinn) loop 4863 lib/gocr/ocr0.c if( loop(bp, 0,dy/4,dx,cs,0,RI)> dx/4 loop 4864 lib/gocr/ocr0.c && loop(bp,dx-1,dy/4,dx,cs,0,LE)<=dx/4 loop 4865 lib/gocr/ocr0.c && loop(bp, 1, 0,dy,cs,0,DO)<=dy/4 ) Break; // ~z loop 4873 lib/gocr/ocr0.c if ( loop(bp,dx-1, dy/4,dx,cs,0,LE) > dx/2 loop 4874 lib/gocr/ocr0.c && loop(bp,dx-1,3*dy/4,dx,cs,0,LE) > dx/2 loop 4875 lib/gocr/ocr0.c && loop(bp, 0, dy/2,dx,cs,0,RI) < dx/4 ) Break; /* ~[ */ loop 4877 lib/gocr/ocr0.c x =loop(bp, 0,dy/2,dx,cs,0,RI); // konvex/konkav? ~() loop 4878 lib/gocr/ocr0.c i =loop(bp,dx-1,dy/2,dx,cs,0,LE); loop 4879 lib/gocr/ocr0.c if( loop(bp, 0,7*dy/8,dx,cs,0,RI) > x+dx/8 loop 4880 lib/gocr/ocr0.c && loop(bp, 0, dy/8,dx,cs,0,RI) > x+dx/8 loop 4881 lib/gocr/ocr0.c && loop(bp,dx-1,7*dy/8,dx,cs,0,LE) < i-dx/8 loop 4882 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) < i-dx/8 ) Break; // ~( loop 4883 lib/gocr/ocr0.c if( loop(bp, 0,7*dy/8,dx,cs,0,RI) < x-dx/8 loop 4884 lib/gocr/ocr0.c && loop(bp, 0, dy/8,dx,cs,0,RI) < x-dx/8 loop 4885 lib/gocr/ocr0.c && loop(bp,dx-1,7*dy/8,dx,cs,0,LE) > i+dx/8 loop 4886 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) > i+dx/8 ) Break; // ~) loop 4887 lib/gocr/ocr0.c if( loop(bp, 0, dy/8,dx,cs,0,RI) loop 4888 lib/gocr/ocr0.c -(dx-loop(bp,dx-1,7*dy/8,dx,cs,0,LE)) > dx/4 ) Break; // ~/ loop 4889 lib/gocr/ocr0.c if( loop(bp, 0, 0,dx,cs,0,RI) > dx/2 // ToDo: check for serifs loop 4890 lib/gocr/ocr0.c && loop(bp, 0, dy/8,dx,cs,0,RI) > dx/2 loop 4891 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1 ,dx,cs,0,LE) > dx/2 loop 4892 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE) > dx/2 ) ad=99*ad/100; // ~/ loop 4901 lib/gocr/ocr0.c i3=loop(bp,dx-1, dy/4,dx,cs,0,LE); loop 4902 lib/gocr/ocr0.c i4=loop(bp, 0,dy-1-dy/4,dx,cs,0,RI); loop 4920 lib/gocr/ocr0.c i =loop(bp,dx-1 ,y,dx,cs,0,LE); if (dx-i-1>bx) { bx=dx-1-i; by=y; } loop 4921 lib/gocr/ocr0.c i+=loop(bp,dx-1-i,y,dx,cs,1,LE); if (dx-i-1<ax) { ax=dx-i; ay=y; } loop 4924 lib/gocr/ocr0.c i =loop(bp,0,y,dx,cs,0,RI); if (i<cx) { cx=i; cy=y; } loop 4925 lib/gocr/ocr0.c i+=loop(bp,i,y,dx,cs,1,RI); if (i>ex) { ex=i; ey=y; } loop 4927 lib/gocr/ocr0.c x=(3*ax+cx)/4; y=(3*ay+cy)/4; i= loop(bp,x,y,dx,cs,0,RI); loop 4928 lib/gocr/ocr0.c x=(3*bx+ex)/4; y=(3*by+ey)/4; j= loop(bp,x,y,dx,cs,0,LE); loop 4931 lib/gocr/ocr0.c i=loop(bp,0,0,dy,cs,0,DO); loop 4933 lib/gocr/ocr0.c if (loop(bp,dx-1,0,dx,cs,0,LE) loop 4934 lib/gocr/ocr0.c -loop(bp, 0,0,dx,cs,0,RI)>dx/4) ad=96*ad/100; // ~l 5x7 loop 5145 lib/gocr/ocr0.c if( loop(bp, 0,y,dx,cs,0,RI) loop 5146 lib/gocr/ocr0.c + loop(bp,dx-1,y,dx,cs,0,LE)<3*dx/8 ) break; loop 5152 lib/gocr/ocr0.c i2=dx-1-loop(bp,dx-1,dy/2 ,dx,cs,0,LE) // be exact for small fonts loop 5153 lib/gocr/ocr0.c +dx-1-loop(bp,dx-1,dy/2+dy%2-1,dx,cs,0,LE) loop 5154 lib/gocr/ocr0.c + loop(bp, 0,dy/2 ,dx,cs,0,RI) loop 5155 lib/gocr/ocr0.c + loop(bp, 0,dy/2+dy%2-1,dx,cs,0,RI); loop 5159 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy/16,dx,cs,0,LE); // right side loop 5160 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1 ,dx,cs,0,LE); loop 5161 lib/gocr/ocr0.c i4=loop(bp, 0,0 ,dx,cs,0,RI); // left side loop 5162 lib/gocr/ocr0.c i6=loop(bp, 0,dy-1 ,dx,cs,0,RI); loop 5169 lib/gocr/ocr0.c x=loop(bp,0 ,y,dx,cs,0,RI);if(abs(x-i)>dx/6+1 ) break; i=x; loop 5172 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE);if(abs(x-i)>dx/6+1 ) break; i=x; loop 5187 lib/gocr/ocr0.c if( loop(bp, 0,y,dx,cs,0,RI) loop 5188 lib/gocr/ocr0.c + loop(bp,dx-1,y,dx,cs,0,LE)<3*dx/8 ) break; loop 5195 lib/gocr/ocr0.c j=loop(bp, 0,y,dx,cs,0,RI); if(j==i) r2=y; if(j<i){ r2=r1=y; i=j; } loop 5196 lib/gocr/ocr0.c j=loop(bp,dx-1,y,dx,cs,0,LE); if(j==i) r2=y; if(j<i){ r2=r1=y; i=j; } loop 5198 lib/gocr/ocr0.c i1=loop(bp,dx-1, dy/16,dx,cs,0,LE); loop 5199 lib/gocr/ocr0.c i2=loop(bp,dx-1,y ,dx,cs,0,LE); loop 5200 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE); loop 5201 lib/gocr/ocr0.c i4=loop(bp, 0,dy/16 ,dx,cs,0,RI); loop 5202 lib/gocr/ocr0.c i5=loop(bp, 0,y ,dx,cs,0,RI); loop 5203 lib/gocr/ocr0.c i6=loop(bp, 0,dy-1-dy/16,dx,cs,0,RI); loop 5217 lib/gocr/ocr0.c if (2*loop(bp, 0, y/2,dx,cs,0,RI)+1+dx/16<i4+i5) ad=95*ad/100; loop 5218 lib/gocr/ocr0.c if (2*loop(bp, 0,dy-1-y/2,dx,cs,0,RI)+1+dx/16<i6+i5) ad=95*ad/100; loop 5231 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy/16,dx,cs,0,LE); loop 5232 lib/gocr/ocr0.c i2=loop(bp,dx-1,dy/2 ,dx,cs,0,LE); loop 5233 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1 ,dx,cs,0,LE); loop 5234 lib/gocr/ocr0.c i4=loop(bp, 0,0 ,dx,cs,0,RI); loop 5235 lib/gocr/ocr0.c i5=loop(bp, 0,dy/2,dx,cs,0,RI); loop 5236 lib/gocr/ocr0.c i6=loop(bp, 0,dy-1,dx,cs,0,RI); loop 5246 lib/gocr/ocr0.c i=loop(bp,0,y,dx,cs,0,RI);if( i>x ) x=i; loop 5249 lib/gocr/ocr0.c i=loop(bp,0,y+dy/8,dx,cs,0,RI);if( i<x ) break; loop 5339 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy/2,dx,cs,0,LE) loop 5340 lib/gocr/ocr0.c +loop(bp, 0,dy/2,dx,cs,0,RI) <= dx/4 ) break; // O loop 5363 lib/gocr/ocr0.c if ( loop(bp,0,dy-1,dx,cs,0,RI)>3*dx/4 ) ad=99*ad/100; loop 5364 lib/gocr/ocr0.c if ( loop(bp,0, 0,dx,cs,0,RI)>3*dx/4 ) ad=99*ad/100; // < loop 5365 lib/gocr/ocr0.c if ( loop(bp,0, 0,dy,cs,0,DO)<dy/2-1 ) ad=98*ad/100; loop 5366 lib/gocr/ocr0.c if ( loop(bp,0,dy-1,dy,cs,0,UP)<dy/2-2 ) ad=98*ad/100; // ( loop 5367 lib/gocr/ocr0.c if ( loop(bp,dx-1,0,dx,cs,0,LE) loop 5368 lib/gocr/ocr0.c + loop(bp,dx-1,2,dx,cs,0,LE) loop 5369 lib/gocr/ocr0.c - 2*loop(bp,dx-1,1,dx,cs,0,LE) >=dx/8 ) ad=98*ad/100; // < loop 5370 lib/gocr/ocr0.c if ( loop(bp,dx-2,dy-1,dy,cs,0,UP)>dy/4 ) Break; // f loop 5386 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy-1,dx,cs,0,LE)>3*dx/4 ) {ad=99*ad/100;} loop 5387 lib/gocr/ocr0.c if ( loop(bp,dx-1, 0,dx,cs,0,LE)>3*dx/4 ) {ad=99*ad/100;} // > loop 5388 lib/gocr/ocr0.c if ( loop(bp,dx-1, 0,dy,cs,0,DO)<dy/2-1 ) {ad=98*ad/100;} loop 5389 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy-1,dy,cs,0,UP)<dy/2-2 ) {ad=98*ad/100;} // ) loop 5390 lib/gocr/ocr0.c if ( loop(bp,0,0,dx,cs,0,RI) loop 5391 lib/gocr/ocr0.c + loop(bp,0,2,dx,cs,0,RI) loop 5392 lib/gocr/ocr0.c - 2*loop(bp,0,1,dx,cs,0,RI) >=dx/8 ) ad=98*ad/100; // < loop 5393 lib/gocr/ocr0.c if ( loop(bp,1,dy-1,dy,cs,0,UP)>dy/4 ) Break; // ??? loop 5462 lib/gocr/ocr0.c i =loop(box1->p,x1,y,dx,cs,0,LE); loop 5464 lib/gocr/ocr0.c i+=loop(box1->p,x1-i,y,dx,cs,1,LE); loop 5477 lib/gocr/ocr0.c i=loop(box1->p,x1,y,dx,cs,0,LE); loop 5483 lib/gocr/ocr0.c if( loop(box1->p,x1,y1, dx,cs,0,LE)==0 loop 5484 lib/gocr/ocr0.c && loop(box1->p,x1,y1-dy/4,dx,cs,0,LE)>dx/8 ) break; // ~R loop 5491 lib/gocr/ocr0.c i=loop(bp,dx/2,dy-1,dy,cs,0,UP)+dy/64; // Jul00 loop 5493 lib/gocr/ocr0.c if( loop(bp,x,dy-1,dy,cs,0,UP) > i ) break; loop 5496 lib/gocr/ocr0.c x=x0+loop(bp,0,dy/4,dx,cs,0,RI); loop 5540 lib/gocr/ocr0.c i1=x0+loop(box1->p,x0,y0,dx,cs,0,RI); if( i1<x0+dx/3 || i1>x1-dx/5 ) Break; loop 5541 lib/gocr/ocr0.c i2=x0+loop(box1->p,x0,y1,dx,cs,0,RI); if( i2<x0+dx/5 || i2>i1 ) Break; loop 5546 lib/gocr/ocr0.c i = loop(box1->p,x0,y0+dy/2-y,dx,cs,0,RI); loop 5551 lib/gocr/ocr0.c i = loop(box1->p,x0,y0+dy/2+y,dx,cs,0,RI); loop 5565 lib/gocr/ocr0.c if( loop(bp,dx/2,0,dy,cs,0,DO)>dy/2) Break; loop 5566 lib/gocr/ocr0.c i1=loop(bp,0,dy/8 ,dx,cs,0,RI); if (i1>dx/2) Break; loop 5567 lib/gocr/ocr0.c i =loop(bp,0,dy/4 ,dx,cs,0,RI); if (i1>dx/2) Break; if (i<i1) i1=i; loop 5568 lib/gocr/ocr0.c i3=loop(bp,0,dy-dy/4 ,dx,cs,0,RI); if (i3>dx/2) Break; loop 5569 lib/gocr/ocr0.c i =loop(bp,0,dy-dy/4-1,dx,cs,0,RI); if (i3>dx/2) Break; if (i<i3) i3=i; loop 5572 lib/gocr/ocr0.c i =loop(bp,0,y,dx,cs,0,RI); if( i>i2 ) i2=i; loop 5671 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/8,dx,cs,0,LE) loop 5672 lib/gocr/ocr0.c -loop(bp,dx-1, 0,dx,cs,0,LE)>dx/4+1 ) Break; // f loop 5737 lib/gocr/ocr0.c if (loop(bp, 0,dy/2,dx,cs,0,RI)>dx/4) Break; loop 5738 lib/gocr/ocr0.c if (loop(bp,dx-1,dy/2,dx,cs,0,LE)>dx/4) Break; loop 5739 lib/gocr/ocr0.c if (loop(bp,dx/2,dy-1,dy,cs,0,UP)>dx/8) Break; loop 5740 lib/gocr/ocr0.c if (loop(bp,dx/2, 0,dy,cs,0,DO)>dx/8) Break; loop 5826 lib/gocr/ocr0.c if( loop(bp,0 ,dy/8,dx,cs,0,RI) loop 5827 lib/gocr/ocr0.c + loop(bp,dx-1,dy/8,dx,cs,0,LE)>dx/2 ) break; // ~A loop 5829 lib/gocr/ocr0.c { j=loop(box1->p,x0 ,y,dx,cs,0,RI) loop 5830 lib/gocr/ocr0.c +loop(box1->p,x1 ,y,dx,cs,0,LE); loop 5834 lib/gocr/ocr0.c y=loop(bp,x ,dy-1,dy,cs,0,UP); loop 5837 lib/gocr/ocr0.c i=loop(bp,x ,dy-y,dx,cs,0,RI); loop 5838 lib/gocr/ocr0.c if( i>1 && y+loop(bp,x+i-1,dy-y,dy,cs,0,UP)>3*dy/8 ) break; loop 5841 lib/gocr/ocr0.c x=loop(box1->p,x0 ,y1-dy/8,dx,cs,0,RI) loop 5842 lib/gocr/ocr0.c +loop(box1->p,x1 ,y1-dy/8,dx,cs,0,LE); loop 5844 lib/gocr/ocr0.c { j=loop(bp,0 ,y,dx,cs,0,RI) loop 5845 lib/gocr/ocr0.c +loop(bp,dx-1,y,dx,cs,0,LE); if( j-x>dx/5 ) i=0; } loop 5848 lib/gocr/ocr0.c { j=loop(box1->p,x0 ,y,dx,cs,0,RI); loop 5849 lib/gocr/ocr0.c j=loop(box1->p,x0+j,y,dx,cs,1,RI); if( j>i ) { i=j; ya=y; } } loop 5875 lib/gocr/ocr0.c i1=loop(bp,dx-1, dy/4,dx,cs,0,LE); if(i1>dx/2) break; loop 5876 lib/gocr/ocr0.c i2=loop(bp,dx-1, dy/2,dx,cs,0,LE); if(i2<i1-dx/4 || i2>i1+dx/8) break; loop 5877 lib/gocr/ocr0.c i3=loop(bp,dx-1,dy-1-dy/4,dx,cs,0,LE); if(i3<i2-dx/4 || i3>i2+dx/8) break; loop 5900 lib/gocr/ocr0.c j=loop(bp,0,y,dx,cs,0,RI); if(j>x) { i2=y; x=j; } loop 5903 lib/gocr/ocr0.c j=loop(bp,dx-1,y,dx,cs,0,LE); if(j>x) { i4=y; x=j; } loop 5906 lib/gocr/ocr0.c j=loop(bp,dx-1 ,y,dx,cs,0,LE); loop 5907 lib/gocr/ocr0.c j=loop(bp,dx-1-j,y,dx,cs,1,LE); loop 5930 lib/gocr/ocr0.c j=loop(bp,dx-1 ,0,dx,cs,0,LE); x=j; loop 5931 lib/gocr/ocr0.c j=loop(bp,dx-1-j,0,dx,cs,1,LE); loop 5932 lib/gocr/ocr0.c i=loop(bp,dx-1 ,1,dx,cs,0,LE); if (i<x) x=i; loop 5933 lib/gocr/ocr0.c i=loop(bp,dx-1-i,1,dx,cs,1,LE); loop 5938 lib/gocr/ocr0.c j=loop(bp, 0,y,dx,cs,0,RI); if(j>x) break; x=j; loop 5939 lib/gocr/ocr0.c j=loop(bp, j,y,dx,cs,1,RI); if(j>i1) { i1=j; i2=y; } loop 5940 lib/gocr/ocr0.c j=loop(bp,dx-1 ,y,dx,cs,0,LE); loop 5941 lib/gocr/ocr0.c j=loop(bp,dx-1-j,y,dx,cs,1,LE); if(j>i3) { i3=j; i4=y; } loop 5944 lib/gocr/ocr0.c j=loop(bp,dx-1 , y,dx,cs,0,LE); loop 5945 lib/gocr/ocr0.c j=loop(bp,dx-1-j, y,dx,cs,1,LE); if(j>i1) { i1=j; } loop 5946 lib/gocr/ocr0.c j=loop(bp,dx-1 ,dy-1-y,dx,cs,0,LE); loop 5947 lib/gocr/ocr0.c j=loop(bp,dx-1-j,dy-1-y,dx,cs,1,LE); if(j>i3) { i3=j; } loop 5970 lib/gocr/ocr0.c if (loop(bp,dx-1,3*dy/8,dx,cs,0,RI)>dx/8) Break; loop 5971 lib/gocr/ocr0.c if (loop(bp, 0,5*dy/8,dx,cs,0,RI)>dx/8) Break; loop 5980 lib/gocr/ocr0.c i1 =loop(bp,dx-1 , 0,dx,cs,0,LE); if( i1>dx/8 ) Break; loop 5981 lib/gocr/ocr0.c i1+=loop(bp,dx-1-i1, 0,dx,cs,1,LE); if( i1>dx/3 ) Break; i1=dx-1-i1; loop 5982 lib/gocr/ocr0.c i2 =loop(bp, 0,dy-1,dx,cs,0,RI); if( i2>dx/8 ) Break; loop 5985 lib/gocr/ocr0.c j=loop(bp,x,y,dx,cs,0,RI); if( j>3*dx/16 ) break; loop 6018 lib/gocr/ocr0.c i1 =loop(bp,dx-1 , 0,dx,cs,0,LE); if( i1>dx/4 ) Break; loop 6019 lib/gocr/ocr0.c i1+=loop(bp,dx-1-i1, 0,dx,cs,1,LE); if( i1>dx/4 ) Break; i1=dx-1-i1; loop 6020 lib/gocr/ocr0.c i2 =loop(bp, 0,dy-1,dx,cs,0,RI); if( i2>dx/4 ) Break; loop 6023 lib/gocr/ocr0.c j=loop(bp,x,y,dx,cs,0,RI); // fprintf(stderr,"\n x=%d j=%d",x,j); loop 6049 lib/gocr/ocr0.c x=loop(bp,0,y,dx,cs,0,RI); if( x>dx/4 ) break; loop 6050 lib/gocr/ocr0.c j=loop(bp,x,y,dx,cs,1,RI); if( j>i ) i=j; loop 6053 lib/gocr/ocr0.c x=loop(bp,dx-1,y,dx,cs,0,LE); if( x>dx/2 ) break; loop 6068 lib/gocr/ocr0.c j=loop(bp,dx-1,dy/16 ,dy,cs,0,LE); loop 6069 lib/gocr/ocr0.c x=loop(bp,dx-1,dy/16+1,dy,cs,0,LE); if (x<j) j=x; loop 6075 lib/gocr/ocr0.c j=loop(bp,0,y,dx,cs,0,RI); if(j<x) { i2=y; x=j; } loop 6078 lib/gocr/ocr0.c j=loop(bp,dx-1,y,dx,cs,0,LE); if(j>x) { i4=y; x=j; } loop 6080 lib/gocr/ocr0.c j =loop(bp,dx/2,0,dy,cs,0,DO); loop 6081 lib/gocr/ocr0.c j+=loop(bp,dx/2,j,dy,cs,1,DO); if(j>dy/4) break; loop 6082 lib/gocr/ocr0.c j =loop(bp,dx/2,j,dy,cs,0,DO); if(j<dy/2) break; loop 6083 lib/gocr/ocr0.c j =loop(bp,dx-1 ,dy-1-dy/8,dx,cs,0,LE); if(j<dx/4 || 4*j>3*dx) break; loop 6084 lib/gocr/ocr0.c j =loop(bp,dx-1-j/2,dy-1-dy/8,dy,cs,0,UP); if(j>dy/2) break; // ~() loop 6104 lib/gocr/ocr0.c j=loop(bp, 0,dy/8,dx,cs,0,RI); if(j<1 || j<dx/16) Break; if (j<dx/8) {ad=ad*96/100;} loop 6105 lib/gocr/ocr0.c j=loop(bp, 0,dy/2,dx,cs,0,RI); if(j<1 || j<dx/16 || j>=dx/2) Break; if (j<dx/8) {ad=ad*96/100;} loop 6106 lib/gocr/ocr0.c j=loop(bp,dx-1,dy/2,dx,cs,0,LE); if(j<1 || j<dx/16 || j>=dx/2) Break; if (j<dx/8) {ad=ad*96/100;} loop 6107 lib/gocr/ocr0.c j=loop(bp,dx-1,dy-1,dx,cs,0,LE); if(j<1 || j<dx/16) Break; if (j<dx/8) {ad=ad*96/100;} loop 6109 lib/gocr/ocr0.c j=loop(bp,0, y,dx,cs,0,RI); if(j>3*dx/4) { i1=0; break; } loop 6110 lib/gocr/ocr0.c j=loop(bp,j, y,dx,cs,1,RI); if(j>i1) { i1=j; } loop 6111 lib/gocr/ocr0.c j=loop(bp,0,dy-1-y,dx,cs,0,RI); if(j>3*dx/4) { i1=0; break; } loop 6112 lib/gocr/ocr0.c j=loop(bp,j,dy-1-y,dx,cs,1,RI); if(j>i3) { i3=j; } loop 6177 lib/gocr/ocr0.c if ( loop(box1->p,x0,y0 ,dx,cs,0,RI) loop 6178 lib/gocr/ocr0.c <= loop(box1->p,x0,y0+dy/16+1,dx,cs,0,RI) ) ad=96*ad/100; // X loop 6179 lib/gocr/ocr0.c if ( loop(box1->p,x1,y1 ,dx,cs,0,LE) loop 6180 lib/gocr/ocr0.c <= loop(box1->p,x1,y1-1-dy/16,dx,cs,0,LE) ) ad=96*ad/100; // X loop 6210 lib/gocr/ocr0.c if( loop(bp,0 ,0 ,x1-x0,cs,0,RI)<= loop 6211 lib/gocr/ocr0.c loop(bp,0 ,2 ,x1-x0,cs,0,RI) ) Break; loop 6212 lib/gocr/ocr0.c if( loop(bp,dx/2,dy-dy/4,x1-x0,cs,0,RI)>dx/4 loop 6213 lib/gocr/ocr0.c || loop(bp,dx/2,dy-dy/4,x1-x0,cs,0,LE)>dx/4 ) Break; loop 6214 lib/gocr/ocr0.c if( loop(bp,dx/2,3*dy/8,x1-x0,cs,0,RI)<dx/4 loop 6215 lib/gocr/ocr0.c || loop(bp,dx/2,3*dy/8,x1-x0,cs,0,LE)<dx/4 ) Break; loop 6217 lib/gocr/ocr0.c i=loop(bp,0,dy-1-dy/16,x1-x0,cs,0,RI); if(i>dx/8) Break; loop 6218 lib/gocr/ocr0.c x=loop(bp,i,dy-1-dy/16,x1-x0,cs,1,RI); i+=x; if(i<3*dx/8 || i>dx/2) Break; loop 6219 lib/gocr/ocr0.c x=loop(bp,i,dy-1-dy/16,x1-x0,cs,0,RI); i+=x; if(i<dx/2 || i>5*dx/8) Break; loop 6220 lib/gocr/ocr0.c x=loop(bp,i,dy-1-dy/16,x1-x0,cs,1,RI); i+=x; if(i<7*dx/8) Break; loop 6224 lib/gocr/ocr0.c i=loop(bp,x,dy-1,y1-y0,cs,0,UP); loop 6420 lib/gocr/ocr0.c if( loop(box1->p,x0,y0,x1-x0,cs,0,RI) loop 6421 lib/gocr/ocr0.c <= loop(box1->p,x0,y1,x1-x0,cs,0,RI) loop 6422 lib/gocr/ocr0.c || loop(box1->p,x1,y0,x1-x0,cs,0,LE) loop 6423 lib/gocr/ocr0.c >= loop(box1->p,x1,y1,x1-x0,cs,0,LE) ) loop 6440 lib/gocr/ocr0.c if( loop(box1->p,x0,y0,x1-x0,cs,0,RI) /* simple line */ loop 6441 lib/gocr/ocr0.c > loop(box1->p,x0,y1,x1-x0,cs,0,RI) loop 6442 lib/gocr/ocr0.c && loop(box1->p,x1,y0,x1-x0,cs,0,LE) loop 6443 lib/gocr/ocr0.c < loop(box1->p,x1,y1,x1-x0,cs,0,LE) ) { ad=99*ad/100; } loop 6445 lib/gocr/ocr0.c if( loop(box1->p,x0,(y0+y1+1)/2,x1-x0,cs,0,RI)<dx/2 ) ad=98*ad/100; loop 6446 lib/gocr/ocr0.c if( loop(box1->p,x1, y1 ,x1-x0,cs,0,LE)<dx/2 ) ad=98*ad/100; loop 6447 lib/gocr/ocr0.c if( loop(box1->p,x0,y1-((dy>5)?1:0),x1-x0,cs,0,LE)>(dx+1)/2 ) loop 6448 lib/gocr/ocr0.c if( loop(box1->p,x0, y1 ,x1-x0,cs,0,LE)>(dx+1)/2 ) ad=96*ad/100; loop 6481 lib/gocr/ocr0.c if( loop(box1->p,x0,y0,dx,cs,0,RI) loop 6482 lib/gocr/ocr0.c > loop(box1->p,x0,y1,dx,cs,0,RI) loop 6483 lib/gocr/ocr0.c && loop(box1->p,x1,y0,dx,cs,0,LE) loop 6484 lib/gocr/ocr0.c < loop(box1->p,x1,y1,dx,cs,0,LE) loop 6497 lib/gocr/ocr0.c if( ( loop(box1->p,x0,y0 ,dx,cs,0,RI) loop 6498 lib/gocr/ocr0.c > loop(box1->p,x0,y1 ,dx,cs,0,RI)-dx/8 loop 6499 lib/gocr/ocr0.c || loop(box1->p,x0,y0 ,dx,cs,0,RI) loop 6500 lib/gocr/ocr0.c > loop(box1->p,x0,y1-1,dx,cs,0,RI)-dx/8 ) loop 6501 lib/gocr/ocr0.c && ( loop(box1->p,x1,y0 ,dx,cs,0,LE) loop 6502 lib/gocr/ocr0.c > loop(box1->p,x1,y1 ,dx,cs,0,LE)-dx/8 loop 6503 lib/gocr/ocr0.c || loop(box1->p,x1,y0 ,dx,cs,0,LE) loop 6504 lib/gocr/ocr0.c > loop(box1->p,x1,y1-1,dx,cs,0,LE)-dx/8 ) loop 88 lib/gocr/ocr0n.c i1=loop(bp,dx-1,dy-1,dx,cs,0,LE); loop 89 lib/gocr/ocr0n.c i2=loop(bp,dx-1,dy-2,dx,cs,0,LE); loop 94 lib/gocr/ocr0n.c y =loop(bp,x,0,dy,cs,0,DO); if(y>dy/8) Break; loop 95 lib/gocr/ocr0n.c y +=loop(bp,x,y,dy,cs,1,DO); if(y>dy/4) Break; loop 96 lib/gocr/ocr0n.c i1 =loop(bp,x,y,dy,cs,0,DO)+y; if(i1>5*dy/8) Break; loop 98 lib/gocr/ocr0n.c x =loop(bp,0,y,dx,cs,0,RI); if(x>4*dx/8) Break; loop 99 lib/gocr/ocr0n.c x +=loop(bp,x,y,dx,cs,1,RI); if(x>5*dx/8) Break; loop 100 lib/gocr/ocr0n.c i1 =loop(bp,x,y,dx,cs,0,RI); i1=(i1+2*x)/2; // upper center (i1,i3) loop 102 lib/gocr/ocr0n.c x =loop(bp,dx-1 ,y,dx,cs,0,LE); if(x>dx/4) Break; loop 103 lib/gocr/ocr0n.c x +=loop(bp,dx-1-x,y,dx,cs,1,LE); if(x>dx/2) Break; loop 104 lib/gocr/ocr0n.c i2 =loop(bp,dx-1-x,y,dx,cs,0,LE); i2=dx-1-(i2+2*x)/2; // lower center x loop 108 lib/gocr/ocr0n.c y =loop(bp,i1,0,dy,cs,0,DO); loop 109 lib/gocr/ocr0n.c y +=loop(bp,i1,y,dy,cs,1,DO); loop 112 lib/gocr/ocr0n.c y =loop(bp,i1 ,i3,dy,cs,0,DO); loop 113 lib/gocr/ocr0n.c i =loop(bp,i1-1,i3,dy,cs,0,DO); loop 115 lib/gocr/ocr0n.c y =loop(bp,i1 ,i3,dy,cs,0,UP); loop 116 lib/gocr/ocr0n.c i =loop(bp,i1+1,i3,dy,cs,0,UP); loop 118 lib/gocr/ocr0n.c x =loop(bp,dx-1,0,dx,cs,0,LE); loop 119 lib/gocr/ocr0n.c i =loop(bp,dx-1,1,dx,cs,0,LE); loop 123 lib/gocr/ocr0n.c if (loop(bp,0,dy-1,dx,cs,0,RI)==0) ad=98*ad/100; /* S or 7segment */ loop 140 lib/gocr/ocr0n.c j=loop(bp,0,y,dx,cs,0,RI); if(j<x) { x=j; i=y; } loop 142 lib/gocr/ocr0n.c i1=loop(bp,0, dy/16 ,dx,cs,0,RI); loop 143 lib/gocr/ocr0n.c i2=loop(bp,0,(y+dy/16)/2 ,dx,cs,0,RI); loop 144 lib/gocr/ocr0n.c i =loop(bp,0,(y+dy/16)/2+1,dx,cs,0,RI); if( i>i2 ) i2=i; loop 145 lib/gocr/ocr0n.c i3=loop(bp,0, y ,dx,cs,0,RI); loop 146 lib/gocr/ocr0n.c i =loop(bp,0, y-1,dx,cs,0,RI); if( i<i3 ) i3=i; loop 150 lib/gocr/ocr0n.c if( loop(bp,0, dy/5 ,dx,cs,0,RI) loop 151 lib/gocr/ocr0n.c ==loop(bp,0, dy/4 ,dx,cs,0,RI) loop 153 lib/gocr/ocr0n.c loop(bp,0, dy/10 ,dx,cs,0,RI) loop 154 lib/gocr/ocr0n.c >loop(bp,0, dy/4 ,dx,cs,0,RI) loop 156 lib/gocr/ocr0n.c loop(bp,0, 1 ,dx,cs,0,RI) loop 157 lib/gocr/ocr0n.c >loop(bp,0, dy/4 ,dx,cs,0,RI)+1 loop 159 lib/gocr/ocr0n.c loop(bp,dx-1, 0 ,dx,cs,0,LE) loop 160 lib/gocr/ocr0n.c >loop(bp,dx-1, 1 ,dx,cs,0,LE) ) Break; loop 163 lib/gocr/ocr0n.c if( loop(bp,dx/4,3*dy/10,dy,cs,1,DO)>0 ) // check start loop 164 lib/gocr/ocr0n.c if( loop(bp,dx-2,3*dy/4 ,dy,cs,1,UP)>0 ) // check end loop 168 lib/gocr/ocr0n.c if( loop(bp, 0,dy/2 ,dx,cs,0,RI)<dx/2 loop 169 lib/gocr/ocr0n.c || loop(bp, 0,dy/2-1 ,dx,cs,0,RI)<dx/2 ) loop 170 lib/gocr/ocr0n.c if( loop(bp,dx/4,3*dy/10,dy,cs,1,DO)>0 ) // check start loop 171 lib/gocr/ocr0n.c if( loop(bp,dx-2,2*dy/3 ,dy,cs,1,UP)>0 ) // check end loop 172 lib/gocr/ocr0n.c if( loop(bp, 0, dy/16,dx,cs,0,RI) loop 173 lib/gocr/ocr0n.c >= loop(bp,dx-1, dy-1-dy/16,dx,cs,0,LE) ) ad=ad*98/100; loop 174 lib/gocr/ocr0n.c if( loop(bp,dx-1, dy/16,dx,cs,0,LE) loop 175 lib/gocr/ocr0n.c >= loop(bp, 0, dy-1-dy/16,dx,cs,0,RI) loop 176 lib/gocr/ocr0n.c && loop(bp,dx-1, dy/16,dx,cs,0,LE) loop 177 lib/gocr/ocr0n.c >= loop(bp, 0, dy-1,dx,cs,0,RI) ) ad=ad*98/100; loop 225 lib/gocr/ocr0n.c i= loop(bp,dx/2,0,dy,cs,0,DO); loop 226 lib/gocr/ocr0n.c if (loop(bp,dx/2,i,dy,cs,1,DO)<dy-1) Break; loop 227 lib/gocr/ocr0n.c i= loop(bp,dx -1,dy-1-dy/16,dx,cs,0,LE); loop 228 lib/gocr/ocr0n.c if (loop(bp,dx-i-1,dy-1-dy/16,dx,cs,1,LE)<dx-1) Break; loop 229 lib/gocr/ocr0n.c i= loop(bp,0,dy/16,dx,cs,0,RI); loop 230 lib/gocr/ocr0n.c if (loop(bp,i,dy/16,dx,cs,1,RI)<dx/2) Break; loop 239 lib/gocr/ocr0n.c x =loop(bp,0,7*dy/8-1,dx,cs,0,RI); i2=x; loop 240 lib/gocr/ocr0n.c x+=loop(bp,x,7*dy/8-1,dx,cs,1,RI)-1; i2=(i2+x)/2; loop 242 lib/gocr/ocr0n.c i1=loop(bp,dx-1 ,1+0* dy/4,dx,cs,0,LE); i1=dx-1-i1-(x-i2)/2; loop 247 lib/gocr/ocr0n.c i1=loop(bp,dx-1 ,1+0* dy/4,dx,cs,0,LE); i1=dx-1-i1; loop 251 lib/gocr/ocr0n.c x =loop(bp,(i1+i2)/2,dy/2,dx,cs,1,RI); i=x; i3=0; loop 253 lib/gocr/ocr0n.c if( loop(bp,i1+y*(i2-i1)/dy, y,dx,cs,1,RI)-i > 1+dx/8 ) break; loop 258 lib/gocr/ocr0n.c x =loop(bp,i2,dy-1,dx,cs,1,LE); j=x; loop 259 lib/gocr/ocr0n.c x =loop(bp,i2,dy-2,dx,cs,1,LE); if(x>j)j=x; i=j; loop 260 lib/gocr/ocr0n.c x =loop(bp,i2,dy-1,dx,cs,1,RI); j=x; loop 261 lib/gocr/ocr0n.c x =loop(bp,i2,dy-2,dx,cs,1,RI); if(x>j)j=x; loop 267 lib/gocr/ocr0n.c x =loop(bp,0,y,dx,cs,0,RI); if(x<i) { i=x;j=y; } loop 272 lib/gocr/ocr0n.c x =loop(bp,0,dy/2,dx,cs,0,RI); // right distance loop 273 lib/gocr/ocr0n.c j =loop(bp,x,dy/2,dx,cs,1,RI); // thickness loop 275 lib/gocr/ocr0n.c x =loop(bp,0,0,dx,cs,0,RI); // straight line ??? loop 276 lib/gocr/ocr0n.c j =loop(bp,0,1,dx,cs,0,RI); if( j>x ) Break; // ~l loop 277 lib/gocr/ocr0n.c if( x==j ) j =loop(bp,0,dy/8,dx,cs,0,RI); if( j>x && !i4) Break; loop 278 lib/gocr/ocr0n.c if( x==j ) if(loop(bp,0,dy/4,dx,cs,0,RI)>x) { // ~l loop 280 lib/gocr/ocr0n.c if (loop(bp,dx-1,dy/8,dx,cs,0,LE)<=dx/4 loop 281 lib/gocr/ocr0n.c && loop(bp,0,3*dy/4,dx,cs,1,RI)<dx-1) ad=97*ad/100; loop 287 lib/gocr/ocr0n.c if( loop(bp,dx-1, 1,dx,cs,0,LE)-dy/6 loop 288 lib/gocr/ocr0n.c > loop(bp,dx-1,dy/4,dx,cs,0,LE) loop 290 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,dx,cs,0,LE) > dx/2 loop 293 lib/gocr/ocr0n.c i=loop(bp, dx/8,0,dy,cs,0,DO); loop 295 lib/gocr/ocr0n.c j=loop(bp,x,0,dy,cs,0,DO); if (j<y) { y=j; } loop 299 lib/gocr/ocr0n.c if( loop(bp, 0, dy/8,dx,cs,0,RI) loop 300 lib/gocr/ocr0n.c -(dx-loop(bp,dx-1,7*dy/8,dx,cs,0,LE)) > dx/4 ) Break; // ~/ loop 302 lib/gocr/ocr0n.c i= loop(bp, 0, 0,dy,cs,0,DO); // horizontal line? loop 304 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/16,dx,cs,0,LE)-dx/8 loop 305 lib/gocr/ocr0n.c >loop(bp,dx-1, i,dx,cs,0,LE) loop 306 lib/gocr/ocr0n.c || loop(bp,dx-1,3*dy/16,dx,cs,0,LE)-dx/8 loop 307 lib/gocr/ocr0n.c >loop(bp,dx-1, i+1,dx,cs,0,LE) ) Break; // ~t,~f loop 308 lib/gocr/ocr0n.c i= loop(bp, 0,dy-1-dy/32,dx,cs,0,RI); loop 309 lib/gocr/ocr0n.c x= loop(bp, 0,dy-2-dy/32,dx,cs,0,RI); if (i<x) x=i; loop 310 lib/gocr/ocr0n.c if( x-loop(bp, 0, 3*dy/4,dx,cs,0,RI)>dx/8 loop 311 lib/gocr/ocr0n.c && loop(bp,dx-1, 3*dy/4,dx,cs,0,LE)-dx/8 loop 312 lib/gocr/ocr0n.c >loop(bp,dx-1,dy-1-dy/32,dx,cs,0,LE) ) Break; // ~t loop 313 lib/gocr/ocr0n.c if( loop(bp, 0,i-1,dx,cs,0,RI)>1 && dx<6) { loop 315 lib/gocr/ocr0n.c if ( loop(bp,dx-1,i-1,dx,cs,0,LE)>1 ) Break; // ~t loop 320 lib/gocr/ocr0n.c if (loop(bp,0,3*dy/4,dx,cs,0,RI)- loop 321 lib/gocr/ocr0n.c loop(bp,0,dy/2-1,dx,cs,0,RI)>dx/4) ad=95*ad/100; // ~3 loop 322 lib/gocr/ocr0n.c if (loop(bp,dx-1,dy/2-1,dx,cs,0,LE)- loop 323 lib/gocr/ocr0n.c loop(bp,dx-1,3*dy/4,dx,cs,0,LE)>dx/8) ad=95*ad/100; // ~3 loop 324 lib/gocr/ocr0n.c if (loop(bp,dx-1, dy/16,dx,cs,0,LE)- loop 325 lib/gocr/ocr0n.c loop(bp,dx-1, dy/4,dx,cs,0,LE)>dx/8) ad=95*ad/100; // ~23 loop 328 lib/gocr/ocr0n.c i=loop(bp,dx-1-dx/8,dy-1,dy,cs,0,UP); loop 330 lib/gocr/ocr0n.c i+=loop(bp,dx-1-dx/8,dy-1-i,dy,cs,1,UP); loop 332 lib/gocr/ocr0n.c i=loop(bp,dx-1-dx/8,dy-1-i,dy,cs,0,LE); loop 333 lib/gocr/ocr0n.c if (2*i>=dx && loop(bp,dx/4,0,dy,cs,0,DO)<dy/2) { loop 344 lib/gocr/ocr0n.c j=loop(bp,0,y,dx,cs,0,RI); if (j<i) i=j; loop 409 lib/gocr/ocr0n.c i=loop(box1->p,x1,y0+y,dx,cs,0,LE); // use p (not b) for broken chars loop 422 lib/gocr/ocr0n.c i1=loop(bp,dx-1-dx/16,0,dy,cs,0,DO); // Jul00 loop 423 lib/gocr/ocr0n.c i2=loop(bp, dx/ 2,0,dy,cs,0,DO); if( i2+dy/32>=i1 ) Break; // ~z loop 424 lib/gocr/ocr0n.c i1=loop(bp,dx-1,dy-3*dy/16,dx,cs,0,LE); loop 425 lib/gocr/ocr0n.c i2=loop(bp, 0,dy-3*dy/16,dx,cs,0,RI); if( i2>i1 ) ad=98*ad/100; // ~i loop 427 lib/gocr/ocr0n.c if (loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE)>dx/4) ad=96*ad/100; // \it i loop 550 lib/gocr/ocr0n.c if( loop(bp,dx/2, 0 ,dy,cs,0,DO)>dy/4 ) Break; loop 551 lib/gocr/ocr0n.c if( loop(bp,dx/2, dy-1,dy,cs,0,UP)>dy/4 ) Break; loop 552 lib/gocr/ocr0n.c if( loop(bp,dx-1, dy/3,dy,cs,0,LE)>dy/4 /* 3 with upper bow */ loop 553 lib/gocr/ocr0n.c && loop(bp,dx-1, dy/8,dy,cs,0,LE)>dy/4 /* 3 with horizontal line */ loop 554 lib/gocr/ocr0n.c && loop(bp,dx/4, dy/8,dy,cs,1,RI)<dy/2 ) Break; loop 555 lib/gocr/ocr0n.c if( loop(bp,dx-1,2*dy/3,dy,cs,0,LE)>dy/4 ) Break; loop 556 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,dy,cs,0,LE)>dy/2 ) Break; // ~2 Feb06 loop 557 lib/gocr/ocr0n.c if( loop(bp,dx-1,7*dy/8,dy,cs,0,LE)>dy/2 ) Break; // ~2 Feb06 loop 560 lib/gocr/ocr0n.c i=loop(bp,0,y,dx,cs,0,RI); loop 562 lib/gocr/ocr0n.c } i3--; if (i3<dx/3 && i3+1+loop(bp,i3+1,i1,dx,cs,1,RI)<3*dx/4) Break; loop 563 lib/gocr/ocr0n.c if (loop(bp,dx-1,i1,dx,cs,0,LE)>1+dx/8) ad=ad*99/100; // ~1 with a pixel loop 566 lib/gocr/ocr0n.c i=loop(bp,0,y,dx,cs,0,RI); loop 568 lib/gocr/ocr0n.c } i4--; if(i4<dx/3 && i4+1+loop(bp,i4+1,i2,dx,cs,1,RI)<3*dx/4) Break; loop 569 lib/gocr/ocr0n.c if (loop(bp,dx-1,i2,dx,cs,0,LE)>1+dx/8) ad=ad*99/100; // ~1 with a pixel loop 572 lib/gocr/ocr0n.c i=loop(bp,dx-1,y,dx,cs,0,LE); loop 573 lib/gocr/ocr0n.c if (i>=xa) { xa=i;ya=y;x=xa+loop(bp,dx-1-xa,y,dx,cs,1,LE); } loop 576 lib/gocr/ocr0n.c && xa<=loop(bp,dx-1,i2,dx,cs,0,LE)) ad=ad*99/100; // ~1 with a pixel loop 578 lib/gocr/ocr0n.c && xa<=loop(bp,dx-1,i1,dx,cs,0,LE)) ad=ad*99/100; // ~1 with a pixel loop 732 lib/gocr/ocr0n.c if( loop(bp,0 ,3*dy/16,dx,cs,0,RI) loop 733 lib/gocr/ocr0n.c < loop(bp,0 ,2*dy/4 ,dx,cs,0,RI)-dx/8 ) Break; loop 736 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-y,dx,cs,0,RI) loop 737 lib/gocr/ocr0n.c + loop(bp,dx-1,dy-1-y,dx,cs,0,LE) >= dx/2 ) break; loop 739 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-dy/8,dx,cs,0,RI) < dx/4 ) Break; loop 741 lib/gocr/ocr0n.c y=0; x=loop(bp,0,0,dx,cs,0,RI); loop 743 lib/gocr/ocr0n.c i=loop(bp,0,dy/4,dx,cs,0,RI); if (i>dx/4) Break; loop 744 lib/gocr/ocr0n.c i=loop(bp,i,dy/4,dx,cs,1,RI); if (i>dx/2) Break; loop 745 lib/gocr/ocr0n.c j=loop(bp,i,dy/4,dy,cs,0,DO)+dy/4; if (j>7*dy/8) Break; loop 749 lib/gocr/ocr0n.c y=loop(bp,0,0,dy,cs,0,DO); loop 750 lib/gocr/ocr0n.c if( (y+loop(bp,0,y,dy,cs,1,DO)) < dy/2 ) Break; loop 754 lib/gocr/ocr0n.c i=loop(bp,bp->x-1, bp->y/4,dx,cs,0,LE); loop 755 lib/gocr/ocr0n.c if( i > loop(bp,bp->x-1,2*bp->y/4,dx,cs,0,LE)+1 loop 756 lib/gocr/ocr0n.c && i > loop(bp,bp->x-1,3*bp->y/8,dx,cs,0,LE)+1 ) Break; loop 757 lib/gocr/ocr0n.c if (loop(bp,0,0,dx,cs,0,RI)>dx/4) { loop 776 lib/gocr/ocr0n.c i = loop(bp,0,dy/16,dx,cs,0,RI); loop 779 lib/gocr/ocr0n.c if ( loop(bp, 0,dy-1,dy,cs,0,UP) loop 780 lib/gocr/ocr0n.c -loop(bp,dx/8+1,dy-1,dy,cs,0,UP)>dy/16) ad=97*ad/100; loop 784 lib/gocr/ocr0n.c i=loop(bp,dx-1 ,y,dx,cs,0,LE); loop 785 lib/gocr/ocr0n.c i=loop(bp,dx-1-i,y,dx,cs,1,LE); if (i>j) j=i; loop 791 lib/gocr/ocr0n.c if( loop(bp, dx/2, 0,dy,cs,0,DO)<dy/16 loop 792 lib/gocr/ocr0n.c && loop(bp, dx/4, 0,dy,cs,0,DO)<dy/8 loop 793 lib/gocr/ocr0n.c && loop(bp,3*dx/4, 0,dy,cs,0,DO)<dy/8 loop 794 lib/gocr/ocr0n.c && loop(bp, dx/4,dy-1,dy,cs,0,UP)<dy/8 loop 795 lib/gocr/ocr0n.c && loop(bp, dx/2,dy-1,dy,cs,0,UP)<dy/8 loop 796 lib/gocr/ocr0n.c && loop(bp,3*dx/4,dy-1,dy,cs,0,UP)<dy/4 ) Break; // ~9 loop 798 lib/gocr/ocr0n.c i =loop(bp,dx-1 ,dy-1,dx,cs,0,LE); // ~9 loop 799 lib/gocr/ocr0n.c i+=loop(bp,dx-1-i,dy-1,dx,cs,1,LE); loop 801 lib/gocr/ocr0n.c && i-loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)>dx/4 ) Break; loop 803 lib/gocr/ocr0n.c i =loop(bp,dx-1-dx/4,dy-1,dx,cs,0,UP); loop 808 lib/gocr/ocr0n.c && loop(bp,dx-1,dy/16 ,dx,cs,0,LE)> loop 809 lib/gocr/ocr0n.c loop(bp,dx-1,dy/16+1+dy/32,dx,cs,0,LE) ) Break; loop 821 lib/gocr/ocr0n.c if( loop(bp, 0, dy/4,dx,cs,0,RI)>dx/2 // ocr-a=6 loop 822 lib/gocr/ocr0n.c && loop(bp,dx-1, 0,dy,cs,0,DO)>dy/4 ) Break; // italic-6 loop 823 lib/gocr/ocr0n.c if( loop(bp, 0, dy/2,dx,cs,0,RI)>dx/4 ) Break; loop 824 lib/gocr/ocr0n.c if( loop(bp, 0,3*dy/4,dx,cs,0,RI)>dx/4 ) Break; loop 825 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,dx,cs,0,LE)>dx/2 ) Break; loop 831 lib/gocr/ocr0n.c if ( loop(box1->p,(x0+x1)/2,y0,dy,cs,0,DO)<dy/2 ) Break; loop 834 lib/gocr/ocr0n.c if (loop(box1->p,x0+dx/2,y0,dx,cs,0,DO)>dy/8 loop 835 lib/gocr/ocr0n.c && loop(box1->p,x1-dx/4,y0,dx,cs,0,DO)>dy/8 ) Break; loop 839 lib/gocr/ocr0n.c x =loop(box1->p,x1 ,y ,dx,cs,0,LE); if( x>dx/2 ) break; loop 840 lib/gocr/ocr0n.c x+=loop(box1->p,x1-x+1,y-1,dx,cs,0,LE); if( x>dx/2 ) break; loop 842 lib/gocr/ocr0n.c if (loop(box1->p,x0,y1-dy/3,dx,cs,0,RI)>dx/4 ) Break; loop 843 lib/gocr/ocr0n.c if (loop(box1->p,x1,y1-dy/3,dx,cs,0,LE)>dx/4 ) Break; loop 853 lib/gocr/ocr0n.c i1=loop(bp,0,dy/8 ,dx,cs,0,RI); loop 854 lib/gocr/ocr0n.c i3=loop(bp,0,dy-1-dy/8,dx,cs,0,RI); loop 855 lib/gocr/ocr0n.c i2=loop(bp,0,dy/2 ,dx,cs,0,RI); loop 859 lib/gocr/ocr0n.c i1=loop(bp, 0,y,dx,cs,0,RI); loop 860 lib/gocr/ocr0n.c i2=loop(bp,i1,y,dx,cs,1,RI); loop 879 lib/gocr/ocr0n.c if( loop(bp,dx/2,0,dy,cs,0,DO)>dy/8 ) Break; loop 882 lib/gocr/ocr0n.c j=loop(bp,0,y,dx,cs,0,RI);if(xb>0 && j>dx/4) break; // gap after h-line loop 883 lib/gocr/ocr0n.c j=loop(bp,j,y,dx,cs,1,RI);if(j>xb){ xb=j;yb=y; } // h-line loop 885 lib/gocr/ocr0n.c j=loop(bp,0,dy/2,dx,cs,0,RI); loop 886 lib/gocr/ocr0n.c j=loop(bp,j,dy/2,dx,cs,1,RI); if(xb<2*j) Break; // minimum thickness loop 889 lib/gocr/ocr0n.c j=loop(bp,dx-1,y,dx,cs,0,LE); if( j<x ) break; if( j-1>x ) x=j-1; loop 894 lib/gocr/ocr0n.c j =loop(bp,dx-1,0,dy,cs,0,DO); // ~T loop 895 lib/gocr/ocr0n.c j+=loop(bp,dx-1,j,dy,cs,1,DO)+dy/16; loop 896 lib/gocr/ocr0n.c i =loop(bp,dx-1,j,dx,cs,0,LE); if(j<dy/2) { loop 898 lib/gocr/ocr0n.c j=loop(bp, 0,j,dx,cs,0,RI); loop 903 lib/gocr/ocr0n.c if( loop(bp, 0,3*dy/8,dx,cs,0,RI) loop 904 lib/gocr/ocr0n.c <=loop(bp,dx-1,3*dy/8,dx,cs,0,LE)+dx/8 ) ad=ad*98/100; // l loop 907 lib/gocr/ocr0n.c && loop(bp,0,dy/4,dx,cs,0,RI) < dx/2 ) ad=ad*96/100; // J loop 931 lib/gocr/ocr0n.c j=loop(box1->p,x0,y,dx,cs,0,RI); loop 933 lib/gocr/ocr0n.c && (i1=loop(box1->p,x0+j,y,dx,cs,1,RI))>dx/2)) { loop 938 lib/gocr/ocr0n.c j = loop(box1->p,x1,y1- dy/4,dx,cs,0,LE); loop 939 lib/gocr/ocr0n.c if( j>loop(box1->p,x1,y1- dy/5,dx,cs,0,LE) loop 940 lib/gocr/ocr0n.c && j>loop(box1->p,x1,y1-2*dy/5,dx,cs,0,LE) ) Break; // & loop 956 lib/gocr/ocr0n.c j=loop(box1->p,x1,y,dx,cs,0,LE); if( j>=x ) i2=y; loop 959 lib/gocr/ocr0n.c && loop(box1->p,x1-j,y,dx,cs,1,LE)>dx/2)){ loop 975 lib/gocr/ocr0n.c j=loop(bp,0,y,dx,cs,0,RI); if( j<i ) i=j; if( j>i+dx/16 ) break; loop 978 lib/gocr/ocr0n.c j=loop(bp,0,dy-1-y,dx,cs,0,RI); loop 982 lib/gocr/ocr0n.c && loop(bp,0,dy-1,dx,cs,0,RI) <dx/8+1 ) Break; // no fat serif S loop 986 lib/gocr/ocr0n.c if ( loop(bp,dx-1,0,dx,cs,0,LE)==0 ) ad=99*ad/100; loop 1024 lib/gocr/ocr0n.c j=loop(box1->p,x0,y,dx,cs,0,RI); loop 1029 lib/gocr/ocr0n.c j=loop(box1->p,x0+x-1,y,dy/8+1,cs,0,DO)/2; y=i=y+j; loop 1030 lib/gocr/ocr0n.c j=loop(box1->p,x0+x-1,y,dx/2 ,cs,0,RI); x+=j; loop 1051 lib/gocr/ocr0n.c if( loop(box1->p,x0,y1 ,dy,cs,0,RI)>dx/3 && loop 1052 lib/gocr/ocr0n.c loop(box1->p,x0,y1-1,dy,cs,0,RI)>dx/3 loop 1055 lib/gocr/ocr0n.c j=loop(box1->p,x1,y,dx,cs,0,LE); loop 1058 lib/gocr/ocr0n.c i1=loop(bp,dx-1,dy/8 ,dx,cs,0,LE); if(i1>dx/2) Break; loop 1059 lib/gocr/ocr0n.c i3=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); loop 1060 lib/gocr/ocr0n.c i2=loop(bp,dx-1,dy/2 ,dx,cs,0,LE); if(i1+i3-2*i2<-1-dx/16) Break; // konvex loop 1061 lib/gocr/ocr0n.c i1=loop(bp,dx-1,dy/4 ,dx,cs,0,LE); if(i1>dx/2) Break; loop 1062 lib/gocr/ocr0n.c i3=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); loop 1064 lib/gocr/ocr0n.c i2=loop(bp,dx-1,y,dx,cs,0,LE); loop 1067 lib/gocr/ocr0n.c x=loop(bp,dx -1,6*dy/8,dx,cs,0,LE); if(x>0){ loop 1069 lib/gocr/ocr0n.c y=loop(bp,dx-x-1, dy-1,dy,cs,0,UP); loop 1105 lib/gocr/ocr0n.c i= loop(bp,0 ,0 ,x1-x0,cs,0,RI)- loop 1106 lib/gocr/ocr0n.c loop(bp,0 ,2 ,x1-x0,cs,0,RI); loop 1109 lib/gocr/ocr0n.c if (loop(bp,dx-1,0 ,x1-x0,cs,0,LE)> loop 1110 lib/gocr/ocr0n.c loop(bp,dx-1,2 ,x1-x0,cs,0,LE) ) ad=98*ad/100; loop 1114 lib/gocr/ocr0n.c x=loop(bp,dx-1,dy-1-dy/3,x1-x0,cs,0,LE); // should be minimum loop 1116 lib/gocr/ocr0n.c i=loop(bp,dx-1,y,x1-x0,cs,0,LE); loop 1122 lib/gocr/ocr0n.c i= loop(bp, 0, dy/16,dx,cs,0,RI) loop 1123 lib/gocr/ocr0n.c + loop(bp, 0,dy-1-dy/16,dx,cs,0,RI) loop 1124 lib/gocr/ocr0n.c - 2*loop(bp, 0, dy/2 ,dx,cs,0,RI); loop 1125 lib/gocr/ocr0n.c j= loop(bp,dx-1, dy/16,dx,cs,0,LE) loop 1126 lib/gocr/ocr0n.c + loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE) loop 1127 lib/gocr/ocr0n.c <= 2*loop(bp,dx-1, dy/2 ,dx,cs,0,LE); loop 1130 lib/gocr/ocr0n.c if( loop(bp,dx-1, dy/16,dx,cs,0,LE)>dx/8 ) loop 1131 lib/gocr/ocr0n.c if( loop(bp,0 , dy/16,dx,cs,0,RI)<dx/16 ) Break; loop 1132 lib/gocr/ocr0n.c if( loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE)>dx/8 ) loop 1133 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-dy/16,dx,cs,0,RI)<dx/16 ) Break; loop 1143 lib/gocr/ocr0n.c i =loop(bp,x,dy-1 ,y1-y0,cs,0,UP); loop 1144 lib/gocr/ocr0n.c i+=loop(bp,x,dy-1-i,y1-y0,cs,1,UP); loop 1151 lib/gocr/ocr0n.c if (loop(bp, 0, 0,x1-x0,cs,0,RI)>=dx/8) { // round, notLCD loop 1152 lib/gocr/ocr0n.c if (loop(bp,dx-1,dy-1,x1-x0,cs,0,LE)<dx/8) ad=98*ad/100; // \it a loop 1153 lib/gocr/ocr0n.c if (loop(bp,dx-1, 0,x1-x0,cs,0,LE)<dx/8) ad=98*ad/100; // \it a loop 1156 lib/gocr/ocr0n.c if (abs(loop(bp,dx/2, 0,dy,cs,0,DO) loop 1157 lib/gocr/ocr0n.c -loop(bp,dx/2,dy-1,dy,cs,0,UP))>dy/8 loop 1195 lib/gocr/ocr0n.c if( loop(bp,0 , 0,x1-x0,cs,0,RI)<= loop 1196 lib/gocr/ocr0n.c loop(bp,0 , 2+dy/32,x1-x0,cs,0,RI) ) Break; loop 1197 lib/gocr/ocr0n.c x= loop(bp,0 ,dy/2 ,x1-x0,cs,0,RI); loop 1198 lib/gocr/ocr0n.c i= loop(bp,0 ,dy/2-1,x1-x0,cs,0,RI); if (i>x) x=i; loop 1199 lib/gocr/ocr0n.c i= loop(bp,0 ,dy/2-2,x1-x0,cs,0,RI); if (i>x && dy>8) x=i; loop 1200 lib/gocr/ocr0n.c if( loop(bp,0 , dy/4,x1-x0,cs,0,RI)<x ) Break; // ~8 loop 1201 lib/gocr/ocr0n.c x= loop(bp,dx-1,dy/2 ,x1-x0,cs,0,LE); loop 1202 lib/gocr/ocr0n.c i= loop(bp,dx-1,dy/2-1,x1-x0,cs,0,LE); if(i>x) x=i; loop 1203 lib/gocr/ocr0n.c i= loop(bp,dx-1,dy/2-1,x1-x0,cs,0,LE); if(i>x && dy>8) x=i; loop 1204 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,x1-x0,cs,0,LE)<x) Break; // ~8 loop 1206 lib/gocr/ocr0n.c x=loop(bp,dx-1,dy-1-dy/3,x1-x0,cs,0,LE); // should be minimum loop 1208 lib/gocr/ocr0n.c i=loop(bp,dx-1,y,x1-x0,cs,0,LE); loop 1215 lib/gocr/ocr0n.c y =loop(bp,dx/2,dy-1 ,y1-y0,cs,0,UP); if(y>dy/4) Break; loop 1216 lib/gocr/ocr0n.c y+=loop(bp,dx/2,dy-1-y,y1-y0,cs,1,UP); if(y>dy/3) Break; if (y>dy/4) ad=ad*99/100; loop 1217 lib/gocr/ocr0n.c y+=loop(bp,dx/2,dy-1-y,y1-y0,cs,0,UP); if(3*y>2*dy) Break; loop 1218 lib/gocr/ocr0n.c x =loop(bp,dx/2,dy-y,dx/2,cs,0,RI); if(x==0) Break; loop 1220 lib/gocr/ocr0n.c if( loop(bp,dx/2+x-1-dx/16,dy-y,y1-y0,cs,0,UP)==0 ) Break; loop 1223 lib/gocr/ocr0n.c if( loop(bp, 0,y,dx-1,cs,0,RI) > dx/4 loop 1224 lib/gocr/ocr0n.c || loop(bp,dx-1,y,dx-1,cs,0,LE) > dx/4 ) break; loop 1228 lib/gocr/ocr0n.c if( loop(bp,0, dy/16,dx,cs,0,RI) loop 1229 lib/gocr/ocr0n.c + loop(bp,0,dy-1-dy/16,dx,cs,0,RI) loop 1230 lib/gocr/ocr0n.c <= 2*loop(bp,0, dy/2 ,dx,cs,0,RI)+dx/8 ) Break; // not konvex loop 1232 lib/gocr/ocr0n.c if( loop(bp,dx-1, dy/16,dx,cs,0,LE)>dx/8 ) loop 1233 lib/gocr/ocr0n.c if( loop(bp,0 , dy/16,dx,cs,0,RI)<dx/16 ) Break; loop 1234 lib/gocr/ocr0n.c if( loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE)>dx/8 ) loop 1235 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-dy/16,dx,cs,0,RI)<dx/16 ) Break; loop 1835 lib/gocr/pgm2asc.c y=loop(pp,x0,y0,y1-y0,cs,0,DO);if(2*y>y1-y0) continue; loop 2109 lib/gocr/pgm2asc.c if (loop(pp,x0+1,i,x1-x0,cs,1,RI) > (x1-x0-2)) continue; // ll loop 2119 lib/gocr/pgm2asc.c && loop(pp,x0,y1-(y1-y0)/32,x1-x0,cs,0,RI) loop 2120 lib/gocr/pgm2asc.c +loop(pp,x1,y1-(y1-y0)/32,x1-x0,cs,0,LE) > (x1-x0+1)/2 loop 32 lib/gocr/remove.c i=loop(box2->p,box2->x0+0,y,dx,JOB->cfg.cs,0,RI); loop 33 lib/gocr/remove.c i=loop(box2->p,box2->x0+i,y,dx,JOB->cfg.cs,1,RI); loop 486 lib/gocr/remove.c j1+=loop(pp,j1,y0 ,x1-x0,cs,0,RI); loop 487 lib/gocr/remove.c x =loop(pp,j1,y0 ,x1-x0,cs,1,RI); if(j1+x>x1+1) break; loop 488 lib/gocr/remove.c y =loop(pp,j1,y0+1,x1-x0,cs,1,RI); if(y>x) x=y; if(j1+x>x1+1) break; loop 491 lib/gocr/remove.c i3 =loop(pp,j1,y0 ,y1-y0,cs,0,DO); if(8*i3>y1-y0) break; loop 492 lib/gocr/remove.c i3+=loop(pp,j1,y0+i3,y1-y0,cs,1,DO); if(8*i3>y1-y0) break; loop 498 lib/gocr/remove.c if( loop(pp,j1,y,x1-x0,cs,0,RI)<1 ) { j1+=x; continue; } loop 500 lib/gocr/remove.c j2 = j1 + loop(pp,j1,y,x1-x0,cs,0,RI); loop 501 lib/gocr/remove.c j2 = j2 + loop(pp,j2,y,x1-x0,cs,1,RI); loop 502 lib/gocr/remove.c i3 = loop(pp,j2,y,x1-x0,cs,0,RI); if(i3<2){j1+=x;continue;} loop 504 lib/gocr/remove.c j3 = j2 + loop(pp,j2,y ,x1-j2,cs,0,RI); loop 505 lib/gocr/remove.c i3 = j2 + loop(pp,j2,y+1,x1-j2,cs,0,RI); if(i3>j3)j3=i3; loop 506 lib/gocr/remove.c j3 = j3 + loop(pp,j3,y ,x1-j3,cs,1,RI); loop 507 lib/gocr/remove.c i3 = loop(pp,j3,y ,x1-j3,cs,0,RI); loop 524 lib/gocr/remove.c if( loop(pp,j2-xa,i3,i3-y0,cs,0,UP) > (y1-y0+1)/2 loop 525 lib/gocr/remove.c && loop(pp,j2,(y0+y1)/2,xa+1,cs,0,LE) >=xa ){ xb=-xa; break; } loop 526 lib/gocr/remove.c if( loop(pp,j2+xa,i3,i3-y0,cs,0,UP) > (y1-y0+1)/2 loop 527 lib/gocr/remove.c && loop(pp,j2,(y0+y1)/2,xa+1,cs,0,RI) >=xa ){ xb= xa; break; } loop 552 lib/gocr/remove.c j1+=loop(pp,j1,y1 ,x1-x0,cs,0,RI); loop 553 lib/gocr/remove.c x =loop(pp,j1,y1 ,x1-x0,cs,1,RI); if(j1+x>x1+1) break; loop 554 lib/gocr/remove.c y =loop(pp,j1,y1-1,x1-x0,cs,1,RI); if(y>x) x=y; if(j1+x>x1+1) break; loop 557 lib/gocr/remove.c i3 =loop(pp,j1,y1 ,y1-y0,cs,0,UP); if(8*i3>y1-y0) break; loop 558 lib/gocr/remove.c i3+=loop(pp,j1,y1-i3,y1-y0,cs,1,UP); if(8*i3>y1-y0) break; loop 564 lib/gocr/remove.c if( loop(pp,j1,y,x1-x0,cs,0,RI)<1 ) { j1+=x; continue; } loop 566 lib/gocr/remove.c j2 = j1 + loop(pp,j1,y,x1-x0,cs,0,RI); loop 567 lib/gocr/remove.c j2 = j2 + loop(pp,j2,y,x1-x0,cs,1,RI); loop 568 lib/gocr/remove.c i3 = loop(pp,j2,y,x1-x0,cs,0,RI); if(i3<2){j1+=x;continue;} loop 570 lib/gocr/remove.c j3 = j2 + loop(pp,j2,y ,x1-j2,cs,0,RI); loop 571 lib/gocr/remove.c i3 = j2 + loop(pp,j2,y-1,x1-j2,cs,0,RI); if(i3>j3)j3=i3; loop 572 lib/gocr/remove.c j3 = j3 + loop(pp,j3,y ,x1-j3,cs,1,RI); loop 573 lib/gocr/remove.c i3 = loop(pp,j3,y,x1-j3,cs,0,RI); loop 589 lib/gocr/remove.c if( loop(pp,j2-xa,y0,y1-y0,cs,0,DO) > (y1-y0+1)/2 loop 590 lib/gocr/remove.c && loop(pp,j2,(y0+y1)/2,xa+1,cs,0,LE) >=xa ){ xb=-xa; break; } loop 591 lib/gocr/remove.c if( loop(pp,j2+xa,y0,y1-y0,cs,0,DO) > (y1-y0+1)/2 loop 592 lib/gocr/remove.c && loop(pp,j2,(y0+y1)/2,xa+1,cs,0,RI) >=xa ){ xb= xa; break; } loop 97 src/gif2swf.c int i, loop = -1; loop 111 src/gif2swf.c loop = GET16(&ext->Bytes[1]); loop 117 src/gif2swf.c return loop; loop 3235 src/swfc.c const char*loop = lu(args, "loop"); loop 3243 src/swfc.c if(s_playsound(name, parseInt(loop), nm, 0)) { loop 53 src/wav2swf.c static int loop = 0; loop 78 src/wav2swf.c loop = atoi(val); loop 349 src/wav2swf.c info.loops = loop;