int h, endsword;
char lbuf[100];
- char *dbfname= masprintf("%s/#%s-char%d#.txt",
+ char *dbfname= masprintf("%s/_%s-char%d.txt",
get_vardir(), which, rd->h);
if (!dbfile_open(dbfname))
static void load_rejections(const char *which) {
char lbuf[1000];
- char *fname= masprintf("%s/#%s-reject#.txt", get_vardir(), which);
+ char *fname= masprintf("%s/_%s-reject.txt", get_vardir(), which);
int c, lno=0;
Rejection *rej;
int x= fca->x;
for (;;) {
- debug_flush();
+ if (DEBUGP(ocr)) debug_flush();
debugf(" | x=%d",x);
if (x > fca->w) break;
Pixcol cv= fca->cols[x];
x=0;
for (;;) {
- debug_flush();
+ if (DEBUGP(ocr)) debug_flush();
/* skip spaces */
if (x>=w)
break;
if (o_flags & ff_dict_fetch) {
char *fetchfile= masprintf("char%d",h);
- progress("Updating %s...",fetchfile);
fetch_with_rsync(fetchfile);
free(fetchfile);
}
memset(found,0,sizeof(found));
- fnpat= pcre_compile("\\#(?:master|local)\\-char([1-9]\\d{0,2})\\#\\.txt$",
+ fnpat= pcre_compile("_(?:master|local)\\-char([1-9]\\d{0,2})\\.txt$",
PCRE_ANCHORED|PCRE_DOLLAR_ENDONLY,
&pcre_err,&pcre_erroffset, 0);
debugf("pcre_compile %p %s\n",fnpat,pcre_err);