« Return to Thread: Re: Error recognising capital 'J'

Re: Re: Error recognising capital 'J'

by Bugzilla from ant_diaz@teleline.es :: Rate this Message:

Reply to Author | View in Thread

Here you have a quick fix. Just apply this patch to ocrad 0.17:

--- feats_test0.cc~     2007-06-29 14:29:13.000000000 +0200
+++ feats_test0.cc      2007-07-11 20:16:59.000000000 +0200
@@ -155,7 +155,7 @@
      return 0;

    int row, col;
-  if( 2 * lp[lp.pos(50)] >= b.width() ) col = b.hpos( 25 );
+  if( ( 2 * lp[lp.pos(50)] ) + 1 >= b.width() ) col = b.hpos( 25 );
    else col = b.hpos( 75 );
    row = b.seek_top( b.vcenter(), col );
    if( row <= b.top() || ( row < b.vpos( 25 ) && b.escape_top( row, col
) ) )


Regards,
Antonio.


_______________________________________________
Bug-ocrad mailing list
Bug-ocrad@...
http://lists.gnu.org/mailman/listinfo/bug-ocrad

 « Return to Thread: Re: Error recognising capital 'J'