2023-03-20 22:55:11 +01:00
|
|
|
<!DOCTYPE html>
|
2023-04-03 00:59:22 +02:00
|
|
|
<html th:lang="${#locale.toString()}" th:lang-direction="#{language.direction}" xmlns:th="http://www.thymeleaf.org">
|
2023-03-20 22:55:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
<th:block th:insert="~{fragments/common :: head(title=#{ocr.title})}"></th:block>
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
2023-05-03 23:07:51 +02:00
|
|
|
<th:block th:insert="~{fragments/common :: game}"></th:block>
|
2023-03-20 22:55:11 +01:00
|
|
|
<div id="page-container">
|
|
|
|
<div id="content-wrap">
|
|
|
|
<div th:insert="~{fragments/navbar.html :: navbar}"></div>
|
|
|
|
<br> <br>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h2 th:text="#{ocr.header}"></h2>
|
2023-04-22 13:51:01 +02:00
|
|
|
<form th:if="${#lists.size(languages) > 0}" action="#" th:action="@{/ocr-pdf}" method="post" enctype="multipart/form-data" class="mb-3">
|
2023-04-01 22:02:54 +02:00
|
|
|
<div th:replace="~{fragments/common :: fileSelector(name='fileInput', multiple=false, accept='application/pdf')}"></div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="languages" class="form-label" th:text="#{ocr.selectText.1}"></label>
|
|
|
|
<hr>
|
|
|
|
<div id="languages">
|
2023-04-30 15:42:26 +02:00
|
|
|
<div th:each="language, iterStat : ${languages}">
|
2023-05-01 19:50:20 +02:00
|
|
|
<input type="checkbox" th:name="languages" th:value="${language}" th:id="${'language-' + language}" />
|
2023-04-30 15:42:26 +02:00
|
|
|
<label class="form-check-label" th:for="${'language-' + language}" th:text="${(language == 'eng') ? 'English' : language}"></label>
|
2023-04-01 22:02:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label th:text="#{ocr.selectText.10}"></label>
|
|
|
|
<select class="form-control" name="ocrType">
|
|
|
|
<option value="skip-text" th:text="#{ocr.selectText.6}"></option>
|
|
|
|
<option value="force-ocr" th:text="#{ocr.selectText.7}"></option>
|
|
|
|
<option value="Normal" th:text="#{ocr.selectText.8}"></option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<label for="languages" class="form-label" th:text="#{ocr.selectText.9}"></label>
|
|
|
|
<div class="form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" name="sidecar" id="sidecar" />
|
|
|
|
<label class="form-check-label" for="sidecar" th:text="#{ocr.selectText.2}"></label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" name="deskew" id="deskew" />
|
|
|
|
<label class="form-check-label" for="deskew" th:text="#{ocr.selectText.3}"></label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" name="clean" id="clean" />
|
|
|
|
<label class="form-check-label" for="clean" th:text="#{ocr.selectText.4}"></label>
|
|
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" name="clean-final" id="clean-final" />
|
|
|
|
<label class="form-check-label" for="clean-final" th:text="#{ocr.selectText.5}"></label>
|
|
|
|
</div>
|
2023-05-01 22:53:10 +02:00
|
|
|
<div class="form-check">
|
|
|
|
<input type="checkbox" class="form-check-input" name="removeImagesAfter" id="removeImagesAfter" />
|
|
|
|
<label class="form-check-label" for="removeImagesAfter" th:text="#{ocr.selectText.11}"></label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-05-01 19:50:20 +02:00
|
|
|
<div class="form-group">
|
2023-05-01 22:53:10 +02:00
|
|
|
<label th:text="#{ocr.selectText.12}"></label>
|
2023-05-01 19:50:20 +02:00
|
|
|
<select class="form-control" name="ocrRenderType">
|
|
|
|
<option value="hocr">HOCR (Latin/Roman alphabet only)</option>
|
|
|
|
<option value="sandwich">Sandwich</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2023-04-01 22:02:54 +02:00
|
|
|
<br>
|
2023-04-02 12:51:07 +02:00
|
|
|
<button type="submit" id="submitBtn" class="btn btn-primary" th:text="#{ocr.submit}"></button>
|
2023-04-01 22:02:54 +02:00
|
|
|
</form>
|
|
|
|
<p th:text="#{ocr.credit}"></p>
|
|
|
|
<p th:text="#{ocr.help}"></p>
|
|
|
|
<a href="https://github.com/Frooodle/Stirling-PDF/blob/main/HowToUseOCR.md">https://github.com/Frooodle/Stirling-PDF/blob/main/HowToUseOCR.md</a>
|
2023-03-20 22:55:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div th:insert="~{fragments/footer.html :: footer}"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|