I have been investigating the cause of the dictionary files not
working for indic script. I looked at the code that creates the
dictionary 
(http://code.google.com/p/tesseract-ocr/source/browse/trunk/dict/trie.cpp)
and found that there is no wide character support (wchar_t). It stores
one byte per node, and it ends up storing non-printable characters per
node. Does this cause the dictionary to be useless for Indic script?
I did a very basuc experiment by adding just 2 words in the dawg
files. I OCRed the same 2 words from an image, and still got absurd
results. I made word_in_dawg function in dict/dawg.cpp execute
print_dawg_node for every iteration and it does print correctly for
english, but prints a load of garbage characters for Indic.
So, will changing all the char to wchar_t and making necessary changes
to code of memory alloc solve the problem?


-- 
Regards,
Debayan Banerjee

Support Free Software
http://deeproot.in

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tesseract-ocr?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to