mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-30 21:05:08 +00:00
Merge pull request #2659 from eikek/fix-command-mappings-config
Move arg-mappings underneath `command` section
This commit is contained in:
commit
870bfd9cf0
@ -593,6 +593,8 @@ Docpell Update Check
|
|||||||
# To convert image files to PDF files, tesseract is used. This
|
# To convert image files to PDF files, tesseract is used. This
|
||||||
# also extracts the text in one go.
|
# also extracts the text in one go.
|
||||||
tesseract = {
|
tesseract = {
|
||||||
|
command = {
|
||||||
|
program = "tesseract"
|
||||||
# Custom Language Mappings Below
|
# Custom Language Mappings Below
|
||||||
# Japanese Vertical Mapping
|
# Japanese Vertical Mapping
|
||||||
arg-mappings = {
|
arg-mappings = {
|
||||||
@ -612,8 +614,6 @@ Docpell Update Check
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
command = {
|
|
||||||
program = "tesseract"
|
|
||||||
# Default arguments for all processing go below.
|
# Default arguments for all processing go below.
|
||||||
args = [
|
args = [
|
||||||
"{{infile}}",
|
"{{infile}}",
|
||||||
@ -667,6 +667,9 @@ Docpell Update Check
|
|||||||
# (where ocr is not necessary). In this case, the pdf will be
|
# (where ocr is not necessary). In this case, the pdf will be
|
||||||
# converted to PDF/A.
|
# converted to PDF/A.
|
||||||
ocrmypdf = {
|
ocrmypdf = {
|
||||||
|
enabled = true
|
||||||
|
command = {
|
||||||
|
program = "ocrmypdf"
|
||||||
# Custom argument mappings for this program.
|
# Custom argument mappings for this program.
|
||||||
arg-mappings = {
|
arg-mappings = {
|
||||||
"ocr_lang" = {
|
"ocr_lang" = {
|
||||||
@ -687,9 +690,6 @@ Docpell Update Check
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
enabled = true
|
|
||||||
command = {
|
|
||||||
program = "ocrmypdf"
|
|
||||||
# Default arguments for all processing go below.
|
# Default arguments for all processing go below.
|
||||||
args = [
|
args = [
|
||||||
"{{ocr_lang}}",
|
"{{ocr_lang}}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user