[
https://issues.apache.org/jira/browse/TIKA-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15827381#comment-15827381
]
Hudson commented on TIKA-2231:
------------------------------
FAILURE: Integrated in Jenkins build tika-2.x #201 (See
[https://builds.apache.org/job/tika-2.x/201/])
TIKA-2231 - allow underscored language codes (e.g. "chi_tra") in (tallison: rev
9dbff6065cf202a5795effaaf7e953ae6f761fe3)
* (edit)
tika-parser-modules/tika-parser-multimedia-module/src/test/java/org/apache/tika/parser/ocr/TesseractOCRConfigTest.java
* (edit)
tika-parser-modules/tika-parser-multimedia-module/src/main/java/org/apache/tika/parser/ocr/TesseractOCRConfig.java
* (edit) CHANGES.txt
> Invalid language code exception
> -------------------------------
>
> Key: TIKA-2231
> URL: https://issues.apache.org/jira/browse/TIKA-2231
> Project: Tika
> Issue Type: Bug
> Components: ocr
> Affects Versions: 1.14
> Reporter: Peter Weiss
> Priority: Minor
> Labels: beginner, easyfix, easytest, newbie
> Fix For: 2.0, 1.15
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> There is a regex in TesseractOCRConfig.setLanguage(String language) which
> attempts to validate the language being set. Unfortunately it does not allow
> you to set some languages that are valid for tesseract.
> For example:
> TesseractOCRConfig config = new TesseractOCRConfig();
> config.setLanguage("chi_tra");
> This throws an IllegalArgumentException because of the '_' in the language
> name. "chi_tra" is a valid tesseract language code.
> Need to update the regex to allow '_' character.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)