chiark / gitweb /
swap ct_Word and ct_Lower to make Word be default when applicable
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Tue, 30 Jun 2009 23:31:10 +0000 (00:31 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Tue, 30 Jun 2009 23:31:10 +0000 (00:31 +0100)
pctb/ocr.c

index 1f315c8d91c2d5fe1fafdae6474fb8ab145abc9a..ef0364c9ba93b5b0d1b91b00e20f8378ae428b59 100644 (file)
@@ -53,11 +53,11 @@ typedef struct {
   int rx;
 } FindCharResults;
 
   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[]= {
 static const char *context_names[]= {
-  "Lower",  /*  bit 0, value 001 */
+  "Word",   /*  bit 0, value 001 */
   "Upper",  /*  bit 1, value 002 */
   "Upper",  /*  bit 1, value 002 */
-  "Word",   /*  bit 2, value 004 */
+  "Lower",  /*  bit 2, value 004 */
   "Digit",  /*  bit 3, value 010 */
 };
 struct OcrCellTypeInfo {
   "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 */
 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
   .space_spaces= 4,
   .name= "text",
   .findchar_select= findchar_select_text