--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/reference/ocr-simple/Word.h Thu May 18 23:12:51 2006 +0200
@@ -0,0 +1,43 @@
+
+#ifndef _WORD_H_
+#define _WORD_H_
+
+#include "list.h"
+#include "Component.h"
+
+class Word {
+ public:
+
+ // Constructor scans through length components starting at first
+ // to set data fields
+ Word(ListElement * first, int length);
+ Word(char * word, int length);
+ ~Word();
+
+ char * characters; // text string
+ int charCount; // Number of characters in the string
+
+ short mispelled;
+ // spelled correctly? only valid if the word
+ // has been spellchecked
+
+ Confidence confid; // The average confidence of each char in word
+ Point ul; // upper left point of word
+ Point lr; // lower right point of word
+
+ Component ** character; // an array of components that
+ // make up this word
+};
+
+
+class Words:public List{
+
+ public:
+ int num_words;
+ Words():List(){};
+ ~Words();
+ int writeWordPos(char * filename);
+ int writeAscii(char * filename);
+};
+
+#endif