Islandora/islandora_ocr — pull request #38 by slangerx (2014-04-07 23:00:20+00:00)
Title: Windows-compatibility: Tesseract version number (7.x-1.3)

Some Windows-incompatibilities have crept into the Islandora codebase ([additional background can be found here](https://groups.google.com/d/msg/islandora/0MAhLDjbago/9knbOynlyIcJ "Islandora 7 and Windows: Patches and Tips")).

For some reason, the Windows version of Tesseract identifies itself incorrectly. This code makes it possible to use the Islandora OCR module on a Windows installation despite this.

To elaborate:

> The [Islandora documentation](https://wiki.duraspace.org/display/ISLANDORA712/Tesseract "Tesseract") directs Windows users to the [tesseract-ocr](https://code.google.com/p/tesseract-ocr/downloads/list "tesseract-ocr") page, which is maintained by Google. There is a tesseract-ocr 3.02.02 Windows installer there ("tesseract-ocr-setup-3.02.02.exe"), which I used to set up Tesseract.
>
> Although the installation was successful, running "tesseract -v" or "tesseract --version" returns the following version information: "tesseract 3.02", which is obviously incomplete. This is why this patch was created. Otherwise, the Islandora OCR module won't work for Windows installations.

*NOTE 1:* If there was another Windows installer for Tesseract out there that identified itself correctly, then this patch would no longer be necessary.

*NOTE 2:* The function *islandora_deployed_on_windows()* is introduced here: https://github.com/Islandora/islandora/pull/450