- @Override
- public String getCommand(final File inputFile, final File targetFile,
- final EncodingOptions options, String targetFormat) {
-
- // for some stupid reason tesseract ALWAYS insists on automatically
- // adding txt suffix
- String targetAbsolutePath = targetFile.getAbsolutePath();
- String targetFileName = targetAbsolutePath.substring(0,
- targetAbsolutePath.length() - 4);
-
- return "tesseract \"" + inputFile.getAbsolutePath() + "\" \""
- + targetFileName + "\"";
- }
-
- @Override
- public List<String> getSourceFileExtensions() {
- return toList("tif", "tiff", "png", "jpg", "jpeg");
- }
-
- @Override
- public List<String> getTargetFileExtensions() {
- return toList("txt");
- }
-
- @Override
- public boolean isTerminalMandatory() {
- return false;
- }
+ @Override
+ public String getCommand(final File inputFile, final File targetFile,
+ final EncodingOptions options, String targetFormat) {
+
+ // for some stupid reason tesseract ALWAYS insists on automatically
+ // adding txt suffix
+ String targetAbsolutePath = targetFile.getAbsolutePath();
+ String targetFileName = targetAbsolutePath.substring(0,
+ targetAbsolutePath.length() - 4);
+
+ return "tesseract \"" + inputFile.getAbsolutePath() + "\" \""
+ + targetFileName + "\"";
+ }
+
+ @Override
+ public List<String> getSourceFileExtensions() {
+ return toList("tif", "tiff", "png", "jpg", "jpeg");
+ }
+
+ @Override
+ public List<String> getTargetFileExtensions() {
+ return toList("txt");
+ }
+
+ @Override
+ public boolean isTerminalMandatory() {
+ return false;
+ }