Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Recognize text: preset option, languages, Searchable PDF preset, docs

cre8ive-marketingfbc3189ad6c2
diff --git a/README.md b/README.md
index c3ec701c..3dd03383 100644
--- a/README.md
+++ b/README.md
@@ -167,7 +167,8 @@ It connects to the internet only:
- to ask GitHub (`api.github.com`) whether a newer release exists, shortly after start and then every few hours.
Turn this off in Settings → About ("Check for updates automatically").
- to download the conversion engines you choose to install, from the official locations pinned in
- [`engines.json`](src/Filee.Engines/Infrastructure/engines.json).
+ [`engines.json`](src/Filee.Engines/Infrastructure/engines.json), and the text recognition (OCR) languages a preset
+ uses, pinned in [`ocr-languages.json`](src/Filee.Engines/Infrastructure/ocr-languages.json).
- when you click a link, which opens your web browser.
## Sponsor
diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md
index 2e63361c..ba86cab1 100644
--- a/THIRD-PARTY-NOTICES.md
+++ b/THIRD-PARTY-NOTICES.md
@@ -78,6 +78,8 @@ Downloaded from their official release pages when the user chooses to install th
| Microsoft Visual C++ Redistributable (for Ghostscript, conda-forge `vc14_runtime`) | Microsoft Visual C++ Redistributable license | https://github.com/conda-forge/vc-feedstock |
| FFmpeg 9.0.2 (gyan.dev "full_build-shared" Windows build; ffmpeg.exe, ffprobe.exe and their libraries, incl. x264, x265, libvpx, LAME, Opus, Vorbis, Theora, OpenCORE AMR) | GPL-3.0-or-later (the build is configured with `--enable-gpl --enable-version3`); FFmpeg itself LGPL-2.1-or-later | https://ffmpeg.org, build: https://www.gyan.dev/ffmpeg/builds/ (source: https://github.com/GyanD/codexffmpeg) |
| calibre (ebook-convert) | GPL-3.0 | https://calibre-ebook.com |
+| Tesseract OCR 5.4 (UB Mannheim Windows build, with Leptonica and the MinGW libraries it ships; their notices are in its `doc` folder) | Apache-2.0 (Tesseract); Leptonica BSD-2-Clause; others as listed in the build | https://github.com/tesseract-ocr/tesseract, build: https://github.com/UB-Mannheim/tesseract |
+| Tesseract language data (tessdata_fast 4.1.0), downloaded per language when used | Apache-2.0 | https://github.com/tesseract-ocr/tessdata_fast |
These programs run as separate processes. Their source code is available from the linked projects.
diff --git a/docs/ENGINES.md b/docs/ENGINES.md
index 3ba038b0..45e9f6f2 100644
--- a/docs/ENGINES.md
+++ b/docs/ENGINES.md
@@ -32,6 +32,7 @@ Filee chooses engines automatically. Settings → *Engines* shows their status,
| LibreOffice + H2Orestart + Java | **optional download** (~420 MB, 1.3 GB on disk) | older and rare formats only: DOC, XLS, PPT, RTF and OpenDocument → PDF and to each other, output as DOCX/ODT/ODS/ODP; HWP/HWPX → DOCX/ODT; read-only formats (see below) → PDF and their kind's editable formats; FODT, OpenDocument templates (OTT, OTS, OTP) and XLT out; SVG → EMF/WMF/ODG, a PDF page → SVG |
| Pandoc | **optional download** (~42 MB, 240 MB on disk) | Markdown ↔ DOCX/ODT/RTF, DOCX/ODT/HTML/RTF → Markdown, HTML ↔ DOCX/ODT, markup languages (reStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter, Textile, man, OPML) ↔ Markdown/HTML/DOCX/ODT and each other (and → RTF, EPUB, TXT), Markdown and markup → PPTX slides |
| Ghostscript | **optional download** (~20 MB, 31 MB on disk) | EPS/PS → PDF, PDF → EPS/PS, PostScript-based AI → PDF (images through PDF and PDFium); smaller PDFs when a preset asks for it |
+| Tesseract | **optional download** (~50 MB, 160 MB on disk; each language 0.4–10 MB when first used) | **text recognition (OCR)**: scans and pictures → searchable PDF, and their text into DOCX, TXT, Markdown and HWPX ("Recognize text" in the preset, see below) |
| FFmpeg | **optional download** (~100 MB, 272 MB on disk) | **all video and audio**: video ↔ video (H.264, HEVC, AV1), video → animated GIF / APNG, a still frame or every frame, audio and subtitle extraction, audio ↔ audio (also APE, WavPack, TTA, DSD, DTS, ALAC, …), GIF, APNG and photos → MP4/WEBM/MOV, Live / Motion Photos → their video, a clip of a video → an iPhone Live Photo or Android Motion Photo (experimental), images → HEIC |
| Calibre | **optional download** (~216 MB, 660 MB on disk) | rare e-book formats: LIT, LRF, CHM, PDB, PML, RB, SNB, TCR, OEB → EPUB; EPUB → MOBI, AZW3, LIT, LRF, PDB, PML, RB, SNB, TCR; e-books → PDF (ranked above the HWPX writer, see below) |
@@ -62,10 +63,11 @@ the same on every PC. An external engine is looked for in this order:
1. a copy the user picked in Settings → *Engines*;
2. Filee's own copy (bundled or downloaded);
3. a copy already on the computer: on `PATH`, in Homebrew's and the usual Unix folders, or where the LibreOffice,
- calibre and Ghostscript installers put it. Settings → *Engines* shows it as "Found on this PC", with a note when
+ calibre, Ghostscript and Tesseract installers put it. Settings → *Engines* shows it as "Found on this PC", with a note when
its version is older than the one Filee downloads.
-Where Filee has no download of an engine (FFmpeg and Ghostscript on macOS, LibreOffice and Ghostscript on Linux),
+Where Filee has no download of an engine (FFmpeg, Ghostscript and Tesseract on macOS, LibreOffice, Ghostscript and
+Tesseract on Linux),
step 3 is how it is found. Microsoft Office
and Hancom Office are never used, even when installed. Running from source, the repository's `engines/` folder
(filled by `build/fetch-engines.ps1`) is used.
@@ -90,6 +92,11 @@ they can be installed or removed later in Settings → *Engines*. A conversion t
zstd tarball, of which only `Library/bin` is unpacked (SharpCompress; `fetch-engines.ps1` uses Windows' `tar.exe`).
Its fonts and resources are compiled into `gsdll64.dll`. The Microsoft C++ runtime it was built against
(`vcruntime` component) is copied next to `gswin64c.exe`, so it runs on PCs without the VC++ Redistributable.
+- Tesseract is UB Mannheim's Windows build (the one Tesseract's documentation points to), published only as an NSIS
+ installer. It is never run: Filee's own 7-Zip unpacks it (`nsis` kind), and the training programs, manuals,
+ installer files and bundled language data are removed (`TrimTesseract`, ~80 MB). The languages come from
+ `tessdata_fast` 4.1.0, pinned like the engines in `Infrastructure/ocr-languages.json` (`traineddata` kind, one
+ folder per language under `engines/ocr-languages`), and are downloaded the first time a preset uses one.
### Microsoft C++ runtime (Windows)
@@ -104,7 +111,7 @@ the runtime next to every program that needs it and does not ship it (`Infrastru
| Ghostscript (download) | `vcruntime` component copied next to `gswin64c.exe` (`EngineInstaller`, `fetch-engines.ps1`) |
| LibreOffice (download) | its own copy, which the administrative install leaves in `System64`, copied into `program/` (`EngineInstaller`, `fetch-engines.ps1`; `LibreOfficeConverter` also repairs a copy installed by an earlier Filee) |
| calibre, Java (downloads) | ship their own next to their programs (`app/bin`, `bin`) |
-| 7-Zip, FFmpeg (GyanD), Pandoc, PDFium, SkiaSharp / HarfBuzz, Magick.Native, the Explorer menu DLL, .NET | import neither (static runtime or MinGW / GHC builds) |
+| 7-Zip, FFmpeg (GyanD), Tesseract (UB Mannheim, MinGW), Pandoc, PDFium, SkiaSharp / HarfBuzz, Magick.Native, the Explorer menu DLL, .NET | import neither (static runtime or MinGW / GHC builds) |
The installer and the portable zip are made from the same publish folder, so both have the DLLs. Filee installed in
Program Files cannot repair its own bundled files, so an older installation gets them by installing the new version.
@@ -1450,3 +1457,26 @@ format, and FFmpeg reads what the file holds, so a `.dat` with no video in it fa
`nclx` sRGB, BT.601 full range when there is none) and Exif (orientation reset to 1, thumbnail removed) as a `cdsc`
item. Checked with libheif (Magick.NET), FFmpeg's HEIF demuxer and Windows' HEIF/HEVC extensions; a smooth 2000 ×
1500 picture is a quarter the size of a JPG at the same PSNR.
+
+## Text recognition (OCR)
+
+"Recognize text" (`PdfOptions.Ocr`, issue #288) in a preset for PDF, DOCX, TXT, Markdown or HWPX reads the text of
+scans and pictures with Tesseract (`Ocr/TesseractConverter.cs`), in the language the preset names
+(`PdfOptions.OcrLanguage`, a Tesseract code; English by default). The built-in "Searchable PDF" preset turns it on.
+
+- The route planner puts an OCR edge first (`ConversionEdge.Ocr`, `RoutePlanner.Plan(ocr: true)`): picture or PDF →
+ searchable PDF, then the cheapest ordinary route from that PDF. A picture Tesseract can't open (HEIC, PSD, …)
+ becomes a PNG first. OCR edges are never part of an ordinary route.
+- A searchable PDF keeps the page as it looks and puts the recognized words on it as invisible text. PDF pages that
+ already have text (visible or an OCR layer) are copied as they are; only the others are rendered at 300 dpi
+ (PDFium) and recognized, several pages at a time with one Tesseract thread each (`OMP_THREAD_LIMIT=1`). A PDF whose
+ pages all have text is copied with a note. The new document keeps the pages and the document information, not
+ bookmarks or form fields.
+- DOCX, Markdown and HWPX read the OCR layer as the page's text (`PdfDocumentReader.ReadWithOcrLayer`): the words
+ become paragraphs, the scan behind them is left out, and Tesseract's placeholder font is dropped. Without OCR an
+ OCR layer stays invisible there and the page stays a picture, as before. TXT always reads it.
+- PDFs merged into one ("Merge PDF" with OCR) are recognized before they are merged.
+- Pictures without a resolution are read at 300 dpi; Tesseract would otherwise assume 70 dpi and make a huge page.
+- The language data is copied into the job's folder and passed with `--tessdata-dir`, so a system Tesseract reads
+ only Filee's pinned files; `-c tessedit_create_pdf=1` replaces the `pdf` config file that lives in Tesseract's own
+ tessdata folder.
diff --git a/src/Filee.App/Assets/i18n/ar.json b/src/Filee.App/Assets/i18n/ar.json
index 7ee866f4..25605b8d 100644
--- a/src/Filee.App/Assets/i18n/ar.json
+++ b/src/Filee.App/Assets/i18n/ar.json
@@ -75,6 +75,7 @@
"format_request.notice_text": "أخبرنا بالصيغة التي تحتاجها.\nتساعد الطلبات في تحديد الصيغ التي سيدعمها Filee لاحقًا.\nلا يمكن تحويل الملفات المشفّرة أو المحمية من النسخ (DRM)، مهما كانت صيغتها.",
"error.no_route": "لا يوجد محرك يستطيع إجراء هذا التحويل",
"error.cannot_turn": "التدوير والانعكاس متاحان للصور فقط",
+ "error.ocr_language_download": "تعذّر تنزيل لغة التعرّف الضوئي OCR",
"error.too_many_frames": "عدد الإطارات كبير جدًا لحفظها كصور. زِد قيمة «كل إطار رقم N»",
"error.not_enough_space": "لا توجد مساحة كافية على القرص لحفظ الصور",
"error.no_motion_photo": "لا تحتوي هذه الصورة على فيديو يستطيع Filee قراءته (صورة Motion Photo من Android، أو Live Photo من iPhone مع ملف MOV بجانبها)",
@@ -99,6 +100,7 @@
"error.geo_unsupported_shape": "هذا النوع من الأشكال غير مدعوم",
"error.geo_too_large": "سيتجاوز ملف Shapefile حد الصيغة البالغ 2 غيغابايت",
"notice.pdf_not_smaller": "تعذّر تقليل الحجم، لذا نُسخ الملف كما هو",
+ "notice.ocr_has_text": "كل الصفحات تحتوي على نص بالفعل، لذا نُسخ الملف كما هو",
"notice.live_photo_pair": "حُفظ كصورة وملف MOV بالاسم نفسه. استوردهما معًا (صور iCloud أو AirDrop أو تطبيق الصور على Mac) لتحصل على Live Photo",
"notice.geo_datum_assumed": "المرجع الجيوديسي ليس WGS 84؛ حُوّلت المواقع على افتراض أنه كذلك، وقد تنحرف بمقدار يصل إلى مئات الأمتار",
"notice.geo_gpx_lossy": "تحتفظ GPX بالنقاط والمسارات والطرق مع حقول محدودة فقط: حُذفت السمات الأخرى وتحولت المضلعات إلى مسارات",
@@ -138,6 +140,7 @@
"engine.ffmpeg.description": "الفيديو والصوت: MP4 وMOV وMKV وWEBM وMP3 وM4A وWAV وFLAC وغيرها.\nواستخراج الصوت والترجمة، وإنشاء رسوم GIF وAPNG المتحركة، وحفظ الصور بصيغة HEIC.",
"engine.pandoc.description": "التحويل بين Markdown وHTML وبين ODT وRTF، ومن DOCX إلى Markdown\nالتحويل بين reStructuredText وLaTeX وOrg وAsciiDoc وTypst وMediaWiki وDocBook وJupyter وغيرها وبين Markdown وHTML وDOCX وODT\nتحويل Markdown وOrg إلى شرائح PPTX",
"engine.ghostscript.description": "تحويل EPS وPostScript وملفات Illustrator القديمة إلى PDF وصور؛ وتحويل PDF إلى EPS وPS.",
+ "engine.tesseract.description": "يتعرّف على نص الصور والمستندات الممسوحة (OCR): PDF قابل للبحث وDOCX وTXT.",
"engine.calibre.description": "صيغ الكتب الإلكترونية النادرة (LIT وLRF وCHM وPDB وRB…) وإخراج Kindle ‏(MOBI وAZW3).\nعند وضعه فوق محرك كتابة HWPX، يُنشئ أيضًا PDF من الكتب الإلكترونية (بسرعة أكبر بكثير للكتب الطويلة).",
"engine.libreoffice.description": "قراءة الصيغ القديمة والأقل شيوعًا: DOC وPPT وPages وKeynote وNumbers وWordPerfect وClarisWorks وPublisher وVisio…\nوالحفظ بصيغ DOC وXLS وPPT وODT وODP وقوالب OpenDocument وEMF.",
"profile.images": "الصور",
@@ -200,6 +203,7 @@
"merge.order_hint": "حدّد ملفًا وانقله إلى أعلى أو أسفل. تُدمج الملفات بالترتيب من الأعلى إلى الأسفل. (‎Alt+↑ / Alt+↓‎)",
"preset.split_pdf": "تقسيم PDF",
"preset.compress_pdf": "ضغط PDF",
+ "preset.searchable_pdf": "PDF قابل للبحث",
"preset.long_image": "صورة طويلة",
"preset.pdf_slides": "PPTX (شرائح)",
"preset.extract": "استخراج",
@@ -508,6 +512,10 @@
"presets.pdf_compression_hint": "تُصغّر الصور وتُحفَظ بصيغة JPEG.\nتبقى النصوص والخطوط والرسومات كما هي.\nإذا لم تكن النتيجة أصغر، يُحتفَظ بالأصل.",
"presets.pdf_ghostscript": "تجربة Ghostscript أيضًا (عند تثبيته)",
"presets.pdf_ghostscript_hint": "غالبًا ما يُنتج حجمًا أصغر، لكنه يعيد كتابة الملف بالكامل.\nتُحفَظ النتيجة الأصغر.",
+ "presets.ocr": "التعرّف على النص (OCR)",
+ "presets.ocr_hint": "يصبح نص المستندات الممسوحة والصور قابلًا للبحث والتحرير. يتطلب Tesseract (الإعدادات ← المحركات).\nتبقى الصفحات التي تحتوي على نص كما هي.",
+ "presets.ocr_language": "لغة النص",
+ "presets.ocr_language_size": "تنزيل {0}",
"presets.pdf_keep_metadata": "الاحتفاظ بالبيانات الوصفية للصفحات والصور (XMP)",
"presets.combine_pages_hint": "يضع كل الصفحات تحت بعضها في صورة واحدة.\nتُصغّر النتائج الطويلة جدًا إلى حد الصيغة (JPG ‏65,500 بكسل، WebP ‏16,383 بكسل).",
"presets.combine_pages": "تجميع الصفحات في صورة طويلة واحدة (عند تحويل PDF)",
@@ -638,6 +646,8 @@
"engines.package.pandoc.description": "يضيف التحويل بين Markdown وHTML وبين ODT وRTF، ومن DOCX إلى Markdown، ويدعم LaTeX وOrg وAsciiDoc وTypst وJupyter وغيرها من لغات الترميز.\nوينشئ شرائح PPTX من Markdown.\nيعمل تحويل Markdown وHTML إلى PDF وDOCX وHWPX بدونه.",
"engines.package.ghostscript.name": "Ghostscript (EPS وPostScript)",
"engines.package.ghostscript.description": "تحويل EPS وPS وملفات Illustrator القديمة إلى PDF وصور، وتحويل PDF أو SVG إلى EPS وPS.\nتُحوَّل ملفات SVG وAI المتوافقة مع PDF بدونه.",
+ "engines.package.tesseract.name": "Tesseract (التعرّف على النص، OCR)",
+ "engines.package.tesseract.description": "يقرأ نص ملفات PDF الممسوحة والصور: PDF قابل للبحث وDOCX وTXT.\nتُنزَّل كل لغة عند استخدامها أول مرة.",
"engines.package.ffmpeg.name": "FFmpeg (الفيديو والصوت)",
"engines.package.ffmpeg.description": "يضيف تحويل الفيديو والصوت، وتحويل الفيديو إلى GIF أو صورة ثابتة، واستخراج الصوت من الفيديو، وتحويل GIF إلى MP4.\nمطلوب للفيديو والصوت فقط.",
"engines.package.calibre.name": "Calibre (Kindle وصيغ الكتب النادرة)",
@@ -647,10 +657,12 @@
"engines.guidance.macos": "ثبّت {0} لهذا الـ Mac، ثم اختر «استخدام نسختي…» وحدّد البرنامج أو مجلد ‎.app الخاص به.",
"engines.guidance.macos.ffmpeg": "ثبّته باستخدام Homebrew ‏(brew install ffmpeg)، ثم اختر «التحقق مجددًا».\nأو اختر «استخدام نسختي…» وحدّد مجلد bin الخاص به.",
"engines.guidance.macos.ghostscript": "ثبّته باستخدام Homebrew ‏(brew install ghostscript)، ثم اختر «التحقق مجددًا».\nأو اختر «استخدام نسختي…» وحدّد مجلد bin الخاص به.",
+ "engines.guidance.macos.tesseract": "ثبّته باستخدام Homebrew ‏(brew install tesseract)، ثم اختر «التحقق مجددًا».\nأو اختر «استخدام نسختي…» وحدّد مجلد bin الخاص به.",
"engines.guidance.macos.calibre": "يتطلب calibre الذي ينزّله Filee نظام macOS 14 أو أحدث. ثبّت calibre 7.26، آخر إصدار لهذا النظام، من calibre-ebook.com، ثم اختر «استخدام نسختي…» وحدّد مجلد ‎.app الخاص به.",
"engines.guidance.linux": "ثبّت {0} باستخدام مدير الحزم في توزيعتك، ثم اختر «استخدام نسختي…» وحدّد مجلد البرنامج.",
"engines.guidance.linux.libreoffice": "ثبّته باستخدام مدير الحزم (على Ubuntu/Debian: sudo apt install libreoffice)، ثم اختر «التحقق مجددًا».\nيتطلب فتح HWP أيضًا Java وإضافة H2Orestart.",
"engines.guidance.linux.ghostscript": "ثبّته باستخدام مدير الحزم (على Ubuntu/Debian: sudo apt install ghostscript)، ثم اختر «التحقق مجددًا».",
+ "engines.guidance.linux.tesseract": "ثبّته باستخدام مدير الحزم (على Ubuntu/Debian: sudo apt install tesseract-ocr)، ثم اختر «التحقق مجددًا».",
"engines.guidance.windows": "لا يوفر Filee تنزيلًا لـ {0} لهذا الحاسوب.\nاختر «استخدام نسختي…» وحدّد نسخة مثبّتة.",
"engines.use_own_app_folder": "اختر المجلد الذي يحتوي على {0}.app",
"engines.progress_detail": "{0} من {1} · {2}/ث · {3}",
diff --git a/src/Filee.App/Assets/i18n/en.json b/src/Filee.App/Assets/i18n/en.json
index d6024c30..67aca553 100644
--- a/src/Filee.App/Assets/i18n/en.json
+++ b/src/Filee.App/Assets/i18n/en.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "Tell us which format you need.\nRequests decide what Filee supports next.\nEncrypted or copy-protected (DRM) files can't be converted, whatever the format.",
"error.no_route": "No engine can do this conversion",
"error.cannot_turn": "Rotate and flip work on images only",
+ "error.ocr_language_download": "Couldn't download the OCR language",
"error.too_many_frames": "Too many frames to save as pictures, raise \"Every Nth frame\"",
"error.not_enough_space": "Not enough free disk space for the pictures",
"error.no_motion_photo": "This photo has no video Filee can read (an Android Motion Photo, or an iPhone Live Photo with its MOV next to it)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "This kind of shape isn't supported",
"error.geo_too_large": "The Shapefile would pass the format's 2 GB limit",
"notice.pdf_not_smaller": "Couldn't make it smaller, so it was copied as it is",
+ "notice.ocr_has_text": "Every page already has text, so it was copied as it is",
"notice.live_photo_pair": "Saved as a photo and a MOV with the same name. Import both together (iCloud Photos, AirDrop or Photos on a Mac) to get a Live Photo",
"notice.geo_datum_assumed": "The datum isn't WGS 84; positions were converted as if it were and can be off by up to hundreds of metres",
"notice.geo_gpx_lossy": "GPX holds only points, routes and tracks with a few fields: other attributes were left out and polygons became tracks",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "Video and audio: MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC and more.\nAlso extracts sound and subtitles, makes GIF and APNG animations and saves images as HEIC.",
"engine.pandoc.description": "Markdown and HTML ↔ ODT and RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter and more ↔ Markdown, HTML, DOCX and ODT\nMarkdown and Org → PPTX slides",
"engine.ghostscript.description": "EPS, PostScript and older Illustrator files to PDF and images; PDF to EPS and PS.",
+ "engine.tesseract.description": "Recognizes the text of scans and pictures (OCR): searchable PDF, DOCX, TXT.",
"engine.calibre.description": "Rare e-book formats (LIT, LRF, CHM, PDB, RB…) and Kindle output (MOBI, AZW3).\nAbove the HWPX writer, it also makes the PDFs of e-books (much faster for long books).",
"engine.libreoffice.description": "Reads older and less common formats: DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nAlso saves as DOC, XLS, PPT, ODT, ODP, OpenDocument templates and EMF.",
@@ -210,6 +213,7 @@
"merge.order_hint": "Select a file and move it up or down. Files are merged from top to bottom. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "Split PDF",
"preset.compress_pdf": "Compress PDF",
+ "preset.searchable_pdf": "Searchable PDF",
"preset.long_image": "Long image",
"preset.pdf_slides": "PPTX (slides)",
"preset.extract": "Extract",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "Pictures are scaled down and saved as JPEG.\nText, fonts and drawings stay as they are.\nIf the result isn't smaller, the original is kept.",
"presets.pdf_ghostscript": "Also try Ghostscript (when installed)",
"presets.pdf_ghostscript_hint": "Often smaller, but it rewrites the whole file.\nThe smallest result is kept.",
+ "presets.ocr": "Recognize text (OCR)",
+ "presets.ocr_hint": "Scans and pictures get text you can search and edit. Needs Tesseract (Settings → Engines).\nPages that already have text stay as they are.",
+ "presets.ocr_language": "Language of the text",
+ "presets.ocr_language_size": "{0} download",
"presets.pdf_keep_metadata": "Keep page and picture metadata (XMP)",
"presets.combine_pages_hint": "Puts all pages one under another in a single image.\nVery long results are scaled to the format's limit (JPG 65,500 px, WebP 16,383 px).",
"presets.combine_pages": "Stack the pages into one tall image (when a PDF is converted)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "Adds Markdown and HTML ↔ ODT and RTF, DOCX → Markdown, and LaTeX, Org, AsciiDoc, Typst, Jupyter and other markup.\nAlso makes PPTX slides from Markdown.\nMarkdown and HTML → PDF, DOCX and HWPX work without it.",
"engines.package.ghostscript.name": "Ghostscript (EPS and PostScript)",
"engines.package.ghostscript.description": "EPS, PS and older Illustrator files → PDF and images, PDF or SVG → EPS/PS.\nSVG and PDF-compatible AI files convert without it.",
+ "engines.package.tesseract.name": "Tesseract (text recognition, OCR)",
+ "engines.package.tesseract.description": "Reads the text of scanned PDFs and pictures: searchable PDF, DOCX, TXT.\nEach language downloads the first time it is used.",
"engines.package.ffmpeg.name": "FFmpeg (video and audio)",
"engines.package.ffmpeg.description": "Adds video and audio conversion, video → GIF or still image, sound from videos and GIF → MP4.\nOnly needed for video and audio.",
"engines.package.calibre.name": "Calibre (Kindle and rare e-book formats)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "Install {0} for this Mac, then choose “Use my copy…” and select its program or .app folder.",
"engines.guidance.macos.ffmpeg": "Install it with Homebrew (brew install ffmpeg), then choose “Check again”.\nOr choose “Use my copy…” and select its bin folder.",
"engines.guidance.macos.ghostscript": "Install it with Homebrew (brew install ghostscript), then choose “Check again”.\nOr choose “Use my copy…” and select its bin folder.",
+ "engines.guidance.macos.tesseract": "Install it with Homebrew (brew install tesseract), then choose “Check again”.\nOr choose “Use my copy…” and select its bin folder.",
"engines.guidance.macos.calibre": "The calibre Filee downloads needs macOS 14 or later. Install calibre 7.26, the last version for this macOS, from calibre-ebook.com, then choose “Use my copy…” and select its .app folder.",
"engines.guidance.linux": "Install {0} with your distribution’s package manager, then choose “Use my copy…” and select its program folder.",
"engines.guidance.linux.libreoffice": "Install it with your package manager (Ubuntu/Debian: sudo apt install libreoffice), then choose “Check again”.\nOpening HWP also needs Java and the H2Orestart extension.",
"engines.guidance.linux.ghostscript": "Install it with your package manager (Ubuntu/Debian: sudo apt install ghostscript), then choose “Check again”.",
+ "engines.guidance.linux.tesseract": "Install it with your package manager (Ubuntu/Debian: sudo apt install tesseract-ocr), then choose “Check again”.",
"engines.guidance.windows": "Filee has no download of {0} for this PC.\nChoose “Use my copy…” and select an installed copy.",
"engines.use_own_app_folder": "Choose the folder containing {0}.app",
"engines.progress_detail": "{0} of {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/es.json b/src/Filee.App/Assets/i18n/es.json
index 89007a3e..9e1deb1a 100644
--- a/src/Filee.App/Assets/i18n/es.json
+++ b/src/Filee.App/Assets/i18n/es.json
@@ -75,6 +75,7 @@
"format_request.notice_text": "Cuéntanos qué formato necesitas.\nLas solicitudes determinan qué formatos admitirá Filee a continuación.\nLos archivos cifrados o con protección de copia (DRM) no se pueden convertir, sea cual sea su formato.",
"error.no_route": "Ningún motor puede hacer esta conversión",
"error.cannot_turn": "Rotar y voltear solo funcionan con imágenes",
+ "error.ocr_language_download": "No se pudo descargar el idioma de OCR",
"error.too_many_frames": "Demasiados fotogramas para guardar como imágenes; aumenta «Cada N fotogramas»",
"error.not_enough_space": "Espacio libre en disco insuficiente para las imágenes",
"error.no_motion_photo": "Esta foto no tiene un vídeo que Filee pueda leer (una Motion Photo de Android o una Live Photo de iPhone con su MOV al lado)",
@@ -99,6 +100,7 @@
"error.geo_unsupported_shape": "Este tipo de forma no es compatible",
"error.geo_too_large": "El Shapefile superaría el límite de 2 GB del formato",
"notice.pdf_not_smaller": "No se pudo reducir su tamaño, por lo que se copió tal cual",
+ "notice.ocr_has_text": "Todas las páginas ya tienen texto, así que se copió tal cual",
"notice.live_photo_pair": "Guardado como una foto y un MOV con el mismo nombre. Impórtalos juntos (Fotos de iCloud, AirDrop o Fotos en un Mac) para obtener una Live Photo",
"notice.geo_datum_assumed": "El datum no es WGS 84; las posiciones se convirtieron como si lo fuera y pueden desviarse hasta cientos de metros",
"notice.geo_gpx_lossy": "GPX solo guarda puntos, rutas y tracks con pocos campos: se omitieron los demás atributos y los polígonos pasaron a ser tracks",
@@ -138,6 +140,7 @@
"engine.ffmpeg.description": "Vídeo y audio: MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC y más.\nTambién extrae sonido y subtítulos, crea animaciones GIF y APNG y guarda imágenes como HEIC.",
"engine.pandoc.description": "Markdown y HTML ↔ ODT y RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter y más ↔ Markdown, HTML, DOCX y ODT\nMarkdown y Org → diapositivas PPTX",
"engine.ghostscript.description": "EPS, PostScript y archivos antiguos de Illustrator a PDF e imágenes; PDF a EPS y PS.",
+ "engine.tesseract.description": "Reconoce el texto de escaneos e imágenes (OCR): PDF con búsqueda, DOCX, TXT.",
"engine.calibre.description": "Formatos raros de libros electrónicos (LIT, LRF, CHM, PDB, RB…) y salida Kindle (MOBI, AZW3).\nPor encima del escritor HWPX, también crea los PDF de libros electrónicos (mucho más rápido para libros largos).",
"engine.libreoffice.description": "Lee formatos antiguos y poco habituales: DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nTambién guarda como DOC, XLS, PPT, ODT, ODP, plantillas OpenDocument y EMF.",
"profile.images": "Imágenes",
@@ -200,6 +203,7 @@
"merge.order_hint": "Selecciona un archivo y muévelo arriba o abajo. Los archivos se combinan de arriba abajo. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "Dividir PDF",
"preset.compress_pdf": "Comprimir PDF",
+ "preset.searchable_pdf": "PDF con búsqueda",
"preset.long_image": "Imagen larga",
"preset.pdf_slides": "PPTX (diapositivas)",
"preset.extract": "Extraer",
@@ -508,6 +512,10 @@
"presets.pdf_compression_hint": "Las imágenes se reducen y se guardan como JPEG.\nEl texto, las fuentes y los dibujos permanecen iguales.\nSi el resultado no es más pequeño, se conserva el original.",
"presets.pdf_ghostscript": "Probar también con Ghostscript (si está instalado)",
"presets.pdf_ghostscript_hint": "A menudo es más pequeño, pero reescribe todo el archivo.\nSe conserva el resultado más pequeño.",
+ "presets.ocr": "Reconocer texto (OCR)",
+ "presets.ocr_hint": "Los escaneos e imágenes tendrán texto que se puede buscar y editar. Requiere Tesseract (Ajustes → Motores).\nLas páginas que ya tienen texto no cambian.",
+ "presets.ocr_language": "Idioma del texto",
+ "presets.ocr_language_size": "Descarga de {0}",
"presets.pdf_keep_metadata": "Conservar metadatos de página e imagen (XMP)",
"presets.combine_pages_hint": "Pone todas las páginas una debajo de otra en una sola imagen.\nLos resultados muy largos se escalan al límite del formato (JPG 65 500 px, WebP 16 383 px).",
"presets.combine_pages": "Apilar las páginas en una imagen alta (cuando se convierte un PDF)",
@@ -638,6 +646,8 @@
"engines.package.pandoc.description": "Añade Markdown y HTML ↔ ODT y RTF, DOCX → Markdown, y LaTeX, Org, AsciiDoc, Typst, Jupyter y otros lenguajes de marcado.\nTambién crea diapositivas PPTX desde Markdown.\nMarkdown y HTML → PDF, DOCX y HWPX funcionan sin él.",
"engines.package.ghostscript.name": "Ghostscript (EPS y PostScript)",
"engines.package.ghostscript.description": "EPS, PS y archivos antiguos de Illustrator → PDF e imágenes, PDF o SVG → EPS/PS.\nSVG y AI compatibles con PDF se convierten sin él.",
+ "engines.package.tesseract.name": "Tesseract (reconocimiento de texto, OCR)",
+ "engines.package.tesseract.description": "Lee el texto de PDF escaneados e imágenes: PDF con búsqueda, DOCX, TXT.\nCada idioma se descarga la primera vez que se usa.",
"engines.package.ffmpeg.name": "FFmpeg (vídeo y audio)",
"engines.package.ffmpeg.description": "Añade conversión de vídeo y audio, vídeo → GIF o imagen fija, sonido de vídeos y GIF → MP4.\nSolo es necesario para vídeo y audio.",
"engines.package.calibre.name": "Calibre (Kindle y libros electrónicos poco habituales)",
@@ -647,10 +657,12 @@
"engines.guidance.macos": "Instala {0} para este Mac y luego elige «Usar mi copia…» y selecciona su programa o su carpeta .app.",
"engines.guidance.macos.ffmpeg": "Instálalo con Homebrew (brew install ffmpeg) y luego elige «Comprobar otra vez».\nO bien elige «Usar mi copia…» y selecciona su carpeta bin.",
"engines.guidance.macos.ghostscript": "Instálalo con Homebrew (brew install ghostscript) y luego elige «Comprobar otra vez».\nO bien elige «Usar mi copia…» y selecciona su carpeta bin.",
+ "engines.guidance.macos.tesseract": "Instálalo con Homebrew (brew install tesseract) y luego elige «Comprobar otra vez».\nO bien elige «Usar mi copia…» y selecciona su carpeta bin.",
"engines.guidance.macos.calibre": "El calibre que descarga Filee necesita macOS 14 o posterior. Instala calibre 7.26, la última versión para este macOS, desde calibre-ebook.com y luego elige «Usar mi copia…» y selecciona su carpeta .app.",
"engines.guidance.linux": "Instala {0} con el gestor de paquetes de tu distribución y luego elige «Usar mi copia…» y selecciona su carpeta de programa.",
"engines.guidance.linux.libreoffice": "Instálalo con tu gestor de paquetes (Ubuntu/Debian: sudo apt install libreoffice) y luego elige «Comprobar otra vez».\nAbrir HWP necesita además Java y la extensión H2Orestart.",
"engines.guidance.linux.ghostscript": "Instálalo con tu gestor de paquetes (Ubuntu/Debian: sudo apt install ghostscript) y luego elige «Comprobar otra vez».",
+ "engines.guidance.linux.tesseract": "Instálalo con tu gestor de paquetes (Ubuntu/Debian: sudo apt install tesseract-ocr) y luego elige «Comprobar otra vez».",
"engines.guidance.windows": "Filee no tiene una descarga de {0} para este PC.\nElige «Usar mi copia…» y selecciona una copia instalada.",
"engines.use_own_app_folder": "Elige la carpeta que contiene {0}.app",
"engines.progress_detail": "{0} de {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/fr.json b/src/Filee.App/Assets/i18n/fr.json
index 32197851..3b27cd87 100644
--- a/src/Filee.App/Assets/i18n/fr.json
+++ b/src/Filee.App/Assets/i18n/fr.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "Dites-nous de quel format vous avez besoin.\nLes demandes décident de ce que Filee prendra en charge ensuite.\nLes fichiers chiffrés ou protégés contre la copie (DRM) ne peuvent pas être convertis, quel que soit le format.",
"error.no_route": "Aucun moteur ne peut effectuer cette conversion",
"error.cannot_turn": "La rotation et le retournement ne s'appliquent qu'aux images",
+ "error.ocr_language_download": "Impossible de télécharger la langue de l'OCR",
"error.too_many_frames": "Trop d'images à enregistrer, augmentez « Une image sur N »",
"error.not_enough_space": "Pas assez d'espace disque libre pour les images",
"error.no_motion_photo": "Cette photo ne contient aucune vidéo lisible par Filee (une Motion Photo Android, ou une Live Photo d'iPhone avec son MOV à côté)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "Ce type de forme n'est pas pris en charge",
"error.geo_too_large": "Le Shapefile dépasserait la limite de 2 Go du format",
"notice.pdf_not_smaller": "Impossible de réduire sa taille : le fichier a été copié tel quel",
+ "notice.ocr_has_text": "Toutes les pages ont déjà du texte : copié tel quel",
"notice.live_photo_pair": "Enregistré en une photo et un MOV de même nom. Importez-les ensemble (Photos iCloud, AirDrop ou Photos sur Mac) pour obtenir une Live Photo",
"notice.geo_datum_assumed": "Le datum n'est pas WGS 84 ; les positions ont été converties comme s'il l'était et peuvent être décalées de plusieurs centaines de mètres",
"notice.geo_gpx_lossy": "GPX ne contient que des points, des routes et des traces avec quelques champs : les autres attributs ont été omis et les polygones sont devenus des traces",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "Vidéo et audio : MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC et plus.\nExtrait aussi le son et les sous-titres, crée des animations GIF et APNG et enregistre des images en HEIC.",
"engine.pandoc.description": "Markdown et HTML ↔ ODT et RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter et plus ↔ Markdown, HTML, DOCX et ODT\nMarkdown et Org → diapositives PPTX",
"engine.ghostscript.description": "EPS, PostScript et anciens fichiers Illustrator en PDF et images ; PDF en EPS et PS.",
+ "engine.tesseract.description": "Reconnaît le texte des numérisations et des images (OCR) : PDF consultable, DOCX, TXT.",
"engine.calibre.description": "Formats de livres numériques rares (LIT, LRF, CHM, PDB, RB…) et sortie Kindle (MOBI, AZW3).\nPlacé au-dessus du rédacteur HWPX, il produit aussi les PDF des livres numériques (bien plus vite pour les longs livres).",
"engine.libreoffice.description": "Lit les formats anciens et moins courants : DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nEnregistre aussi en DOC, XLS, PPT, ODT, ODP, modèles OpenDocument et EMF.",
@@ -210,6 +213,7 @@
"merge.order_hint": "Sélectionnez un fichier et déplacez-le vers le haut ou le bas. Les fichiers sont fusionnés de haut en bas. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "Diviser le PDF",
"preset.compress_pdf": "Compresser le PDF",
+ "preset.searchable_pdf": "PDF consultable",
"preset.long_image": "Image longue",
"preset.pdf_slides": "PPTX (diapos)",
"preset.extract": "Extraire",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "Les images sont réduites et enregistrées en JPEG.\nLe texte, les polices et les dessins restent intacts.\nSi le résultat n'est pas plus léger, l'original est conservé.",
"presets.pdf_ghostscript": "Essayer aussi Ghostscript (s'il est installé)",
"presets.pdf_ghostscript_hint": "Souvent plus léger, mais il réécrit tout le fichier.\nLe résultat le plus léger est conservé.",
+ "presets.ocr": "Reconnaître le texte (OCR)",
+ "presets.ocr_hint": "Le texte des numérisations et des images devient consultable et modifiable. Nécessite Tesseract (Paramètres → Moteurs).\nLes pages qui ont déjà du texte restent telles quelles.",
+ "presets.ocr_language": "Langue du texte",
+ "presets.ocr_language_size": "Téléchargement de {0}",
"presets.pdf_keep_metadata": "Conserver les métadonnées des pages et des images (XMP)",
"presets.combine_pages_hint": "Place toutes les pages les unes sous les autres dans une seule image.\nLes résultats très longs sont réduits à la limite du format (JPG 65 500 px, WebP 16 383 px).",
"presets.combine_pages": "Empiler les pages en une seule image haute (lors de la conversion d'un PDF)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "Ajoute Markdown et HTML ↔ ODT et RTF, DOCX → Markdown, ainsi que LaTeX, Org, AsciiDoc, Typst, Jupyter et d'autres langages de balisage.\nCrée aussi des diapositives PPTX à partir de Markdown.\nMarkdown et HTML → PDF, DOCX et HWPX fonctionnent sans lui.",
"engines.package.ghostscript.name": "Ghostscript (EPS et PostScript)",
"engines.package.ghostscript.description": "Fichiers EPS, PS et anciens Illustrator → PDF et images, PDF ou SVG → EPS/PS.\nLes fichiers SVG et AI compatibles PDF se convertissent sans lui.",
+ "engines.package.tesseract.name": "Tesseract (reconnaissance de texte, OCR)",
+ "engines.package.tesseract.description": "Lit le texte des PDF numérisés et des images : PDF consultable, DOCX, TXT.\nChaque langue est téléchargée à sa première utilisation.",
"engines.package.ffmpeg.name": "FFmpeg (vidéo et audio)",
"engines.package.ffmpeg.description": "Ajoute la conversion vidéo et audio, vidéo → GIF ou image fixe, le son des vidéos et GIF → MP4.\nNécessaire uniquement pour la vidéo et l'audio.",
"engines.package.calibre.name": "Calibre (Kindle et formats de livres numériques rares)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "Installez {0} pour ce Mac, puis choisissez « Utiliser ma copie… » et sélectionnez son programme ou son dossier .app.",
"engines.guidance.macos.ffmpeg": "Installez-le avec Homebrew (brew install ffmpeg), puis choisissez « Revérifier ».\nOu choisissez « Utiliser ma copie… » et sélectionnez son dossier bin.",
"engines.guidance.macos.ghostscript": "Installez-le avec Homebrew (brew install ghostscript), puis choisissez « Revérifier ».\nOu choisissez « Utiliser ma copie… » et sélectionnez son dossier bin.",
+ "engines.guidance.macos.tesseract": "Installez-le avec Homebrew (brew install tesseract), puis choisissez « Revérifier ».\nOu choisissez « Utiliser ma copie… » et sélectionnez son dossier bin.",
"engines.guidance.macos.calibre": "Le calibre téléchargé par Filee nécessite macOS 14 ou ultérieur. Installez calibre 7.26, dernière version pour ce macOS, depuis calibre-ebook.com, puis choisissez « Utiliser ma copie… » et sélectionnez son dossier .app.",
"engines.guidance.linux": "Installez {0} avec le gestionnaire de paquets de votre distribution, puis choisissez « Utiliser ma copie… » et sélectionnez le dossier du programme.",
"engines.guidance.linux.libreoffice": "Installez-le avec votre gestionnaire de paquets (Ubuntu/Debian : sudo apt install libreoffice), puis choisissez « Revérifier ».\nL'ouverture des HWP nécessite aussi Java et l'extension H2Orestart.",
"engines.guidance.linux.ghostscript": "Installez-le avec votre gestionnaire de paquets (Ubuntu/Debian : sudo apt install ghostscript), puis choisissez « Revérifier ».",
+ "engines.guidance.linux.tesseract": "Installez-le avec votre gestionnaire de paquets (Ubuntu/Debian : sudo apt install tesseract-ocr), puis choisissez « Revérifier ».",
"engines.guidance.windows": "Filee ne propose pas de téléchargement de {0} pour ce PC.\nChoisissez « Utiliser ma copie… » et sélectionnez une copie installée.",
"engines.use_own_app_folder": "Choisissez le dossier contenant {0}.app",
"engines.progress_detail": "{0} sur {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/hi.json b/src/Filee.App/Assets/i18n/hi.json
index dde78607..80decab9 100644
--- a/src/Filee.App/Assets/i18n/hi.json
+++ b/src/Filee.App/Assets/i18n/hi.json
@@ -75,6 +75,7 @@
"format_request.notice_text": "हमें बताएँ कि आपको कौन-सा फ़ॉर्मैट चाहिए।\nअनुरोधों से तय होता है कि Filee आगे क्या समर्थन करेगा।\nएन्क्रिप्टेड या कॉपी-सुरक्षित (DRM) फ़ाइलें किसी भी फ़ॉर्मैट में कन्वर्ट नहीं की जा सकतीं।",
"error.no_route": "कोई भी इंजन यह कन्वर्ज़न नहीं कर सकता",
"error.cannot_turn": "घुमाना और पलटना केवल इमेज पर काम करता है",
+ "error.ocr_language_download": "OCR भाषा डाउनलोड नहीं हो सकी",
"error.too_many_frames": "तस्वीरों के रूप में सहेजने के लिए बहुत ज़्यादा फ़्रेम हैं, \"हर Nवाँ फ़्रेम\" बढ़ाएँ",
"error.not_enough_space": "तस्वीरों के लिए डिस्क पर पर्याप्त खाली जगह नहीं है",
"error.no_motion_photo": "इस फ़ोटो में ऐसा कोई वीडियो नहीं है जिसे Filee पढ़ सके (Android मोशन फ़ोटो, या पास में अपनी MOV फ़ाइल वाली iPhone लाइव फ़ोटो)",
@@ -99,6 +100,7 @@
"error.geo_unsupported_shape": "इस तरह का आकार समर्थित नहीं है",
"error.geo_too_large": "Shapefile फ़ॉर्मैट की 2 GB सीमा से बड़ी हो जाएगी",
"notice.pdf_not_smaller": "इसे छोटा नहीं किया जा सका, इसलिए जैसा है वैसा ही कॉपी कर दिया गया",
+ "notice.ocr_has_text": "हर पेज में पहले से टेक्स्ट है, इसलिए फ़ाइल जैसी थी वैसी कॉपी की गई",
"notice.live_photo_pair": "एक ही नाम की फ़ोटो और MOV के रूप में सहेजा गया। लाइव फ़ोटो पाने के लिए दोनों को साथ में इम्पोर्ट करें (iCloud Photos, AirDrop या Mac पर Photos)",
"notice.geo_datum_assumed": "डेटम WGS 84 नहीं है। स्थितियाँ ऐसे कन्वर्ट की गईं मानो वह WGS 84 हो, इसलिए वे कुछ सौ मीटर तक खिसक सकती हैं",
"notice.geo_gpx_lossy": "GPX में केवल पॉइंट, रूट और ट्रैक कुछ फ़ील्ड के साथ रहते हैं: बाकी एट्रिब्यूट छोड़ दिए गए और पॉलीगॉन ट्रैक बन गए",
@@ -138,6 +140,7 @@
"engine.ffmpeg.description": "वीडियो और ऑडियो: MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC और अन्य।\nआवाज़ और सबटाइटल निकालता है, GIF और APNG एनिमेशन बनाता है और इमेज को HEIC में सहेजता है।",
"engine.pandoc.description": "Markdown और HTML ↔ ODT और RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter और अन्य ↔ Markdown, HTML, DOCX और ODT\nMarkdown और Org → PPTX स्लाइड",
"engine.ghostscript.description": "EPS, PostScript और पुरानी Illustrator फ़ाइलें PDF और इमेज में; PDF से EPS और PS।",
+ "engine.tesseract.description": "स्कैन और तस्वीरों का टेक्स्ट पहचानता है (OCR): खोजने योग्य PDF, DOCX, TXT।",
"engine.calibre.description": "दुर्लभ ई-बुक फ़ॉर्मैट (LIT, LRF, CHM, PDB, RB…) और Kindle आउटपुट (MOBI, AZW3)।\nHWPX writer के ऊपर होने पर यह ई-बुक के PDF भी बनाता है (लंबी किताबों के लिए बहुत तेज़)।",
"engine.libreoffice.description": "पुराने और कम प्रचलित फ़ॉर्मैट पढ़ता है: DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nDOC, XLS, PPT, ODT, ODP, OpenDocument टेम्पलेट और EMF के रूप में सहेजता भी है।",
"profile.images": "इमेज",
@@ -200,6 +203,7 @@
"merge.order_hint": "फ़ाइल चुनकर उसे ऊपर या नीचे ले जाएँ। फ़ाइलें ऊपर से नीचे के क्रम में मर्ज होंगी। (Alt+↑ / Alt+↓)",
"preset.split_pdf": "PDF बाँटें",
"preset.compress_pdf": "PDF कंप्रेस करें",
+ "preset.searchable_pdf": "खोजने योग्य PDF",
"preset.long_image": "लंबी इमेज",
"preset.pdf_slides": "PPTX (स्लाइड)",
"preset.extract": "निकालें",
@@ -508,6 +512,10 @@
"presets.pdf_compression_hint": "तस्वीरों को छोटा करके JPEG के रूप में सहेजा जाता है।\nटेक्स्ट, फ़ॉन्ट और ड्रॉइंग जैसे हैं वैसे ही रहते हैं।\nअगर नतीजा छोटा नहीं होता, तो मूल फ़ाइल रखी जाती है।",
"presets.pdf_ghostscript": "Ghostscript भी आज़माएँ (इंस्टॉल होने पर)",
"presets.pdf_ghostscript_hint": "अक्सर और छोटा होता है, लेकिन पूरी फ़ाइल को दोबारा लिखता है।\nसबसे छोटा नतीजा रखा जाता है।",
+ "presets.ocr": "टेक्स्ट पहचानें (OCR)",
+ "presets.ocr_hint": "स्कैन और तस्वीरों का टेक्स्ट खोजने और बदलने योग्य बनता है। Tesseract चाहिए (सेटिंग्स → इंजन)।\nजिन पेजों में पहले से टेक्स्ट है वे वैसे ही रहते हैं।",
+ "presets.ocr_language": "टेक्स्ट की भाषा",
+ "presets.ocr_language_size": "{0} डाउनलोड",
"presets.pdf_keep_metadata": "पेज और तस्वीर का मेटाडेटा (XMP) रखें",
"presets.combine_pages_hint": "सभी पेजों को एक के नीचे एक रखकर एक इमेज बनाता है।\nबहुत लंबे नतीजे फ़ॉर्मैट की सीमा तक स्केल किए जाते हैं (JPG 65,500 px, WebP 16,383 px)।",
"presets.combine_pages": "पेजों को एक लंबी इमेज में जोड़ें (जब PDF कन्वर्ट हो)",
@@ -638,6 +646,8 @@
"engines.package.pandoc.description": "Markdown और HTML ↔ ODT और RTF, DOCX → Markdown, और LaTeX, Org, AsciiDoc, Typst, Jupyter व अन्य मार्कअप जोड़ता है।\nMarkdown से PPTX स्लाइड भी बनाता है।\nMarkdown और HTML → PDF, DOCX और HWPX इसके बिना भी काम करते हैं।",
"engines.package.ghostscript.name": "Ghostscript (EPS और PostScript)",
"engines.package.ghostscript.description": "EPS, PS और पुरानी Illustrator फ़ाइलें → PDF और इमेज, PDF या SVG → EPS/PS।\nSVG और PDF-संगत AI फ़ाइलें इसके बिना भी कन्वर्ट होती हैं।",
+ "engines.package.tesseract.name": "Tesseract (टेक्स्ट पहचान, OCR)",
+ "engines.package.tesseract.description": "स्कैन किए गए PDF और तस्वीरों का टेक्स्ट पढ़ता है: खोजने योग्य PDF, DOCX, TXT।\nहर भाषा पहली बार इस्तेमाल पर डाउनलोड होती है।",
"engines.package.ffmpeg.name": "FFmpeg (वीडियो और ऑडियो)",
"engines.package.ffmpeg.description": "वीडियो और ऑडियो कन्वर्ज़न, वीडियो → GIF या स्टिल इमेज, वीडियो से आवाज़ और GIF → MP4 जोड़ता है।\nकेवल वीडियो और ऑडियो के लिए ज़रूरी।",
"engines.package.calibre.name": "Calibre (Kindle और दुर्लभ ई-बुक फ़ॉर्मैट)",
@@ -647,10 +657,12 @@
"engines.guidance.macos": "इस Mac के लिए {0} इंस्टॉल करें, फिर “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका प्रोग्राम या .app फ़ोल्डर चुनें।",
"engines.guidance.macos.ffmpeg": "इसे Homebrew से इंस्टॉल करें (brew install ffmpeg), फिर “फिर से जाँचें” चुनें।\nया “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका bin फ़ोल्डर चुनें।",
"engines.guidance.macos.ghostscript": "इसे Homebrew से इंस्टॉल करें (brew install ghostscript), फिर “फिर से जाँचें” चुनें।\nया “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका bin फ़ोल्डर चुनें।",
+ "engines.guidance.macos.tesseract": "इसे Homebrew से इंस्टॉल करें (brew install tesseract), फिर “फिर से जाँचें” चुनें।\nया “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका bin फ़ोल्डर चुनें।",
"engines.guidance.macos.calibre": "Filee जो calibre डाउनलोड करता है, उसके लिए macOS 14 या नया चाहिए। calibre-ebook.com से calibre 7.26 इंस्टॉल करें (इस macOS के लिए आख़िरी वर्ज़न), फिर “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका .app फ़ोल्डर चुनें।",
"engines.guidance.linux": "अपने डिस्ट्रीब्यूशन के पैकेज मैनेजर से {0} इंस्टॉल करें, फिर “मेरी कॉपी इस्तेमाल करें…” चुनें और उसका प्रोग्राम फ़ोल्डर चुनें।",
"engines.guidance.linux.libreoffice": "इसे अपने पैकेज मैनेजर से इंस्टॉल करें (Ubuntu/Debian: sudo apt install libreoffice), फिर “फिर से जाँचें” चुनें।\nHWP खोलने के लिए Java और H2Orestart एक्सटेंशन भी चाहिए।",
"engines.guidance.linux.ghostscript": "इसे अपने पैकेज मैनेजर से इंस्टॉल करें (Ubuntu/Debian: sudo apt install ghostscript), फिर “फिर से जाँचें” चुनें।",
+ "engines.guidance.linux.tesseract": "इसे अपने पैकेज मैनेजर से इंस्टॉल करें (Ubuntu/Debian: sudo apt install tesseract-ocr), फिर “फिर से जाँचें” चुनें।",
"engines.guidance.windows": "इस PC के लिए Filee के पास {0} का डाउनलोड नहीं है।\n“मेरी कॉपी इस्तेमाल करें…” चुनें और इंस्टॉल की गई कॉपी चुनें।",
"engines.use_own_app_folder": "वह फ़ोल्डर चुनें जिसमें {0}.app है",
"engines.progress_detail": "{1} में से {0} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/ja.json b/src/Filee.App/Assets/i18n/ja.json
index afc5f5d3..8bb389b3 100644
--- a/src/Filee.App/Assets/i18n/ja.json
+++ b/src/Filee.App/Assets/i18n/ja.json
@@ -75,6 +75,7 @@
"format_request.notice_text": "必要な形式を教えてください。\nリクエストをもとに、今後Fileeが対応する形式を決めます。\n暗号化またはコピー保護(DRM)されたファイルは、形式にかかわらず変換できません。",
"error.no_route": "この変換に対応するエンジンがありません",
"error.cannot_turn": "回転と反転は画像でのみ使えます",
+ "error.ocr_language_download": "OCR の言語データをダウンロードできませんでした",
"error.too_many_frames": "画像として保存するフレーム数が多すぎます。「Nフレームごと」の値を大きくしてください",
"error.not_enough_space": "画像を保存するための空き容量が不足しています",
"error.no_motion_photo": "この写真には、Fileeが読み取れる動画がありません(Androidのモーションフォト、または隣にMOVがあるiPhoneのLive Photo)",
@@ -99,6 +100,7 @@
"error.geo_unsupported_shape": "この種類の図形には対応していません",
"error.geo_too_large": "Shapefile形式の上限(2 GB)を超えてしまいます",
"notice.pdf_not_smaller": "サイズを小さくできなかったため、元のままコピーしました",
+ "notice.ocr_has_text": "すべてのページにテキストがあるため、元のままコピーしました",
"notice.live_photo_pair": "同じ名前の写真とMOVとして保存しました。両方を一緒に取り込むと(iCloud写真、AirDrop、Macの写真アプリ)Live Photoになります",
"notice.geo_datum_assumed": "測地系がWGS 84ではありません。WGS 84とみなして変換したため、位置が最大で数百メートルずれることがあります",
"notice.geo_gpx_lossy": "GPXに保存できるのはポイント、ルート、トラックと一部の項目だけです。そのほかの属性は省き、ポリゴンはトラックにしました",
@@ -138,6 +140,7 @@
"engine.ffmpeg.description": "動画と音声(MP4、MOV、MKV、WEBM、MP3、M4A、WAV、FLACなど)を変換します。\n音声や字幕の抽出、GIFやAPNGアニメーションの作成、画像のHEIC保存にも対応します。",
"engine.pandoc.description": "Markdown、HTMLとODT、RTFを相互変換し、DOCXをMarkdownに変換します。\nreStructuredText、LaTeX、Org、AsciiDoc、Typst、MediaWiki、DocBook、JupyterなどをMarkdown、HTML、DOCX、ODTと相互変換します。\nMarkdown、OrgからPPTXスライドを作成します。",
"engine.ghostscript.description": "EPS、PostScript、古いIllustratorファイルをPDFや画像に変換し、PDFをEPSやPSに変換します。",
+ "engine.tesseract.description": "スキャンや画像の文字を認識します(OCR):検索可能な PDF、DOCX、TXT。",
"engine.calibre.description": "一般的でない電子書籍形式(LIT、LRF、CHM、PDB、RBなど)を変換し、Kindle用のMOBI、AZW3形式で保存できます。\n「HWPX writer」より上に置くと、電子書籍のPDF作成もCalibreが担当します(長い本では大幅に速くなります)。",
"engine.libreoffice.description": "古い形式や一般的でない形式(DOC、PPT、Pages、Keynote、Numbers、WordPerfect、ClarisWorks、Publisher、Visioなど)を読み込みます。\nDOC、XLS、PPT、ODT、ODP、OpenDocumentテンプレート、EMF形式での保存にも対応します。",
"profile.images": "画像",
@@ -200,6 +203,7 @@
"merge.order_hint": "ファイルを選択して上下に移動します。上から順に結合されます。(Alt+↑ / Alt+↓)",
"preset.split_pdf": "分割",
"preset.compress_pdf": "圧縮",
+ "preset.searchable_pdf": "検索可能なPDF",
"preset.long_image": "縦連結",
"preset.pdf_slides": "PPTX (画像)",
"preset.extract": "展開",
@@ -508,6 +512,10 @@
"presets.pdf_compression_hint": "画像を縮小し、JPEGで保存します。\nテキスト、フォント、図形はそのまま保持されます。\n圧縮後のサイズが小さくならない場合は、元のファイルを保持します。",
"presets.pdf_ghostscript": "Ghostscriptも試す(インストール済みの場合)",
"presets.pdf_ghostscript_hint": "さらに小さくできることがありますが、ファイル全体を書き換えます。\n最も小さい結果を保持します。",
+ "presets.ocr": "文字を認識する(OCR)",
+ "presets.ocr_hint": "スキャンや画像の文字を検索・編集できるようにします。Tesseract が必要です(「設定」→「変換エンジン」)。\nすでにテキストがあるページはそのままです。",
+ "presets.ocr_language": "テキストの言語",
+ "presets.ocr_language_size": "{0} をダウンロード",
"presets.pdf_keep_metadata": "ページと画像のメタデータ(XMP)を保持",
"presets.combine_pages_hint": "すべてのページを縦に並べて1枚の画像にします。\n長すぎる場合は形式の上限に合わせて縮小されます(JPG:65,500 px、WebP:16,383 px)。",
"presets.combine_pages": "ページを縦に並べて1枚の画像にする(PDFを変換する場合)",
@@ -638,6 +646,8 @@
"engines.package.pandoc.description": "Markdown・HTMLとODT・RTFの相互変換、DOCX → Markdown、LaTeX、Org、AsciiDoc、Typst、Jupyterなどのマークアップ形式に対応します。\nMarkdownからPPTXスライドを作成できます。\nMarkdown・HTML → PDF、DOCX、HWPXの変換には必要ありません。",
"engines.package.ghostscript.name": "Ghostscript(EPS、PostScript)",
"engines.package.ghostscript.description": "EPS、PS、古いIllustratorファイル → PDF・画像、PDF・SVG → EPS・PSの変換に使います。\nSVGやPDF互換のAIファイルは、インストールしなくても変換できます。",
+ "engines.package.tesseract.name": "Tesseract(文字認識、OCR)",
+ "engines.package.tesseract.description": "スキャンした PDF や画像の文字を読み取ります:検索可能な PDF、DOCX、TXT。\n言語は初めて使うときにダウンロードされます。",
"engines.package.ffmpeg.name": "FFmpeg(動画・音声)",
"engines.package.ffmpeg.description": "動画・音声の変換、動画 → GIF・静止画、動画からの音声抽出、GIF → MP4に対応します。\n動画と音声の変換にのみ必要です。",
"engines.package.calibre.name": "Calibre(Kindle形式・一般的でない電子書籍形式)",
@@ -647,10 +657,12 @@
"engines.guidance.macos": "このMacに{0}をインストールし、「手元のプログラムを使う…」を選んで、プログラムまたは.appフォルダーを指定してください。",
"engines.guidance.macos.ffmpeg": "Homebrewでffmpegをインストール(brew install ffmpeg)してから、「再確認」を選んでください。\nまたは「手元のプログラムを使う…」を選び、binフォルダーを指定してください。",
"engines.guidance.macos.ghostscript": "Homebrewでghostscriptをインストール(brew install ghostscript)してから、「再確認」を選んでください。\nまたは「手元のプログラムを使う…」を選び、binフォルダーを指定してください。",
+ "engines.guidance.macos.tesseract": "HomebrewでTesseractをインストール(brew install tesseract)してから、「再確認」を選んでください。\nまたは「手元のプログラムを使う…」を選び、binフォルダーを指定してください。",
"engines.guidance.macos.calibre": "FileeがダウンロードするcalibreにはmacOS 14以降が必要です。calibre-ebook.comからこのmacOS用の最終版calibre 7.26をインストールし、「手元のプログラムを使う…」を選んで.appフォルダーを指定してください。",
"engines.guidance.linux": "ディストリビューションのパッケージマネージャーで{0}をインストールしてから、「手元のプログラムを使う…」を選び、プログラムのフォルダーを指定してください。",
"engines.guidance.linux.libreoffice": "パッケージマネージャーでインストール(Ubuntu/Debian:sudo apt install libreoffice)してから、「再確認」を選んでください。\nHWPを開くには、JavaとH2Orestart拡張機能も必要です。",
"engines.guidance.linux.ghostscript": "パッケージマネージャーでインストール(Ubuntu/Debian:sudo apt install ghostscript)してから、「再確認」を選んでください。",
+ "engines.guidance.linux.tesseract": "パッケージマネージャーでインストール(Ubuntu/Debian:sudo apt install tesseract-ocr)してから、「再確認」を選んでください。",
"engines.guidance.windows": "このPC向けの{0}はFileeからダウンロードできません。\n「手元のプログラムを使う…」を選び、インストール済みのものを指定してください。",
"engines.use_own_app_folder": "{0}.appを含むフォルダーを選択してください",
"engines.progress_detail": "{0}/{1} · {2}/秒 · {3}",
diff --git a/src/Filee.App/Assets/i18n/ko.json b/src/Filee.App/Assets/i18n/ko.json
index 115bfc7e..df817106 100644
--- a/src/Filee.App/Assets/i18n/ko.json
+++ b/src/Filee.App/Assets/i18n/ko.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "필요한 형식을 알려주세요.\n요청을 보고 다음에 지원할 형식을 정해요.\n암호화되거나 DRM이 걸린 파일은 변환할 수 없어요.",
"error.no_route": "이 변환을 할 수 있는 엔진이 없어요",
"error.cannot_turn": "회전·반전은 이미지에만 할 수 있어요",
+ "error.ocr_language_download": "OCR 언어 데이터를 내려받지 못했어요",
"error.too_many_frames": "프레임이 너무 많아요. 'N번째 프레임마다' 값을 늘려 주세요",
"error.not_enough_space": "이미지를 저장할 디스크 공간이 부족해요",
"error.no_motion_photo": "이 사진에서 읽을 수 있는 동영상을 찾지 못했어요 (안드로이드 모션 포토, 또는 옆에 MOV가 있는 아이폰 라이브 포토)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "지원하지 않는 도형 종류예요",
"error.geo_too_large": "Shapefile의 한계인 2GB를 넘어요",
"notice.pdf_not_smaller": "더 작게 만들 수 없어서 그대로 복사했어요",
+ "notice.ocr_has_text": "모든 페이지에 이미 텍스트가 있어서 그대로 복사했어요",
"notice.live_photo_pair": "같은 이름의 사진과 MOV로 저장했어요. 두 파일을 함께 가져오면(iCloud 사진, AirDrop, Mac의 사진 앱) 라이브 포토가 돼요",
"notice.geo_datum_assumed": "측지계가 WGS 84가 아니라서 같은 것으로 보고 변환했어요. 위치가 수백 m까지 어긋날 수 있어요",
"notice.geo_gpx_lossy": "GPX는 점·경로·트랙과 몇 가지 항목만 담아요. 다른 속성은 빠졌고 면은 트랙으로 바뀌었어요",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC 등 동영상·오디오를 변환해요.\n소리·자막 추출, GIF·APNG 만들기, 이미지 → HEIC도 해요.",
"engine.pandoc.description": "마크다운·HTML ↔ ODT·RTF, DOCX → 마크다운\nreStructuredText·LaTeX·Org·AsciiDoc·Typst·MediaWiki·DocBook·Jupyter 등 ↔ 마크다운·HTML·DOCX·ODT\n마크다운·Org → PPTX 슬라이드",
"engine.ghostscript.description": "EPS, 포스트스크립트, 예전 일러스트레이터 파일을 PDF와 이미지로, PDF를 EPS·PS로.",
+ "engine.tesseract.description": "스캔본과 사진의 글자를 인식합니다(OCR): 검색 가능한 PDF, DOCX, TXT.",
"engine.calibre.description": "드문 전자책 형식(LIT, LRF, CHM, PDB, RB…)과 킨들용 출력(MOBI, AZW3).\nHWPX writer보다 위에 두면 전자책 PDF도 만들어요(긴 책은 훨씬 빨라요).",
"engine.libreoffice.description": "DOC, PPT, Pages, Keynote, Numbers, 워드퍼펙트, ClarisWorks, Publisher, Visio 같은 오래되었거나 드문 형식을 읽어요.\nDOC·XLS·PPT·ODT·ODP, 오픈도큐먼트 서식 파일, EMF로 저장도 해요.",
@@ -210,6 +213,7 @@
"merge.order_hint": "파일을 골라 위아래로 옮기세요. 위에서부터 순서대로 병합돼요. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "PDF 분할",
"preset.compress_pdf": "PDF 압축",
+ "preset.searchable_pdf": "검색 가능한 PDF",
"preset.long_image": "긴 이미지",
"preset.pdf_slides": "PPTX (슬라이드)",
"preset.extract": "압축 풀기",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "이미지를 줄이고 JPEG로 저장해요.\n글자, 글꼴, 도형은 그대로예요.\n결과가 더 작지 않으면 원본을 그대로 둬요.",
"presets.pdf_ghostscript": "Ghostscript로도 해 보기 (설치된 경우)",
"presets.pdf_ghostscript_hint": "더 작아질 때가 많지만 파일 전체를 다시 써요.\n가장 작은 결과를 남겨요.",
+ "presets.ocr": "텍스트 인식 (OCR)",
+ "presets.ocr_hint": "스캔본과 사진의 글자를 검색하고 편집할 수 있게 됩니다. Tesseract가 필요해요(설정 → 변환 엔진).\n이미 텍스트가 있는 페이지는 그대로 둡니다.",
+ "presets.ocr_language": "텍스트 언어",
+ "presets.ocr_language_size": "{0} 내려받기",
"presets.pdf_keep_metadata": "페이지·이미지 메타데이터(XMP) 유지",
"presets.combine_pages_hint": "모든 페이지를 위아래로 이어 이미지 한 장으로 만들어요.\n너무 길면 형식의 최대 높이에 맞게 줄여요(JPG 65,500px, WebP 16,383px).",
"presets.combine_pages": "모든 페이지를 세로로 이어 한 장으로 (PDF를 변환할 때)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "마크다운·HTML ↔ ODT·RTF, DOCX → 마크다운, LaTeX·Org·AsciiDoc·Typst·Jupyter 같은 마크업 변환을 추가해요.\n마크다운으로 PPTX 슬라이드도 만들어요.\n마크다운·HTML → PDF·DOCX·HWPX는 없어도 돼요.",
"engines.package.ghostscript.name": "Ghostscript (EPS·PostScript)",
"engines.package.ghostscript.description": "EPS·PS와 예전 일러스트레이터 파일을 PDF·이미지로, PDF·SVG를 EPS·PS로 바꿔요.\nSVG와 PDF 호환 AI 파일은 없어도 돼요.",
+ "engines.package.tesseract.name": "Tesseract (텍스트 인식, OCR)",
+ "engines.package.tesseract.description": "스캔한 PDF와 사진의 글자를 읽습니다: 검색 가능한 PDF, DOCX, TXT.\n언어는 처음 쓸 때 내려받습니다.",
"engines.package.ffmpeg.name": "FFmpeg (동영상·오디오)",
"engines.package.ffmpeg.description": "동영상·오디오 변환, 동영상 → GIF·정지 이미지, 소리 추출, GIF → MP4를 추가해요.\n동영상과 오디오에만 필요해요.",
"engines.package.calibre.name": "Calibre (킨들과 드문 전자책 형식)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "이 Mac에 {0}을(를) 설치한 뒤 “내 프로그램 쓰기…”로 프로그램이나 .app 폴더를 선택해 주세요.",
"engines.guidance.macos.ffmpeg": "Homebrew로 설치(brew install ffmpeg)한 뒤 “다시 확인”을 누르세요.\n또는 “내 프로그램 쓰기…”로 bin 폴더를 고르세요.",
"engines.guidance.macos.ghostscript": "Homebrew로 설치(brew install ghostscript)한 뒤 “다시 확인”을 누르세요.\n또는 “내 프로그램 쓰기…”로 bin 폴더를 고르세요.",
+ "engines.guidance.macos.tesseract": "Homebrew로 설치(brew install tesseract)한 뒤 “다시 확인”을 누르세요.\n또는 “내 프로그램 쓰기…”로 bin 폴더를 고르세요.",
"engines.guidance.macos.calibre": "Filee가 받는 calibre는 macOS 14 이상이 필요해요. calibre-ebook.com에서 이 macOS용 마지막 버전인 calibre 7.26을 설치한 뒤 “내 프로그램 쓰기…”로 .app 폴더를 선택해 주세요.",
"engines.guidance.linux": "배포판의 패키지 관리자로 {0}을(를) 설치한 뒤 “내 프로그램 쓰기…”로 프로그램 폴더를 선택해 주세요.",
"engines.guidance.linux.libreoffice": "패키지 관리자로 설치(Ubuntu/Debian: sudo apt install libreoffice)한 뒤 “다시 확인”을 누르세요.\nHWP를 열려면 Java와 H2Orestart 확장도 필요해요.",
"engines.guidance.linux.ghostscript": "패키지 관리자로 설치(Ubuntu/Debian: sudo apt install ghostscript)한 뒤 “다시 확인”을 누르세요.",
+ "engines.guidance.linux.tesseract": "패키지 관리자로 설치(Ubuntu/Debian: sudo apt install tesseract-ocr)한 뒤 “다시 확인”을 누르세요.",
"engines.guidance.windows": "이 PC용 {0} 다운로드는 없어요.\n“내 프로그램 쓰기…”로 설치된 프로그램을 선택해 주세요.",
"engines.use_own_app_folder": "{0}.app이 들어 있는 폴더 선택",
"engines.progress_detail": "{0} / {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/pl.json b/src/Filee.App/Assets/i18n/pl.json
index 2e2da36b..aeee94d3 100644
--- a/src/Filee.App/Assets/i18n/pl.json
+++ b/src/Filee.App/Assets/i18n/pl.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "Napisz, jakiego formatu potrzebujesz.\nNa podstawie próśb wybieramy kolejne obsługiwane formaty.\nPlików zaszyfrowanych lub chronionych przed kopiowaniem (DRM) nie da się konwertować, niezależnie od formatu.",
"error.no_route": "Żaden silnik nie wykona tej konwersji",
"error.cannot_turn": "Obracanie i odbicie działają tylko na obrazach",
+ "error.ocr_language_download": "Nie udało się pobrać języka OCR",
"error.too_many_frames": "Za dużo klatek do zapisania jako obrazy, zwiększ „Co N-ta klatka”",
"error.not_enough_space": "Za mało wolnego miejsca na dysku na obrazy",
"error.no_motion_photo": "To zdjęcie nie ma wideo, które Filee może odczytać (Motion Photo z Androida lub Live Photo z iPhone'a z plikiem MOV obok)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "Ten rodzaj kształtu nie jest obsługiwany",
"error.geo_too_large": "Shapefile przekroczyłby limit 2 GB tego formatu",
"notice.pdf_not_smaller": "Nie udało się zmniejszyć pliku, więc skopiowano go bez zmian",
+ "notice.ocr_has_text": "Każda strona ma już tekst, więc skopiowano bez zmian",
"notice.live_photo_pair": "Zapisano jako zdjęcie i plik MOV o tej samej nazwie. Zaimportuj je razem (Zdjęcia iCloud, AirDrop lub Zdjęcia na Macu), aby otrzymać Live Photo",
"notice.geo_datum_assumed": "Datum nie jest WGS 84; pozycje przeliczono tak, jakby było, więc mogą się różnić nawet o setki metrów",
"notice.geo_gpx_lossy": "GPX przechowuje tylko punkty, trasy i ślady z kilkoma polami: pozostałe atrybuty pominięto, a poligony stały się śladami",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "Wideo i audio: MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC i inne.\nWyodrębnia też dźwięk i napisy, tworzy animacje GIF i APNG oraz zapisuje obrazy jako HEIC.",
"engine.pandoc.description": "Markdown i HTML ↔ ODT i RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter i inne ↔ Markdown, HTML, DOCX i ODT\nMarkdown i Org → slajdy PPTX",
"engine.ghostscript.description": "EPS, PostScript i starsze pliki Illustratora do PDF i obrazów; PDF do EPS i PS.",
+ "engine.tesseract.description": "Rozpoznaje tekst skanów i obrazów (OCR): przeszukiwalny PDF, DOCX, TXT.",
"engine.calibre.description": "Rzadkie formaty e-booków (LIT, LRF, CHM, PDB, RB…) i zapis dla Kindle (MOBI, AZW3).\nUmieszczony nad HWPX writer tworzy też PDF-y e-booków (znacznie szybciej przy długich książkach).",
"engine.libreoffice.description": "Odczytuje starsze i rzadsze formaty: DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nZapisuje też jako DOC, XLS, PPT, ODT, ODP, szablony OpenDocument i EMF.",
@@ -210,6 +213,7 @@
"merge.order_hint": "Wybierz plik i przesuń go w górę lub w dół. Pliki są scalane od góry do dołu. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "Podziel PDF",
"preset.compress_pdf": "Kompresuj PDF",
+ "preset.searchable_pdf": "Przeszukiwalny PDF",
"preset.long_image": "Długi obraz",
"preset.pdf_slides": "PPTX (slajdy)",
"preset.extract": "Rozpakuj",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "Obrazy są pomniejszane i zapisywane jako JPEG.\nTekst, czcionki i rysunki pozostają bez zmian.\nJeśli wynik nie jest mniejszy, zostaje oryginał.",
"presets.pdf_ghostscript": "Spróbuj też Ghostscript (jeśli jest zainstalowany)",
"presets.pdf_ghostscript_hint": "Często daje mniejszy plik, ale zapisuje cały plik od nowa.\nZostaje najmniejszy wynik.",
+ "presets.ocr": "Rozpoznaj tekst (OCR)",
+ "presets.ocr_hint": "Tekst skanów i obrazów da się przeszukiwać i edytować. Wymaga Tesseract (Ustawienia → Silniki).\nStrony, które mają już tekst, pozostają bez zmian.",
+ "presets.ocr_language": "Język tekstu",
+ "presets.ocr_language_size": "Pobieranie {0}",
"presets.pdf_keep_metadata": "Zachowaj metadane stron i obrazów (XMP)",
"presets.combine_pages_hint": "Układa wszystkie strony jedna pod drugą w jednym obrazie.\nBardzo długie wyniki są skalowane do limitu formatu (JPG 65 500 px, WebP 16 383 px).",
"presets.combine_pages": "Złóż strony w jeden wysoki obraz (przy konwersji PDF)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "Dodaje Markdown i HTML ↔ ODT i RTF, DOCX → Markdown oraz LaTeX, Org, AsciiDoc, Typst, Jupyter i inne języki znaczników.\nTworzy też slajdy PPTX z Markdown.\nMarkdown i HTML → PDF, DOCX i HWPX działają bez niego.",
"engines.package.ghostscript.name": "Ghostscript (EPS i PostScript)",
"engines.package.ghostscript.description": "EPS, PS i starsze pliki Illustratora → PDF i obrazy, PDF lub SVG → EPS/PS.\nSVG i pliki AI zgodne z PDF konwertują się bez niego.",
+ "engines.package.tesseract.name": "Tesseract (rozpoznawanie tekstu, OCR)",
+ "engines.package.tesseract.description": "Odczytuje tekst zeskanowanych PDF i obrazów: przeszukiwalny PDF, DOCX, TXT.\nKażdy język jest pobierany przy pierwszym użyciu.",
"engines.package.ffmpeg.name": "FFmpeg (wideo i audio)",
"engines.package.ffmpeg.description": "Dodaje konwersję wideo i audio, wideo → GIF lub klatka, dźwięk z wideo i GIF → MP4.\nPotrzebny tylko do wideo i audio.",
"engines.package.calibre.name": "Calibre (Kindle i rzadkie formaty e-booków)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "Zainstaluj {0} dla tego Maca, potem wybierz „Użyj mojej kopii…” i wskaż jego program lub folder .app.",
"engines.guidance.macos.ffmpeg": "Zainstaluj przez Homebrew (brew install ffmpeg), potem wybierz „Sprawdź ponownie”.\nAlbo wybierz „Użyj mojej kopii…” i wskaż folder bin.",
"engines.guidance.macos.ghostscript": "Zainstaluj przez Homebrew (brew install ghostscript), potem wybierz „Sprawdź ponownie”.\nAlbo wybierz „Użyj mojej kopii…” i wskaż folder bin.",
+ "engines.guidance.macos.tesseract": "Zainstaluj przez Homebrew (brew install tesseract), potem wybierz „Sprawdź ponownie”.\nAlbo wybierz „Użyj mojej kopii…” i wskaż folder bin.",
"engines.guidance.macos.calibre": "calibre pobierane przez Filee wymaga macOS 14 lub nowszego. Zainstaluj calibre 7.26, ostatnią wersję dla tego macOS, ze strony calibre-ebook.com, potem wybierz „Użyj mojej kopii…” i wskaż jego folder .app.",
"engines.guidance.linux": "Zainstaluj {0} menedżerem pakietów swojej dystrybucji, potem wybierz „Użyj mojej kopii…” i wskaż folder programu.",
"engines.guidance.linux.libreoffice": "Zainstaluj menedżerem pakietów (Ubuntu/Debian: sudo apt install libreoffice), potem wybierz „Sprawdź ponownie”.\nOtwieranie HWP wymaga też Javy i rozszerzenia H2Orestart.",
"engines.guidance.linux.ghostscript": "Zainstaluj menedżerem pakietów (Ubuntu/Debian: sudo apt install ghostscript), potem wybierz „Sprawdź ponownie”.",
+ "engines.guidance.linux.tesseract": "Zainstaluj menedżerem pakietów (Ubuntu/Debian: sudo apt install tesseract-ocr), potem wybierz „Sprawdź ponownie”.",
"engines.guidance.windows": "Filee nie ma do pobrania {0} dla tego komputera.\nWybierz „Użyj mojej kopii…” i wskaż zainstalowaną kopię.",
"engines.use_own_app_folder": "Wybierz folder zawierający {0}.app",
"engines.progress_detail": "{0} z {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/pt-BR.json b/src/Filee.App/Assets/i18n/pt-BR.json
index 0b7cd7cd..7dd2720b 100644
--- a/src/Filee.App/Assets/i18n/pt-BR.json
+++ b/src/Filee.App/Assets/i18n/pt-BR.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "Diga qual formato você precisa.\nOs pedidos decidem o que o Filee passa a aceitar.\nArquivos criptografados ou protegidos contra cópia (DRM) não podem ser convertidos, seja qual for o formato.",
"error.no_route": "Nenhum motor faz esta conversão",
"error.cannot_turn": "Girar e espelhar só funcionam em imagens",
+ "error.ocr_language_download": "Não foi possível baixar o idioma do OCR",
"error.too_many_frames": "Quadros demais para salvar como imagens. Aumente “A cada N quadros”",
"error.not_enough_space": "Não há espaço livre suficiente em disco para as imagens",
"error.no_motion_photo": "Esta foto não tem um vídeo que o Filee consiga ler (uma Motion Photo do Android, ou uma Live Photo do iPhone com o MOV ao lado)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "Este tipo de forma não é compatível",
"error.geo_too_large": "O Shapefile passaria do limite de 2 GB do formato",
"notice.pdf_not_smaller": "Não deu para deixar menor, então foi copiado como está",
+ "notice.ocr_has_text": "Todas as páginas já têm texto, então foi copiado como está",
"notice.live_photo_pair": "Salvo como uma foto e um MOV com o mesmo nome. Importe os dois juntos (Fotos do iCloud, AirDrop ou Fotos no Mac) para obter uma Live Photo",
"notice.geo_datum_assumed": "O datum não é WGS 84; as posições foram convertidas como se fosse, e podem errar em até centenas de metros",
"notice.geo_gpx_lossy": "O GPX guarda só pontos, rotas e trilhas com poucos campos: outros atributos ficaram de fora e os polígonos viraram trilhas",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "Vídeo e áudio: MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC e mais.\nTambém extrai som e legendas, faz animações GIF e APNG e salva imagens como HEIC.",
"engine.pandoc.description": "Markdown e HTML ↔ ODT e RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter e mais ↔ Markdown, HTML, DOCX e ODT\nMarkdown e Org → slides PPTX",
"engine.ghostscript.description": "EPS, PostScript e arquivos antigos do Illustrator para PDF e imagens; PDF para EPS e PS.",
+ "engine.tesseract.description": "Reconhece o texto de digitalizações e imagens (OCR): PDF pesquisável, DOCX, TXT.",
"engine.calibre.description": "Formatos raros de e-book (LIT, LRF, CHM, PDB, RB…) e saída Kindle (MOBI, AZW3).\nAcima do gravador de HWPX, também gera os PDFs de e-books (bem mais rápido em livros longos).",
"engine.libreoffice.description": "Lê formatos antigos e menos comuns: DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nTambém salva como DOC, XLS, PPT, ODT, ODP, modelos OpenDocument e EMF.",
@@ -210,6 +213,7 @@
"merge.order_hint": "Selecione um arquivo e mova para cima ou para baixo. Os arquivos são mesclados de cima para baixo. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "Dividir PDF",
"preset.compress_pdf": "Comprimir PDF",
+ "preset.searchable_pdf": "PDF pesquisável",
"preset.long_image": "Imagem longa",
"preset.pdf_slides": "PPTX (slides)",
"preset.extract": "Extrair",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "As imagens são reduzidas e salvas como JPEG.\nTexto, fontes e desenhos permanecem como estão.\nSe o resultado não ficar menor, o original é mantido.",
"presets.pdf_ghostscript": "Tentar também o Ghostscript (quando instalado)",
"presets.pdf_ghostscript_hint": "Muitas vezes menor, mas reescreve o arquivo inteiro.\nO menor resultado é mantido.",
+ "presets.ocr": "Reconhecer texto (OCR)",
+ "presets.ocr_hint": "Digitalizações e imagens ganham texto que pode ser pesquisado e editado. Requer o Tesseract (Configurações → Motores).\nPáginas que já têm texto ficam como estão.",
+ "presets.ocr_language": "Idioma do texto",
+ "presets.ocr_language_size": "Download de {0}",
"presets.pdf_keep_metadata": "Manter metadados de página e imagem (XMP)",
"presets.combine_pages_hint": "Coloca todas as páginas uma embaixo da outra numa única imagem.\nResultados muito longos são reduzidos ao limite do formato (JPG 65.500 px, WebP 16.383 px).",
"presets.combine_pages": "Empilhar as páginas numa imagem alta (quando um PDF é convertido)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "Adiciona Markdown e HTML ↔ ODT e RTF, DOCX → Markdown, e LaTeX, Org, AsciiDoc, Typst, Jupyter e outras marcações.\nTambém faz slides PPTX a partir de Markdown.\nMarkdown e HTML → PDF, DOCX e HWPX funcionam sem ele.",
"engines.package.ghostscript.name": "Ghostscript (EPS e PostScript)",
"engines.package.ghostscript.description": "EPS, PS e arquivos antigos do Illustrator → PDF e imagens, PDF ou SVG → EPS/PS.\nSVG e arquivos AI compatíveis com PDF convertem sem ele.",
+ "engines.package.tesseract.name": "Tesseract (reconhecimento de texto, OCR)",
+ "engines.package.tesseract.description": "Lê o texto de PDFs digitalizados e imagens: PDF pesquisável, DOCX, TXT.\nCada idioma é baixado na primeira vez que é usado.",
"engines.package.ffmpeg.name": "FFmpeg (vídeo e áudio)",
"engines.package.ffmpeg.description": "Adiciona conversão de vídeo e áudio, vídeo → GIF ou imagem parada, som de vídeos e GIF → MP4.\nSó é necessário para vídeo e áudio.",
"engines.package.calibre.name": "Calibre (Kindle e formatos raros de e-book)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "Instale {0} para este Mac, depois escolha “Usar minha cópia…” e selecione o programa ou a pasta .app.",
"engines.guidance.macos.ffmpeg": "Instale com o Homebrew (brew install ffmpeg) e escolha “Verificar de novo”.\nOu escolha “Usar minha cópia…” e selecione a pasta bin.",
"engines.guidance.macos.ghostscript": "Instale com o Homebrew (brew install ghostscript) e escolha “Verificar de novo”.\nOu escolha “Usar minha cópia…” e selecione a pasta bin.",
+ "engines.guidance.macos.tesseract": "Instale com o Homebrew (brew install tesseract) e escolha “Verificar de novo”.\nOu escolha “Usar minha cópia…” e selecione a pasta bin.",
"engines.guidance.macos.calibre": "O calibre que o Filee baixa precisa do macOS 14 ou posterior. Instale o calibre 7.26, a última versão para este macOS, em calibre-ebook.com, depois escolha “Usar minha cópia…” e selecione a pasta .app.",
"engines.guidance.linux": "Instale {0} com o gerenciador de pacotes da sua distribuição, depois escolha “Usar minha cópia…” e selecione a pasta do programa.",
"engines.guidance.linux.libreoffice": "Instale com o gerenciador de pacotes (Ubuntu/Debian: sudo apt install libreoffice) e escolha “Verificar de novo”.\nAbrir HWP também precisa de Java e da extensão H2Orestart.",
"engines.guidance.linux.ghostscript": "Instale com o gerenciador de pacotes (Ubuntu/Debian: sudo apt install ghostscript) e escolha “Verificar de novo”.",
+ "engines.guidance.linux.tesseract": "Instale com o gerenciador de pacotes (Ubuntu/Debian: sudo apt install tesseract-ocr) e escolha “Verificar de novo”.",
"engines.guidance.windows": "O Filee não tem download de {0} para este PC.\nEscolha “Usar minha cópia…” e selecione uma cópia instalada.",
"engines.use_own_app_folder": "Escolha a pasta que contém {0}.app",
"engines.progress_detail": "{0} de {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/ru.json b/src/Filee.App/Assets/i18n/ru.json
index 3eb526c7..598ffb77 100644
--- a/src/Filee.App/Assets/i18n/ru.json
+++ b/src/Filee.App/Assets/i18n/ru.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "Напишите, какой формат вам нужен.\nОт запросов зависит, что Filee будет поддерживать дальше.\nЗашифрованные и защищённые от копирования (DRM) файлы сконвертировать нельзя, в каком бы формате они ни были.",
"error.no_route": "Нет движка для такой конвертации",
"error.cannot_turn": "Поворот и отражение работают только с изображениями",
+ "error.ocr_language_download": "Не удалось скачать язык для OCR",
"error.too_many_frames": "Слишком много кадров для сохранения картинками — увеличьте «Каждый N-й кадр»",
"error.not_enough_space": "Не хватает места на диске для картинок",
"error.no_motion_photo": "В этом фото нет видео, которое Filee может прочитать (Motion Photo с Android или Live Photo с iPhone с файлом MOV рядом)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "Такой тип фигуры не поддерживается",
"error.geo_too_large": "Shapefile превысил бы предел формата в 2 ГБ",
"notice.pdf_not_smaller": "Уменьшить не получилось, файл скопирован как есть",
+ "notice.ocr_has_text": "На всех страницах уже есть текст, поэтому файл скопирован как есть",
"notice.live_photo_pair": "Сохранено как фото и MOV с одинаковым именем. Импортируйте их вместе (Фото iCloud, AirDrop или «Фото» на Mac), чтобы получить Live Photo",
"notice.geo_datum_assumed": "Датум отличается от WGS 84; координаты пересчитаны как для WGS 84 и могут сместиться на сотни метров",
"notice.geo_gpx_lossy": "GPX хранит только точки, маршруты и треки с небольшим набором полей: остальные атрибуты не вошли, а полигоны стали треками",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "Видео и аудио: MP4, MOV, MKV, WEBM, MP3, M4A, WAV, FLAC и другие.\nА ещё достаёт звук и субтитры, делает анимации GIF и APNG и сохраняет картинки в HEIC.",
"engine.pandoc.description": "Markdown и HTML ↔ ODT и RTF, DOCX → Markdown\nreStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter и другие ↔ Markdown, HTML, DOCX и ODT\nMarkdown и Org → слайды PPTX",
"engine.ghostscript.description": "EPS, PostScript и старые файлы Illustrator — в PDF и картинки; PDF — в EPS и PS.",
+ "engine.tesseract.description": "Распознаёт текст сканов и изображений (OCR): PDF с поиском, DOCX, TXT.",
"engine.calibre.description": "Редкие форматы электронных книг (LIT, LRF, CHM, PDB, RB…) и вывод для Kindle (MOBI, AZW3).\nЕсли стоит выше HWPX writer, он же делает PDF из электронных книг (для длинных книг намного быстрее).",
"engine.libreoffice.description": "Читает старые и редкие форматы: DOC, PPT, Pages, Keynote, Numbers, WordPerfect, ClarisWorks, Publisher, Visio…\nА ещё сохраняет в DOC, XLS, PPT, ODT, ODP, шаблоны OpenDocument и EMF.",
@@ -210,6 +213,7 @@
"merge.order_hint": "Выберите файл и переместите его вверх или вниз. Файлы объединяются сверху вниз. (Alt+↑ / Alt+↓)",
"preset.split_pdf": "Разделить PDF",
"preset.compress_pdf": "Сжать PDF",
+ "preset.searchable_pdf": "PDF с поиском",
"preset.long_image": "Длинная картинка",
"preset.pdf_slides": "PPTX (слайды)",
"preset.extract": "Распаковать",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "Картинки уменьшаются и сохраняются в JPEG.\nТекст, шрифты и рисунки остаются как есть.\nЕсли результат не меньше, остаётся оригинал.",
"presets.pdf_ghostscript": "Попробовать также Ghostscript (если установлен)",
"presets.pdf_ghostscript_hint": "Часто получается меньше, но он перезаписывает весь файл.\nОстаётся самый маленький результат.",
+ "presets.ocr": "Распознать текст (OCR)",
+ "presets.ocr_hint": "Текст сканов и изображений можно будет искать и редактировать. Нужен Tesseract (Настройки → Движки).\nСтраницы, где уже есть текст, не меняются.",
+ "presets.ocr_language": "Язык текста",
+ "presets.ocr_language_size": "Загрузка {0}",
"presets.pdf_keep_metadata": "Сохранять метаданные страниц и картинок (XMP)",
"presets.combine_pages_hint": "Ставит все страницы одну под другой в одной картинке.\nОчень длинный результат уменьшается до предела формата (JPG 65 500 px, WebP 16 383 px).",
"presets.combine_pages": "Сложить страницы в одну длинную картинку (при конвертации PDF)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "Добавляет Markdown и HTML ↔ ODT и RTF, DOCX → Markdown, а также LaTeX, Org, AsciiDoc, Typst, Jupyter и другую разметку.\nА ещё делает слайды PPTX из Markdown.\nMarkdown и HTML → PDF, DOCX и HWPX работают и без него.",
"engines.package.ghostscript.name": "Ghostscript (EPS и PostScript)",
"engines.package.ghostscript.description": "EPS, PS и старые файлы Illustrator → PDF и картинки, PDF или SVG → EPS/PS.\nSVG и файлы AI, совместимые с PDF, конвертируются и без него.",
+ "engines.package.tesseract.name": "Tesseract (распознавание текста, OCR)",
+ "engines.package.tesseract.description": "Читает текст отсканированных PDF и изображений: PDF с поиском, DOCX, TXT.\nКаждый язык скачивается при первом использовании.",
"engines.package.ffmpeg.name": "FFmpeg (видео и аудио)",
"engines.package.ffmpeg.description": "Добавляет конвертацию видео и аудио, видео → GIF или стоп-кадр, звук из видео и GIF → MP4.\nНужен только для видео и аудио.",
"engines.package.calibre.name": "Calibre (Kindle и редкие форматы книг)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "Установите {0} для этого Mac, затем выберите «Использовать свою копию…» и укажите программу или папку .app.",
"engines.guidance.macos.ffmpeg": "Установите через Homebrew (brew install ffmpeg), затем выберите «Проверить снова».\nИли выберите «Использовать свою копию…» и укажите папку bin.",
"engines.guidance.macos.ghostscript": "Установите через Homebrew (brew install ghostscript), затем выберите «Проверить снова».\nИли выберите «Использовать свою копию…» и укажите папку bin.",
+ "engines.guidance.macos.tesseract": "Установите через Homebrew (brew install tesseract), затем выберите «Проверить снова».\nИли выберите «Использовать свою копию…» и укажите папку bin.",
"engines.guidance.macos.calibre": "Для calibre, которую скачивает Filee, нужна macOS 14 или новее. Установите calibre 7.26, последнюю версию для этой macOS, с calibre-ebook.com, затем выберите «Использовать свою копию…» и укажите её папку .app.",
"engines.guidance.linux": "Установите {0} менеджером пакетов вашего дистрибутива, затем выберите «Использовать свою копию…» и укажите папку программы.",
"engines.guidance.linux.libreoffice": "Установите менеджером пакетов (Ubuntu/Debian: sudo apt install libreoffice), затем выберите «Проверить снова».\nДля открытия HWP также нужны Java и расширение H2Orestart.",
"engines.guidance.linux.ghostscript": "Установите менеджером пакетов (Ubuntu/Debian: sudo apt install ghostscript), затем выберите «Проверить снова».",
+ "engines.guidance.linux.tesseract": "Установите менеджером пакетов (Ubuntu/Debian: sudo apt install tesseract-ocr), затем выберите «Проверить снова».",
"engines.guidance.windows": "Filee не может скачать {0} для этого компьютера.\nВыберите «Использовать свою копию…» и укажите установленную копию.",
"engines.use_own_app_folder": "Выберите папку, в которой лежит {0}.app",
"engines.progress_detail": "{0} из {1} · {2}/с · {3}",
diff --git a/src/Filee.App/Assets/i18n/zh-CN.json b/src/Filee.App/Assets/i18n/zh-CN.json
index 6247a2b0..77597875 100644
--- a/src/Filee.App/Assets/i18n/zh-CN.json
+++ b/src/Filee.App/Assets/i18n/zh-CN.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "告诉我们你需要的格式。\n我们会根据请求决定接下来支持哪些格式。\n加密或有复制保护 (DRM) 的文件,无论什么格式都无法转换。",
"error.no_route": "没有引擎可以完成此转换",
"error.cannot_turn": "只能旋转和翻转图片",
+ "error.ocr_language_download": "无法下载 OCR 语言数据",
"error.too_many_frames": "帧数太多,请调大“每 N 帧”",
"error.not_enough_space": "磁盘空间不足,无法保存这些图片",
"error.no_motion_photo": "这张照片中没有可读取的视频(安卓动态照片,或旁边有 MOV 的 iPhone 实况照片)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "不支持此类形状",
"error.geo_too_large": "将超过 Shapefile 2 GB 的上限",
"notice.pdf_not_smaller": "无法再缩小,已原样复制",
+ "notice.ocr_has_text": "每页都已有文字,已原样复制",
"notice.live_photo_pair": "已保存为同名的照片和 MOV。将两者一起导入(iCloud 照片、隔空投送或 Mac 上的“照片”)即可得到实况照片",
"notice.geo_datum_assumed": "基准面不是 WGS 84,已按相同处理,位置可能偏差数百米",
"notice.geo_gpx_lossy": "GPX 只能保存点、路线和轨迹及少数字段,其他属性已省略,面变成了轨迹",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "MP4、MOV、MKV、WEBM、MP3、M4A、WAV、FLAC 等视频和音频。\n还能提取声音和字幕、制作 GIF 和 APNG、把图片保存为 HEIC。",
"engine.pandoc.description": "Markdown 和 HTML ↔ ODT、RTF,DOCX → Markdown\nreStructuredText、LaTeX、Org、AsciiDoc、Typst、MediaWiki、DocBook、Jupyter 等 ↔ Markdown、HTML、DOCX、ODT\nMarkdown 和 Org → PPTX 幻灯片",
"engine.ghostscript.description": "EPS、PostScript 和旧版 Illustrator 文件转为 PDF 和图片;PDF 转为 EPS 和 PS。",
+ "engine.tesseract.description": "识别扫描件和图片中的文字(OCR):可搜索的 PDF、DOCX、TXT。",
"engine.calibre.description": "少见的电子书格式(LIT、LRF、CHM、PDB、RB…)以及 Kindle 输出(MOBI、AZW3)。\n排在 HWPX writer 之上时,也由它把电子书转为 PDF(长书快得多)。",
"engine.libreoffice.description": "读取较旧或少见的格式,如 DOC、PPT、Pages、Keynote、Numbers、WordPerfect、ClarisWorks、Publisher、Visio。\n也能保存为 DOC、XLS、PPT、ODT、ODP、OpenDocument 模板或 EMF。",
@@ -210,6 +213,7 @@
"merge.order_hint": "选择文件并上下移动。文件将按从上到下的顺序合并。(Alt+↑ / Alt+↓)",
"preset.split_pdf": "拆分 PDF",
"preset.compress_pdf": "压缩 PDF",
+ "preset.searchable_pdf": "可搜索的 PDF",
"preset.long_image": "长图",
"preset.pdf_slides": "PPTX(幻灯片)",
"preset.extract": "解压",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "图片会缩小并存为 JPEG。\n文字、字体和图形保持不变。\n结果没有变小时保留原文件。",
"presets.pdf_ghostscript": "也试试 Ghostscript(已安装时)",
"presets.pdf_ghostscript_hint": "通常更小,但会重写整个文件。\n保留最小的结果。",
+ "presets.ocr": "识别文字(OCR)",
+ "presets.ocr_hint": "让扫描件和图片中的文字可以搜索和编辑。需要 Tesseract(设置 → 转换引擎)。\n已有文字的页面保持不变。",
+ "presets.ocr_language": "文字的语言",
+ "presets.ocr_language_size": "下载 {0}",
"presets.pdf_keep_metadata": "保留页面和图片元数据 (XMP)",
"presets.combine_pages_hint": "把所有页面上下相接,生成一张图片。\n过长时会缩小到该格式的最大高度(JPG 65,500 像素,WebP 16,383 像素)。",
"presets.combine_pages": "把所有页面上下拼成一张长图(转换 PDF 时)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "增加 Markdown 和 HTML ↔ ODT、RTF,DOCX → Markdown,以及 LaTeX、Org、AsciiDoc、Typst、Jupyter 等标记语言转换。\n也能用 Markdown 制作 PPTX 幻灯片。\nMarkdown 和 HTML → PDF、DOCX、HWPX 无需它。",
"engines.package.ghostscript.name": "Ghostscript(EPS 与 PostScript)",
"engines.package.ghostscript.description": "EPS、PS 和旧版 Illustrator 文件 → PDF 和图片,PDF 或 SVG → EPS/PS。\nSVG 和兼容 PDF 的 AI 文件无需它即可转换。",
+ "engines.package.tesseract.name": "Tesseract(文字识别,OCR)",
+ "engines.package.tesseract.description": "读取扫描 PDF 和图片中的文字:可搜索的 PDF、DOCX、TXT。\n每种语言在首次使用时下载。",
"engines.package.ffmpeg.name": "FFmpeg(视频和音频)",
"engines.package.ffmpeg.description": "增加视频和音频转换、视频 → GIF 或静态图片、提取声音以及 GIF → MP4。\n仅视频和音频转换需要它。",
"engines.package.calibre.name": "Calibre(Kindle 与少见电子书格式)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "先在这台 Mac 上安装 {0},再点“使用我的程序…”选择它的程序或 .app 文件夹。",
"engines.guidance.macos.ffmpeg": "用 Homebrew 安装(brew install ffmpeg)后点“重新检查”。\n或点“使用我的程序…”选择它的 bin 文件夹。",
"engines.guidance.macos.ghostscript": "用 Homebrew 安装(brew install ghostscript)后点“重新检查”。\n或点“使用我的程序…”选择它的 bin 文件夹。",
+ "engines.guidance.macos.tesseract": "用 Homebrew 安装(brew install tesseract)后点“重新检查”。\n或点“使用我的程序…”选择它的 bin 文件夹。",
"engines.guidance.macos.calibre": "Filee 下载的 calibre 需要 macOS 14 或更高版本。请从 calibre-ebook.com 安装适用于此 macOS 的最后一个版本 calibre 7.26,再点“使用我的程序…”选择它的 .app 文件夹。",
"engines.guidance.linux": "用发行版的软件包管理器安装 {0},再点“使用我的程序…”选择它的程序文件夹。",
"engines.guidance.linux.libreoffice": "用软件包管理器安装(Ubuntu/Debian 下运行 sudo apt install libreoffice)后点“重新检查”。\n打开 HWP 还需要 Java 和 H2Orestart 扩展。",
"engines.guidance.linux.ghostscript": "用软件包管理器安装(Ubuntu/Debian 下运行 sudo apt install ghostscript)后点“重新检查”。",
+ "engines.guidance.linux.tesseract": "用软件包管理器安装(Ubuntu/Debian 下运行 sudo apt install tesseract-ocr)后点“重新检查”。",
"engines.guidance.windows": "没有适用于这台电脑的 {0} 下载。\n点“使用我的程序…”选择已安装的程序。",
"engines.use_own_app_folder": "选择包含 {0}.app 的文件夹",
"engines.progress_detail": "{0} / {1} · {2}/s · {3}",
diff --git a/src/Filee.App/Assets/i18n/zh-TW.json b/src/Filee.App/Assets/i18n/zh-TW.json
index d1a197a1..68b5d688 100644
--- a/src/Filee.App/Assets/i18n/zh-TW.json
+++ b/src/Filee.App/Assets/i18n/zh-TW.json
@@ -81,6 +81,7 @@
"format_request.notice_text": "告訴我們你需要的格式。\n我們會根據請求決定接下來支援哪些格式。\n加密或有複製保護 (DRM) 的檔案,無論什麼格式都無法轉換。",
"error.no_route": "沒有引擎可以完成此轉換",
"error.cannot_turn": "只能旋轉和翻轉圖片",
+ "error.ocr_language_download": "無法下載 OCR 語言資料",
"error.too_many_frames": "影格數太多,請調大「每 N 個影格」",
"error.not_enough_space": "磁碟空間不足,無法儲存這些圖片",
"error.no_motion_photo": "這張照片中沒有可讀取的影片(Android 動態相片,或旁邊有 MOV 的 iPhone 原況照片)",
@@ -105,6 +106,7 @@
"error.geo_unsupported_shape": "不支援此類形狀",
"error.geo_too_large": "將超過 Shapefile 2 GB 的上限",
"notice.pdf_not_smaller": "無法再縮小,已原樣複製",
+ "notice.ocr_has_text": "每頁都已有文字,已原樣複製",
"notice.live_photo_pair": "已儲存為同名的照片和 MOV。將兩者一起匯入(iCloud 照片、隔空投送或 Mac 上的「照片」)即可得到原況照片",
"notice.geo_datum_assumed": "基準面不是 WGS 84,已按相同處理,位置可能偏差數百公尺",
"notice.geo_gpx_lossy": "GPX 只能儲存點、路線和軌跡及少數字段,其他屬性已省略,面變成了軌跡",
@@ -145,6 +147,7 @@
"engine.ffmpeg.description": "MP4、MOV、MKV、WEBM、MP3、M4A、WAV、FLAC 等影片和音訊。\n還能擷取聲音和字幕、製作 GIF 和 APNG、把圖片儲存為 HEIC。",
"engine.pandoc.description": "Markdown 和 HTML ↔ ODT、RTF,DOCX → Markdown\nreStructuredText、LaTeX、Org、AsciiDoc、Typst、MediaWiki、DocBook、Jupyter 等 ↔ Markdown、HTML、DOCX、ODT\nMarkdown 和 Org → PPTX 投影片",
"engine.ghostscript.description": "EPS、PostScript 和舊版 Illustrator 檔案轉為 PDF 和圖片;PDF 轉為 EPS 和 PS。",
+ "engine.tesseract.description": "辨識掃描檔和圖片中的文字(OCR):可搜尋的 PDF、DOCX、TXT。",
"engine.calibre.description": "少見的電子書格式(LIT、LRF、CHM、PDB、RB…)以及 Kindle 輸出(MOBI、AZW3)。\n排在 HWPX writer 之上時,也由它把電子書轉為 PDF(長書快得多)。",
"engine.libreoffice.description": "讀取較舊或少見的格式,如 DOC、PPT、Pages、Keynote、Numbers、WordPerfect、ClarisWorks、Publisher、Visio。\n也能儲存為 DOC、XLS、PPT、ODT、ODP、OpenDocument 範本或 EMF。",
@@ -210,6 +213,7 @@
"merge.order_hint": "選擇檔案並上下移動。檔案將按從上到下的順序合併。(Alt+↑ / Alt+↓)",
"preset.split_pdf": "拆分 PDF",
"preset.compress_pdf": "壓縮 PDF",
+ "preset.searchable_pdf": "可搜尋的 PDF",
"preset.long_image": "長圖",
"preset.pdf_slides": "PPTX(投影片)",
"preset.extract": "解壓縮",
@@ -523,6 +527,10 @@
"presets.pdf_compression_hint": "圖片會縮小並存為 JPEG。\n文字、字型和圖形保持不變。\n結果沒有變小時保留原始檔案。",
"presets.pdf_ghostscript": "也試試 Ghostscript(已安裝時)",
"presets.pdf_ghostscript_hint": "通常更小,但會重寫整個檔案。\n保留最小的結果。",
+ "presets.ocr": "辨識文字(OCR)",
+ "presets.ocr_hint": "讓掃描檔和圖片中的文字可以搜尋和編輯。需要 Tesseract(設定 → 轉換引擎)。\n已有文字的頁面保持不變。",
+ "presets.ocr_language": "文字的語言",
+ "presets.ocr_language_size": "下載 {0}",
"presets.pdf_keep_metadata": "保留頁面和圖片中繼資料 (XMP)",
"presets.combine_pages_hint": "把所有頁面上下相接,產生一張圖片。\n過長時會縮小到該格式的最大高度(JPG 65,500 像素,WebP 16,383 像素)。",
"presets.combine_pages": "把所有頁面上下拼成一張長圖(轉換 PDF 時)",
@@ -655,6 +663,8 @@
"engines.package.pandoc.description": "增加 Markdown 和 HTML ↔ ODT、RTF,DOCX → Markdown,以及 LaTeX、Org、AsciiDoc、Typst、Jupyter 等標記語言轉換。\n也能用 Markdown 製作 PPTX 投影片。\nMarkdown 和 HTML → PDF、DOCX、HWPX 無需它。",
"engines.package.ghostscript.name": "Ghostscript(EPS 與 PostScript)",
"engines.package.ghostscript.description": "EPS、PS 和舊版 Illustrator 檔案 → PDF 和圖片,PDF 或 SVG → EPS/PS。\nSVG 和相容 PDF 的 AI 檔案無需它即可轉換。",
+ "engines.package.tesseract.name": "Tesseract(文字辨識,OCR)",
+ "engines.package.tesseract.description": "讀取掃描 PDF 和圖片中的文字:可搜尋的 PDF、DOCX、TXT。\n每種語言在第一次使用時下載。",
"engines.package.ffmpeg.name": "FFmpeg(影片和音訊)",
"engines.package.ffmpeg.description": "增加影片和音訊轉換、影片 → GIF 或靜態圖片、擷取聲音以及 GIF → MP4。\n僅影片和音訊轉換需要它。",
"engines.package.calibre.name": "Calibre(Kindle 與少見電子書格式)",
@@ -664,10 +674,12 @@
"engines.guidance.macos": "先在這台 Mac 上安裝 {0},再點「使用我的程式…」選擇它的程式或 .app 資料夾。",
"engines.guidance.macos.ffmpeg": "用 Homebrew 安裝(brew install ffmpeg)後點「重新檢查」。\n或點「使用我的程式…」選擇它的 bin 資料夾。",
"engines.guidance.macos.ghostscript": "用 Homebrew 安裝(brew install ghostscript)後點「重新檢查」。\n或點「使用我的程式…」選擇它的 bin 資料夾。",
+ "engines.guidance.macos.tesseract": "用 Homebrew 安裝(brew install tesseract)後點「重新檢查」。\n或點「使用我的程式…」選擇它的 bin 資料夾。",
"engines.guidance.macos.calibre": "Filee 下載的 calibre 需要 macOS 14 或更高版本。請從 calibre-ebook.com 安裝適用於此 macOS 的最後一個版本 calibre 7.26,再點「使用我的程式…」選擇它的 .app 資料夾。",
"engines.guidance.linux": "用發行版的套件管理員安裝 {0},再點「使用我的程式…」選擇它的程式資料夾。",
"engines.guidance.linux.libreoffice": "用套件管理員安裝(Ubuntu/Debian 下執行 sudo apt install libreoffice)後點「重新檢查」。\n開啟 HWP 還需要 Java 和 H2Orestart 擴充功能。",
"engines.guidance.linux.ghostscript": "用套件管理員安裝(Ubuntu/Debian 下執行 sudo apt install ghostscript)後點「重新檢查」。",
+ "engines.guidance.linux.tesseract": "用套件管理員安裝(Ubuntu/Debian 下執行 sudo apt install tesseract-ocr)後點「重新檢查」。",
"engines.guidance.windows": "沒有適用於這台電腦的 {0} 下載。\n點「使用我的程式…」選擇已安裝的程式。",
"engines.use_own_app_folder": "選擇包含 {0}.app 的資料夾",
"engines.progress_detail": "{0} / {1} · {2}/s · {3}",
diff --git a/src/Filee.App/ViewModels/PresetEditorViewModel.cs b/src/Filee.App/ViewModels/PresetEditorViewModel.cs
index d76f638b..bf6ce0f6 100644
--- a/src/Filee.App/ViewModels/PresetEditorViewModel.cs
+++ b/src/Filee.App/ViewModels/PresetEditorViewModel.cs
@@ -7,6 +7,7 @@ using CommunityToolkit.Mvvm.ComponentModel;
using Filee.Core.Formats;
using Filee.Core.Localization;
using Filee.Core.Presets;
+using Filee.Engines.Ocr;
namespace Filee.App.ViewModels;
@@ -81,6 +82,11 @@ public sealed partial class PresetEditorViewModel : ObservableObject
Flips = Enum.GetValues<ImageFlip>().Select(v => new Choice<ImageFlip>(v, loc[$"presets.flip.{v}"])).ToList();
PageSizes = Enum.GetValues<PdfPageSize>().Select(v => new Choice<PdfPageSize>(v, loc[$"presets.page_size.{v}"])).ToList();
CompressionLevels = Enum.GetValues<PdfCompression>().Select(v => new Choice<PdfCompression>(v, loc[$"presets.pdf_compression.{v}"])).ToList();
+ // Each language under its own name; one not downloaded yet shows its size (it downloads with the first file).
+ OcrLanguageChoices = [.. OcrLanguages.All
+ .OrderBy(l => l.Code != OcrLanguages.Default).ThenBy(l => l.NativeName, StringComparer.CurrentCulture)
+ .Select(l => new Choice<string>(l.Code, l.NativeName,
+ OcrLanguages.IsInstalled(l.Code) ? null : loc.Format("presets.ocr_language_size", $"{l.Size / 1_000_000.0:0.#} MB")))];
Locations = Enum.GetValues<OutputLocation>().Select(v => new Choice<OutputLocation>(v, loc[$"presets.location.{v}"])).ToList();
Conflicts = Enum.GetValues<ConflictPolicy>().Select(v => new Choice<ConflictPolicy>(v, loc[$"presets.conflict.{v}"])).ToList();
TiffCompressions = Enum.GetValues<TiffCompression>().Select(v => new Choice<TiffCompression>(v, v.ToString().ToUpperInvariant())).ToList();
@@ -105,6 +111,8 @@ public sealed partial class PresetEditorViewModel : ObservableObject
_pageSize = PageSizes.First(p => p.Value == _edit.Pdf.PageSize);
_compressionLevel = CompressionLevels.FirstOrDefault(c => c.Value == _edit.Pdf.Compression) ?? CompressionLevels[0];
_compressWithGhostscript = _edit.Pdf.CompressWithGhostscript;
+ _ocr = _edit.Pdf.Ocr;
+ _ocrLanguage = OcrLanguageChoices.FirstOrDefault(l => l.Value == _edit.Pdf.OcrLanguage) ?? OcrLanguageChoices[0];
_location = Locations.First(l => l.Value == _edit.Output.Location);
_conflict = Conflicts.First(c => c.Value == _edit.Output.Conflict);
_tiffCompression = TiffCompressions.First(t => t.Value == _edit.Image.TiffCompression);
@@ -177,6 +185,9 @@ public sealed partial class PresetEditorViewModel : ObservableObject
public IReadOnlyList<Choice<ImageFlip>> Flips { get; }
public IReadOnlyList<Choice<PdfPageSize>> PageSizes { get; }
+ /// <summary>Languages Tesseract reads (PdfOptions.OcrLanguage), English first.</summary>
+ public IReadOnlyList<Choice<string>> OcrLanguageChoices { get; }
+
/// <summary>PDF → PDF: don't compress, or the level (pictures at 72, 150 or 300 dpi).</summary>
public IReadOnlyList<Choice<PdfCompression>> CompressionLevels { get; }
public IReadOnlyList<Choice<OutputLocation>> Locations { get; }
@@ -200,7 +211,7 @@ public sealed partial class PresetEditorViewModel : ObservableObject
[ObservableProperty]
[NotifyPropertyChangedFor(nameof(ShowImage), nameof(ShowTurnForPdf), nameof(ShowQuality), nameof(ShowTiff), nameof(ShowMultiPageTiff), nameof(ShowWebp), nameof(ShowIco),
nameof(ShowZipResult), nameof(ShowPdf), nameof(ShowPdfBuild), nameof(ShowDocument), nameof(ShowLeaveOutPictures), nameof(ShowPdfSplit), nameof(ShowPdfCombine),
- nameof(ShowPdfCompression), nameof(ShowPdfCompressionOptions),
+ nameof(ShowPdfCompression), nameof(ShowPdfCompressionOptions), nameof(ShowOcr),
nameof(ShowMedia), nameof(ShowMediaQuality), nameof(ShowMaxHeight), nameof(ShowAudioBitrate), nameof(ShowRemoveAudio),
nameof(ShowAudioChannels), nameof(ShowWav), nameof(VideoCodecs), nameof(VideoCodecChoice), nameof(ShowVideoCodec), nameof(ShowHardwareEncoding),
nameof(AudioCodecs), nameof(AudioCodecChoice), nameof(ShowAudioCodec),
@@ -385,6 +396,10 @@ public sealed partial class PresetEditorViewModel : ObservableObject
[ObservableProperty] private bool _compressWithGhostscript;
+ /// <summary>Recognize the text of scans and pictures (PdfOptions.Ocr), in <see cref="OcrLanguage"/>.</summary>
+ [ObservableProperty] private bool _ocr;
+ [ObservableProperty] private Choice<string> _ocrLanguage;
+
/// <summary>PDF → image: one tall image of all pages.</summary>
[ObservableProperty] private bool _combinePages;
[ObservableProperty] private bool _trimPageMargins;
@@ -491,6 +506,9 @@ public sealed partial class PresetEditorViewModel : ObservableObject
public bool ShowPdfCompression => TargetId == "pdf";
public bool ShowPdfCompressionOptions => ShowPdfCompression && CompressionLevel.Value != PdfCompression.None;
+ /// <summary>Text from scans goes into the formats Filee writes from a PDF's text itself (PdfOptions.OcrTargets).</summary>
+ public bool ShowOcr => !IsTool && PdfOptions.OcrTargets.Contains(TargetId);
+
/// <summary>PDF → a single-image format: the pages can be stacked into one tall image (TIFF, GIF, APNG and MNG keep pages).</summary>
public bool ShowPdfCombine => TargetCategory == FormatCategory.Image
&& TargetId is not ("tiff" or "gif" or "apng" or "mng" or "ico" or "cur" or "icns" or "svg" or "pdf");
@@ -595,6 +613,9 @@ public sealed partial class PresetEditorViewModel : ObservableObject
pdf.SplitTallImage = SplitTallImage;
pdf.Compression = CompressionLevel.Value;
pdf.CompressWithGhostscript = CompressWithGhostscript;
+ // Only where the option is shown, as with SaveEveryFrame below.
+ pdf.Ocr = ShowOcr && Ocr;
+ pdf.OcrLanguage = OcrLanguage.Value;
_original.Document.PdfA = PdfA;
// Only where the option is shown, as with SaveEveryFrame below.
_original.Document.LeaveOutPictures = ShowLeaveOutPictures && LeaveOutPictures;
diff --git a/src/Filee.App/Views/PresetEditorView.axaml b/src/Filee.App/Views/PresetEditorView.axaml
index 8c81df87..69ccbe6d 100644
--- a/src/Filee.App/Views/PresetEditorView.axaml
+++ b/src/Filee.App/Views/PresetEditorView.axaml
@@ -317,6 +317,27 @@
<CheckBox Content="{DynamicResource presets.pdf_keep_metadata}" IsChecked="{Binding KeepMetadata}" />
</StackPanel>
</StackPanel>
+ <!-- Scans and pictures → searchable PDF, DOCX, TXT, … with Tesseract -->
+ <StackPanel Spacing="2" IsVisible="{Binding ShowOcr}">
+ <CheckBox Content="{DynamicResource presets.ocr}" IsChecked="{Binding Ocr}" />
+ <TextBlock Classes="caption" TextWrapping="Wrap" Margin="28,0,0,0" Text="{DynamicResource presets.ocr_hint}" />
+ <Grid ColumnDefinitions="*,12,*" Margin="28,6,0,0" IsVisible="{Binding Ocr}">
+ <StackPanel>
+ <TextBlock Classes="label" Text="{DynamicResource presets.ocr_language}" />
+ <ComboBox ItemsSource="{Binding OcrLanguageChoices}" SelectedItem="{Binding OcrLanguage}" HorizontalAlignment="Stretch"
+ HorizontalContentAlignment="Stretch" MaxDropDownHeight="420">
+ <ComboBox.ItemTemplate>
+ <DataTemplate x:DataType="vm:IChoice">
+ <DockPanel>
+ <TextBlock DockPanel.Dock="Right" Classes="caption" Text="{Binding Detail}" Margin="12,0,0,0" VerticalAlignment="Center" />
+ <TextBlock Text="{Binding Label}" TextTrimming="CharacterEllipsis" VerticalAlignment="Center" />
+ </DockPanel>
+ </DataTemplate>
+ </ComboBox.ItemTemplate>
+ </ComboBox>
+ </StackPanel>
+ </Grid>
+ </StackPanel>
<StackPanel Spacing="2" IsVisible="{Binding ShowPdfCombine}">
<CheckBox Content="{DynamicResource presets.combine_pages}" IsChecked="{Binding CombinePages}" />
<TextBlock Classes="caption" TextWrapping="Wrap" Margin="28,0,0,0" Text="{DynamicResource presets.combine_pages_hint}" />
diff --git a/src/Filee.Core/Presets/BuiltInData.cs b/src/Filee.Core/Presets/BuiltInData.cs
index 4a3c96c0..2e8a6769 100644
--- a/src/Filee.Core/Presets/BuiltInData.cs
+++ b/src/Filee.Core/Presets/BuiltInData.cs
@@ -71,6 +71,7 @@ public static class BuiltInData
Pdf = { SplitPages = true }, Output = { Location = OutputLocation.Subfolder, SubfolderName = "{name}" },
},
.. PdfCompressionPresets(),
+ .. OcrPresets(),
.. PdfSlidesPresets(),
.. FramePresets(),
.. MotionPhotoPresets(),
@@ -124,6 +125,19 @@ public static class BuiltInData
},
];
+ /// <summary>
+ /// "Searchable PDF": scans and pictures with their text recognized by Tesseract (added in settings schema 33). On no
+ /// donut, like "Compress PDF".
+ /// </summary>
+ public static List<Preset> OcrPresets() =>
+ [
+ new()
+ {
+ Id = "searchable-pdf", NameKey = "preset.searchable_pdf", TargetFormat = "pdf",
+ Pdf = { Ocr = true }, Output = { FileNamePattern = "{name}_searchable" },
+ },
+ ];
+
/// <summary>
/// PDF → PowerPoint with a picture of each page on its own slide (added in settings schema 18). JPEG at 90 like the
/// JPG preset; the render DPI is the PDF default (150), which the converter never goes below.
diff --git a/src/Filee.Core/Settings/AppSettings.cs b/src/Filee.Core/Settings/AppSettings.cs
index 4f488dcb..3df95d28 100644
--- a/src/Filee.Core/Settings/AppSettings.cs
+++ b/src/Filee.Core/Settings/AppSettings.cs
@@ -112,7 +112,7 @@ public sealed class DonutSettings
public sealed class AppSettings
{
/// <summary>Current schema version. Increase when the format changes and add a migration.</summary>
- public const int CurrentSchemaVersion = 32;
+ public const int CurrentSchemaVersion = 33;
public int SchemaVersion { get; set; } = CurrentSchemaVersion;
diff --git a/src/Filee.Core/Settings/UserDataStore.cs b/src/Filee.Core/Settings/UserDataStore.cs
index 7aff0c84..1aef7e31 100644
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@ -750,6 +750,13 @@ internal static class SettingsMigrations
// v32: logs and script source, Video CD DAT and Workbench archives learn their donuts; custom claims stay put.
if (from < 32)
changed |= LearnExtensions(profiles, out _, ["log", "py", "pac", "bat", "command", "dat", "wbpz"]);
+ // v33: "Searchable PDF" (text recognition), after "Compress PDF" as in a new library, on no donut.
+ if (from < 33 && !presets.Any(p => p.Id == "searchable-pdf"))
+ {
+ var at = presets.FindIndex(p => p.Id == "compress-pdf");
+ presets.Insert(at < 0 ? presets.Count : at + 1, BuiltInData.OcrPresets().Single());
+ changed = true;
+ }
return changed;
}
diff --git a/tests/Filee.Core.Tests/OcrRouteTests.cs b/tests/Filee.Core.Tests/OcrRouteTests.cs
index 44dc7abd..3d5712c1 100644
--- a/tests/Filee.Core.Tests/OcrRouteTests.cs
+++ b/tests/Filee.Core.Tests/OcrRouteTests.cs
@@ -3,6 +3,7 @@
using Filee.Core.Conversion;
using Filee.Core.Presets;
+using Filee.Core.Settings;
namespace Filee.Core.Tests;
@@ -97,4 +98,19 @@ public class OcrRouteTests
Assert.Equal(JobState.Completed, job.State);
Assert.Equal([("jpg", "pdf", false), ("pdf", "pdf", false)], tesseract.Steps.OrderBy(s => s.From));
}
+
+ [Fact]
+ public void A_version_32_library_gets_searchable_pdf_after_compress_pdf()
+ {
+ var presets = BuiltInData.CreatePresets();
+ presets.RemoveAll(p => p.Id == "searchable-pdf");
+ var profiles = BuiltInData.CreateProfiles();
+
+ Assert.True(SettingsMigrations.ApplyToLibrary(32, presets, profiles));
+
+ var ids = presets.Select(p => p.Id).ToList();
+ Assert.Equal(ids.IndexOf("compress-pdf") + 1, ids.IndexOf("searchable-pdf"));
+ Assert.True(presets.Single(p => p.Id == "searchable-pdf").Pdf.Ocr);
+ Assert.False(SettingsMigrations.ApplyToLibrary(33, presets, profiles));
+ }
}