Break 469 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 472 lib/gocr/ocr0.c if( loop(box1->p,x0,y0+dy/2,x1-x0,cs,0,RI)>dx/3 ) Break; // rough test Break 473 lib/gocr/ocr0.c if( loop(box1->p,x0+dx/2,y0,y1-y0,cs,0,DO)>dy/3 ) Break; Break 474 lib/gocr/ocr0.c if( loop(box1->p,x0+dx/2,y1,y1-y0,cs,0,UP)>dy/3 ) Break; Break 476 lib/gocr/ocr0.c && num_cross(x0,x1,y0+dy/4+1,y0+dy/4+1,box1->p,cs) > 2 ) Break; // gt Break 481 lib/gocr/ocr0.c i=loop(box1->p,x0,y0+dy/2,x1-x0,cs,0,RI); if( i>dx/2 ) Break; Break 482 lib/gocr/ocr0.c j=loop(box1->p,x0,y0 ,x1-x0,cs,0,RI); if( j<i ) Break; Break 483 lib/gocr/ocr0.c j=loop(box1->p,x0,y1 ,x1-x0,cs,0,RI); if( j<i ) Break; Break 484 lib/gocr/ocr0.c i=loop(box1->p,x0+dx/2,y0,y1-y0,cs,0,DO); if( i>dx/2 ) Break; Break 486 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y0,y1-y0,cs,0,DO); if( j<i ) Break; Break 487 lib/gocr/ocr0.c j=loop(box1->p,x1 ,y0,y1-y0,cs,0,DO); if( j<i ) Break; Break 488 lib/gocr/ocr0.c i=loop(box1->p,x0+dx/2,y1,y1-y0,cs,0,UP); if( i>dx/2 ) Break; Break 489 lib/gocr/ocr0.c j=loop(box1->p,x0 ,y1,y1-y0,cs,0,UP); if( j<i ) Break; Break 490 lib/gocr/ocr0.c j=loop(box1->p,x1 ,y1,y1-y0,cs,0,UP); if( j<i ) Break; Break 494 lib/gocr/ocr0.c if (dx>3 && j>=dx/4) Break; // ~g 4x6font Break 496 lib/gocr/ocr0.c if( y==dy/2 ) Break; // v0.2.5 ~ bad_t Break 499 lib/gocr/ocr0.c if( dx>4 && dy>5 && (i<dx/4-1 || i==0) ) Break; // ~g but 4x6-e Break 516 lib/gocr/ocr0.c } if (3*i2>2*i1) Break; // not accepted, if right line is not very thinn Break 524 lib/gocr/ocr0.c if (x<dx/2) Break; Break 527 lib/gocr/ocr0.c if( i ) Break; Break 539 lib/gocr/ocr0.c if ( num_cross(x0,x1,y,y,box1->p,cs) != 1 ) Break; // except "geschwungenem e" Break 541 lib/gocr/ocr0.c && num_cross(x0,x1-dx/3,y+1,y+1,box1->p,cs) != 1 ) Break; Break 544 lib/gocr/ocr0.c if( sdata->hchar ) Break; // ~ \it t Break 548 lib/gocr/ocr0.c if(j<2*dx/4) Break; Break 550 lib/gocr/ocr0.c if( sdata->holes.num>0 && sdata->holes.hole[0].y0 > y-y0) Break; Break 551 lib/gocr/ocr0.c if( sdata->holes.num>1 && sdata->holes.hole[1].y0 > y-y0) Break; Break 559 lib/gocr/ocr0.c if (y>y0+dy/4 && y<y1-dy/4 && x>dx/2) Break; // s Break 565 lib/gocr/ocr0.c if (sdata->gchar) Break; // ~p Break 573 lib/gocr/ocr0.c && loop(box1->p,x0,y0+dy/8,dx,cs,0,RI)<=x ) Break; Break 575 lib/gocr/ocr0.c && loop(box1->p,x0,y1-dy/8,dx,cs,0,RI)<=x ) Break; Break 578 lib/gocr/ocr0.c if( loop(sdata->bp,0,dy-1-dy/8,dx,cs,0,RI)>x && dy>16) Break; // some Q Break 593 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 597 lib/gocr/ocr0.c if (aa[3][2]>d/2) Break; /* [2] = distance, ~dj... */ Break 598 lib/gocr/ocr0.c if (aa[0][2]>d/2) Break; /* upper left end */ Break 599 lib/gocr/ocr0.c if (aa[1][2]>d/2) Break; /* lower left end */ Break 600 lib/gocr/ocr0.c if (aa[2][2]>d/2) Break; /* lowerright end */ Break 616 lib/gocr/ocr0.c } if (i!=aa[2][3]) Break; // ~AHKMNRX Break 624 lib/gocr/ocr0.c if (2*box1->frame_vector[i][0] < aa[0][0]+aa[1][0]-1-dx/16) Break; Break 631 lib/gocr/ocr0.c if( i ) Break; Break 634 lib/gocr/ocr0.c if( i ) Break; Break 638 lib/gocr/ocr0.c } if( i ) Break; Break 640 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,DO,ST); if( y>y0+dy/4 ) Break; Break 641 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,ST,DO); if( y>y0+dy/3 ) Break; Break 642 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,RI,DO); if( x<=x1 || y>y0+dy/2 ) Break; Break 644 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,UP,ST); if( y<y1-dy/4 ) Break; Break 645 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,ST,UP); if( y<y0-dy/3 ) Break; Break 646 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,RI,UP); if( x<=x1 || y<y0+dy/2 ) Break; Break 648 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,DO,ST); if( y>y0+dy/4 ) Break; Break 649 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,ST,DO); if( y>y0+dy/3 ) Break; Break 651 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,LE,ST); if( x<x0 ) Break; Break 654 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,DO,ST); if( y>y1-dy/3 ) Break; Break 656 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; Break 657 lib/gocr/ocr0.c i=loop(box1->p,x0,y0+dy/4,dx,cs,0,RI); if(i>dx/2) Break; Break 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; Break 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; Break 666 lib/gocr/ocr0.c } if( y<y1-dy/9 ) Break; // t Break 668 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x0+dx/2,y0+dy/4,y1-dy/4,box1->p,cs,1) == 0 ) Break; Break 693 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 696 lib/gocr/ocr0.c if( (i<2 || i>3) && j!=2 ) Break; Break 697 lib/gocr/ocr0.c if( loop(sdata->bp,dx/2,0,dy,cs,0,DO) > dy/8 && sdata->hchar ) Break; /* tt */ Break 701 lib/gocr/ocr0.c && num_cross(dx/2,dx-1,y ,y ,sdata->bp,cs) < 1 ) Break; // n rr Break 703 lib/gocr/ocr0.c y=loop(sdata->bp,dx-1-dx/4,0,dy,cs,0,DO); if(y>dy/2) Break; Break 704 lib/gocr/ocr0.c if(y>1)if( get_bw(dx-1-dx/4,dx-1,0,y-2,sdata->bp,cs,1) == 1 ) Break; Break 708 lib/gocr/ocr0.c && num_cross(dx/2,dx-1,y ,y ,sdata->bp,cs) == 0 ) Break; // ~p Break 713 lib/gocr/ocr0.c x =loop(sdata->bp,0,y,dx ,cs,0,RI); if(x> dx/4) Break; // search 1st v-line Break 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 Break 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 Break 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 Break 722 lib/gocr/ocr0.c if(x <i2) Break; // gap detected Break 724 lib/gocr/ocr0.c if(x==i2) Break; // no gap detected (glued serifs ??? ) Break 731 lib/gocr/ocr0.c if(x <i2) Break; // unusual property for n Break 742 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2-dy/8,dy/2-dy/8,sdata->bp,cs) != 3 ) Break; Break 743 lib/gocr/ocr0.c i =loop(sdata->bp,0,dy/2-dy/8,dx,cs,0,RI); if (i>dx/4) Break; Break 744 lib/gocr/ocr0.c i+=loop(sdata->bp,i,dy/2-dy/8,dx,cs,1,RI); if (i>dx/2) Break; Break 746 lib/gocr/ocr0.c if( num_cross(i,i, 0,dy/2-2*dy/8,sdata->bp,cs) != 0 ) Break; Break 748 lib/gocr/ocr0.c if( num_cross(i,i,dy/2+1, dy-1,sdata->bp,cs) != 0 ) Break; Break 753 lib/gocr/ocr0.c if( get_bw(dx-1-i/2,dx-1-i/2,0,dy/2,sdata->bp,cs,1) == 1 ) Break; // ~rr Break 755 lib/gocr/ocr0.c if( get_bw(dx-1-i ,dx-1-i ,0,dy/2,sdata->bp,cs,1) == 0 ) Break; // ~rv Break 759 lib/gocr/ocr0.c && get_bw(dx/2,dx/2,dy/4,dy-2,sdata->bp,cs,1) == 1 ) Break; // ~P Break 765 lib/gocr/ocr0.c || num_cross( 0,dx-1,1 ,1 ,sdata->bp,cs) >2 ) Break; Break 771 lib/gocr/ocr0.c if (sdata->hchar && i-x>1) Break; // ß Break 776 lib/gocr/ocr0.c if (sdata->hchar && x>0) Break; // fl Break 806 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 811 lib/gocr/ocr0.c && dx>4 ) Break; Break 813 lib/gocr/ocr0.c && num_cross(0,dx-1, dy/8, dy/8,bp,cs)<2 ) Break; /* fat M */ Break 814 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)<2 ) Break; Break 817 lib/gocr/ocr0.c x = loop(bp,dx-1-x,dy-1,dx,cs,1,LE); if( x>dx/2 ) Break; Break 820 lib/gocr/ocr0.c + loop(bp,dx-1,7*dy/16,dx,cs,0,LE) > dx/2 ) Break; // ~K Break 826 lib/gocr/ocr0.c < loop(bp, 0,dy-1-dy/16,dx,cs,0,RI)-dx/32 ) Break; // ~it_u Break 829 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs)> 2 ) Break; // ~it_u Break 831 lib/gocr/ocr0.c && num_cross(dx/2,dx/2,3*dy/4, dy-1,bp,cs)> 0 ) Break; // ~it_v Break 836 lib/gocr/ocr0.c < loop(bp,2*dx/4,dy-1,dy,cs,0,UP) ) Break; // ~N Break 840 lib/gocr/ocr0.c < loop(bp,2*dx/4,dy-1-dy/8,dy,cs,0,UP) ) Break; // ~serif_N Break 854 lib/gocr/ocr0.c if( loop(bp,dx-x,y-1,dy,cs,0,UP)>y-2 ) Break; // ~N Break 863 lib/gocr/ocr0.c if (!sdata->hchar) Break; // rm Break 866 lib/gocr/ocr0.c if (i2==0 && dx>8 && dy>12) Break; // glued and bad splitted serifen-MN Break 869 lib/gocr/ocr0.c if (sdata->holes.num != 0) Break; Break 874 lib/gocr/ocr0.c || num_cross(0 ,i1 ,i2-1,i2-1,bp,cs)!=2 ) Break; // too hard ??? Break 879 lib/gocr/ocr0.c && num_cross(0,dx-1,2,2,bp,cs)!=2 ) Break; Break 890 lib/gocr/ocr0.c if( i1>=i2 ) Break; // no good M Break 893 lib/gocr/ocr0.c if( i1>=i2 ) Break; // no good M Break 896 lib/gocr/ocr0.c if( i1<=i2 ) Break; // no good M Break 899 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/4,dy/4,bp,cs)==2 && !hchar ) Break; // ~ \it u Break 917 lib/gocr/ocr0.c || num_cross(2+dx/6,dx-3-dx/6,y-1,y-1,bp,cs)==0 ) Break; // ~H bad! Break 926 lib/gocr/ocr0.c < loop(bp,0,dy-1-dy/8,dx,cs,0,RI)-dx/16 ) Break; // ~wi glued Break 948 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 955 lib/gocr/ocr0.c if (aa[0][2]>d) Break; Break 956 lib/gocr/ocr0.c if (aa[1][2]>d) Break; Break 957 lib/gocr/ocr0.c if (aa[2][2]>d) Break; Break 958 lib/gocr/ocr0.c if (aa[3][2]>d) Break; Break 959 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<dx/2) Break; Break 960 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<dx/2) Break; Break 961 lib/gocr/ocr0.c if (aa[1][1]-aa[0][1]<dy/2) Break; Break 962 lib/gocr/ocr0.c if (aa[2][1]-aa[3][1]<dy/2) Break; Break 963 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<4-1) Break; /* to small to hold an N */ Break 964 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<4-1) Break; /* to small */ Break 965 lib/gocr/ocr0.c if (abs(aa[3][1]-aa[0][1])>(dy+2)/5) Break; /* glued tu */ Break 968 lib/gocr/ocr0.c d=line_deviation(box1, aa[0][3], aa[1][3]); if (d>2*sq(1024/4)) Break; Break 970 lib/gocr/ocr0.c d=line_deviation(box1, aa[2][3], aa[3][3]); if (d>2*sq(1024/4)) Break; Break 977 lib/gocr/ocr0.c if (y-y0 > 5*dy/8) Break; Break 978 lib/gocr/ocr0.c if (x-x0 > 5*dx/8) Break; Break 989 lib/gocr/ocr0.c if (dbg[0] > sq(1024/4)) Break; Break 991 lib/gocr/ocr0.c if (dx>4 && dbg[1] > sq(1024/3)) Break; // d=0..2*sq(1024) Break 1000 lib/gocr/ocr0.c if (y-y0 < 3*dy/8) Break; Break 1001 lib/gocr/ocr0.c if (x-x0 < 3*dx/8) Break; Break 1005 lib/gocr/ocr0.c && y<=box1->frame_vector[i1][1]) Break; Break 1011 lib/gocr/ocr0.c if (dbg[2] > sq(1024/4)) Break; Break 1013 lib/gocr/ocr0.c if (dbg[3] > sq(1024/3)) Break; Break 1020 lib/gocr/ocr0.c -box1->frame_vector[i1][0]<=dx/8) Break; /* nonsignificant distance */ Break 1057 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 1061 lib/gocr/ocr0.c if (aa[3][2]<d/4) Break; /* [2] = distance, ~BCDEF... */ Break 1062 lib/gocr/ocr0.c if (aa[0][2]>d/2) Break; /* upper left end */ Break 1063 lib/gocr/ocr0.c if (aa[1][2]>d/2) Break; /* lower left end */ Break 1064 lib/gocr/ocr0.c if (aa[2][2]>d/2) Break; /* lowerright end */ Break 1085 lib/gocr/ocr0.c if (box1->frame_vector[i4][1]-y0<dy/4) Break; // ~MN Break 1086 lib/gocr/ocr0.c if (y1-box1->frame_vector[i4][1]<dy/4) Break; // ~BCDEGIJLOQSUYZ Break 1095 lib/gocr/ocr0.c if( get_bw(0 ,dx/2,dy/8 ,dy/8 ,bp,cs,1) != 1 ) Break; Break 1096 lib/gocr/ocr0.c if( get_bw(0 ,dx/2,dy/2 ,dy/2 ,bp,cs,1) != 1 ) Break; Break 1097 lib/gocr/ocr0.c if( get_bw(dx/2 ,dx-1,dy-1-dy/3,dy-1-dy/3,bp,cs,1) != 1 ) Break; Break 1098 lib/gocr/ocr0.c if( get_bw(dx/2 ,dx/2,dy/5 ,dy-1-dy/3,bp,cs,1) != 1 ) Break; Break 1099 lib/gocr/ocr0.c if( get_bw(dx-1-dx/3,dx-1,0 ,1 ,bp,cs,1) == 1 ) Break; Break 1100 lib/gocr/ocr0.c if( get_bw(dx-1-dx/3,dx-1,1 ,dy/6 ,bp,cs,1) == 1 ) Break; Break 1102 lib/gocr/ocr0.c if( get_bw(dx-1-dx/3,dx-1,dy/6 ,dy/5 ,bp,cs,1) == 1 ) Break; Break 1103 lib/gocr/ocr0.c if( get_bw(dx-1-dx/3,dx-1,dy-1-dy/4,dy-1 ,bp,cs,1) == 0 ) Break; // s- Break 1106 lib/gocr/ocr0.c if( x>=x1-dx/3 ) Break; Break 1109 lib/gocr/ocr0.c } if( i ) Break; Break 1112 lib/gocr/ocr0.c } if( i ) Break; Break 1116 lib/gocr/ocr0.c && sdata->holes.hole[0].y1 < dy-1-dy/3) Break; Break 1121 lib/gocr/ocr0.c < loop(bp,dx-1,dy/2,dx,cs,0,LE)) Break; // ~k Okt00 Break 1180 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 1182 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/4-1,dy/4-1,bp,cs) != 2 ) Break; Break 1184 lib/gocr/ocr0.c && num_cross(0,dx-1,3*dy/4+1,3*dy/4+1,bp,cs) != 2 ) Break; Break 1186 lib/gocr/ocr0.c + loop(bp,dx-1,dy/8,dx,cs,0,LE)>dx/2 ) Break; // ~A Break 1190 lib/gocr/ocr0.c if( !i ) Break; Break 1194 lib/gocr/ocr0.c if( !i ) Break; // ~K Jul00 Break 1198 lib/gocr/ocr0.c if( i<=dx/2 ) Break; ya-=y0; Break 1200 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+1,ya+1,bp,cs) != 1 ) Break; /* Dec00 */ Break 1204 lib/gocr/ocr0.c if ( y<dy-dy/4 ) Break; Break 1207 lib/gocr/ocr0.c } if( i ) Break; Break 1210 lib/gocr/ocr0.c } if( i ) Break; Break 1213 lib/gocr/ocr0.c } if( i ) Break; Break 1216 lib/gocr/ocr0.c } if( i ) Break; Break 1219 lib/gocr/ocr0.c } if( i ) Break; Break 1220 lib/gocr/ocr0.c if( get_bw(x1-dx/8, x1 , y0, y0+dy/8,box1->p,cs,1) != 1 ) Break; Break 1221 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/8, y1-dy/8, y1,box1->p,cs,1) != 1 ) Break; Break 1222 lib/gocr/ocr0.c i1=loop(bp,dx-1, dy/4,dx,cs,0,LE); if(i1>dx/2) Break; Break 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; Break 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; Break 1225 lib/gocr/ocr0.c if(abs(i1+i3-2*i2)>dx/16+1) Break; Break 1227 lib/gocr/ocr0.c if( num_cross(x0,x1,y0,y1, box1->p,cs) < 2 ) Break; // sure N Break 1237 lib/gocr/ocr0.c if (i<dx/2-1 && 5*i1>6*i2 && 5*i3>6*i2 && i1>i2 && i3>i2 ) Break; Break 1242 lib/gocr/ocr0.c -loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)>dx/4 ) Break; // ~K Break 1244 lib/gocr/ocr0.c if (sdata->holes.num != 0) Break; Break 1267 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 1271 lib/gocr/ocr0.c if (aa[3][2]<d/4) Break; /* [2] = distance, ~BCDEF... */ Break 1272 lib/gocr/ocr0.c if (aa[0][2]>d/2) Break; /* upper left end */ Break 1273 lib/gocr/ocr0.c if (aa[1][2]>d/2) Break; /* lower left end */ Break 1274 lib/gocr/ocr0.c if (aa[2][2]>d/2) Break; /* lowerright end */ Break 1295 lib/gocr/ocr0.c if (box1->frame_vector[i4][1]-y0<dy/4) Break; // ~MN Break 1296 lib/gocr/ocr0.c if (y1-box1->frame_vector[i4][1]<dy/4) Break; // ~BCDEGIJLOQSUYZ Break 1302 lib/gocr/ocr0.c if (x1-box1->frame_vector[i][0]<dy/4) Break; // h Break 1307 lib/gocr/ocr0.c && num_cross(0, dx-1,1,1,bp,cs) != 1 ) Break; Break 1309 lib/gocr/ocr0.c || num_cross(0,3*dx/4,3*dy/16,3*dy/16,bp,cs) != 1 ) Break; Break 1311 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 2 ) Break; Break 1314 lib/gocr/ocr0.c && num_cross(dx-2,dx-2,dy/4,dy-1,bp,cs) != 2 ) Break; Break 1316 lib/gocr/ocr0.c i2=loop(bp,0,dy/2 ,dx,cs,0,RI);if(i2>dx/2) Break; Break 1318 lib/gocr/ocr0.c if(abs(i1+i3-2*i2)>dx/16+1 || i1<i3-1) Break; // v-line on left side? Break 1319 lib/gocr/ocr0.c if( get_bw(x0 ,x0+dx/2,y0 ,y0+dy/4,box1->p,cs,1) != 1 ) Break; Break 1320 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x1, y1-dy/3,y1 ,box1->p,cs,1) != 1 ) Break; Break 1321 lib/gocr/ocr0.c if( get_bw(x1-dx/4,x1, y0 ,y0+3*dy/16,box1->p,cs,1) == 1 ) Break; Break 1322 lib/gocr/ocr0.c if( get_bw(x1-dx/4,x1, y0+dy/4,y1-dy/4,box1->p,cs,1) != 1 ) Break; //~1 Break 1323 lib/gocr/ocr0.c if( get_bw(x1-dx/4,x1, y1-dy/8,y1 ,box1->p,cs,1) != 1 ) Break; Break 1325 lib/gocr/ocr0.c if (sdata->holes.hole[0].y0 > dy/4) Break; Break 1329 lib/gocr/ocr0.c if( y<y0+dy/2 ) Break; Break 1332 lib/gocr/ocr0.c if( i ) Break; // no vertikal line! Break 1338 lib/gocr/ocr0.c if (x + loop(bp,dx-1-x,y,dx,cs,1,LE)/2 <dx/4) Break; Break 1342 lib/gocr/ocr0.c i =loop(bp,dx-1,dy-2,dx,cs,0,LE); if(i>dx/2) Break; Break 1344 lib/gocr/ocr0.c if( get_line(x,y,dx-1-i,dy-1,bp,cs,100)<60 ) Break; Break 1347 lib/gocr/ocr0.c if( y==y1 ) Break; Break 1353 lib/gocr/ocr0.c || sdata->holes.hole[0].y0< dy/4) Break; Break 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 Break 1384 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 1387 lib/gocr/ocr0.c if( y<dy-dy/8 ) Break; Break 1395 lib/gocr/ocr0.c } if( i ) Break; Break 1402 lib/gocr/ocr0.c } if( y<=dy/8 ) Break; if (y<dy/4) ad=80*ad/100; Break 1405 lib/gocr/ocr0.c } if( i ) Break; Break 1408 lib/gocr/ocr0.c } if( i ) Break; Break 1412 lib/gocr/ocr0.c } if( i ) Break; Break 1416 lib/gocr/ocr0.c } if( i ) Break; Break 1417 lib/gocr/ocr0.c if( get_bw(x1-dx/3,x1,y0,y0+dy/8,box1->p,cs,1) != 1 ) Break; // ~k Break 1421 lib/gocr/ocr0.c <2*loop(bp,0, dy/2,dx,cs,0,RI)-2-dx/32 ) Break; // ~X Break 1423 lib/gocr/ocr0.c i=loop(box1->p,x1,y0+ dy/4,x1-x0+1,cs,0,LE); if(i>dx/2) Break; Break 1426 lib/gocr/ocr0.c if(j<=i ) Break; i=j; Break 1427 lib/gocr/ocr0.c j=loop(box1->p,x1,y1-dy/4,x1-x0+1,cs,0,LE); if(j>=i ) Break; Break 1464 lib/gocr/ocr0.c if( get_line2(xa,ya,xc,yc,bp,cs,100)<95 ) Break; Break 1466 lib/gocr/ocr0.c if( xe>5*dx/8 || xb>5*dx/8 ) Break; // ~{\it n} Break 1469 lib/gocr/ocr0.c if( get_line2(xb-i/2,yb,xd,yd,bp,cs,100)<95 ) Break; Break 1470 lib/gocr/ocr0.c if( get_line2(xe,ye,xf,yf,bp,cs,100)<95 ) Break; // right down Break 1471 lib/gocr/ocr0.c xe+=loop(bp,xe,ye,dx,cs,1,RI); if( xe>=xf ) Break; // ~{\it n} Break 1473 lib/gocr/ocr0.c if( dy<16 && !hchar ) Break; Break 1476 lib/gocr/ocr0.c && loop(bp,2,1,dy,cs,1,DO)<=3*dx/4 ) Break; // ~x Break 1481 lib/gocr/ocr0.c if (sdata->holes.hole[0].y1 < dy-1-dy/3) Break; Break 1519 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 1523 lib/gocr/ocr0.c if (aa[3][2]>d/2) Break; /* [2] = distance, ~BCDEF... */ Break 1524 lib/gocr/ocr0.c if (aa[0][2]>d ) Break; /* upper left end */ Break 1553 lib/gocr/ocr0.c if (box1->frame_vector[i2][0]-x0>dx/2) Break; // ~3 Break 1557 lib/gocr/ocr0.c -box1->frame_vector[i9][0]>dx/8) Break; // ~3 Break 1559 lib/gocr/ocr0.c if( (box1->dots) ) Break; // Bold-face is gchar Break 1560 lib/gocr/ocr0.c if (dy<=box1->m3-box1->m2+1) Break; Break 1568 lib/gocr/ocr0.c } if( y<=5*dy/8 ) Break; y=j;// if( y>dy/2 || y<dy/8 ) Break; Break 1573 lib/gocr/ocr0.c && num_cross((dx+1)/2,dx-1,i,i,bp,cs) > 0 ) Break; // ~Y Break 1576 lib/gocr/ocr0.c && loop(bp,3*dx/4-1,0,dy,cs,0,DO)>dy/8) Break; // upper bow Break 1578 lib/gocr/ocr0.c if (num_cross(0,dx-1,i,i,bp,cs)!=1) Break; Break 1588 lib/gocr/ocr0.c if (x<2*i && x<dx) Break; Break 1605 lib/gocr/ocr0.c if ((2*x<dx && j<=dx/2) || 3*x<dx) Break; // bar should be not to small Break 1608 lib/gocr/ocr0.c if (i<dy) Break; // check for v-line Break 1614 lib/gocr/ocr0.c <=loop(bp,dx-1, y ,dx,cs,0,LE) ) Break; // ~1 Break 1617 lib/gocr/ocr0.c >loop(bp,0, 1,dx,cs,0,RI) ) Break; // ~X Break 1622 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs)!=1 ) Break; // ~* etc. Break 1635 lib/gocr/ocr0.c if (sdata->holes.num != 0) Break; // ~e Break 1640 lib/gocr/ocr0.c if(i1>i2+dx/4) Break; // ~t ~e Break 1642 lib/gocr/ocr0.c if( loop(bp,0,3*dy/4,dx,cs,0,RI)<i1-dx/4 ) Break; Break 1645 lib/gocr/ocr0.c if( loop(bp,dx-1,dy-1,dy,cs,0,UP)<dx/2 ) Break; // ~c Break 1649 lib/gocr/ocr0.c if( loop(bp,dx-1, dy/4 ,dx,cs,0,LE)>2*dx/3 ) Break; // ~5 ~S Break 1654 lib/gocr/ocr0.c && num_cross(x1-dx/8,x1-dx/8,y0,y1,box1->p,cs)!=2 ) Break; // ~r Break 1658 lib/gocr/ocr0.c && num_cross(x0,x1,y0+dy/4,y0+dy/4,box1->p,cs)>1 ) Break; // ~H Break 1708 lib/gocr/ocr0.c if (sdata->holes.num < 2) Break; /* tolerant against a tiny hole */ Break 1711 lib/gocr/ocr0.c if( !i ) Break; Break 1714 lib/gocr/ocr0.c if( !i ) Break; Break 1715 lib/gocr/ocr0.c if( get_bw(x1,x1 , y0 , y0 ,box1->p,cs,1) == 1 ) Break; Break 1717 lib/gocr/ocr0.c if( num_cross(x1-dx/3, x1-dx/3,y0,y1 ,box1->p,cs) != 3 ) Break; Break 1719 lib/gocr/ocr0.c y = loop(box1->p,x0+dx/2,y1 ,dy,cs,0,UP); if (y>1+dy/8) Break; Break 1720 lib/gocr/ocr0.c y+= loop(box1->p,x0+dx/2,y1-y,dy,cs,1,UP); if (y>dy/3) Break; Break 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; Break 1724 lib/gocr/ocr0.c if( num_cross(0,dx-1,y-y0+1,y-y0+1,bp,cs) != 2 ) Break; Break 1727 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4-1, dy/4-1,bp,cs) != 2 ) Break; Break 1729 lib/gocr/ocr0.c if( y==3*dy/4 ) Break; Break 1734 lib/gocr/ocr0.c if( get_bw(x0,x0,y1,y1,box1->p,cs,1) == 0 ) Break; // ~8 Break 1750 lib/gocr/ocr0.c > loop(box1->p,x0,y1- 3 ,dx,cs,0,RI)+dx/32 ) Break; // ~8 Aug00 Break 1753 lib/gocr/ocr0.c if (sdata->holes.num != 2) Break; Break 1755 lib/gocr/ocr0.c && sdata->holes.hole[1].y0 < y-1 ) Break; Break 1757 lib/gocr/ocr0.c && sdata->holes.hole[1].y1 > y+1 ) Break; Break 1765 lib/gocr/ocr0.c } if( y<dy-dy/8 ) Break; // ~8 bad_a Break 1770 lib/gocr/ocr0.c } if( y<dy/4 ) Break; // ~ff (serifen?) Break 1776 lib/gocr/ocr0.c +loop(bp,0,7*dy/8,dx,cs,0,RI) > 2*x+1 ) Break; // not konvex! Break 1792 lib/gocr/ocr0.c if (sdata->holes.num < 1) Break; /* tolerant against a tiny hole */ Break 1794 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2, y , y ,box1->p,cs,1) != 1 ) Break; Break 1795 lib/gocr/ocr0.c if(y<y1-dy/32-1) Break; Break 1796 lib/gocr/ocr0.c if( get_bw(x0+ dx/2, x0+dx/2, y1-dy/3, y1 ,box1->p,cs,1) != 1 ) Break; Break 1797 lib/gocr/ocr0.c if( get_bw(x1- dx/2, x1 , y1-dy/3, y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 1798 lib/gocr/ocr0.c if( get_bw(x1- dx/3, x1 , y0 , y0+dy/5,box1->p,cs,1) == 1 ) Break; Break 1799 lib/gocr/ocr0.c if( get_bw(x1-4*dx/9, x1 , y0+dy/5, y0+dy/5,box1->p,cs,1) == 1 ) Break; Break 1803 lib/gocr/ocr0.c num_cross(x0,x1,y0+dy/5 ,y0+dy/5 ,box1->p,cs) > 1 ) Break; // fat b Break 1806 lib/gocr/ocr0.c if( i<2*j ) Break; // v024a4 Break 1807 lib/gocr/ocr0.c if (sdata->holes.num != 1) Break; Break 1808 lib/gocr/ocr0.c if (sdata->holes.hole[0].y0 < dy/4) Break; Break 1812 lib/gocr/ocr0.c if( num_hole( x0, x1 , y0+dy/4, y1,box1->p,cs,NULL) != 1 ) Break; Break 1814 lib/gocr/ocr0.c j=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); if(j>i) Break; Break 1835 lib/gocr/ocr0.c if (sdata->holes.num < 1) Break; /* tolerant against a tiny hole */ Break 1836 lib/gocr/ocr0.c if( get_bw(x0 ,x0+dx/3,y0+dy/2,y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1837 lib/gocr/ocr0.c if( get_bw(x1-dx/3,x1 ,y0+dy/2,y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1838 lib/gocr/ocr0.c if( get_bw(x1 ,x1 ,y0 ,y0+dy/16,box1->p,cs,1) == 1 ) Break; Break 1839 lib/gocr/ocr0.c if( get_bw(x1-dx/2,x1 ,y0+dy/4,y0+dy/4 ,box1->p,cs,1) != 1 ) Break; Break 1841 lib/gocr/ocr0.c if( num_cross(x1-dx/3,x1-dx/3,y0 ,y1 ,box1->p,cs) != 2 ) Break; Break 1842 lib/gocr/ocr0.c if( num_cross(x0 ,x1 ,y0+dy/3,y0+dy/3,box1->p,cs) != 2 ) Break; Break 1843 lib/gocr/ocr0.c if( num_cross(x0 ,x1 ,y1-dy/3,y1-dy/3,box1->p,cs) != 2 ) Break; Break 1844 lib/gocr/ocr0.c if (sdata->holes.num != 1) Break; Break 1845 lib/gocr/ocr0.c if (sdata->holes.hole[0].y0 > dy/3) Break; Break 1846 lib/gocr/ocr0.c if (sdata->holes.hole[0].y1 < dy-1-dy/3) Break; Break 1854 lib/gocr/ocr0.c if (y>=dy/5 ) Break; Break 1861 lib/gocr/ocr0.c if (y<dy/3 ) Break; Break 1868 lib/gocr/ocr0.c if (y>2*dy/3 ) Break; Break 1870 lib/gocr/ocr0.c loop(bp,dx-1,dy-2-dy/16,dx,cs,0,LE) ) Break; // P Break 1874 lib/gocr/ocr0.c if (get_bw(dx/2,dx-1,dy-1-y,dy-1-y,bp,cs,1)==1) Break; // ~A Break 1879 lib/gocr/ocr0.c if( ya<dy/2 && ya>dy/16 && ya>yb ) Break; // ~O Break 1900 lib/gocr/ocr0.c if (sdata->holes.num < 1) Break; /* tolerant against a tiny hole */ Break 1901 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2, y1-dy/6, y1-dy/9,box1->p,cs,1) != 1 ) Break; Break 1902 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2, y1-dy/3, y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 1903 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x1 , y1-dy/3, y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 1904 lib/gocr/ocr0.c if( get_bw(x1-dx/4, x1 , y0+dy/8, y0+dy/8,box1->p,cs,1) != 1 ) Break; Break 1905 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2, y1-dy/4, y1 ,box1->p,cs,1) != 1 ) Break; Break 1907 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/3, y0 , y0+dy/5,box1->p,cs,1) == 1 ) Break; Break 1908 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/3, y0 , y0+dy/6,box1->p,cs,1) == 1 ) Break; Break 1909 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/4, y1-dy/8, y1 ,box1->p,cs,1) != 1 ) Break; Break 1910 lib/gocr/ocr0.c if( get_bw(x0+dx/2-1,x0+dx/2,y1-dy/8, y1 ,box1->p,cs,1) != 1 ) Break; // ~"A Break 1912 lib/gocr/ocr0.c loop(bp,bp->x-1,3*bp->y/4,x1-x0,cs,0,LE)+1 ) Break; Break 1915 lib/gocr/ocr0.c } if( i ) Break; Break 1923 lib/gocr/ocr0.c } if( i ) Break; Break 1924 lib/gocr/ocr0.c if (sdata->holes.num<1) Break; Break 1926 lib/gocr/ocr0.c if (dx<6) Break; ad=95*ad/100; } // glued j above 8 (4x6 sample) Break 1928 lib/gocr/ocr0.c if ( sdata->holes.hole[0].y0 < dy/4 ) Break; Break 1929 lib/gocr/ocr0.c if (dy-sdata->holes.hole[0].y1 > dy/4+1) Break; // glued et Break 1932 lib/gocr/ocr0.c if (dy>15) { Break; } else ad=96*ad/100; Break 1953 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 1954 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x0+dx/2,y0,y0+dy/8,box1->p,cs,1) != 1 ) Break; Break 1955 lib/gocr/ocr0.c if( get_bw(x0,x0+dx/4,y1-dy/4,y1-dy/4,box1->p,cs,1) != 1 ) Break; Break 1956 lib/gocr/ocr0.c if( get_bw(x0,x0+dx/2,y0+dy/4,y0+dy/4,box1->p,cs,1) != 1 ) Break; Break 1961 lib/gocr/ocr0.c } if (y<dy/4 || x<dx/2) Break; Break 1966 lib/gocr/ocr0.c if( i ) Break; Break 1973 lib/gocr/ocr0.c if( i ) Break; Break 1981 lib/gocr/ocr0.c if( i ) Break; Break 1986 lib/gocr/ocr0.c if( !i ) Break; Break 1990 lib/gocr/ocr0.c if( !i ) Break; Break 1998 lib/gocr/ocr0.c if( get_bw(dx-1-dx/4,dx-1,dy-1-dy/4,dy-1,bp,cs,1) == 1 ) Break; // ~E Break 1999 lib/gocr/ocr0.c if( get_bw(dx-1 ,dx-1,0 ,dy/3,bp,cs,1) != 1 ) Break; Break 2002 lib/gocr/ocr0.c loop(bp,0,3*bp->y/4,dx,cs,0,RI)-1 ) Break; Break 2004 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; Break 2007 lib/gocr/ocr0.c if ( i<1 ) Break; // 0.2.4a4 Break 2014 lib/gocr/ocr0.c && get_bw( 0, 0,0,1,bp,cs,1) == 0 ) Break; Break 2028 lib/gocr/ocr0.c if (i>dx/8) Break; Break 2056 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2059 lib/gocr/ocr0.c if( y<y1-dy/4 ) Break; Break 2060 lib/gocr/ocr0.c if( get_bw(dx/2,dx/2,dy/2,dy-1,bp,cs,1)==0 ) Break; Break 2061 lib/gocr/ocr0.c if( get_bw(dx/2,dx-1,dy/2,dy/2,bp,cs,1)==0 ) Break; Break 2064 lib/gocr/ocr0.c } if( i<dy/4 ) Break; x--; Break 2065 lib/gocr/ocr0.c if( get_bw(0,x ,i-1,i-1,bp,cs,1)==0 ) Break; Break 2066 lib/gocr/ocr0.c if( get_bw(x,dx-1,i-1,i-1,bp,cs,1)==0 ) Break; Break 2073 lib/gocr/ocr0.c } if( !i ) Break; Break 2078 lib/gocr/ocr0.c } if( !i ) Break; Break 2081 lib/gocr/ocr0.c } if( i ) Break; Break 2084 lib/gocr/ocr0.c } if( !i ) Break; Break 2088 lib/gocr/ocr0.c } if( !i ) Break; Break 2090 lib/gocr/ocr0.c && num_cross(dx-dx/2,dx-1,dy-dy/4,dy-dy/4,bp,cs)==1 ) Break; // ~{\it v} Break 2094 lib/gocr/ocr0.c if( i<j ) Break; // ~ll v0.2.4a3 Break 2097 lib/gocr/ocr0.c > loop(bp,dx-1,dy/8 ,dx,cs,0,LE)+1+dx/32 ) Break; // ~bad 0 (thinn) Break 2104 lib/gocr/ocr0.c ) Break; // melted ll Break 2108 lib/gocr/ocr0.c if ( i>dx/4 && j>dx/4 && i+j>=dx/2) Break; // v Break 2192 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2195 lib/gocr/ocr0.c if (x>3*dx/4 || y<dy/4) Break; Break 2196 lib/gocr/ocr0.c if( get_bw(x0,x0+x,y0+y,y0+y,box1->p,cs,1) != 1 ) Break; Break 2197 lib/gocr/ocr0.c if( get_bw(x0+x,x1,y0+y,y0+y,box1->p,cs,1) != 1 ) Break; Break 2198 lib/gocr/ocr0.c if( get_bw(x0+x,x0+x,y1-dy/2,y1, box1->p,cs,1) != 1 ) Break; Break 2200 lib/gocr/ocr0.c if( get_bw(x0+x+1,x0+x+1,y0, y0+dy/3,box1->p,cs,1) == 1 ) Break; Break 2207 lib/gocr/ocr0.c && (num_cross( 0,dx-1,dy-1 ,dy-1 ,bp,cs)> 1)) ) Break; Break 2209 lib/gocr/ocr0.c if( get_bw(0 ,dx/8,dy-1-dy/6,dy-1,bp,cs,1)==1 ) Break; Break 2210 lib/gocr/ocr0.c if( get_bw(dx-1-dx/8,dx-1,dy-1-dy/6,dy-1,bp,cs,1)==1 ) Break; Break 2212 lib/gocr/ocr0.c >=loop(bp,0 ,dy-1-dy/3,dx,cs,0,RI) && dy>6 ) Break; Break 2216 lib/gocr/ocr0.c >loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE) ) Break; // better OR ? Break 2222 lib/gocr/ocr0.c >=loop(bp,dx-1,dy-1-dy/3,dx,cs,0,LE) && dy>6 ) Break; Break 2224 lib/gocr/ocr0.c x=loop(bp,x,dy-1,dx,cs,1,RI); if ( dx>14 && 2*x>dx ) Break; // U Break 2226 lib/gocr/ocr0.c && num_cross(dx-dx/2,dx-1,dy-dy/4,dy-dy/4,bp,cs)==2 ) Break; // ~{\it u} Break 2234 lib/gocr/ocr0.c if( box1->m1 && hchar && dy>15 && j>=i-dx/32 ) Break; // ~Y Break 2249 lib/gocr/ocr0.c && i3-i2 > dx/32+2 ) Break; // ~serif_Y Break 2256 lib/gocr/ocr0.c if (j<i2+1) Break; // ~Y Break 2288 lib/gocr/ocr0.c ) Break; /* tolerant against a tiny hole */ Break 2289 lib/gocr/ocr0.c if( 2*dy<box1->m3-box1->m1) Break; Break 2291 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)<=dx/8 ) Break; Break 2295 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/2,dx,cs,0,LE)<=dx/8+2 ) Break; // ~v Jun00 Break 2306 lib/gocr/ocr0.c if (y<i) Break; Break 2310 lib/gocr/ocr0.c if (x<dx-dx/8) Break; Break 2313 lib/gocr/ocr0.c && get_bw(dx-1-dx/8,dx-1,dy-1-dy/4,dy-1,bp,cs,1) ==1 ) Break; Break 2317 lib/gocr/ocr0.c && loop(bp,dx/2, dy-1,dy,cs,0,UP)<=dy/8 ) Break; // ~c Break 2321 lib/gocr/ocr0.c if( loop(bp, 0, dy/8,dx,cs,0,RI)<dx/8 ) Break; // ~z (broken) Break 2325 lib/gocr/ocr0.c if( loop(bp,0,dy/3,dx,cs,0,RI)>3*dx/4 ) Break; // ~i Break 2327 lib/gocr/ocr0.c && get_bw(0,dx/8,0,dy/4,bp,cs,1) ==1 ) Break; Break 2329 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2+1,dy/2+1,bp,cs)!=1 ) Break; // ~n 024a3 Break 2335 lib/gocr/ocr0.c if(y<dy-1) Break; Break 2339 lib/gocr/ocr0.c && num_cross(dx/2+1,dx/2+1,0,dy-1,bp,cs)>2 ) Break; // ~f Break 2350 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 2351 lib/gocr/ocr0.c if( num_cross(x0,x1,y1-dy/8,y1-dy/8, box1->p,cs) < 2 ) Break; // ~P Break 2352 lib/gocr/ocr0.c if (loop(bp, dx/2, dy/4,dy,cs,0,DO)>dy/2) Break; // ~C Break 2355 lib/gocr/ocr0.c && dy>=16 ) Break; Break 2358 lib/gocr/ocr0.c } if( !i ) Break; Break 2361 lib/gocr/ocr0.c } if( !i ) Break; Break 2368 lib/gocr/ocr0.c } if( y<=dy/8 ) Break; if (y<dy/4) ad=80*ad/100; Break 2371 lib/gocr/ocr0.c } if( i ) Break; Break 2374 lib/gocr/ocr0.c } if( i ) Break; Break 2380 lib/gocr/ocr0.c } if( i ) Break; Break 2381 lib/gocr/ocr0.c if( get_bw(x1-dx/3,x1,y0,y0+dy/4,box1->p,cs,1) != 1 ) Break; // pixel ru Break 2382 lib/gocr/ocr0.c x=loop(bp,dx-1, dy/4,dx,cs,0,LE); if(x>dx/2) Break; i=x; // ru Break 2383 lib/gocr/ocr0.c x=loop(bp,dx-1, dy/2,dx,cs,0,LE); if(x<=i ) Break; i=x; // rc Break 2386 lib/gocr/ocr0.c x=loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE); if(x>=i ) Break; // rd Break 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; Break 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 Break 2399 lib/gocr/ocr0.c && loop(bp,dx-1,dy-2-dy/8,dx,cs,0,LE)>0 ) Break; // broken B ?? Break 2406 lib/gocr/ocr0.c if (j>1 || j>i) Break; Break 2432 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2434 lib/gocr/ocr0.c x =loop(bp,dx-1,dy/2,dx,cs,0,LE); if(3*x>dx) Break; // ~K Break 2438 lib/gocr/ocr0.c if (i<3 && i>5) Break; // m ru rn, handwritten m Break 2443 lib/gocr/ocr0.c } if (i>3) Break; Break 2446 lib/gocr/ocr0.c } if (i>5) Break; y++; i5=y; Break 2461 lib/gocr/ocr0.c x =loop(bp,0,y,dx ,cs,0,RI); if(x> dx/4) Break; // search 1st v-line Break 2462 lib/gocr/ocr0.c x+=loop(bp,x,y,dx-x,cs,1,RI); if(x> dx/2) Break; i1=x; // first gap Break 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 Break 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 Break 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 Break 2466 lib/gocr/ocr0.c if (x>=dx) Break; // missing 3th v-line, ~W Break 2468 lib/gocr/ocr0.c if( abs((i2-i1)-(i4-i3)) > 2+((i2-i1)+(i4-i3))/4 ) Break; // same gap width? rn Break 2479 lib/gocr/ocr0.c if(y<dy/4 || y<y1-y0-i5-1-dy/16) Break; // no gap detected Break 2483 lib/gocr/ocr0.c if(y<dy/4) Break; // no gap detected Break 2485 lib/gocr/ocr0.c if(x<i4 && handwritten<10) Break; // gap detected Break 2491 lib/gocr/ocr0.c if( i>y ) y=i; if( 2*i<y ) Break; Break 2493 lib/gocr/ocr0.c if(x <i2) Break; // unusual property for m (see n) Break 2499 lib/gocr/ocr0.c && loop(bp,dx-1,dy/4 ,dx,cs,0,LE)>3 ) Break; // melted WT Break 2502 lib/gocr/ocr0.c if (x>2 && loop(bp,dx-1-x/2,0,dy,cs,0,DO)<dy/2) Break; // melt toc Break 2503 lib/gocr/ocr0.c if (loop(bp,(i3+i4)/2,0,dy,cs,0,DO)>dy/2) Break; // N Break 2517 lib/gocr/ocr0.c if (3*i>dy) Break; Break 2519 lib/gocr/ocr0.c if(x<i4) Break; // gap detected Break 2542 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2548 lib/gocr/ocr0.c if (i1>dy/4 || i2>dy/4) Break; Break 2553 lib/gocr/ocr0.c } if (x<dx-1-dx/8) Break; Break 2554 lib/gocr/ocr0.c if( get_bw( 0,dx-1, dy/2, dy/2,bp,cs,1) != 1 ) Break; Break 2555 lib/gocr/ocr0.c if( get_bw( 0,(dx-1)/8, dy/2,dy-1-dy/8,bp,cs,1) == 1 ) Break; Break 2556 lib/gocr/ocr0.c if( get_bw( 0,3*dx/16, dy/2,dy-1-dy/4,bp,cs,1) == 1 ) Break; Break 2557 lib/gocr/ocr0.c if( get_bw(dx-1-dx/4,dx-1, dy/2,dy-1-dy/4,bp,cs,1) == 1 ) Break; Break 2563 lib/gocr/ocr0.c } if (y<3*dy/4) Break; // Jan07 Break 2568 lib/gocr/ocr0.c } if( y<dy ) Break; Break 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 Break 2571 lib/gocr/ocr0.c i+= loop(bp,i ,dy/4,dx,cs,1,RI);if(i>3*dx/4) Break; Break 2574 lib/gocr/ocr0.c && num_cross(0,dx-1, dy-2, dy-2,bp,cs) != 1 ) Break; Break 2576 lib/gocr/ocr0.c && num_cross(0,dx-1,2*dy/3,2*dy/3,bp,cs) != 1 ) Break; Break 2595 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2606 lib/gocr/ocr0.c } if( y<4*dy/8 ) Break; Break 2610 lib/gocr/ocr0.c if ( loop(bp,0 ,dy/2,dy,cs,1,UP)>dx/8 ) Break; // ~C Break 2621 lib/gocr/ocr0.c if( y<dy/4 ) Break; // ~f Break 2634 lib/gocr/ocr0.c if( 2*x<3*i ) Break; Break 2639 lib/gocr/ocr0.c >=loop(bp,dx-1,yb/2,dx,cs,0,LE) ) Break; // ~1 ??? Break 2646 lib/gocr/ocr0.c } if(!j) Break; Break 2649 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-1,dy-1,bp,cs) == 2 ) Break; // ~* (5er) Break 2669 lib/gocr/ocr0.c <=loop(bp,dx-1, dy-2,dx,cs,0,LE) ) Break; Break 2676 lib/gocr/ocr0.c if (sdata->holes.hole[0].y0 > dy/4) Break; // ~6 Break 2682 lib/gocr/ocr0.c if (loop(bp,dx/2 ,dy-1,dy,cs,0,UP)>dy/4) Break; // ~h Break 2683 lib/gocr/ocr0.c if (loop(bp,dx/2+1,dy-1,dy,cs,0,UP)>dy/4) Break; // ~h Break 2693 lib/gocr/ocr0.c if (i-x>1) Break; // l Break 2724 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2727 lib/gocr/ocr0.c && dy>4 ) Break; Break 2729 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/2-1,dy/2-1,bp,cs)!=1 ) Break; Break 2732 lib/gocr/ocr0.c x =loop(bp,0,y,dx,cs,0,RI); if(x>3*dx/8) Break; /* slanted too */ Break 2733 lib/gocr/ocr0.c x +=loop(bp,x,y,dx,cs,1,RI); if(x>5*dx/8) Break; /* fat too */ Break 2736 lib/gocr/ocr0.c x =loop(bp,dx-1 ,y,dx,cs,0,LE); if(x>dx/4) Break; Break 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; Break 2738 lib/gocr/ocr0.c if (x>3*dx/4) Break; if(x>dx/2) { ad=98*ad/100; MSG({})} Break 2742 lib/gocr/ocr0.c if( y<dy/2 ) Break; Break 2750 lib/gocr/ocr0.c if(y==dy/2) Break; // Mai00 Break 2753 lib/gocr/ocr0.c if( !joined(bp,0,y,i2,11*dy/16,cs) ) Break; Break 2756 lib/gocr/ocr0.c if (sdata->holes.hole[0].y0 > dy/4) Break; // ??? Break 2761 lib/gocr/ocr0.c if (i2-i1 >= dx/4) Break; // ~{ 5x7font Break 2765 lib/gocr/ocr0.c if (i2-i1 >= dx/4) Break; // ~} 5x7font Break 2777 lib/gocr/ocr0.c if( 2*i2+dx/32 > i1+i3 || dx>9 ) Break; Break 2782 lib/gocr/ocr0.c if( 2*i2+dx/32 >= i1+i3 ) Break; Break 2789 lib/gocr/ocr0.c } if(y<5*dy/8) Break; // v0.2.4a5 Break 2791 lib/gocr/ocr0.c > loop(bp, 0, 1+dy/32,dx,cs,0,RI) + dx/4 ) Break; // ~5 Dec00 Break 2820 lib/gocr/ocr0.c if (sdata->holes.num > 3) Break; /* tolerant against a tiny hole */ Break 2821 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2, y1-dy/2, y1,box1->p,cs,1) != 1 ) Break; Break 2822 lib/gocr/ocr0.c if( get_bw(x1-dx/4, x1 , y1-dy/4, y1,box1->p,cs,1) != 1 ) Break; // ~p Break 2823 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2, y0, y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 2826 lib/gocr/ocr0.c if( num_cross(x1-dx/2, x1-dx/2, y0, y1, box1->p,cs) < 3 ) Break; Break 2827 lib/gocr/ocr0.c if (sdata->holes.num < 1) Break; Break 2830 lib/gocr/ocr0.c } if (i==sdata->holes.num) Break; // no upper hole found Break 2833 lib/gocr/ocr0.c if( y==dy ) Break; // ~q Break 2834 lib/gocr/ocr0.c if( get_bw(0,dx/2,7*dy/8,7*dy/8,bp,cs,1) != 1 ) Break; // ~q Break 2836 lib/gocr/ocr0.c y+=loop(bp,dx/16,y,dy,cs,1,DO); if(16*y>=15*dy) Break; // ~B Break 2859 lib/gocr/ocr0.c if (y==dy) Break; /* ~8 */ Break 2871 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 2872 lib/gocr/ocr0.c if( get_bw(x0 ,x0+dx/2,y0+dy/3,y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 2873 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x1-dx/4,y0 ,y0+dy/4,box1->p,cs,1) != 1 ) Break; Break 2874 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x0+dx/2,y1-dy/4,y1 ,box1->p,cs,1) != 1 ) Break; Break 2875 lib/gocr/ocr0.c if( get_bw(x0 ,x0+dx/2,y1-dy/3,y1-dy/3,box1->p,cs,1) != 1 ) Break; // ~S Break 2878 lib/gocr/ocr0.c if( y==y1-dy/3 ) Break; // no gap Break 2881 lib/gocr/ocr0.c || num_cross(x0+dx/2+1, x0+dx/2+1, y0, y, box1->p,cs) != 1 ) Break; // ~e Break 2885 lib/gocr/ocr0.c if( y<y0+dy/4 ) Break; // filter W Break 2889 lib/gocr/ocr0.c if( x<x1-3*dx/8 ) Break; Break 2895 lib/gocr/ocr0.c if( x<x0+dx/2 ) Break; Break 2898 lib/gocr/ocr0.c if( x<=x1 ) Break; Break 2899 lib/gocr/ocr0.c if( y<y0+3*dy/8 ) Break; Break 2900 lib/gocr/ocr0.c if( y>y1-dy/4 ) Break; Break 2904 lib/gocr/ocr0.c if( y>y0+dy/4+1 ) Break; /* leave box below for S or on top for CG */ Break 2909 lib/gocr/ocr0.c if( y>y0 ) Break; Break 2910 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; Break 2918 lib/gocr/ocr0.c if( i ) Break; Break 2922 lib/gocr/ocr0.c if( i ) Break; Break 2927 lib/gocr/ocr0.c } if( y<dy ) Break; Break 2933 lib/gocr/ocr0.c } if( i1<=dy/4 || i1>=dy-dy/4 ) Break; // around the middle ? Break 2958 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 2960 lib/gocr/ocr0.c && num_cross(x0+dx/4,x1-dx/4,y0,y1,box1->p,cs) != 3 ) Break; Break 2967 lib/gocr/ocr0.c if( x<4*dx/8 ) Break; Break 2969 lib/gocr/ocr0.c && num_cross(x0+dx/2,x1,i+1,y1,box1->p,cs) != 1 ) Break; Break 2970 lib/gocr/ocr0.c if( num_hole(x0,x1,y0,i+1,box1->p,cs,NULL)!=1 ) Break; Break 2971 lib/gocr/ocr0.c if( num_hole(x0,x1,i-1,y1,box1->p,cs,NULL)!=0 ) Break; Break 2973 lib/gocr/ocr0.c loop(box1->p,x0,y1-1,dy,cs,0,RI)>dx/3) Break; // no q Break 2977 lib/gocr/ocr0.c } if( x>dx/2 ) Break; // no g Break 2978 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy/8 ,dx,cs,0,LE); if(i1>dx/2) Break; Break 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 Break 2981 lib/gocr/ocr0.c i1=loop(bp,dx-1,dy/4 ,dx,cs,0,LE); if(i1>dx/2) Break; Break 2986 lib/gocr/ocr0.c } if(y<dy-1-dy/4) Break; Break 2989 lib/gocr/ocr0.c if(y<dy/8) Break; // ~q (serif!) Break 3022 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; /* # */ Break 3026 lib/gocr/ocr0.c if (aa[0][2]>d) Break; Break 3027 lib/gocr/ocr0.c if (aa[1][2]>d) Break; Break 3028 lib/gocr/ocr0.c if (aa[2][2]>d) Break; Break 3029 lib/gocr/ocr0.c if (aa[3][2]>d) Break; Break 3030 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<dx/2) Break; Break 3031 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<dx/2) Break; Break 3032 lib/gocr/ocr0.c if (aa[1][1]-aa[0][1]<dy/2) Break; Break 3033 lib/gocr/ocr0.c if (aa[2][1]-aa[3][1]<dy/2) Break; Break 3040 lib/gocr/ocr0.c } if (j==i) Break; Break 3044 lib/gocr/ocr0.c if (abs(aa[0][0]+aa[1][0]+aa[2][0]+aa[3][0]-4*x)>(dx+2)) Break; Break 3045 lib/gocr/ocr0.c if (abs(aa[0][1]+aa[1][1]+aa[2][1]+aa[3][1]-4*y)>(dy+2)) Break; Break 3046 lib/gocr/ocr0.c if ( aa[0][0]+aa[1][0]-2*x>=0) Break; Break 3047 lib/gocr/ocr0.c if ( aa[1][0] >= x ) Break; Break 3048 lib/gocr/ocr0.c if ( aa[0][0] > x ) Break; Break 3050 lib/gocr/ocr0.c if (x-x0<dx/8) Break; Break 3055 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3059 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3065 lib/gocr/ocr0.c } if (j==i) Break; Break 3069 lib/gocr/ocr0.c if (abs(aa[0][0]+aa[1][0]+aa[2][0]+aa[3][0]-4*x)>(dx+2)) Break; Break 3070 lib/gocr/ocr0.c if (abs(aa[0][1]+aa[1][1]+aa[2][1]+aa[3][1]-4*y)>(dy+2)) Break; Break 3071 lib/gocr/ocr0.c if ( aa[1][1]+aa[2][1]-2*y<=0) Break; Break 3075 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3079 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3085 lib/gocr/ocr0.c } if (j==i) Break; Break 3089 lib/gocr/ocr0.c if (abs(aa[0][0]+aa[1][0]+aa[2][0]+aa[3][0]-4*x)>(dx+2)) Break; Break 3090 lib/gocr/ocr0.c if (abs(aa[0][1]+aa[1][1]+aa[2][1]+aa[3][1]-4*y)>(dy+2)) Break; Break 3091 lib/gocr/ocr0.c if ( aa[2][0]+aa[3][0]-2*x<=0) Break; Break 3092 lib/gocr/ocr0.c if ( aa[3][0] <= x ) Break; Break 3093 lib/gocr/ocr0.c if ( aa[2][0] < x ) Break; Break 3095 lib/gocr/ocr0.c if (dx-(x-x0)<dx/8) Break; Break 3100 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3104 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3110 lib/gocr/ocr0.c } if (j==i) Break; Break 3114 lib/gocr/ocr0.c if (abs(aa[0][0]+aa[1][0]+aa[2][0]+aa[3][0]-4*x)>(dx+2)) Break; Break 3115 lib/gocr/ocr0.c if (abs(aa[0][1]+aa[1][1]+aa[2][1]+aa[3][1]-4*y)>(dy+2)) Break; Break 3116 lib/gocr/ocr0.c if ( aa[3][1]+aa[0][1]-2*y>=0) Break; Break 3120 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3124 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 3127 lib/gocr/ocr0.c if (box1->frame_vector[i3][0] - box1->frame_vector[i1][0] > dx/2) Break; Break 3138 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3139 lib/gocr/ocr0.c if( get_bw(x0,x0+dx/4,y0+dy/2,y0+dy/2,box1->p,cs,1) != 0 ) Break; Break 3140 lib/gocr/ocr0.c if( get_bw(x1-dx/4,x1,y0+dy/2,y0+dy/2,box1->p,cs,1) != 0 ) Break; Break 3141 lib/gocr/ocr0.c if( num_cross(x0+dx/4,x1-dx/4,y0+dy/2,y0+dy/2, box1->p,cs) != 1 ) Break; Break 3143 lib/gocr/ocr0.c && num_cross(x0,x1,y0+dy/8,y0+dy/8, box1->p,cs) < 3 ) Break; Break 3145 lib/gocr/ocr0.c && num_cross(x0,x1,y1-dy/8,y1-dy/8, box1->p,cs) < 3 ) Break; Break 3168 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3171 lib/gocr/ocr0.c && num_cross(0,dx-1, 1, 1,bp,cs) < 2 ) Break; Break 3173 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 1 ) Break; Break 3175 lib/gocr/ocr0.c && num_cross(dx-2,dx-2,0,dy-1,bp,cs) != 1 ) Break; Break 3177 lib/gocr/ocr0.c && num_cross(dx/2,dx/2,dy/4,dy-1,bp,cs) != 2 ) Break; Break 3180 lib/gocr/ocr0.c } if( y>12*dy/16 || y<3*dy/8 ) Break; Break 3181 lib/gocr/ocr0.c ya=dy/8; xa=xc-loop(bp,xc,ya,dx,cs,0,LE); if(xa< 0) Break; Break 3182 lib/gocr/ocr0.c yb=dy/8; xb=xc+loop(bp,xc,yb,dx,cs,0,RI); if(xb>=dx) Break; Break 3186 lib/gocr/ocr0.c } if(y<yc-dy/8) Break; Break 3196 lib/gocr/ocr0.c if (loop(bp,dx-1,dy-1,dx,cs,0,LE)<1) Break; Break 3198 lib/gocr/ocr0.c if( get_line2(xb,yb,xd,yd,bp,cs,100)<95 ) Break; Break 3210 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3212 lib/gocr/ocr0.c if( get_bw(x0,x0+4*dx/8,y0+dy/8,y0+dy/8,box1->p,cs,1) != 1 ) Break; Break 3214 lib/gocr/ocr0.c if( get_bw(x0,x0+3*dx/8,y0+dy/8,y0+dy/8,box1->p,cs,1) != 1 ) Break; Break 3217 lib/gocr/ocr0.c && num_cross(0,dx-1, 1, 1,bp,cs) != 2 ) Break; Break 3218 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2,0, 1,bp,cs) != 0 ) Break; Break 3220 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 1 ) Break; Break 3223 lib/gocr/ocr0.c && num_cross(dx-dx/8-1,dx-dx/8-1,0,dy-1,bp,cs) != 1 ) Break; Break 3225 lib/gocr/ocr0.c < loop(bp, 0,dy-1-dy/8,dx,cs,0,RI) ) Break; Break 3228 lib/gocr/ocr0.c } if( y>10*dy/16 || y<2*dy/8 ) Break; Break 3233 lib/gocr/ocr0.c if(yb>dy/8) Break; Break 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; Break 3259 lib/gocr/ocr0.c && get_line2(xa,ya,xc-1,yc,bp,cs,100)<95 ) Break; Break 3266 lib/gocr/ocr0.c if( get_line2(xb,yb,xc ,yc,bp,cs,100)<95 ) Break; Break 3268 lib/gocr/ocr0.c if( get_line2(xc,yc,xd,yd,bp,cs,100)<95 ) Break; Break 3275 lib/gocr/ocr0.c { if (dx>4) { Break; } else ad=ad*98/100; } // ~V Break 3307 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3312 lib/gocr/ocr0.c if (aa[0][2]>d) Break; Break 3313 lib/gocr/ocr0.c if (aa[1][2]>d) Break; Break 3314 lib/gocr/ocr0.c if (aa[2][2]>d) Break; Break 3315 lib/gocr/ocr0.c if (aa[3][2]>d) Break; Break 3316 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<dx/2) Break; Break 3317 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<dx/2) Break; Break 3318 lib/gocr/ocr0.c if (aa[1][1]-aa[0][1]<dy/2) Break; Break 3319 lib/gocr/ocr0.c if (aa[2][1]-aa[3][1]<dy/2) Break; Break 3320 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<4-1) Break; /* to small to hold a z */ Break 3321 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<4-1) Break; /* to small */ Break 3330 lib/gocr/ocr0.c d=line_deviation(box1, aa[3][3], aa[0][3]); if (d>2*sq(1024/4)) Break; Break 3332 lib/gocr/ocr0.c d=line_deviation(box1, aa[1][3], aa[2][3]); if (d>2*sq(1024/4)) Break; Break 3338 lib/gocr/ocr0.c if (y-y0 > 5*dy/8) Break; Break 3339 lib/gocr/ocr0.c if (x-x0 < 3*dx/8) Break; Break 3340 lib/gocr/ocr0.c if (x-aa[0][0]<=dx/4) Break; // ~lI Break 3347 lib/gocr/ocr0.c && box1->frame_vector[i3][0]-x>=0) Break; Break 3380 lib/gocr/ocr0.c dbg[0]=d=line_deviation(box1, aa[0][3], i1); if (d >2*sq(1024/4)) Break; Break 3382 lib/gocr/ocr0.c dbg[1]=d=line_deviation(box1, i1, aa[1][3]); if (d >2*sq(1024/4)) Break; Break 3388 lib/gocr/ocr0.c if (y-y0 < 3*dy/8) Break; Break 3389 lib/gocr/ocr0.c if (x-x0 > 5*dx/8) Break; Break 3390 lib/gocr/ocr0.c if (aa[2][0]-x<=dx/4) Break; // ~lI Break 3394 lib/gocr/ocr0.c dbg[2]=d=line_deviation(box1,i2, aa[3][3]); if (d >2*sq(1024/4)) Break; Break 3396 lib/gocr/ocr0.c dbg[3]=d=line_deviation(box1, aa[2][3],i2); if (d >2*sq(1024/4)) Break; Break 3399 lib/gocr/ocr0.c -box1->frame_vector[i2][0]<=dx/8) Break; /* nonsignificant distance */ Break 3431 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3440 lib/gocr/ocr0.c if(y<dy/2) Break; Break 3445 lib/gocr/ocr0.c if(y==3*dy/4) Break; Break 3452 lib/gocr/ocr0.c if(i+5<dy/4 && 7*t1<dy) Break; // only for large letters Break 3453 lib/gocr/ocr0.c if(i+j==0 && (dy>6 || dx>4)) Break; Break 3456 lib/gocr/ocr0.c -loop(bp,dx-2,dy-1,dy,cs,0,UP))>dy/8+1) Break; // 4x6 N Break 3460 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1,dy,cs,0,UP)>0)) Break; // 4x6 UV Break 3465 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/16,dy/16,bp,cs)< 2 ) Break; Break 3467 lib/gocr/ocr0.c xb=loop(bp,x ,yb,dx,cs,1,RI);xb=x+xb/2; if(xb>dx/2) Break; Break 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; Break 3472 lib/gocr/ocr0.c if(dx>4 && !y) Break; Break 3477 lib/gocr/ocr0.c && num_cross(0 ,xc ,ya-y/2,ya-y/2,bp,cs)!= 2 ) Break; Break 3479 lib/gocr/ocr0.c && num_cross(xc,dx-1,ya-y/2,ya-y/2,bp,cs)!= 2 ) Break; Break 3498 lib/gocr/ocr0.c if (x==xa+i) Break; // no vert. line found Break 3501 lib/gocr/ocr0.c && get_line2(xb,yb-1,xc,ya+dy/16,bp,cs,100)<95 ) Break; Break 3503 lib/gocr/ocr0.c && get_line2(xc+1,ya,xd, yb,bp,cs,100)<95 ) Break; Break 3506 lib/gocr/ocr0.c && get_line2(xd,yb,xe+dx/20,1+dy/16,bp,cs,100)<95 ) Break; Break 3513 lib/gocr/ocr0.c } if( y<dy ) Break; Break 3524 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3526 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs)<2 ) Break; Break 3531 lib/gocr/ocr0.c if(i<=dy/8) Break; // three legs Break 3539 lib/gocr/ocr0.c x+=loop(bp,x ,yb,dx,cs,1,RI); if(x>dx/2) Break; Break 3540 lib/gocr/ocr0.c xb=loop(bp,x ,yb,dx,cs,0,RI);xb=x+xb/2; if(xb>dx/2) Break; Break 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; Break 3544 lib/gocr/ocr0.c if( num_cross(xb,xd,yb,yb ,bp,cs)!= 1 ) Break; Break 3545 lib/gocr/ocr0.c if( num_cross(xb,xb,yb,dy-1,bp,cs)!= 1 ) Break; Break 3546 lib/gocr/ocr0.c if( num_cross(xd,xd,yb,dy-1,bp,cs)!= 1 ) Break; Break 3547 lib/gocr/ocr0.c if( num_cross(xb,xb, 0,yb ,bp,cs)!= 0 ) Break; Break 3548 lib/gocr/ocr0.c if( num_cross(xd,xd, 0,yb ,bp,cs)!= 0 ) Break; Break 3550 lib/gocr/ocr0.c if (sdata->holes.num != 0) Break; Break 3554 lib/gocr/ocr0.c } if( y<dy ) Break; // fail for overlapping neighbouring slanted chars? Break 3558 lib/gocr/ocr0.c Break; Break 3574 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 3577 lib/gocr/ocr0.c && get_bw(dx/2-1,dx/2-1,dy-1-dy/8,dy-1,bp,cs,1) == 1 ) Break; // ~B Break 3586 lib/gocr/ocr0.c && num_cross(0,dx-1,ya+ dy/8+1,ya+ dy/8+1,bp,cs)!=1 ) Break; Break 3588 lib/gocr/ocr0.c && num_cross(0,dx-1, 7*dy/8-1, 7*dy/8-1,bp,cs)!=2 ) Break; Break 3589 lib/gocr/ocr0.c if ( num_cross( 0,dx/8,ya+dy/8,ya+0,bp,cs)>0 ) Break; // ~R Break 3591 lib/gocr/ocr0.c if( y==ya+dy/2 ) Break; i1=y; Break 3594 lib/gocr/ocr0.c x =loop(bp,0,i1,dx,cs,0,RI); if(x>3*dx/4) Break; Break 3595 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx,cs,1,RI); if(x>3*dx/4) Break; i2=x; Break 3596 lib/gocr/ocr0.c x+=loop(bp,x,i1,dx,cs,0,RI); if(x<3*dx/8) Break; i2=(x+i2)/2; Break 3601 lib/gocr/ocr0.c if (y>5*dy/6) Break; Break 3604 lib/gocr/ocr0.c || sdata->holes.hole[0].y1-ya >= dy-1-dy/4) Break; Break 3614 lib/gocr/ocr0.c Break; Break 3616 lib/gocr/ocr0.c if( get_bw(dx-1-dx/4, dx-1, dy-1-dy/4, dy-1, bp,cs,1) != 1 ) Break; Break 3622 lib/gocr/ocr0.c if( 2*i2+dx/4<i1+i3 || 2*i2-dx/4>i1+i3 ) Break; Break 3628 lib/gocr/ocr0.c if( 2*i2+dx/4<i1+i3 || 2*i2-dx/4>i1+i3 || i1<i3) Break; Break 3635 lib/gocr/ocr0.c } if(y<7*dy/8) Break; Break 3648 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 3649 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2, y1-dy/3, y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 3650 lib/gocr/ocr0.c if( get_bw(x1-dx/3, x1 , y0+dy/3, y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 3651 lib/gocr/ocr0.c if( get_bw(x1-dx/3, x1 , y0+dy/4, y0+dy/4,box1->p,cs,1) != 1 ) Break; Break 3652 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2, y1-dy/3, y1, box1->p,cs,1) != 1 ) Break; Break 3653 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2, y0 , y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 3654 lib/gocr/ocr0.c if( get_bw(x0+dx/3, x1-dx/3, y0 , y0 ,box1->p,cs,1) != 1 ) Break; Break 3656 lib/gocr/ocr0.c if( get_bw(x0+dx/4, x1-dx/3, y1-1 , y1-1 ,box1->p,cs,1) != 1 ) Break; Break 3658 lib/gocr/ocr0.c if( get_bw(x0+dx/8, x0+dx/8, y0+dy/2, y1 ,box1->p,cs,1) != 1 ) Break; Break 3659 lib/gocr/ocr0.c if( loop(bp,3*dx/8,0,dy,cs,0,DO) > 3*dy/16 ) Break; // ~d Break 3661 lib/gocr/ocr0.c && num_cross(0,dx-1,dy/4+1,dy/4+1, bp,cs) >2 ) Break; Break 3666 lib/gocr/ocr0.c } if( x<dx-dx/4 ) Break; Break 3670 lib/gocr/ocr0.c } if( i ) Break; Break 3676 lib/gocr/ocr0.c } if(y==3*dy/4) Break; // ~6 Break 3680 lib/gocr/ocr0.c if( x==dx ) Break; Break 3684 lib/gocr/ocr0.c if( num_hole ( x0, x1, y0+dy/3, y1 ,box1->p,cs,NULL) != 1 ) Break; Break 3689 lib/gocr/ocr0.c if(i<dx/4+1) Break; // fat a Break 3696 lib/gocr/ocr0.c if(x>i) Break; // ~ 8 Break 3701 lib/gocr/ocr0.c if (y==dy) Break; /* ~8 */ Break 3712 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 3713 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 3714 lib/gocr/ocr0.c if( get_bw(x1-dx/2 , x1 ,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 3715 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y1-dy/2 , y1, box1->p,cs,1) != 1 ) Break; Break 3716 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y0 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 3717 lib/gocr/ocr0.c if( get_bw(x0+dx/3 , x0+dx/3,y0 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 3718 lib/gocr/ocr0.c i = loop(bp,dx/2, 0 ,dy,cs,0,DO); if (i>dy/4) Break; Break 3719 lib/gocr/ocr0.c i+= loop(bp,dx/2, i ,dy,cs,1,DO); if (i>dy/2) Break; Break 3720 lib/gocr/ocr0.c i = loop(bp,dx/2, i ,dy,cs,0,DO); if (i<dy/4) Break; Break 3721 lib/gocr/ocr0.c if( get_bw(x0 , x0 ,y1 , y1 ,box1->p,cs,1) == 1 ) Break; Break 3723 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) != 2 ) Break; Break 3725 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; Break 3726 lib/gocr/ocr0.c i = loop(bp,dx/2,dy-1 ,dy,cs,0,UP); if (i>dy/3) Break; Break 3727 lib/gocr/ocr0.c y = i+loop(bp,dx/2,dy-1-i,dy,cs,1,UP); if (i>dy/2) Break; Break 3734 lib/gocr/ocr0.c <4*loop(bp,dx-1,dy-1-dy/16,dx,cs,0,LE)) { Break;} Break 3738 lib/gocr/ocr0.c || num_cross(x0,x1,y0+dy/3 , y0+dy/3,box1->p,cs) < 2 ) Break; // Jun00 Break 3741 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/4,box1->p,cs) != 1 ) Break; Break 3745 lib/gocr/ocr0.c Break; Break 3746 lib/gocr/ocr0.c if( num_hole(x0,x1 ,y0+dy/3,y1-1 ,box1->p,cs,NULL) != 0 ) Break; Break 3749 lib/gocr/ocr0.c loop(bp,0 ,2 ,x1-x0,cs,0,RI) ) Break; Break 3755 lib/gocr/ocr0.c i=loop(bp,dx-1, dy/4,dx,cs,0,LE); if (abs(x-i)>dx/4) Break; Break 3760 lib/gocr/ocr0.c } if( x<dx-dx/4 ) Break; Break 3765 lib/gocr/ocr0.c && loop(bp,dx-1,dy-1,y1-y0,cs,0,UP)> dy/4 ) Break; // ~o Break 3766 lib/gocr/ocr0.c if( loop(bp,dx/2,dy-1,y1-y0,cs,0,UP)> dy/4 ) Break; // ~q Break 3856 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 3857 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/3,y0+dy/2, y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 3858 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2,y1-dy/3, y1, box1->p,cs,1) != 1 ) Break; Break 3859 lib/gocr/ocr0.c if( get_bw(x0+dx/2, x0+dx/2,y0 , y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 3860 lib/gocr/ocr0.c if( num_cross(x0,(x0+x1)/2,(y0+y1)/2,(y0+y1)/2,box1->p,cs) > 1 ) Break; // ~ocr-a-[ Break 3864 lib/gocr/ocr0.c if( y==y0+3*dy/4 ) Break; i1=y; // i1: upper end of right gap Break 3869 lib/gocr/ocr0.c if (t1>dx/2) Break; Break 3874 lib/gocr/ocr0.c } if(i2<y0+5*dy/8-t1/2) Break; // i2: lowest white point above lower bow Break 3878 lib/gocr/ocr0.c if(i3>y0+ dy/4+t1/2) Break; // highest Break 3882 lib/gocr/ocr0.c if( y-i1<dy/6 ) Break; i2=y-1; // lower end of right gap Break 3884 lib/gocr/ocr0.c if( num_cross(x1-dx/4,x1-dx/4,i2,y0,box1->p,cs) < 1 ) Break; // ~L Break 3887 lib/gocr/ocr0.c && num_cross(x0+dx/2,x1,y1-dy/4,y1,box1->p,cs) < 1 ) Break; // ~r Break 3901 lib/gocr/ocr0.c if( y<dy ) Break; // ~r Break 3908 lib/gocr/ocr0.c } if( y>=dy/4 ) Break; Break 3919 lib/gocr/ocr0.c || num_cross(i ,i ,1,dy/2,bp,cs) > 1 ) Break; // ~bad e Break 3926 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/4,dy/4,bp,cs) < 2 ) Break; Break 3932 lib/gocr/ocr0.c && get_bw(x1,x1,y0+1,y1-1,box1->p,cs,1) != 1 ) Break; /* ~[ */ Break 3942 lib/gocr/ocr0.c > loop(bp,dx-1, dy/16,dx,cs,0,LE) ) Break; // ~( Break 3949 lib/gocr/ocr0.c Break; Break 3968 lib/gocr/ocr0.c if (i>=dx/2 && j>dy/8 && j>2 && j<dy/2) Break; // t Break 4000 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 4002 lib/gocr/ocr0.c if (i<3 && dy>8) {Break;} Break 4009 lib/gocr/ocr0.c } if( i<3*dx/4 ) Break; i1=i; // length of horizontal line Break 4011 lib/gocr/ocr0.c i=loop(box1->p,x0 ,y0+dy/2,dx,cs,0,RI); if( i>dx/2 ) Break; Break 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; Break 4016 lib/gocr/ocr0.c && loop(bp,dx-1,3*dy/4,dx,cs,0,LE)<dx/4) Break; // ~G Break 4022 lib/gocr/ocr0.c } if( !i ) Break; Break 4023 lib/gocr/ocr0.c if( num_cross(0, dx-1-dx/8, dy-1-dy/2, dy-1-dy/2,bp,cs) != 1 ) Break; Break 4024 lib/gocr/ocr0.c if( num_cross(0, dx-1 , dy/3 , dy/3,bp,cs) != 1 ) Break; Break 4025 lib/gocr/ocr0.c if( num_cross(0, dx-1 , dy/8 , dy/8,bp,cs) != 1 ) Break; Break 4044 lib/gocr/ocr0.c if( box1->dots>0 ) Break; Break 4046 lib/gocr/ocr0.c || num_cross(0, dx-1,dy/4,dy/4,bp,cs) != 1 ) Break; Break 4054 lib/gocr/ocr0.c if ( i1>2*i2 ) Break; Break 4065 lib/gocr/ocr0.c || loop(bp, 0,dy-1,dx,cs,0,RI)>3*dx/8) Break; // ~7 Break 4076 lib/gocr/ocr0.c if( i3>i1+dx/8+1 && i4>i1+dx/8+1 ) Break; // ~I Break 4082 lib/gocr/ocr0.c } if ( y<dy/4 ) Break; Break 4087 lib/gocr/ocr0.c } if ( y==dy ) Break; Break 4094 lib/gocr/ocr0.c if( get_bw(dx-1-dx/8,dx-1,0,dy/2,bp,cs,1) == 1 ) Break; Break 4103 lib/gocr/ocr0.c if( get_bw(0 ,dx/8,0 ,dy/3,bp,cs,1) == 1 ) Break; Break 4108 lib/gocr/ocr0.c if( y<12*dy/16 ) Break; Break 4113 lib/gocr/ocr0.c if( y<dy-1 ) Break; Break 4121 lib/gocr/ocr0.c if (y>=dy/5 ) Break; Break 4129 lib/gocr/ocr0.c if (y>=dy/5 ) Break; Break 4136 lib/gocr/ocr0.c if( get_bw(dx-1-i/2,dx-1-i/2,0,dy/2,bp,cs,1) == 1 ) Break; // ~t Break 4145 lib/gocr/ocr0.c && num_cross(i,i,5*dy/8, y,bp,cs)==0 ) Break; // ~J Break 4151 lib/gocr/ocr0.c && loop(bp,dx-1,7*dy/8,dx,cs,0,LE)<=dx/8 ) Break; // ~J Break 4155 lib/gocr/ocr0.c && get_bw(0,dx/8,0,dy/4,bp,cs,1) == 1 ) Break; // ~7 Break 4165 lib/gocr/ocr0.c && get_bw(dx/4,dx/4,dy/2,dy-1,bp,cs,1) == 0 ) Break; Break 4172 lib/gocr/ocr0.c if ( loop(bp,dx-1,dy/2,dx,cs,0,LE)==0 ) Break; Break 4188 lib/gocr/ocr0.c - loop(bp,dx/16+1,0,dy,cs,0,DO) < dx/16+1 ) Break; // ~1 Jul00,Nov00 Break 4189 lib/gocr/ocr0.c if( num_cross(0,dx/2,y-1,y-1,bp,cs)==2 ) Break; // ~1 Break 4195 lib/gocr/ocr0.c && i>1 && i<dy/2 ) Break; // ~1 Break 4200 lib/gocr/ocr0.c && get_bw(x0,x0+dx/4,y0+1+dy/16,y1-1-dy/16,box1->p,cs,1) != 1 ) Break; /* ~] */ Break 4207 lib/gocr/ocr0.c && get_bw(x1-dx/4,x1,y0+1+dy/16,y1-1-dy/16,box1->p,cs,1) != 1 ) Break; /* ~[ */ Break 4214 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) < i-dx/8 ) Break; // ~( Break 4218 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) > i+dx/8 ) Break; // ~) Break 4237 lib/gocr/ocr0.c >loop(bp, 0, i+1,dx,cs,0,RI) ) Break; // ~t Break 4238 lib/gocr/ocr0.c if( loop(bp, 0,i-1,dx,cs,0,RI)>1 && dx<6 ) Break; // ~t Break 4242 lib/gocr/ocr0.c && loop(bp,dx-1, i-1,dx,cs,0,LE)>dx/8 ) Break; // ~t Break 4303 lib/gocr/ocr0.c if (sdata->holes.num !=1 ) Break; Break 4304 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 4305 lib/gocr/ocr0.c if( get_bw(x1-dx/2 , x1 ,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 4306 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y1-dy/2 , y1, box1->p,cs,1) != 1 ) Break; Break 4307 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y0 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 4308 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y0+dy/2 , y1-dy/3,box1->p,cs,1) != 0 ) Break; Break 4310 lib/gocr/ocr0.c || sdata->holes.hole[0].y1 < dy-1-dy/3) Break; Break 4313 lib/gocr/ocr0.c && num_cross(x0+dx/2+1,x0+dx/2+1,y0, y1 ,box1->p,cs) != 2 ) Break; Break 4315 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/4,y0+1 , y0+1,box1->p,cs) != 1 ) Break; Break 4317 lib/gocr/ocr0.c if( num_cross(x0+dx/4,x1-dx/3,y1-1 , y1-1,box1->p,cs) != 1 ) Break; Break 4319 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 4321 lib/gocr/ocr0.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 4324 lib/gocr/ocr0.c loop(bp,0 ,2 ,x1-x0,cs,0,RI) ) Break; Break 4331 lib/gocr/ocr0.c if( y<dy ) Break; Break 4336 lib/gocr/ocr0.c <= 2*loop(bp,0, dy/2 ,dx,cs,0,RI)+dx/8 ) Break; // not konvex Break 4338 lib/gocr/ocr0.c <= loop(bp,dx-1, 1+dy/16,dx,cs,0,LE) ) Break; // Dec00 Break 4341 lib/gocr/ocr0.c if( loop(bp,0 , dy/16,dx,cs,0,RI)<dx/16 ) Break; Break 4343 lib/gocr/ocr0.c if( loop(bp,0 ,dy-1-dy/16,dx,cs,0,RI)<dx/16 ) Break; Break 4348 lib/gocr/ocr0.c || get_bw(x0,x0+dx/32,y1-dy/32,y1,box1->p,cs,1) == 1 ) ) Break; // ~D Break 4401 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 4402 lib/gocr/ocr0.c if( get_bw(0 , dx/2,3*dy/4,3*dy/4,bp,cs,1) != 1 ) Break; Break 4403 lib/gocr/ocr0.c if( get_bw(0 , dx/2, dy/2, dy/2,bp,cs,1) < 1 ) Break; Break 4404 lib/gocr/ocr0.c if( get_bw(dx/4, dx-1, dy/4, dy/4,bp,cs,1) != 1 ) Break; Break 4405 lib/gocr/ocr0.c i= loop(bp,dx-1,3*dy/4,dx,cs,0,LE); if (i<dx/4) Break; Break 4408 lib/gocr/ocr0.c if( num_cross(x0+dx/2+1,x0+dx/2+1, y0, y1-3*dy/16,box1->p,cs) != 2 ) Break; Break 4410 lib/gocr/ocr0.c if( num_cross(0,dx-1,7*dy/8-1,7*dy/8-1,bp,cs) != 1 ) Break; Break 4414 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/4+1, dy/4+1,bp,cs) != 2 ) Break; Break 4418 lib/gocr/ocr0.c if( num_cross(i-1,dx-1, dy/4+1, dy/4+1,bp,cs) != 2 ) Break; Break 4428 lib/gocr/ocr0.c } if ( y<7*dy/8 ) Break; Break 4432 lib/gocr/ocr0.c } if ( x<dx/2 || x>=dx) Break; Break 4433 lib/gocr/ocr0.c if( get_bw(3*dx/4,dx-1, y , dy-1,bp,cs,1) == 1 ) Break; Break 4442 lib/gocr/ocr0.c if (i>1 || j>1 || j>i) Break; Break 4473 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 4474 lib/gocr/ocr0.c if( get_bw(x0 ,x0+dx/3,y0+dy/3,y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 4475 lib/gocr/ocr0.c if( get_bw(x1-dx/3,x1 ,y0+dy/3,y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 4476 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x0+dx/2,y1-dy/3,y1, box1->p,cs,1) != 1 ) Break; Break 4477 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x0+dx/2,y0 ,y0+dy/4,box1->p,cs,1) != 1 ) Break; Break 4478 lib/gocr/ocr0.c if( get_bw(x0+dx/2,x0+dx/2,y0+dy/3,y1-dy/2,box1->p,cs,1) == 1 ) Break; Break 4479 lib/gocr/ocr0.c if( get_bw(x1 ,x1 ,y0 ,y0 ,box1->p,cs,1) == 1 ) Break; //alpha Break 4480 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) < 2 ) Break; Break 4482 lib/gocr/ocr0.c if( num_cross(x0+dx/5,x1-dx/5,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; Break 4484 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 4487 lib/gocr/ocr0.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 4490 lib/gocr/ocr0.c if(!i) Break; Break 4491 lib/gocr/ocr0.c if( i!=1 && (i!=2 || num_hole(x0,x1,y0+dy/2,y1,box1->p,cs,NULL)!=1) ) Break; Break 4493 lib/gocr/ocr0.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,LE,ST); if( x<x1-dx/2 ) Break; Break 4497 lib/gocr/ocr0.c < loop(bp,0 ,2 ,dx,cs,0,RI) ) Break; Break 4499 lib/gocr/ocr0.c +loop(bp,dx-1,dy/8+2,dx,cs,0,LE) > 5*dx/8 ) Break; // ~4 Okt00 Break 4501 lib/gocr/ocr0.c x= loop(bp,dx-1,3*dy/8,dy,cs,0,LE); if( x>dx/4 ) Break; Break 4503 lib/gocr/ocr0.c <= loop(bp,dx-2-x,0 ,dy,cs,0,DO) ) Break; // 4 Break 4510 lib/gocr/ocr0.c if( loop(bp, 0, 0,dx,cs,0,RI)>dx/2 ) Break; // 4 Break 4519 lib/gocr/ocr0.c if( loop(bp,dx-1,dy/3,dx,cs,0,LE)> dx/4 ) Break; Break 4524 lib/gocr/ocr0.c else Break; Break 4530 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) > 2 ) i++; if(i>dy/8) Break; // ~a \it a Break 4537 lib/gocr/ocr0.c if( j>dx/16 ) Break; // falling line detected Break 4539 lib/gocr/ocr0.c if (j==0) Break; // no falling line => no Q Break 4549 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 4551 lib/gocr/ocr0.c if( num_cross(x0,x1, y, y,box1->p,cs) == 2 ) Break; Break 4552 lib/gocr/ocr0.c } if (2*y>y0+y1) Break; /* < */ Break 4555 lib/gocr/ocr0.c && num_cross(x0,x0+dx/2, y, y,box1->p,cs) == 0 ) Break; Break 4556 lib/gocr/ocr0.c } if (y>y1) Break; /* O (y==y1 for 4x6font-q) */ Break 4561 lib/gocr/ocr0.c } if ( x<dx/2 || x>=dx) Break; Break 4566 lib/gocr/ocr0.c if (hchar || !gchar) Break; // 4 Break 4572 lib/gocr/ocr0.c if( get_bw(x1-dx/3, x1, y0+dy/3, y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 4573 lib/gocr/ocr0.c if( get_bw(x0, x0+dx/3, y0+dy/3, y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 4574 lib/gocr/ocr0.c if( get_bw(x0, x0+dx/4, y1-dy/8, y1-dy/9,box1->p,cs,1) == 1 ) Break; Break 4576 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2, y0, j ,box1->p,cs) != 2 ) Break; Break 4579 lib/gocr/ocr0.c { if (dx<16) ad=98*ad/100; else Break; } Break 4581 lib/gocr/ocr0.c { if (dx<16) ad=98*ad/100; else Break; } Break 4584 lib/gocr/ocr0.c && get_bw(dx/4,dx/4,dy-1-dy/4,dy-1,bp,cs,1)==1 ) Break; // ~\it g Break 4608 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 4642 lib/gocr/ocr0.c if (2*y>=ya+y1) Break; // hmm, gap only, no dot? Break 4644 lib/gocr/ocr0.c if (box1->m2 && ya>box1->m2+2) Break; Break 4646 lib/gocr/ocr0.c if (2*y>=ya+y1) Break; // hmm no gap Break 4651 lib/gocr/ocr0.c if (5*yb>=2*ya+3*y1) Break; // huge gap, ~: Break 4659 lib/gocr/ocr0.c if (y>(ya+3*y1)/4) Break; Break 4663 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) != 1 ) Break; Break 4666 lib/gocr/ocr0.c if( yd<3*(y1-yb+1)/4+yb-y0 ) Break; Break 4670 lib/gocr/ocr0.c if( yf>(y1-yb+1)/4+yb-y0 ) Break; Break 4682 lib/gocr/ocr0.c if( yc-1+y < yd-1 ) Break; Break 4685 lib/gocr/ocr0.c if( yc-1+y < yd-2 ) Break; Break 4693 lib/gocr/ocr0.c if( ye+1-y > yf+1 ) Break; Break 4701 lib/gocr/ocr0.c -loop(bp,dx-1,2*dy/4,dx,cs,0,LE)>dx/8 ) Break; Break 4707 lib/gocr/ocr0.c && loop(bp,dx-1, dy-1,dx,cs,0,LE)<dx/4 ) Break; // ~d=cl Break 4720 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 4725 lib/gocr/ocr0.c if(2*y>=ya+y1) Break; // hmm only gap Break 4727 lib/gocr/ocr0.c if( box1->m2 && ya>box1->m2+2 ) Break; Break 4729 lib/gocr/ocr0.c if(2*y>=ya+y1) Break; // hmm no gap Break 4731 lib/gocr/ocr0.c if(2*y>=ya+y1) Break; // hmm very large gap Break 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) Break 4739 lib/gocr/ocr0.c if(y<=y1) Break; Break 4742 lib/gocr/ocr0.c if( num_cross(0,dx-1,y,y,bp,cs) >2 ) Break; Break 4745 lib/gocr/ocr0.c if( yd<3*(y1-yb+1)/4+yb-y0 ) Break; Break 4749 lib/gocr/ocr0.c if( yf>(y1-yb+1)/4+yb-y0 ) Break; Break 4761 lib/gocr/ocr0.c if( yc-1+y < yd-1 ) Break; Break 4764 lib/gocr/ocr0.c if( yc-1+y < yd-2 ) Break; Break 4772 lib/gocr/ocr0.c if( ye+1-y > yf+1 ) Break; Break 4782 lib/gocr/ocr0.c -loop(bp,dx-1,2*dy/4,dx,cs,0,LE)<=dx/8 ) Break; Break 4795 lib/gocr/ocr0.c if( box1->dots==1 ) Break; Break 4796 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 4799 lib/gocr/ocr0.c if(loop(bp,0,7*dy/8,dx,cs,0,RI) > x+dx/8) Break; Break 4803 lib/gocr/ocr0.c if( y<dy-1-dy/16 ) Break; Break 4810 lib/gocr/ocr0.c } if( y<3*dy/4 ) Break; Break 4822 lib/gocr/ocr0.c if( abs(i3-i1)>1+dx/8 ) Break; // if i3>>i5 more sure! Break 4825 lib/gocr/ocr0.c if(i1+1<i5 && !hchar) Break; // Jun00 Break 4838 lib/gocr/ocr0.c if( get_line2(i1,dy/8,i2,dy-1-dy/8,bp,cs,100)<95 ) Break; Break 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; Break 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; Break 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; Break 4854 lib/gocr/ocr0.c > loop(bp,dx-1,dy/4 ,dx,cs,0,LE)+1+dx/32 ) Break; // ~bad ) (thinn) Break 4858 lib/gocr/ocr0.c if( i>1 ) Break; Break 4862 lib/gocr/ocr0.c && get_bw(dx/4,dx/4,dy/2,dy-1,bp,cs,1) == 0 ) Break; Break 4865 lib/gocr/ocr0.c && loop(bp, 1, 0,dy,cs,0,DO)<=dy/4 ) Break; // ~z Break 4871 lib/gocr/ocr0.c && get_bw(x0,x0,y0+1,y1-1,box1->p,cs,1) != 1 ) Break; /* ~] */ Break 4875 lib/gocr/ocr0.c && loop(bp, 0, dy/2,dx,cs,0,RI) < dx/4 ) Break; /* ~[ */ Break 4882 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) < i-dx/8 ) Break; // ~( Break 4886 lib/gocr/ocr0.c && loop(bp,dx-1, dy/8,dx,cs,0,LE) > i+dx/8 ) Break; // ~) Break 4888 lib/gocr/ocr0.c -(dx-loop(bp,dx-1,7*dy/8,dx,cs,0,LE)) > dx/4 ) Break; // ~/ Break 4896 lib/gocr/ocr0.c Break; // ~i Break 4948 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; /* no hole */ Break 4952 lib/gocr/ocr0.c if (aa[3][2]>d) Break; /* [2] = distance */ Break 4987 lib/gocr/ocr0.c if (box1->frame_vector[i ][1]-y0<dy/4) Break; // U Break 4992 lib/gocr/ocr0.c -box1->frame_vector[j ][1]<=dy/4) Break; // imperfect a Break 4993 lib/gocr/ocr0.c if (box1->frame_vector[i7][1]>y0+dy/4) Break; // not to low Break 4995 lib/gocr/ocr0.c -box1->frame_vector[i7][1]<dy/2) Break; Break 4997 lib/gocr/ocr0.c -box1->frame_vector[i5][1]<dy/2) Break; Break 4998 lib/gocr/ocr0.c if (box1->frame_vector[i7][0]<x0+dx/2) Break; Break 5000 lib/gocr/ocr0.c -box1->frame_vector[i2][0]<=dx/8) Break; // ~1 Break 5014 lib/gocr/ocr0.c } if (i==i4) Break; // ~I Break 5019 lib/gocr/ocr0.c } if (i!=i4) Break; // ~I Break 5023 lib/gocr/ocr0.c } if (i!=i6) Break; // ~Y Break 5027 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 5035 lib/gocr/ocr0.c if (ld >2*sq(1024/4)) Break; Break 5067 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 5068 lib/gocr/ocr0.c if (sdata->holes.num > 0 && (dx<6 || dy<6)) Break; /* # */ Break 5072 lib/gocr/ocr0.c if (aa[0][2]>d) Break; /* upper left end */ Break 5073 lib/gocr/ocr0.c if (aa[1][2]>d) Break; /* lower left end */ Break 5074 lib/gocr/ocr0.c if (aa[1][1]-aa[0][1]<dy/2) Break; Break 5081 lib/gocr/ocr0.c } if (j==i || j==aa[0][3]) Break; Break 5086 lib/gocr/ocr0.c if (abs(aa[0][1]+aa[1][1]-2*y)>(dy+2)) Break; Break 5087 lib/gocr/ocr0.c if ( aa[0][0]+aa[1][0]-2*x>=0) Break; Break 5092 lib/gocr/ocr0.c if (d >sq(1024/4)) Break; ad=ad-d*100/sq(1024); Break 5097 lib/gocr/ocr0.c if (d >sq(1024/4)) Break; ad=ad-d*100/sq(1024); Break 5105 lib/gocr/ocr0.c } if (j==i || j==aa[1][3]) Break; Break 5109 lib/gocr/ocr0.c if ( (aa[0][0]+aa[1][0]-2*x)>= 0 ) Break; Break 5110 lib/gocr/ocr0.c if (abs(aa[0][1]+aa[1][1]-2*y)>(dy+2)/4) Break; Break 5111 lib/gocr/ocr0.c if (aa[0][0]>=x || aa[1][0]>=x) Break; Break 5116 lib/gocr/ocr0.c if (d >sq(1024/4)) Break; ad=ad-d*100/sq(1024); Break 5121 lib/gocr/ocr0.c if (d >sq(1024/4)) Break; ad=ad-d*100/sq(1024); Break 5141 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; /* tolerant against a tiny hole */ Break 5148 lib/gocr/ocr0.c if( y<dy ) Break; Break 5149 lib/gocr/ocr0.c if ( i>2 || (i>0 && dy<16)) Break; Break 5156 lib/gocr/ocr0.c if (abs(i2-2*dx)>1+dx/2) Break; Break 5170 lib/gocr/ocr0.c } if( y<dy ) Break; Break 5173 lib/gocr/ocr0.c } if( y<dy ) Break; Break 5176 lib/gocr/ocr0.c Break; Break 5183 lib/gocr/ocr0.c if (sdata->holes.num > 1) {Break;}; /* tolerant against a tiny hole */ Break 5190 lib/gocr/ocr0.c if( y<dy ) {Break;}; Break 5191 lib/gocr/ocr0.c if ( i>2 || (i>0 && dy<16)) {Break;}; Break 5207 lib/gocr/ocr0.c if(i5==0 && 3*i2>dx && i1<=dx/8 && i3<=dx/8) { Setac(box1,(bc='<'),98);{Break;}; } Break 5219 lib/gocr/ocr0.c Setac(box1,(bc='<'),ad);{Break;}; Break 5251 lib/gocr/ocr0.c if( y==(dy+2)/4 ) {Break;}; // ~l (left upper side must be convex) Jul00 Break 5254 lib/gocr/ocr0.c Break; Break 5259 lib/gocr/ocr0.c if (sdata->holes.num > 1) { Break;} /* tolerant against a tiny hole */ Break 5263 lib/gocr/ocr0.c } if (y<dy) {Break;}; Break 5265 lib/gocr/ocr0.c && get_bw(x0,x1,y0+1,y0+1,box1->p,cs,2) == 2 ) {Break;}; Break 5267 lib/gocr/ocr0.c && get_bw(x0,x1,y1-1,y1-1,box1->p,cs,2) == 2 ) {Break;}; Break 5283 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 5288 lib/gocr/ocr0.c if (aa[0][2]>d) Break; Break 5289 lib/gocr/ocr0.c if (aa[1][2]>d) Break; Break 5290 lib/gocr/ocr0.c if (aa[2][2]>d) Break; Break 5291 lib/gocr/ocr0.c if (aa[3][2]>d) Break; Break 5292 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<7*dx/8) Break; Break 5293 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<7*dx/8) Break; Break 5294 lib/gocr/ocr0.c if (aa[1][1]-aa[0][1]<7*dy/8) Break; Break 5295 lib/gocr/ocr0.c if (aa[2][1]-aa[3][1]<7*dy/8) Break; Break 5296 lib/gocr/ocr0.c if (aa[3][0]-aa[0][0]<2) Break; /* to small */ Break 5297 lib/gocr/ocr0.c if (aa[2][0]-aa[1][0]<2) Break; /* to small */ Break 5303 lib/gocr/ocr0.c d=line_deviation(box1, aa[0][3], aa[1][3]); if (d>2*sq(1024/4)) Break; Break 5305 lib/gocr/ocr0.c d=line_deviation(box1, aa[2][3], aa[3][3]); if (d>2*sq(1024/4)) Break; Break 5311 lib/gocr/ocr0.c if (y-y0 > 5*dy/8) Break; Break 5312 lib/gocr/ocr0.c if (x-x0 > 5*dx/8) Break; Break 5316 lib/gocr/ocr0.c && box1->frame_vector[i3][1]-y<=dy/8) Break; Break 5319 lib/gocr/ocr0.c dbg[0]=d=line_deviation(box1,i1, aa[2][3]); if (d >2*sq(1024/4)) Break; Break 5321 lib/gocr/ocr0.c dbg[1]=d=line_deviation(box1, aa[1][3],i1); if (d >2*sq(1024/4)) Break; Break 5353 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 5357 lib/gocr/ocr0.c } if (y<dy) Break; Break 5360 lib/gocr/ocr0.c } if (y<dx/2) Break; Break 5361 lib/gocr/ocr0.c if ( num_cross(dx-1,dx-1,dy/4,dy-1-dy/4,bp,cs) != 0 ) Break; Break 5362 lib/gocr/ocr0.c if ( num_cross( 0, 0,dy/4,dy-1-dy/4,bp,cs) != 1 ) Break; Break 5370 lib/gocr/ocr0.c if ( loop(bp,dx-2,dy-1,dy,cs,0,UP)>dy/4 ) Break; // f Break 5372 lib/gocr/ocr0.c || get_bw(x0,x0,y1-dy/4,y1,box1->p,cs,1) == 1 ) Break; Break 5373 lib/gocr/ocr0.c Setac(box1,(bc='{'),ad);Break; Break 5380 lib/gocr/ocr0.c } if (y<dy) Break; Break 5383 lib/gocr/ocr0.c } if (y<dx/2) Break; Break 5384 lib/gocr/ocr0.c if ( num_cross( 0, 0,dy/4,dy-1-dy/4,bp,cs) != 0 ) Break; Break 5385 lib/gocr/ocr0.c if ( num_cross(dx-1,dx-1,dy/4,dy-1-dy/4,bp,cs) != 1 ) Break; Break 5393 lib/gocr/ocr0.c if ( loop(bp,1,dy-1,dy,cs,0,UP)>dy/4 ) Break; // ??? Break 5395 lib/gocr/ocr0.c || get_bw(x1,x1,y1-dy/4,y1,box1->p,cs,1) == 1 ) Break; Break 5396 lib/gocr/ocr0.c Setac(box1,(bc='}'),ad);Break; Break 5512 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 5515 lib/gocr/ocr0.c if( get_bw(x0,x0+xa,y0,y0+ya,box1->p,cs,1) == 1 ) Break; Break 5516 lib/gocr/ocr0.c if( get_bw(x0,x0+xa,y1-ya,y1,box1->p,cs,1) == 1 ) Break; Break 5517 lib/gocr/ocr0.c if( get_bw(x1-xb,x1,y0,y0+ya,box1->p,cs,1) == 1 ) Break; Break 5518 lib/gocr/ocr0.c if( get_bw(x1-xa,x1,y1-ya,y1,box1->p,cs,1) == 1 ) Break; Break 5523 lib/gocr/ocr0.c if( !i ) Break; Break 5532 lib/gocr/ocr0.c if (sdata->holes.num != 2) Break; Break 5534 lib/gocr/ocr0.c if( get_bw(x0,x0+dx/5,y0 ,y0+dy/18,box1->p,cs,1) == 1 ) Break; Break 5535 lib/gocr/ocr0.c if( get_bw(x0,x0+dx/9,y1-dy/23,y1 ,box1->p,cs,1) == 1 ) Break; Break 5536 lib/gocr/ocr0.c if( get_bw(x1-dx/9,x1,y0 ,y0+dy/18,box1->p,cs,1) == 1 ) Break; Break 5537 lib/gocr/ocr0.c if( get_bw(x1-dx/5,x1,y1-dy/23,y1 ,box1->p,cs,1) == 1 ) Break; Break 5538 lib/gocr/ocr0.c if( get_bw(x0,x0+dx/3,y0+dy/3 ,y0+dy/2 ,box1->p,cs,1) != 1 ) Break; Break 5539 lib/gocr/ocr0.c if( get_bw(x1-dx/3,x1,y1-dy/2 ,y1-dy/3 ,box1->p,cs,1) != 1 ) Break; Break 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; Break 5541 lib/gocr/ocr0.c i2=x0+loop(box1->p,x0,y1,dx,cs,0,RI); if( i2<x0+dx/5 || i2>i1 ) Break; Break 5548 lib/gocr/ocr0.c } if (x<=dx/4) Break; Break 5553 lib/gocr/ocr0.c } if (x<=dx/4) Break; Break 5554 lib/gocr/ocr0.c if (ad<95) Break; Break 5563 lib/gocr/ocr0.c if (sdata->holes.num != 2) Break; Break 5564 lib/gocr/ocr0.c if( get_bw(x1-dx/9,x1,y0,y0+dy/4,box1->p,cs,1) == 1 ) Break; // g Break 5565 lib/gocr/ocr0.c if( loop(bp,dx/2,0,dy,cs,0,DO)>dy/2) Break; Break 5566 lib/gocr/ocr0.c i1=loop(bp,0,dy/8 ,dx,cs,0,RI); if (i1>dx/2) Break; Break 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; Break 5568 lib/gocr/ocr0.c i3=loop(bp,0,dy-dy/4 ,dx,cs,0,RI); if (i3>dx/2) Break; Break 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; Break 5570 lib/gocr/ocr0.c if (i3>i1) Break; Break 5574 lib/gocr/ocr0.c if(2*i2-i1-i3<1) Break; Break 5576 lib/gocr/ocr0.c if( num_hole(x0,x1-dx/4,y0,y1,box1->p,cs,NULL)!=2 ) Break; Break 5577 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1,dy/4,dy-1,bp,cs) < 1 ) Break; Break 5580 lib/gocr/ocr0.c } if( x<=3*dx/4 && x<dx-2) Break; Break 5582 lib/gocr/ocr0.c if (dy>15) { Break; } else ad=96*ad/100; Break 5616 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 5617 lib/gocr/ocr0.c if ( num_cross(x0, x1, y0, y0, box1->p, cs) !=1 ) Break; // ~? Break 5618 lib/gocr/ocr0.c if ( num_cross(x0, x1, y1, y1, box1->p, cs) > 1 ) Break; // ~? Break 5621 lib/gocr/ocr0.c if (2*y<y0+y1) Break; Break 5624 lib/gocr/ocr0.c if (get_bw(x0+1,x1-1,y1+1,box1->m4,box1->p,cs,1) != 1 ) Break; Break 5632 lib/gocr/ocr0.c if (y==dy/2) Break; Break 5634 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; Break 5637 lib/gocr/ocr0.c if( y==i1 ) Break; Break 5640 lib/gocr/ocr0.c if( get_bw(x0,x1,y,y,box1->p,cs,1) != 1 ) Break; Break 5641 lib/gocr/ocr0.c if( get_bw(x0+7*dx/8,x1,y,i1,box1->p,cs,1) == 1 ) Break; // broken thin 2 Break 5649 lib/gocr/ocr0.c if (sdata->holes.num > 1) Break; /* tolerant against a tiny hole */ Break 5651 lib/gocr/ocr0.c if (num_cross(x0,x1,y0 ,y0 ,box1->p,cs)!=1) Break; Break 5652 lib/gocr/ocr0.c if (num_cross(x0,x1,y0+dy/2,y0+dy/2,box1->p,cs)!=1) Break; Break 5655 lib/gocr/ocr0.c if (2*y<y0+y1) Break; Break 5669 lib/gocr/ocr0.c } if(y<=i2 || i1==0 || i1<y0+dy/2) Break; Break 5672 lib/gocr/ocr0.c -loop(bp,dx-1, 0,dx,cs,0,LE)>dx/4+1 ) Break; // f Break 5681 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; /* tolerant against a tiny hole */ Break 5683 lib/gocr/ocr0.c && num_cross(0,dx-1, 1,dy-2,bp,cs) != 1 ) Break; Break 5685 lib/gocr/ocr0.c && num_cross(0,dx-1,dy-2,dy-2,bp,cs) != 2 ) Break; Break 5688 lib/gocr/ocr0.c dbg[0]=i=get_line2(x,y,x ,0,bp,cs,100); if(i<95) Break; Break 5690 lib/gocr/ocr0.c if (get_bw(x,x,0,y,bp,cs,2)==2) Break; Break 5692 lib/gocr/ocr0.c dbg[1]=i=get_line2(0,y,dx-1,y,bp,cs,100); if(i<95) Break; Break 5695 lib/gocr/ocr0.c && get_bw(0,dx-1,y+1,y+1,bp,cs,2)==2) Break; Break 5699 lib/gocr/ocr0.c if(i<95) Break; Break 5701 lib/gocr/ocr0.c dbg[3]=i=get_line2(x, y,(2*dx+4)/8,dy-1,bp,cs,100); if(i<95) Break; // straight up Break 5703 lib/gocr/ocr0.c dbg[4]=i=get_bw( x, x,dy-1-dy/8,dy-1,bp,cs,1); if(i==1) Break; Break 5704 lib/gocr/ocr0.c dbg[5]=i=get_line2( dx/4,dy/4, 0,0,bp,cs,101); if(i<95) Break; // upper left gap Break 5705 lib/gocr/ocr0.c dbg[6]=i=get_line2(dx-1-dx/4,dy/4,dx-1,0,bp,cs,101); if(i<95) Break; // upper right gap Break 5713 lib/gocr/ocr0.c if (sdata->holes.num > 0) Break; /* tolerant against a tiny hole */ Break 5715 lib/gocr/ocr0.c && num_cross(0,dx-1, 1+dy/8, 1+dy/8,bp,cs) != 3) Break; Break 5716 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-2-dy/8,dy-2-dy/8,bp,cs) != 3) Break; Break 5717 lib/gocr/ocr0.c if( num_cross(0 , 0, 0,dy-1,bp,cs) != 2) Break; Break 5718 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,dy-1,bp,cs) != 2) Break; Break 5719 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy/2,dy/2,bp,cs) != 1) Break; Break 5720 lib/gocr/ocr0.c if( num_cross( 0 ,dx/8,dy/2,dy/2,bp,cs) != 0) Break; Break 5721 lib/gocr/ocr0.c if( num_cross(dx-1-dx/8,dx-1,dy/2,dy/2,bp,cs) != 0) Break; Break 5723 lib/gocr/ocr0.c dbg[0]=i=get_line2(0,dy-2-dy/8,dx-1,dy/8,bp,cs,100); if(i<95) Break; // black upwarts beam Break 5724 lib/gocr/ocr0.c dbg[1]=i=get_line2(0,dy/8,dx-1,dy-2-dy/8,bp,cs,100); if(i<95) Break; // black downwards beam Break 5726 lib/gocr/ocr0.c dbg[2]=i=get_line2(dx/2,0,dx/2, dy-1,bp,cs,100); if(i<95) Break; Break 5736 lib/gocr/ocr0.c if (sdata->holes.num > 3) Break; /* tolerant against a tiny hole */ Break 5737 lib/gocr/ocr0.c if (loop(bp, 0,dy/2,dx,cs,0,RI)>dx/4) Break; Break 5738 lib/gocr/ocr0.c if (loop(bp,dx-1,dy/2,dx,cs,0,LE)>dx/4) Break; Break 5739 lib/gocr/ocr0.c if (loop(bp,dx/2,dy-1,dy,cs,0,UP)>dx/8) Break; Break 5740 lib/gocr/ocr0.c if (loop(bp,dx/2, 0,dy,cs,0,DO)>dx/8) Break; Break 5754 lib/gocr/ocr0.c if (i<3 || i>4) Break; Break 5757 lib/gocr/ocr0.c i=num_cross(x,x,0,dy-1,bp,cs); if (i<2) Break; Break 5762 lib/gocr/ocr0.c if (i<3 || i>4) Break; Break 5764 lib/gocr/ocr0.c if( num_cross(0, x,y,y,bp,cs) != 2 ) Break; Break 5765 lib/gocr/ocr0.c if( num_cross(x,dx-1,y,y,bp,cs) != 2 ) Break; Break 5766 lib/gocr/ocr0.c if( num_cross(x,x,0, y,bp,cs) != 2 ) Break; Break 5767 lib/gocr/ocr0.c if( num_cross(x,x,y,dy-1,bp,cs) != 2 ) Break; Break 5770 lib/gocr/ocr0.c if (sdata->holes.num != 1) Break; Break 5771 lib/gocr/ocr0.c if( num_hole(x0+dx/8,x1-3*dx/16,y0+dy/8,y1-dy/8,box1->p,cs,NULL) != 1 ) Break; Break 5890 lib/gocr/ocr0.c if (sdata->holes.num > 4) Break; /* tolerant against a tiny hole */ Break 5892 lib/gocr/ocr0.c && num_cross(dx-1-dx/4,dx-1,3*dy/16,3*dy/16,bp,cs) != 1 ) Break; Break 5893 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/ 4,3*dy/ 4,bp,cs) < 2 ) Break; Break 5894 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, dy-1,bp,cs) < 3 ) Break; Break 5895 lib/gocr/ocr0.c if( num_cross(dx-1,0, 0, dy-1,bp,cs) < 3 ) Break; Break 5897 lib/gocr/ocr0.c if( num_cross(0,dx-1,1+dy/16,1+dy/16,bp,cs) < 2 ) Break; Break 5898 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-dy/16,dy-1-dy/16,bp,cs) < 2 ) Break; Break 5901 lib/gocr/ocr0.c } if( x<dx/4 || x>3*dx/4 ) Break; Break 5904 lib/gocr/ocr0.c } if( x<dx/4 || x>3*dx/4 ) Break; Break 5909 lib/gocr/ocr0.c } if( x<dx/4 ) Break; Break 5910 lib/gocr/ocr0.c if( num_hole(x0,x0+3*dx/4,y0+dy/4,y1,box1->p,cs,NULL) != 1 ) Break; Break 5911 lib/gocr/ocr0.c if( num_hole(x0+dx/2-1,x1,y0,y1-dy/4,box1->p,cs,NULL) != 1 ) Break; Break 5922 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 5923 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/16,3*dy/16,bp,cs) < 2 ) Break; Break 5924 lib/gocr/ocr0.c if( num_cross(0,dx-1,3*dy/ 4,3*dy/ 4,bp,cs) < 2 ) Break; Break 5925 lib/gocr/ocr0.c if( num_cross(0,dx-1, 0, dy-1,bp,cs) < 3 ) Break; Break 5928 lib/gocr/ocr0.c && num_cross(0,dx-1, 0, 0,bp,cs) != 1 ) Break; Break 5935 lib/gocr/ocr0.c if (x>dx/8) Break; Break 5936 lib/gocr/ocr0.c if (j<dx/4) Break; Break 5942 lib/gocr/ocr0.c } if( y<3*dy/4 || i1<dx/4-1 || i3<dx/4-1) Break; Break 5948 lib/gocr/ocr0.c } if( i1<=dx/4 || i3<=dx/4 ) Break; Break 5954 lib/gocr/ocr0.c } if (x<=dx/2) Break; // not found Break 5955 lib/gocr/ocr0.c if (sdata->holes.num != 1) Break; Break 5956 lib/gocr/ocr0.c if( num_hole(x0,x0+3*dx/4,y0,y1-dy/4,box1->p,cs,NULL) != 1 ) Break; Break 5967 lib/gocr/ocr0.c if (sdata->holes.num > 3) Break; /* tolerant against a tiny hole */ Break 5968 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy/2,dy/2,bp,cs) != 3 ) Break; Break 5969 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2, 0,dy-1,bp,cs) != 3 ) Break; Break 5970 lib/gocr/ocr0.c if (loop(bp,dx-1,3*dy/8,dx,cs,0,RI)>dx/8) Break; Break 5971 lib/gocr/ocr0.c if (loop(bp, 0,5*dy/8,dx,cs,0,RI)>dx/8) Break; Break 5972 lib/gocr/ocr0.c if( num_cross( 0,dx-1, 0, 0,bp,cs) > 2 ) Break; Break 5973 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1, 0, 0,bp,cs) > 2 ) Break; Break 5974 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy-1,dy-1,bp,cs) > 2 ) Break; Break 5975 lib/gocr/ocr0.c if( num_cross( 0,3*dx/4,dy-1,dy-1,bp,cs) > 2 ) Break; Break 5976 lib/gocr/ocr0.c if( num_cross( 0, 0, 0,dy-1,bp,cs) > 2 ) Break; Break 5977 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,dy-1,bp,cs) > 2 ) Break; Break 5978 lib/gocr/ocr0.c if( num_cross( 0, 0,dy/4,dy-1,bp,cs) > 2 ) Break; Break 5979 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,3*dy/4,bp,cs) > 2 ) Break; Break 5980 lib/gocr/ocr0.c i1 =loop(bp,dx-1 , 0,dx,cs,0,LE); if( i1>dx/8 ) Break; Break 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; Break 5982 lib/gocr/ocr0.c i2 =loop(bp, 0,dy-1,dx,cs,0,RI); if( i2>dx/8 ) Break; Break 5986 lib/gocr/ocr0.c } if( y<dy-1 ) Break; Break 5987 lib/gocr/ocr0.c if( num_cross( 0 ,dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; Break 5988 lib/gocr/ocr0.c if( num_cross(dx-1-dx/4,dx-1,dy/2,dy/2,bp,cs) != 1 ) Break; Break 5989 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1-dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; Break 5990 lib/gocr/ocr0.c if (sdata->holes.num != 2) Break; Break 6006 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 6007 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy/2,dy/2,bp,cs) != 2 ) Break; Break 6008 lib/gocr/ocr0.c if( num_cross(0,dx-1-dx/4,dy/2,dy/2,bp,cs) != 2 ) Break; Break 6009 lib/gocr/ocr0.c if( num_cross(dx/2,dx/2, 0,dy-1,bp,cs) != 3 ) Break; Break 6010 lib/gocr/ocr0.c if( num_cross( 0,dx-1, 0, 0,bp,cs) > 2 ) Break; Break 6011 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1, 0, 0,bp,cs) > 2 ) Break; Break 6012 lib/gocr/ocr0.c if( num_cross( 0,dx-1,dy-1,dy-1,bp,cs) > 2 ) Break; Break 6013 lib/gocr/ocr0.c if( num_cross( 0,3*dx/4,dy-1,dy-1,bp,cs) > 2 ) Break; Break 6014 lib/gocr/ocr0.c if( num_cross( 0, 0, 0,dy-1,bp,cs) > 2 ) Break; Break 6015 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,dy-1,bp,cs) > 3 ) Break; Break 6016 lib/gocr/ocr0.c if( num_cross( 0, 0,dy/4,dy-1,bp,cs) > 2 ) Break; Break 6017 lib/gocr/ocr0.c if( num_cross(dx-1,dx-1, 0,3*dy/4,bp,cs) > 3 ) Break; Break 6018 lib/gocr/ocr0.c i1 =loop(bp,dx-1 , 0,dx,cs,0,LE); if( i1>dx/4 ) Break; Break 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; Break 6020 lib/gocr/ocr0.c i2 =loop(bp, 0,dy-1,dx,cs,0,RI); if( i2>dx/4 ) Break; Break 6026 lib/gocr/ocr0.c } if( y<dy ) Break; Break 6027 lib/gocr/ocr0.c if( num_cross( 0 ,dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; Break 6028 lib/gocr/ocr0.c if( num_cross(dx-1-dx/4,dx-1,dy/2,dy/2,bp,cs) != 0 ) Break; Break 6029 lib/gocr/ocr0.c if( num_cross(dx/4,dx-1-dx/4,dy/2,dy/2,bp,cs) != 1 ) Break; Break 6031 lib/gocr/ocr0.c if (sdata->holes.num != 1) Break; Break 6070 lib/gocr/ocr0.c if (3*x>dx) Break; // ~4 ocr-b Break 6097 lib/gocr/ocr0.c if (sdata->holes.num > 2) Break; /* tolerant against a tiny hole */ Break 6098 lib/gocr/ocr0.c if (sdata->holes.num < 1) Break; Break 6099 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/8, dy/8,bp,cs) != 2 ) Break; Break 6100 lib/gocr/ocr0.c if( num_cross(0,dx-1,dy-1-dy/8,dy-1-dy/8,bp,cs) != 2 ) Break; Break 6101 lib/gocr/ocr0.c if( num_cross(0,dx-1, dy/2, dy/2,bp,cs) != 2 ) Break; Break 6102 lib/gocr/ocr0.c if( num_cross(0,dx/2, dy/2, dy/2,bp,cs) != 1 ) Break; Break 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;} Break 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;} Break 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;} Break 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;} Break 6114 lib/gocr/ocr0.c if (i1<dx-dx/4 || i3<dx-dx/4) Break; Break 6118 lib/gocr/ocr0.c if( num_hole(x0+dx/8,x1-dx/8,y0+dy/8,y1-dy/8,box1->p,cs,NULL) != 1 ) Break; Break 6150 lib/gocr/ocr0.c if (box1->m2 && 2*y1> box1->m2+box1->m3) Break; Break 6162 lib/gocr/ocr0.c && num_cross(x0,x1 ,y0+dy/8,y0+dy/8,box1->p,cs) != 3 ) Break; Break 6164 lib/gocr/ocr0.c && num_cross(x0,x1+dx/4,y1-dy/8,y1-dy/8,box1->p,cs) != 3 ) Break; Break 6168 lib/gocr/ocr0.c && dx>7 && dy>15) Break; Break 6172 lib/gocr/ocr0.c if( num_hole(x0 ,x1 ,y0,y1-dy/4,box1->p,cs,NULL) != 1 ) Break; Break 6173 lib/gocr/ocr0.c if( num_hole(x0+dx/4,x1+dx/4,y0+dy/4,y1,box1->p,cs,NULL) != 1 ) Break; Break 6174 lib/gocr/ocr0.c if( num_hole(x0 ,x1+dx/4,y0,y1 ,box1->p,cs,NULL) != 2 ) Break; Break 6183 lib/gocr/ocr0.c } if (x<dx) Break; // ~gluedVI Break 6193 lib/gocr/ocr0.c if( get_bw(x0 , x0+dx/2,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 6194 lib/gocr/ocr0.c if( get_bw(x1-dx/2 , x1 ,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 6195 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y0 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 6196 lib/gocr/ocr0.c if( get_bw(x0+dx/2 , x0+dx/2,y0+dy/3 , y1-dy/3,box1->p,cs,1) != 0 ) Break; Break 6198 lib/gocr/ocr0.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 6200 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; Break 6202 lib/gocr/ocr0.c if( num_cross(x0+dx/3,x1-dx/3,y1-1 , y1-1 ,box1->p,cs) != 2 ) Break; Break 6204 lib/gocr/ocr0.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 6206 lib/gocr/ocr0.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 6207 lib/gocr/ocr0.c if (sdata->holes.num) Break; Break 6211 lib/gocr/ocr0.c loop(bp,0 ,2 ,x1-x0,cs,0,RI) ) Break; Break 6213 lib/gocr/ocr0.c || loop(bp,dx/2,dy-dy/4,x1-x0,cs,0,LE)>dx/4 ) Break; Break 6215 lib/gocr/ocr0.c || loop(bp,dx/2,3*dy/8,x1-x0,cs,0,LE)<dx/4 ) Break; Break 6217 lib/gocr/ocr0.c i=loop(bp,0,dy-1-dy/16,x1-x0,cs,0,RI); if(i>dx/8) Break; Break 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; Break 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; Break 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; Break 6227 lib/gocr/ocr0.c if( x>=3*dx/4 ) Break; Break 6365 lib/gocr/ocr0.c if (i2>=dy/2) Break; Break 6372 lib/gocr/ocr0.c if (abs(i1-dx)>dy/4) Break; // round or quadratic dots? Break 6374 lib/gocr/ocr0.c if (abs(i2-dx)>dy/4) Break; // round or quadratic dots? Break 84 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* be tolerant */ Break 86 lib/gocr/ocr0n.c && num_cross(5*dx/8,3*dx/8,0,dy-1,bp,cs)!=3 ) Break; Break 90 lib/gocr/ocr0n.c if (i2-i1 >= dx/4) Break; // ~{ 5x7font Break 94 lib/gocr/ocr0n.c y =loop(bp,x,0,dy,cs,0,DO); if(y>dy/8) Break; Break 95 lib/gocr/ocr0n.c y +=loop(bp,x,y,dy,cs,1,DO); if(y>dy/4) Break; Break 96 lib/gocr/ocr0n.c i1 =loop(bp,x,y,dy,cs,0,DO)+y; if(i1>5*dy/8) Break; Break 98 lib/gocr/ocr0n.c x =loop(bp,0,y,dx,cs,0,RI); if(x>4*dx/8) Break; Break 99 lib/gocr/ocr0n.c x +=loop(bp,x,y,dx,cs,1,RI); if(x>5*dx/8) Break; Break 102 lib/gocr/ocr0n.c x =loop(bp,dx-1 ,y,dx,cs,0,LE); if(x>dx/4) Break; Break 103 lib/gocr/ocr0n.c x +=loop(bp,dx-1-x,y,dx,cs,1,LE); if(x>dx/2) Break; Break 129 lib/gocr/ocr0n.c if( y==3*dy/4 ) Break; Break 133 lib/gocr/ocr0n.c if( y>11*dy/16 ) Break; Break 136 lib/gocr/ocr0n.c if (sdata->holes.num>0) Break; Break 147 lib/gocr/ocr0n.c if( 2*i2+1+dx/16 < i1+i3 ) Break; Break 160 lib/gocr/ocr0n.c >loop(bp,dx-1, 1 ,dx,cs,0,LE) ) Break; Break 165 lib/gocr/ocr0n.c if( num_cross(dx/4,dx-2,3*dy/10,3*dy/4,bp,cs)==1 ) Break; // connected? Break 189 lib/gocr/ocr0n.c if( dots==1 ) Break; Break 190 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* be tolerant */ Break 193 lib/gocr/ocr0n.c && num_cross(0, dx-1, 1 , 1 ,bp,cs) != 1 ) Break; Break 194 lib/gocr/ocr0n.c if( num_cross(0, dx-1,dy/2,dy/2,bp,cs) != 1 ) Break; Break 196 lib/gocr/ocr0n.c && num_cross(0, dx-1,dy-2,dy-2,bp,cs) != 1 ) Break; Break 216 lib/gocr/ocr0n.c } if( dy>8 && !i ) Break; Break 226 lib/gocr/ocr0n.c if (loop(bp,dx/2,i,dy,cs,1,DO)<dy-1) Break; Break 228 lib/gocr/ocr0n.c if (loop(bp,dx-i-1,dy-1-dy/16,dx,cs,1,LE)<dx-1) Break; Break 230 lib/gocr/ocr0n.c if (loop(bp,i,dy/16,dx,cs,1,RI)<dx/2) Break; Break 235 lib/gocr/ocr0n.c && num_cross(0, dx-1, 1 , 1 ,bp,cs) > 1 ) Break; // ~/it_7 Break 248 lib/gocr/ocr0n.c if( get_line2(i1,0,i2,dy-1,bp,cs,100)<95 ) Break; Break 256 lib/gocr/ocr0n.c if(y<4*dy/8) Break; Break 263 lib/gocr/ocr0n.c if(i3) Break; Break 271 lib/gocr/ocr0n.c if ( i1-i<4*dx/16 ) Break; Break 276 lib/gocr/ocr0n.c j =loop(bp,0,1,dx,cs,0,RI); if( j>x ) Break; // ~l Break 277 lib/gocr/ocr0n.c if( x==j ) j =loop(bp,0,dy/8,dx,cs,0,RI); if( j>x && !i4) Break; Break 289 lib/gocr/ocr0n.c || get_bw(x1+1,x1+2,y0,y0+dy/8,box1->p,cs,1)==1 ) Break; // Mai00 Break 291 lib/gocr/ocr0n.c && get_bw(x1-dx/4,x1,y1-1,y1,box1->p,cs,1)==1 ) Break; // ~z Jun00 Break 300 lib/gocr/ocr0n.c -(dx-loop(bp,dx-1,7*dy/8,dx,cs,0,LE)) > dx/4 ) Break; // ~/ Break 307 lib/gocr/ocr0n.c >loop(bp,dx-1, i+1,dx,cs,0,LE) ) Break; // ~t,~f Break 312 lib/gocr/ocr0n.c >loop(bp,dx-1,dy-1-dy/32,dx,cs,0,LE) ) Break; // ~t Break 315 lib/gocr/ocr0n.c if ( loop(bp,dx-1,i-1,dx,cs,0,LE)>1 ) Break; // ~t Break 348 lib/gocr/ocr0n.c if (sdata->holes.num > 0) Break; // mini holes should be filtered Break 364 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* be tolerant */ Break 365 lib/gocr/ocr0n.c if( get_bw(x0+dx/2, x0+dx/2 , y1-dy/5, y1 ,box1->p,cs,1) != 1 ) Break; Break 366 lib/gocr/ocr0n.c if( get_bw(x0+dx/2, x0+dx/2 , y0 , y0+dy/5,box1->p,cs,1) != 1 ) Break; Break 367 lib/gocr/ocr0n.c if( get_bw(x0+dx/8, x1-dx/3 , y1-dy/3, y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 369 lib/gocr/ocr0n.c if( get_bw(x1-dx/3, x1 , y0+dy/3 , y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 370 lib/gocr/ocr0n.c if( get_bw(x0 , x0+dx/ 8, y1-dy/16, y1 ,box1->p,cs,1) != 1 ) Break; Break 371 lib/gocr/ocr0n.c if( num_cross(x0, x1-dx/8, y0+dy/2, y0+dy/2,box1->p,cs) != 1 ) Break; Break 373 lib/gocr/ocr0n.c && get_bw(x0, x0+dx/2 ,y0+3*dy/16,y0+3*dy/16,box1->p,cs,1) == 1 ) Break; Break 376 lib/gocr/ocr0n.c { if (dx<6 && dy<9) ad=99*ad/100; else Break; } Break 381 lib/gocr/ocr0n.c if( x>=x1-dx/6 ) Break; Break 385 lib/gocr/ocr0n.c if( x>=x1-dx/6 ) Break; Break 393 lib/gocr/ocr0n.c if( i ) Break; Break 396 lib/gocr/ocr0n.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,UP,ST); if( y<y1-dy/5 ) Break; Break 398 lib/gocr/ocr0n.c if( y<y1-dy/3 ) Break; Break 399 lib/gocr/ocr0n.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,UP,ST); if( y<y0+dy/3 ) Break; y++; Break 402 lib/gocr/ocr0n.c turmite(box1->p,&x,&y,x0,x1,y0,y1,cs,UP,ST); if( y<y0+dy/2 ) Break; y++; Break 404 lib/gocr/ocr0n.c if( x<x1 ) Break; Break 413 lib/gocr/ocr0n.c if (y>dy/3 ) Break; // z Break 420 lib/gocr/ocr0n.c Break; Break 423 lib/gocr/ocr0n.c i2=loop(bp, dx/ 2,0,dy,cs,0,DO); if( i2+dy/32>=i1 ) Break; // ~z Break 440 lib/gocr/ocr0n.c if (sdata->holes.num > 0) Break; /* no hole */ Break 444 lib/gocr/ocr0n.c if (aa[1][2]>d/4) Break; /* [2] = distance, ~7... */ Break 445 lib/gocr/ocr0n.c if (aa[2][2]>d/2) Break; /* [2] = distance, ~r... */ Break 446 lib/gocr/ocr0n.c if (aa[0][2]>d/1) Break; /* [2] = distance, ~d... */ Break 447 lib/gocr/ocr0n.c if (aa[3][2]>d/1) Break; /* [2] = distance, ~bhk... */ Break 494 lib/gocr/ocr0n.c if (i5==i6) Break; // ~+ Break 497 lib/gocr/ocr0n.c -box1->frame_vector[i6][1]<dy/4) Break; // ~5 Break 498 lib/gocr/ocr0n.c if (box1->frame_vector[i1][1]>y0+dy/2) Break; // not to low Break 499 lib/gocr/ocr0n.c if (box1->frame_vector[i1][0]>x0+dx/8) Break; Break 500 lib/gocr/ocr0n.c if (box1->frame_vector[i2][1]>(y0+ y1)/2) Break; Break 502 lib/gocr/ocr0n.c if (box1->frame_vector[i2][0]<(x0+x1+1)/2) Break; // fat tiny fonts? Break 504 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0]>(3*x0+x1)/4) Break; Break 506 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]<(y0+3*y1)/4) Break; Break 509 lib/gocr/ocr0n.c if (box1->frame_vector[i5][0]>(x0+2*x1)/3) Break; Break 512 lib/gocr/ocr0n.c if (box1->frame_vector[i5][1]<(3*y0+5*y1)/8) Break; Break 514 lib/gocr/ocr0n.c if (box1->frame_vector[i6][1]>(y0+2*y1)/3) Break; Break 516 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<(x0+3*x1)/4) Break; Break 524 lib/gocr/ocr0n.c if (ld >2*sq(1024/4)) Break; Break 539 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* be tolerant */ Break 544 lib/gocr/ocr0n.c if( get_bw(dx/2,dx/2, 0,dy/6,bp,cs,1) == 0 ) Break; // ~4 Break 545 lib/gocr/ocr0n.c if( get_bw(dx/2,dx-1, dy/6,dy/6,bp,cs,1) == 0 ) Break; // ~j Break 546 lib/gocr/ocr0n.c if( get_bw(dx/2,dx/2,dy-1-dy/8,dy-1,bp,cs,1) == 0 ) Break; // ~4 Break 548 lib/gocr/ocr0n.c && num_cross(dx/3,dx/3,0 ,dy-1,bp,cs) < 2 ) Break; // fat LCD Break 549 lib/gocr/ocr0n.c if( num_cross(dx/4,dx/4,dy-1-dy/2,dy-1,bp,cs) == 0 ) Break; Break 550 lib/gocr/ocr0n.c if( loop(bp,dx/2, 0 ,dy,cs,0,DO)>dy/4 ) Break; Break 551 lib/gocr/ocr0n.c if( loop(bp,dx/2, dy-1,dy,cs,0,UP)>dy/4 ) Break; Break 554 lib/gocr/ocr0n.c && loop(bp,dx/4, dy/8,dy,cs,1,RI)<dy/2 ) Break; Break 555 lib/gocr/ocr0n.c if( loop(bp,dx-1,2*dy/3,dy,cs,0,LE)>dy/4 ) Break; Break 556 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,dy,cs,0,LE)>dy/2 ) Break; // ~2 Feb06 Break 557 lib/gocr/ocr0n.c if( loop(bp,dx-1,7*dy/8,dy,cs,0,LE)>dy/2 ) Break; // ~2 Feb06 Break 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; Break 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; Break 574 lib/gocr/ocr0n.c } if (dy>3*dx) if (xa<2 && x-xa<dx/2) Break; // ~] Break 581 lib/gocr/ocr0n.c if( get_bw(i3,i3,i1,i2 ,bp,cs,1) != 1 ) Break; Break 582 lib/gocr/ocr0n.c if( get_bw(i4,i4,i1,i2 ,bp,cs,1) != 1 ) Break; Break 583 lib/gocr/ocr0n.c if( get_bw(i3,i3,0 ,i1 ,bp,cs,1) != 1 ) Break; Break 584 lib/gocr/ocr0n.c if( get_bw(i4,i4,i1,dy-1,bp,cs,1) != 1 ) Break; // m like Break 590 lib/gocr/ocr0n.c Break; Break 600 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* no or one hole */ Break 604 lib/gocr/ocr0n.c if (aa[1][2]<d/8) Break; /* [2] = distance, ~ABDEF... */ Break 658 lib/gocr/ocr0n.c if (i5==i6) Break; // ~+ Break 660 lib/gocr/ocr0n.c if (box1->frame_vector[i1][1]>y0+dy/8) Break; // not to low Break 662 lib/gocr/ocr0n.c -box1->frame_vector[i1][1]<dy/2) Break; Break 664 lib/gocr/ocr0n.c -box1->frame_vector[i2][0]<dx/4) Break; Break 666 lib/gocr/ocr0n.c -box1->frame_vector[i2][1])>dy/4) Break; Break 667 lib/gocr/ocr0n.c if (box1->frame_vector[i2][0]>x0+dx/8) Break; Break 668 lib/gocr/ocr0n.c if (box1->frame_vector[i2][1]>y1-dy/8) Break; Break 670 lib/gocr/ocr0n.c -box1->frame_vector[i2][1]<dy/8) Break; Break 675 lib/gocr/ocr0n.c -box1->frame_vector[i3][1]<1+dy/16) Break; Break 680 lib/gocr/ocr0n.c if (box1->frame_vector[i4][1]<y1-1-dy/8) Break; Break 681 lib/gocr/ocr0n.c if (box1->frame_vector[i3][0]<x0+dx/4) Break; Break 684 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>y1-1) Break; Break 685 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>y1-dy/16) Break; Break 686 lib/gocr/ocr0n.c if (box1->frame_vector[i3][1]>=y1) Break; // ~5x5# Break 687 lib/gocr/ocr0n.c if (box1->frame_vector[i5][0]<x0+dx/3) Break; Break 689 lib/gocr/ocr0n.c if (box1->frame_vector[i5][1]>y0+2*dy/3) Break; Break 691 lib/gocr/ocr0n.c -box1->frame_vector[i5][1]<1+dy/16) Break; Break 692 lib/gocr/ocr0n.c if (box1->frame_vector[i6][0]<x0+dx/3) Break; Break 693 lib/gocr/ocr0n.c if (box1->frame_vector[i7][0]>x0+dx/2) Break; Break 695 lib/gocr/ocr0n.c if (box1->frame_vector[i6][1]<y0+dy/3) Break; Break 699 lib/gocr/ocr0n.c if (box1->frame_vector[i7][1]<y0+dy/3) Break; Break 701 lib/gocr/ocr0n.c -box1->frame_vector[i2][1])>dy/4) Break; Break 706 lib/gocr/ocr0n.c if (ld >2*sq(1024/4)) Break; Break 710 lib/gocr/ocr0n.c if (ld > sq(1024/4)) Break; Break 714 lib/gocr/ocr0n.c if (ld > sq(1024/4)) Break; Break 718 lib/gocr/ocr0n.c if (ld >2*sq(1024/4)) Break; Break 729 lib/gocr/ocr0n.c if (sdata->holes.num > 2) Break; /* be tolerant */ Break 733 lib/gocr/ocr0n.c < loop(bp,0 ,2*dy/4 ,dx,cs,0,RI)-dx/8 ) Break; Break 738 lib/gocr/ocr0n.c if (y>=dy/4) Break; Break 739 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-dy/8,dx,cs,0,RI) < dx/4 ) Break; Break 743 lib/gocr/ocr0n.c i=loop(bp,0,dy/4,dx,cs,0,RI); if (i>dx/4) Break; Break 744 lib/gocr/ocr0n.c i=loop(bp,i,dy/4,dx,cs,1,RI); if (i>dx/2) Break; Break 745 lib/gocr/ocr0n.c j=loop(bp,i,dy/4,dy,cs,0,DO)+dy/4; if (j>7*dy/8) Break; Break 747 lib/gocr/ocr0n.c turmite(bp,&x,&y,0,dx-1,0,dy-1,cs,DO,LE); if( x>=0 ) Break; Break 750 lib/gocr/ocr0n.c if( (y+loop(bp,0,y,dy,cs,1,DO)) < dy/2 ) Break; Break 751 lib/gocr/ocr0n.c if( get_bw(x0 , x0+3*dx/8, y1-dy/7, y1-dy/7,box1->p,cs,1) == 1 ) Break; Break 752 lib/gocr/ocr0n.c if( get_bw(x0+dx/2, x1 , y1-dy/3, y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 753 lib/gocr/ocr0n.c if( get_bw(x0+dx/2, x0+dx/2, y0+dy/3, y1-dy/5,box1->p,cs,1) != 1 ) Break; Break 756 lib/gocr/ocr0n.c && i > loop(bp,bp->x-1,3*bp->y/8,dx,cs,0,LE)+1 ) Break; Break 760 lib/gocr/ocr0n.c } if( i ) Break; Break 764 lib/gocr/ocr0n.c } if( dy>15 && i ) Break; Break 768 lib/gocr/ocr0n.c } if( i ) Break; Break 777 lib/gocr/ocr0n.c if (i < dx/3) Break; Break 796 lib/gocr/ocr0n.c && loop(bp,3*dx/4,dy-1,dy,cs,0,UP)<dy/4 ) Break; // ~9 Break 801 lib/gocr/ocr0n.c && i-loop(bp,dx-1,dy-1-dy/8,dx,cs,0,LE)>dx/4 ) Break; Break 809 lib/gocr/ocr0n.c loop(bp,dx-1,dy/16+1+dy/32,dx,cs,0,LE) ) Break; Break 820 lib/gocr/ocr0n.c if (sdata->holes.num > 2) Break; /* be tolerant */ Break 822 lib/gocr/ocr0n.c && loop(bp,dx-1, 0,dy,cs,0,DO)>dy/4 ) Break; // italic-6 Break 823 lib/gocr/ocr0n.c if( loop(bp, 0, dy/2,dx,cs,0,RI)>dx/4 ) Break; Break 824 lib/gocr/ocr0n.c if( loop(bp, 0,3*dy/4,dx,cs,0,RI)>dx/4 ) Break; Break 825 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,dx,cs,0,LE)>dx/2 ) Break; Break 829 lib/gocr/ocr0n.c && num_cross(x0+5*dx/8,x0+5*dx/8,y0+dy/4,y1 ,box1->p,cs) != 2 ) Break; Break 831 lib/gocr/ocr0n.c if ( loop(box1->p,(x0+x1)/2,y0,dy,cs,0,DO)<dy/2 ) Break; Break 835 lib/gocr/ocr0n.c && loop(box1->p,x1-dx/4,y0,dx,cs,0,DO)>dy/8 ) Break; Break 837 lib/gocr/ocr0n.c if( num_cross(x0 ,x1 ,y1-dy/4,y1-dy/4,box1->p,cs) != 2 ) Break; Break 841 lib/gocr/ocr0n.c } if( y>=y0+dy/2 ) Break; Break 842 lib/gocr/ocr0n.c if (loop(box1->p,x0,y1-dy/3,dx,cs,0,RI)>dx/4 ) Break; Break 843 lib/gocr/ocr0n.c if (loop(box1->p,x1,y1-dy/3,dx,cs,0,LE)>dx/4 ) Break; Break 845 lib/gocr/ocr0n.c if (sdata->holes.num != 1) Break; Break 847 lib/gocr/ocr0n.c if (sdata->holes.hole[0].y0 < dy/4) Break; Break 856 lib/gocr/ocr0n.c if(i1+i3-2*i2<-2-dx/16 && i1+i2+i3>0) Break; // convex from left Break 863 lib/gocr/ocr0n.c } if (y<dy/4 && i1+i2<=dx/2) Break; Break 867 lib/gocr/ocr0n.c } if( y<dy ) Break; Break 878 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* be tolerant */ Break 879 lib/gocr/ocr0n.c if( loop(bp,dx/2,0,dy,cs,0,DO)>dy/8 ) Break; Break 880 lib/gocr/ocr0n.c if( num_cross(0,dx-1,3*dy/4,3*dy/4,bp,cs) != 1 ) Break; // preselect Break 884 lib/gocr/ocr0n.c } if( xb<dx/4 || y==dy/2 ) Break; Break 886 lib/gocr/ocr0n.c j=loop(bp,j,dy/2,dx,cs,1,RI); if(xb<2*j) Break; // minimum thickness Break 892 lib/gocr/ocr0n.c Break; Break 897 lib/gocr/ocr0n.c if (i>j) Break; Break 899 lib/gocr/ocr0n.c if(j>dx/4 && j<=i+dx/16) Break; // tall T Break 922 lib/gocr/ocr0n.c if (sdata->holes.num != 2) Break; Break 923 lib/gocr/ocr0n.c if( num_cross(x0,x1,y0 +dy/4,y0 +dy/4,box1->p,cs) != 2 ) Break; // ~gr (glued) Break 925 lib/gocr/ocr0n.c && num_cross(x0,x1,y1-3*dy/8,y1-3*dy/8,box1->p,cs) != 2 ) Break; Break 926 lib/gocr/ocr0n.c if( get_bw(x0,x0+dx/4,y1-dy/4,y1-dy/4,box1->p,cs,1) == 0 ) Break; // ~9 Break 927 lib/gocr/ocr0n.c if( get_bw(x0,x0+dx/2,y0+dy/4,y0+dy/4,box1->p,cs,1) == 0 ) Break; Break 928 lib/gocr/ocr0n.c if( get_bw(x0+dx/2,x0+dx/2,y0+dy/4,y1-dy/4,box1->p,cs,1) == 0 ) Break; // ~0 Break 935 lib/gocr/ocr0n.c } if(i>=y1-dy/3 || (x<dx/8 && i2<=dx/2) || x>dx/2) Break; // no gB Break 940 lib/gocr/ocr0n.c && j>loop(box1->p,x1,y1-2*dy/5,dx,cs,0,LE) ) Break; // & Break 945 lib/gocr/ocr0n.c } if (j==sdata->holes.num) Break; // not found Break 951 lib/gocr/ocr0n.c } if (j==sdata->holes.num) Break; // not found Break 963 lib/gocr/ocr0n.c if( i>y0+dy/2+dy/10 ) Break; Break 965 lib/gocr/ocr0n.c if( x>dx/2 ) Break; Break 969 lib/gocr/ocr0n.c && num_cross(x0,x1,(i+i2)/2,(i+i2)/2,box1->p,cs) != 1 ) Break; // no g Break 972 lib/gocr/ocr0n.c if(abs(i1-i)>(dy+2)/4) Break; Break 976 lib/gocr/ocr0n.c } if( y<dy/8+2 ) Break; Break 980 lib/gocr/ocr0n.c } if( y<dy/8+2 ) Break; Break 982 lib/gocr/ocr0n.c && loop(bp,0,dy-1,dx,cs,0,RI) <dx/8+1 ) Break; // no fat serif S Break 985 lib/gocr/ocr0n.c } if( y<dy ) Break; Break 1013 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; Break 1017 lib/gocr/ocr0n.c && num_cross(x0+ dx/4,x1 -dx/4,y0,y1,box1->p,cs) != 3 ) Break; Break 1018 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x0 +dx/2,y0,y0+dy/4,box1->p,cs) < 1 ) Break; Break 1019 lib/gocr/ocr0n.c if( num_cross(x0+ dx/2,x1, y0+dy/2 ,y0+dy/2,box1->p,cs) < 1 ) Break; Break 1021 lib/gocr/ocr0n.c && num_cross(x0,x1, y0+3*dy/8 ,y0+3*dy/8,box1->p,cs) != 2 ) Break; Break 1026 lib/gocr/ocr0n.c } if (x<1 || x<dx/8) Break; y=i; Break 1031 lib/gocr/ocr0n.c if (x<dx/2) Break; Break 1037 lib/gocr/ocr0n.c && num_cross(x0+dx/2,x1,i,y1-dy/8,box1->p,cs) != 1 ) Break; Break 1038 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x0+dx/2,i,y1,box1->p,cs) > 1 ) Break; Break 1039 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x1 ,i, i,box1->p,cs) != 1 ) Break; Break 1042 lib/gocr/ocr0n.c if (dx<8) ad=98*ad/100; else Break; } Break 1044 lib/gocr/ocr0n.c if (sdata->holes.hole[0].y1 >= i+1) Break; Break 1045 lib/gocr/ocr0n.c if (sdata->holes.hole[0].y0 > i-1) Break; Break 1047 lib/gocr/ocr0n.c if (sdata->holes.hole[1].y0 > i-1) Break; Break 1057 lib/gocr/ocr0n.c } if( x>dx/2 ) Break; // no g Break 1058 lib/gocr/ocr0n.c i1=loop(bp,dx-1,dy/8 ,dx,cs,0,LE); if(i1>dx/2) Break; Break 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 Break 1061 lib/gocr/ocr0n.c i1=loop(bp,dx-1,dy/4 ,dx,cs,0,LE); if(i1>dx/2) Break; Break 1066 lib/gocr/ocr0n.c } if(y<dy-1-dy/4) Break; Break 1070 lib/gocr/ocr0n.c if(y<dy/8) Break; // ~q (serif!) Break 1083 lib/gocr/ocr0n.c if (sdata->holes.num > 1) Break; /* be tolerant */ Break 1084 lib/gocr/ocr0n.c if( get_bw(x0 , x0+dx/3,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1085 lib/gocr/ocr0n.c if( get_bw(x1-dx/3 , x1 ,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1088 lib/gocr/ocr0n.c if( get_bw(x0+dx/2 , x0+dx/2,y1-dy/3 , y1,box1->p,cs,1) != 1 ) Break; Break 1089 lib/gocr/ocr0n.c if( get_bw(x0+dx/2 , x0+dx/2,y0 , y0+dy/3,box1->p,cs,1) != 1 ) Break; Break 1091 lib/gocr/ocr0n.c if( get_bw(x0+dx/2 , x0+dx/2,y0+dy/3 , y1-dy/3,box1->p,cs,1) != 0 ) Break; Break 1093 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) != 2 ) Break; Break 1095 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; Break 1097 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y1-1 , y1-1 ,box1->p,cs) != 1 ) Break; Break 1099 lib/gocr/ocr0n.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 1101 lib/gocr/ocr0n.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 1103 lib/gocr/ocr0n.c if (sdata->holes.num != 1) Break; Break 1107 lib/gocr/ocr0n.c if (i<0) Break; Break 1119 lib/gocr/ocr0n.c if( y<dy ) Break; Break 1128 lib/gocr/ocr0n.c if (i<-dx/8 || i+dx/8<j) Break; // not konvex Break 1131 lib/gocr/ocr0n.c if( loop(bp,0 , dy/16,dx,cs,0,RI)<dx/16 ) Break; Break 1133 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-dy/16,dx,cs,0,RI)<dx/16 ) Break; Break 1138 lib/gocr/ocr0n.c if (dx<32) ad=ad*99/100; else Break; // ~D Break 1174 lib/gocr/ocr0n.c if (sdata->holes.num > 3) Break; /* be tolerant */ Break 1175 lib/gocr/ocr0n.c if (sdata->holes.num < 1) Break; Break 1177 lib/gocr/ocr0n.c if( get_bw(x0 , x0+dx/2,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1178 lib/gocr/ocr0n.c if( get_bw(x1-dx/2 , x1 ,y0+dy/2 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1179 lib/gocr/ocr0n.c if( get_bw(x0+dx/2 , x0+dx/2,y1-dy/2 , y1,box1->p,cs,1) != 1 ) Break; Break 1180 lib/gocr/ocr0n.c if( get_bw(x0+dx/2 , x0+dx/2,y0 , y0+dy/2,box1->p,cs,1) != 1 ) Break; Break 1181 lib/gocr/ocr0n.c if( get_bw(x0+dx/2 , x0+dx/2,y0+dy/3 , y1-dy/3,box1->p,cs,1) != 1 ) Break; Break 1183 lib/gocr/ocr0n.c if( num_cross(x0+dx/2,x0+dx/2,y0 , y1 ,box1->p,cs) != 3 ) Break; Break 1185 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y0+1 , y0+1 ,box1->p,cs) != 1 ) Break; Break 1187 lib/gocr/ocr0n.c if( num_cross(x0+dx/3,x1-dx/3,y1-1 , y1-1 ,box1->p,cs) != 1 ) Break; Break 1189 lib/gocr/ocr0n.c if( num_cross(x0+1 ,x0+1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 1191 lib/gocr/ocr0n.c if( num_cross(x1-1 ,x1-1 ,y0+dy/3 , y1-dy/3,box1->p,cs) != 1 ) Break; Break 1196 lib/gocr/ocr0n.c loop(bp,0 , 2+dy/32,x1-x0,cs,0,RI) ) Break; Break 1200 lib/gocr/ocr0n.c if( loop(bp,0 , dy/4,x1-x0,cs,0,RI)<x ) Break; // ~8 Break 1204 lib/gocr/ocr0n.c if( loop(bp,dx-1,3*dy/4,x1-x0,cs,0,LE)<x) Break; // ~8 Break 1212 lib/gocr/ocr0n.c if( y<dy ) Break; Break 1215 lib/gocr/ocr0n.c y =loop(bp,dx/2,dy-1 ,y1-y0,cs,0,UP); if(y>dy/4) Break; Break 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; Break 1217 lib/gocr/ocr0n.c y+=loop(bp,dx/2,dy-1-y,y1-y0,cs,0,UP); if(3*y>2*dy) Break; Break 1218 lib/gocr/ocr0n.c x =loop(bp,dx/2,dy-y,dx/2,cs,0,RI); if(x==0) Break; Break 1220 lib/gocr/ocr0n.c if( loop(bp,dx/2+x-1-dx/16,dy-y,y1-y0,cs,0,UP)==0 ) Break; Break 1225 lib/gocr/ocr0n.c if( y<dy-dy/4-1 ) Break; Break 1230 lib/gocr/ocr0n.c <= 2*loop(bp,0, dy/2 ,dx,cs,0,RI)+dx/8 ) Break; // not konvex Break 1233 lib/gocr/ocr0n.c if( loop(bp,0 , dy/16,dx,cs,0,RI)<dx/16 ) Break; Break 1235 lib/gocr/ocr0n.c if( loop(bp,0 ,dy-1-dy/16,dx,cs,0,RI)<dx/16 ) Break; Break 1239 lib/gocr/ocr0n.c || get_bw(x0,x0+dx/32,y1-dy/32,y1,box1->p,cs,1) == 1 ) ) Break; // ~D