Add OCR support for Czech language (#613)

Co-authored-by: Vaclav Uher <vaclav.uher@bruker.com>
This commit is contained in:
StaryVena 2022-01-26 15:27:14 +01:00 committed by GitHub
parent bbe5f19997
commit af3263d471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -7,6 +7,7 @@ RUN apt-get update && \
mediainfo \
tesseract-ocr \
tesseract-ocr-ara \
tesseract-ocr-ces \
tesseract-ocr-chi-sim \
tesseract-ocr-chi-tra \
tesseract-ocr-dan \
@ -39,4 +40,4 @@ RUN rm -f /opt/jetty/lib/mail/javax.mail.glassfish-*.jar
ADD docs.xml /opt/jetty/webapps/docs.xml
ADD docs-web/target/docs-web-*.war /opt/jetty/webapps/docs.war
ENV JAVA_OPTIONS -Xmx1g
ENV JAVA_OPTIONS -Xmx1g

View File

@ -43,7 +43,7 @@ public class Constants {
/**
* Supported document languages.
*/
public static final List<String> SUPPORTED_LANGUAGES = Lists.newArrayList("eng", "fra", "ita", "deu", "spa", "por", "pol", "rus", "ukr", "ara", "hin", "chi_sim", "chi_tra", "jpn", "tha", "kor", "nld", "tur", "heb", "hun", "fin", "swe", "lav", "dan", "nor", "vie");
public static final List<String> SUPPORTED_LANGUAGES = Lists.newArrayList("eng", "fra", "ita", "deu", "spa", "por", "pol", "rus", "ukr", "ara", "hin", "chi_sim", "chi_tra", "jpn", "tha", "kor", "nld", "tur", "heb", "hun", "fin", "swe", "lav", "dan", "nor", "vie", "ces");
/**
* Base URL environment variable.

View File

@ -545,7 +545,8 @@ angular.module('docs',
{ key: 'lav', label: 'Latviešu' },
{ key: 'dan', label: 'Dansk' },
{ key: 'nor', label: 'Norsk' },
{ key: 'vie', label: 'Tiếng Việt' }
{ key: 'vie', label: 'Tiếng Việt' },
{ key: 'ces', label: 'Czech' }
];
})
/**