chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes to find_aa_density: MUST failures print p, deal with rounding problems in alpha...
[ypp-sc-tools.web-live.git]
/
pctb
/
ocr.c
diff --git
a/pctb/ocr.c
b/pctb/ocr.c
index 8d1b88bbf1f20f35e992c82cbf357ecb1385800b..37ca7d28ed284de9b70c1cc29b1f528a20d24a12 100644
(file)
--- a/
pctb/ocr.c
+++ b/
pctb/ocr.c
@@
-122,7
+122,7
@@
static void readdb1(OcrReader *rd, const char *which, int local) {
int h, endsword;
char lbuf[100];
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))
get_vardir(), which, rd->h);
if (!dbfile_open(dbfname))
@@
-238,7
+238,7
@@
Rejection *rejections;
static void load_rejections(const char *which) {
char lbuf[1000];
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 c, lno=0;
Rejection *rej;
@@
-649,7
+649,7
@@
void ocr_showcharsets(void) {
memset(found,0,sizeof(found));
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);
PCRE_ANCHORED|PCRE_DOLLAR_ENDONLY,
&pcre_err,&pcre_erroffset, 0);
debugf("pcre_compile %p %s\n",fnpat,pcre_err);