Merge pull request #2659 from eikek/fix-command-mappings-config

Move arg-mappings underneath `command` section
This commit is contained in:
mergify[bot] 2024-05-27 16:02:26 +00:00 committed by GitHub
commit 870bfd9cf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -593,6 +593,8 @@ Docpell Update Check
# To convert image files to PDF files, tesseract is used. This
# also extracts the text in one go.
tesseract = {
command = {
program = "tesseract"
# Custom Language Mappings Below
# Japanese Vertical Mapping
arg-mappings = {
@ -612,8 +614,6 @@ Docpell Update Check
]
}
}
command = {
program = "tesseract"
# Default arguments for all processing go below.
args = [
"{{infile}}",
@ -667,6 +667,9 @@ Docpell Update Check
# (where ocr is not necessary). In this case, the pdf will be
# converted to PDF/A.
ocrmypdf = {
enabled = true
command = {
program = "ocrmypdf"
# Custom argument mappings for this program.
arg-mappings = {
"ocr_lang" = {
@ -687,9 +690,6 @@ Docpell Update Check
]
}
}
enabled = true
command = {
program = "ocrmypdf"
# Default arguments for all processing go below.
args = [
"{{ocr_lang}}",