From 290882c28feb7646cba6f38ec67fba2bafbc0cc2 Mon Sep 17 00:00:00 2001 From: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com> Date: Sat, 29 Jul 2023 12:30:38 -0400 Subject: [PATCH] feat(Paperless-Ngx): Add additional OCR options (#10994) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Added additional fields for OCR languages as we have an outstanding issue for it ⚒️ Fixes #7582 **⚙️ Type of change** - [X] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- charts/stable/paperless-ngx/Chart.yaml | 2 +- charts/stable/paperless-ngx/questions.yaml | 12 ++++++++++++ charts/stable/paperless-ngx/values.yaml | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/stable/paperless-ngx/Chart.yaml b/charts/stable/paperless-ngx/Chart.yaml index 0c38f3a89b8..dca035be815 100644 --- a/charts/stable/paperless-ngx/Chart.yaml +++ b/charts/stable/paperless-ngx/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 kubeVersion: ">=1.16.0-0" name: paperless-ngx -version: 1.0.32 +version: 1.1.0 appVersion: "1.16.5" description: Paperless-ngx is an application by Daniel Quinn and contributors that indexes your scanned documents. type: application diff --git a/charts/stable/paperless-ngx/questions.yaml b/charts/stable/paperless-ngx/questions.yaml index 2dd18b1dc1c..d2c8e4c2d6f 100644 --- a/charts/stable/paperless-ngx/questions.yaml +++ b/charts/stable/paperless-ngx/questions.yaml @@ -49,6 +49,18 @@ questions: type: int required: true default: 2 + - variable: PAPERLESS_OCR_LANGUAGES + label: "Additional Paperless OCR Languages" + description: "Additional OCR languages to install. By default, paperless comes with English, German, Italian, Spanish and French. If your language is not in this list, install additional languages with this configuration option. Use LangCodes for the additional languages in a SPACED list." + schema: + type: string + default: "" + - variable: PAPERLESS_OCR_LANGUAGE + label: "Additional Language Selector" + description: "If additional languages are selected above, you can set the default language used with OCR using LangCodes below, default is none" + schema: + type: string + default: "" # Include{containerBasic} # Include{containerAdvanced} diff --git a/charts/stable/paperless-ngx/values.yaml b/charts/stable/paperless-ngx/values.yaml index ab396fa7610..20d67fbc84f 100644 --- a/charts/stable/paperless-ngx/values.yaml +++ b/charts/stable/paperless-ngx/values.yaml @@ -95,3 +95,5 @@ workload: PAPERLESS_ADMIN_USER: "admin" PAPERLESS_ADMIN_PASSWORD: "admin" PAPERLESS_ADMIN_MAIL: "admin@admin.com" + PAPERLESS_OCR_LANGUAGE: "" + PAPERLESS_OCR_LANGUAGES: ""