From: Ian Jackson Date: Tue, 30 Jun 2009 23:31:10 +0000 (+0100) Subject: swap ct_Word and ct_Lower to make Word be default when applicable X-Git-Tag: 1.9.2~85 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=commitdiff_plain;h=05fdda2d8afd55210846c4d84f534cfaed282aaa swap ct_Word and ct_Lower to make Word be default when applicable --- diff --git a/pctb/ocr.c b/pctb/ocr.c index 1f315c8..ef0364c 100644 --- a/pctb/ocr.c +++ b/pctb/ocr.c @@ -53,11 +53,11 @@ typedef struct { int rx; } FindCharResults; -enum { ct_Lower, ct_Upper, ct_Word, ct_Digit }; +enum { ct_Word, ct_Upper, ct_Lower, ct_Digit }; static const char *context_names[]= { - "Lower", /* bit 0, value 001 */ + "Word", /* bit 0, value 001 */ "Upper", /* bit 1, value 002 */ - "Word", /* bit 2, value 004 */ + "Lower", /* bit 2, value 004 */ "Digit", /* bit 3, value 010 */ }; struct OcrCellTypeInfo { @@ -367,7 +367,7 @@ const struct OcrCellTypeInfo ocr_celltype_number= { const struct OcrCellTypeInfo ocr_celltype_text= { .initial= 012, /* Digit|Upper */ .nextword= 017, /* Digit|Upper|Lower|Word */ - .midword= 011, /* Digit|Lower */ + .midword= 014, /* Digit|Lower */ .space_spaces= 4, .name= "text", .findchar_select= findchar_select_text