diff --git a/README.md b/README.md
index 9db2ea40b..69e2f0a9c 100644
--- a/README.md
+++ b/README.md
@@ -172,7 +172,7 @@ To undo it, remove the entries in Windows Security → App & browser control →
| **Images**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, APNG, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC, QOI, DDS, PCX, MNG, CUR, …;
camera RAW (CR2, CR3, NEF, ARW, DNG, …), DICOM, OpenEXR, HDR, FITS, SRTM elevation tiles (HGT), JPEG XR (Windows), iPhone Live Photo (LIVP), Insta360 INSP, Windows program icons (EXE, DLL), Valve Texture VTF (Source engine, Garry's Mod), Blizzard Texture BLP (Warcraft III, World of Warcraft), animated cursor (ANI) read;
GIMP XCF and Paint.NET PDN (layers kept between XCF, PDN and PSD) | any of these (HEIC⁵), GIMP XCF, Paint.NET PDN, VTF, PDF, SVG (traced), resized, grayscale;
Live/Motion Photos (iPhone, Android) → their video (MP4, MOV⁵), and a video → Live Photo (iPhone) or Motion Photo (Android)⁵, experimental |
| **Vector**: SVG, SVGZ, EMF, WMF, AI
EPS, PS¹
CDR, VSD, CGM, ODG, FODG²
Obsidian Canvas (JSON Canvas), embroidery designs (Tajima DST, Janome JEF) read | PDF (vector), PNG and other images,
SVG ↔ SVGZ, SVG → DXF/DWG, PDF → EPS/PS¹, SVG → EMF, WMF, ODG²;
Obsidian Canvas → its text as Markdown |
| **PDF** | DOCX, XLSX (tables), HWPX, TXT, PNG, JPG, TIFF, CBZ, PPTX (a picture of each page), SVG², PDF/A¹;
merge (in an order you choose first), split (by pages, every N pages or into equal parts), page ranges, compress (smaller PDFs) |
-| **Documents**: DOCX, DOCM, DOTX, EML, Outlook MSG;
OFD (Chinese e-invoices, official documents) read
DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML;
DOCX, HTML tables → XLSX, ODS, CSV;
MSG → EML
ODT, FODT, OTT² |
+| **Documents**: DOCX, DOCM, DOTX, EML, Outlook MSG;
OFD (Chinese e-invoices, official documents), Word backup (WBK: DOCX built in, DOC²) read
DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML;
DOCX, HTML tables → XLSX, ODS, CSV;
MSG → EML
ODT, FODT, OTT² |
| **Spreadsheets**: XLSX, XLSM, XLS, XLT, ODS, CSV, TSV
OTS, FODS, Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, JSON, HWPX, HTML
XLT, OTS² |
| **Presentations**: PPTX, PPTM, POTX, POTM, PPSX
PPT, ODP, OTP, FODP, Keynote² | PDF, PNG, JPG, DOCX, HWPX, Markdown (a section per slide, for reveal.js)
OTP² |
| **HWP**: HWP, HWPX | PDF, PNG, DOCX, HWPX ↔ HWP, TXT, Markdown, HTML |
diff --git a/docs/ENGINES.md b/docs/ENGINES.md
index 4a46f08d2..533c61515 100644
--- a/docs/ENGINES.md
+++ b/docs/ENGINES.md
@@ -1279,6 +1279,23 @@ signed again is opened again, up to 8 deep. Envelopes over 512 MB are refused.
envelope (`error.p7m_encrypted`: EnvelopedData, only the recipient's key opens it) and anything that isn't a
SignedData (`error.p7m_unreadable`).
+## Word backup copies (.wbk)
+
+A `.wbk` (#1840) is the backup copy Microsoft Word keeps when "Always create backup copy" is enabled: either an
+ordinary DOCX (a ZIP containing `word/document.xml`) or, when the original was a `.doc`, an OLE compound file
+(`D0 CF 11 E0 A1 B1 1A E1`) holding a Word 97–2003 document. `Office/WordBackupConverter.cs` (engine id `word-backup`)
+implements `IEnvelopeOpener` with edges `wbk → docx` and `wbk → doc`:
+
+- **Format detection**: reads the first 8 bytes. `PK\x03\x04` with `word/document.xml` in the ZIP resolves to `docx`;
+ the OLE signature resolves to `doc`. Anything else (including empty files or non-Word ZIPs) is refused with
+ `error.wbk_not_word`.
+- **The route**: `JobQueue` asks `InnerFormat` before planning and `RoutePlanner.PlanThrough` prepends the copy step
+ (`wbk → docx` or `wbk → doc`, written unchanged via a temp file and move) to the normal `docx` or `doc` route. DOCX
+ backups work out of the box through all built-in and optional DOCX engines; DOC backups convert through LibreOffice
+ (and report the missing `doc` route when LibreOffice is not installed).
+- **Names**: `.wbk` is not in `FormatRegistry.Envelopes`, so `Backup of Report.wbk` becomes `Backup of Report.docx` (or
+ `.pdf`, etc.).
+
## Data (JSON, YAML, TOML, XML, CSV, vCard, iCalendar, property lists)
`Data/DataConverter.cs` (engine id `data`) reads every format into one tree (`Data/DataTree.cs`: objects with their
diff --git a/src/Filee.App/Assets/i18n/ar.json b/src/Filee.App/Assets/i18n/ar.json
index 25f17c8f5..7833e428b 100644
--- a/src/Filee.App/Assets/i18n/ar.json
+++ b/src/Filee.App/Assets/i18n/ar.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "ملف .p7m هذا مشفّر وليس موقّعًا فقط: لا يفتحه إلا مفتاح المستلم",
"error.p7m_unknown_content": "الملف داخل ملف .p7m هذا من نوع لا يحوّله Filee",
"error.p7m_too_large": "الملف الموقّع أكبر من أن يُفتح",
+ "error.wbk_not_word": "ملف .wbk هذا لا يحتوي على مستند Word.",
"error.document_too_large": "يتوسّع هذا المستند إلى بيانات أكثر من اللازم أو أنه متداخل بعمق شديد بحيث لا يمكن فتحه بأمان",
"format_request.request": "طلب دعم هذه الصيغة",
"format_request.notice_title": "لا يستطيع Filee تحويل ملفات {0} بعد",
@@ -268,6 +269,8 @@
"engine.email.description": "تحويل رسائل البريد (EML وOutlook MSG) إلى HTML ونص مع المرسل والمستلمين والتاريخ والصور، وتجميع المرفقات في ZIP.\nتحويل MSG إلى EML، وصفحات الويب المحفوظة (MHTML) إلى ملف HTML واحد مع صورها.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "يستخرج الملف الموقّع من ملف .p7m (CMS / PKCS #7: الفواتير الإلكترونية الإيطالية وملفات PDF الموقّعة) ثم يحوّله. لا يُتحقَّق من التوقيع ولا يبقى في الناتج: احتفظ بملف .p7m كإثبات.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "يفتح نُسخ Word الاحتياطية (.wbk) بصيغة DOCX أو Word 97–2003 DOC التي بداخلها ثم يحوّلها.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "التحويل بين JSON وJSON Lines وYAML وTOML وXML وCSV.\nتحويل جهات اتصال vCard وأحداث iCalendar إلى CSV والعكس.\nتُحذف التعليقات. تدعم CSV البيانات الجدولية فقط.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/bn-BD.json b/src/Filee.App/Assets/i18n/bn-BD.json
index 5f0b159b4..46924ccd5 100644
--- a/src/Filee.App/Assets/i18n/bn-BD.json
+++ b/src/Filee.App/Assets/i18n/bn-BD.json
@@ -126,6 +126,7 @@
"error.p7m_encrypted": "এই .p7m শুধু স্বাক্ষরিত নয়, এনক্রিপ্টও করা: কেবল প্রাপকের কী দিয়ে এটি খোলা যায়",
"error.p7m_unknown_content": "এই .p7m-এর ভেতরের ফাইলটি এমন ধরনের যা ফাইলি রূপান্তর করে না",
"error.p7m_too_large": "স্বাক্ষরিত ফাইলটি খোলার জন্য অতিরিক্ত বড়",
+ "error.wbk_not_word": "এই .wbk ফাইলটিতে কোনো Word নথি নেই।",
"error.document_too_large": "এই নথিটি খুললে অতিরিক্ত ডেটা তৈরি হয় বা এটি অতিরিক্ত গভীরভাবে নেস্ট করা, তাই নিরাপদে খোলা যাচ্ছে না",
"format_request.request": "এই ফরম্যাটের অনুরোধ করুন",
"format_request.notice_title": "ফাইলি এখনও {0} ফাইল রূপান্তর করতে পারে না",
@@ -282,6 +283,8 @@
"engine.email.description": "ই-মেইল (EML, Outlook MSG) থেকে প্রেরক, প্রাপক ও তারিখসহ এইচটিএমএল এবং টেক্সটে রূপান্তর, ছবিসহ; সংযুক্ত ফাইলগুলো একটি ZIP-এ।\nMSG থেকে EML। সংরক্ষিত ওয়েব পেজ (Mএইচটিএমএল) ছবিসহ একটি একক এইচটিএমএল ফাইলে।",
"engine.p7m.name": "স্বাক্ষরিত ফাইল (বিল্ট-ইন)",
"engine.p7m.description": ".p7m (CMS / PKCS #7: ইতালীয় ই-ইনভয়েস, স্বাক্ষরিত PDF) থেকে স্বাক্ষরিত ফাইলটি বের করে রূপান্তর করে। স্বাক্ষর যাচাই করা বা রাখা হয় না: প্রমাণ হিসেবে .p7m ফাইলটি রেখে দিন।",
+ "engine.word-backup.name": "Word ব্যাকআপ (বিল্ট-ইন)",
+ "engine.word-backup.description": "Word ব্যাকআপ কপি (.wbk) ভেতরের DOCX বা Word 97–2003 DOC হিসেবে খুলে রূপান্তর করে।",
"engine.data.name": "উপাত্ত/ডেটা (বিল্ট-ইন)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML এবং CSV একে অপরে রূপান্তর।\nvCard পরিচিতি ও iCalendar ইভেন্ট CSV-তে এবং বিপরীতে।\nমন্তব্য বাদ দেওয়া হয়। CSV কেবল সারণি ধারণ করে।",
"engine.vector.name": "ভেক্টর গ্রাফিক্স (বিল্ট-ইন)",
diff --git a/src/Filee.App/Assets/i18n/de.json b/src/Filee.App/Assets/i18n/de.json
index 120e6c2d3..b1a840be2 100644
--- a/src/Filee.App/Assets/i18n/de.json
+++ b/src/Filee.App/Assets/i18n/de.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "Diese .p7m ist verschlüsselt, nicht nur signiert: Nur der Schlüssel des Empfängers öffnet sie",
"error.p7m_unknown_content": "Die Datei in dieser .p7m hat ein Format, das Filee nicht konvertiert",
"error.p7m_too_large": "Die signierte Datei ist zu groß zum Öffnen",
+ "error.wbk_not_word": "Diese .wbk-Datei enthält kein Word-Dokument.",
"error.document_too_large": "Dieses Dokument entpackt sich zu zu vielen Daten oder ist zu tief verschachtelt, um es sicher zu öffnen",
"format_request.request": "Dieses Format vorschlagen",
"format_request.notice_title": "Filee kann {0}-Dateien noch nicht konvertieren",
@@ -268,6 +269,8 @@
"engine.email.description": "E-Mails (EML, Outlook MSG) in HTML und Text mit Absender, Empfängern, Datum und Bildern; Anhänge in eine ZIP-Datei.\nMSG in EML. Gespeicherte Webseiten (MHTML) in eine HTML-Datei mit ihren Bildern.",
"engine.p7m.name": "Signierte Dateien (integriert)",
"engine.p7m.description": "Holt die signierte Datei aus einer .p7m (CMS / PKCS #7: italienische E-Rechnungen, signierte PDFs) und konvertiert sie weiter. Die Signatur wird weder geprüft noch übernommen: Behalte die .p7m als Nachweis.",
+ "engine.word-backup.name": "Word-Sicherungen (integriert)",
+ "engine.word-backup.description": "Öffnet Word-Sicherungskopien (.wbk) als das enthaltene DOCX oder Word 97–2003 DOC und konvertiert sie weiter.",
"engine.data.name": "Daten (integriert)",
"engine.data.description": "Konvertiert JSON, JSON Lines, YAML, TOML, XML und CSV untereinander.\nvCard-Kontakte und iCalendar-Termine in CSV und zurück.\nKommentare werden entfernt. CSV speichert nur Tabellen.",
"engine.vector.name": "Vektorgrafiken (integriert)",
diff --git a/src/Filee.App/Assets/i18n/en.json b/src/Filee.App/Assets/i18n/en.json
index aebee25b4..32ec8dc2b 100644
--- a/src/Filee.App/Assets/i18n/en.json
+++ b/src/Filee.App/Assets/i18n/en.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "This .p7m is encrypted, not only signed: only the recipient's key opens it",
"error.p7m_unknown_content": "The file inside this .p7m is of a type Filee doesn't convert",
"error.p7m_too_large": "The signed file is too large to open",
+ "error.wbk_not_word": "This .wbk file doesn't hold a Word document.",
"error.document_too_large": "This document unpacks to too much data or is nested too deeply to open safely",
"format_request.request": "Request this format",
"format_request.notice_title": "Filee can't convert {0} files yet",
@@ -275,6 +276,8 @@
"engine.email.description": "E-mails (EML, Outlook MSG) to HTML and text with sender, recipients and date, pictures included; attachments into a ZIP.\nMSG to EML. Saved web pages (MHTML) to one HTML file with their pictures.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "Takes the signed file out of a .p7m (CMS / PKCS #7: Italian e-invoices, signed PDFs) and converts it on. The signature isn't checked or kept: keep the .p7m as proof.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Opens Word backup copies (.wbk) as the DOCX or Word 97–2003 DOC inside and converts them on.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML and CSV into each other.\nvCard contacts and iCalendar events to CSV and back.\nComments are dropped. CSV holds tables only.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/es.json b/src/Filee.App/Assets/i18n/es.json
index 31fd066d0..79e11552f 100644
--- a/src/Filee.App/Assets/i18n/es.json
+++ b/src/Filee.App/Assets/i18n/es.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "Este .p7m está cifrado, no solo firmado: solo lo abre la clave del destinatario",
"error.p7m_unknown_content": "El archivo dentro de este .p7m es de un tipo que Filee no convierte",
"error.p7m_too_large": "El archivo firmado es demasiado grande para abrirlo",
+ "error.wbk_not_word": "Este archivo .wbk no contiene un documento de Word.",
"error.document_too_large": "Este documento se descomprime en demasiados datos o está anidado a demasiada profundidad para abrirlo de forma segura",
"format_request.request": "Solicitar este formato",
"format_request.notice_title": "Filee aún no puede convertir archivos {0}",
@@ -268,6 +269,8 @@
"engine.email.description": "Correos electrónicos (EML, Outlook MSG) a HTML y texto con remitente, destinatarios y fecha, imágenes incluidas; los adjuntos van a un ZIP.\nMSG a EML. Páginas web guardadas (MHTML) a un solo archivo HTML con sus imágenes.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "Saca el archivo firmado de un .p7m (CMS / PKCS #7: facturas electrónicas italianas, PDF firmados) y sigue la conversión. La firma no se comprueba ni se conserva: guarda el .p7m como prueba.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Abre copias de seguridad de Word (.wbk) como el DOCX o DOC de Word 97–2003 que contienen y sigue la conversión.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML y CSV entre sí.\nContactos vCard y eventos de iCalendar a CSV y viceversa.\nLos comentarios se descartan. CSV solo admite tablas.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/fa.json b/src/Filee.App/Assets/i18n/fa.json
index b9d3093c5..9eab3c38e 100644
--- a/src/Filee.App/Assets/i18n/fa.json
+++ b/src/Filee.App/Assets/i18n/fa.json
@@ -126,6 +126,7 @@
"error.p7m_encrypted": "این فایل .p7m رمزگذاری شده است و فقط امضا ندارد: تنها با کلید گیرنده باز میشود",
"error.p7m_unknown_content": "فایل داخل این .p7m از نوعی است که Filee تبدیل نمیکند",
"error.p7m_too_large": "فایل امضاشده برای باز شدن بیش از حد بزرگ است",
+ "error.wbk_not_word": "این فایل .wbk حاوی سند Word نیست.",
"error.document_too_large": "دادههای استخراجشده از این سند بیش از حد مجاز است یا ساختار آن برای باز شدن ایمن بیش از حد تودرتو است",
"format_request.request": "درخواست این فرمت",
"format_request.notice_title": "Filee هنوز نمیتواند فایلهای {0} را تبدیل کند",
@@ -282,6 +283,8 @@
"engine.email.description": "تبدیل ایمیلها (EML، Outlook MSG) به HTML و متن با مشخصات فرستنده، گیرندگان و تاریخ، شامل تصاویر؛ پیوستها در یک فایل ZIP قرار میگیرند.\nتبدیل MSG به EML. صفحات وب ذخیرهشده (MHTML) به یک فایل HTML با تصاویر آنها.",
"engine.p7m.name": "فایلهای امضاشده (داخلی)",
"engine.p7m.description": "استخراج فایل امضاشده از .p7m (CMS / PKCS #7: فاکتورهای الکترونیکی ایتالیا، PDFهای امضاشده) و تبدیل آن. امضا بررسی یا نگهداری نمیشود: فایل .p7m را به عنوان مدرک نگه دارید.",
+ "engine.word-backup.name": "نسخههای پشتیبان Word (داخلی)",
+ "engine.word-backup.description": "باز کردن نسخههای پشتیبان Word (.wbk) به عنوان فایل DOCX یا Word 97–2003 DOC داخل آنها و ادامه تبدیل.",
"engine.data.name": "داده (داخلی)",
"engine.data.description": "تبدیل متقابل JSON، JSON Lines، YAML، TOML، XML و CSV.\nمخاطبین vCard و رویدادهای iCalendar به CSV و برعکس.\nتوضیحات حذف میشوند. CSV فقط جداول را نگه میدارد.",
"engine.vector.name": "گرافیک برداری (داخلی)",
diff --git a/src/Filee.App/Assets/i18n/fr.json b/src/Filee.App/Assets/i18n/fr.json
index 6a4794ad7..0257f9cb6 100644
--- a/src/Filee.App/Assets/i18n/fr.json
+++ b/src/Filee.App/Assets/i18n/fr.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "Ce .p7m est chiffré, pas seulement signé : seule la clé du destinataire peut l'ouvrir",
"error.p7m_unknown_content": "Le fichier contenu dans ce .p7m est d'un type que Filee ne convertit pas",
"error.p7m_too_large": "Le fichier signé est trop volumineux pour être ouvert",
+ "error.wbk_not_word": "Ce fichier .wbk ne contient pas de document Word.",
"error.document_too_large": "Ce document se décompresse en trop de données ou est imbriqué trop profondément pour être ouvert en toute sécurité",
"format_request.request": "Demander ce format",
"format_request.notice_title": "Filee ne sait pas encore convertir les fichiers {0}",
@@ -275,6 +276,8 @@
"engine.email.description": "E-mails (EML, MSG Outlook) en HTML et texte avec expéditeur, destinataires et date, images comprises ; pièces jointes dans un ZIP.\nMSG en EML. Pages web enregistrées (MHTML) en un seul fichier HTML avec leurs images.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "Extrait le fichier signé d'un .p7m (CMS / PKCS #7 : factures électroniques italiennes, PDF signés) puis le convertit. La signature n'est ni vérifiée ni conservée : gardez le .p7m comme preuve.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Ouvre les copies de sauvegarde Word (.wbk) en tant que DOCX ou DOC Word 97–2003 contenu à l'intérieur, puis les convertit.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML et CSV entre eux.\nContacts vCard et événements iCalendar en CSV et inversement.\nLes commentaires sont supprimés. Le CSV ne contient que des tableaux.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/hi.json b/src/Filee.App/Assets/i18n/hi.json
index 177219f8d..53c0a9de5 100644
--- a/src/Filee.App/Assets/i18n/hi.json
+++ b/src/Filee.App/Assets/i18n/hi.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "यह .p7m सिर्फ़ साइन नहीं, एन्क्रिप्ट भी है: इसे सिर्फ़ प्राप्तकर्ता की कुंजी खोल सकती है",
"error.p7m_unknown_content": "इस .p7m के अंदर की फ़ाइल ऐसे प्रकार की है जिसे Filee नहीं बदलता",
"error.p7m_too_large": "साइन की गई फ़ाइल खोलने के लिए बहुत बड़ी है",
+ "error.wbk_not_word": "इस .wbk फ़ाइल में कोई Word दस्तावेज़ नहीं है।",
"error.document_too_large": "यह दस्तावेज़ खोलने पर बहुत ज़्यादा डेटा बनता है या बहुत गहराई तक नेस्टेड है, इसलिए इसे सुरक्षित रूप से नहीं खोला जा सकता",
"format_request.request": "इस फ़ॉर्मैट का अनुरोध करें",
"format_request.notice_title": "Filee अभी {0} फ़ाइलें कन्वर्ट नहीं कर सकता",
@@ -268,6 +269,8 @@
"engine.email.description": "ई-मेल (EML, Outlook MSG) को भेजने वाले, प्राप्तकर्ताओं और तारीख के साथ HTML और टेक्स्ट में बदलता है, तस्वीरों सहित; अटैचमेंट ZIP में।\nMSG से EML। सहेजे गए वेब पेज (MHTML) उनकी तस्वीरों सहित एक HTML फ़ाइल में।",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": ".p7m (CMS / PKCS #7: इटली के ई-इनवॉइस, साइन किए गए PDF) से साइन की गई फ़ाइल निकालता है और आगे बदलता है। सिग्नेचर की जाँच नहीं होती और वह नतीजे में नहीं रहता: सबूत के लिए .p7m रखें।",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Word बैकअप कॉपियों (.wbk) को अंदर मौजूद DOCX या Word 97–2003 DOC के रूप में खोलता है और आगे बदलता है।",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML और CSV एक-दूसरे में।\nvCard संपर्क और iCalendar इवेंट CSV में और वापस।\nकमेंट हटा दिए जाते हैं। CSV में केवल टेबल रहती हैं।",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/id.json b/src/Filee.App/Assets/i18n/id.json
index 4e6c9850f..bb204acfb 100644
--- a/src/Filee.App/Assets/i18n/id.json
+++ b/src/Filee.App/Assets/i18n/id.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": ".p7m ini dienkripsi, bukan hanya ditandatangani: hanya kunci penerima yang bisa membukanya",
"error.p7m_unknown_content": "File di dalam .p7m ini berjenis yang tidak dikonversi Filee",
"error.p7m_too_large": "File bertanda tangan terlalu besar untuk dibuka",
+ "error.wbk_not_word": "File .wbk ini tidak berisi dokumen Word.",
"error.document_too_large": "Dokumen ini terurai menjadi data yang terlalu besar atau bersarang terlalu dalam untuk dibuka dengan aman",
"format_request.request": "Minta format ini",
"format_request.notice_title": "Filee belum dapat mengonversi file {0}",
@@ -268,6 +269,8 @@
"engine.email.description": "Email (EML, Outlook MSG) ke HTML dan teks dengan pengirim, penerima, tanggal, serta gambar terlampir; lampiran ke file ZIP.\nMSG ke EML. Halaman web tersimpan (MHTML) menjadi satu file HTML beserta gambarnya.",
"engine.p7m.name": "File bertanda tangan (bawaan)",
"engine.p7m.description": "Mengambil file bertanda tangan dari .p7m (CMS / PKCS #7: faktur elektronik Italia, PDF bertanda tangan) lalu mengonversinya. Tanda tangan tidak diperiksa dan tidak ikut ke hasil: simpan .p7m sebagai bukti.",
+ "engine.word-backup.name": "Cadangan Word (bawaan)",
+ "engine.word-backup.description": "Membuka salinan cadangan Word (.wbk) sebagai DOCX atau DOC Word 97–2003 di dalamnya lalu mengonversinya.",
"engine.data.name": "Data (bawaan)",
"engine.data.description": "Saling konversi antara JSON, JSON Lines, YAML, TOML, XML, dan CSV.\nKontak vCard dan kalender iCalendar ke CSV dan sebaliknya.\nKomentar diabaikan. CSV hanya menampung tabel data.",
"engine.vector.name": "Grafik vektor (bawaan)",
diff --git a/src/Filee.App/Assets/i18n/it.json b/src/Filee.App/Assets/i18n/it.json
index 6017628ee..b161a7fff 100644
--- a/src/Filee.App/Assets/i18n/it.json
+++ b/src/Filee.App/Assets/i18n/it.json
@@ -111,6 +111,7 @@
"error.p7m_encrypted": "Questo .p7m è cifrato, non solo firmato: solo la chiave del destinatario può aprirlo",
"error.p7m_unknown_content": "Il file dentro questo .p7m è di un tipo che Filee non converte",
"error.p7m_too_large": "Il file firmato è troppo grande da aprire",
+"error.wbk_not_word": "Questo file .wbk non contiene un documento Word.",
"error.document_too_large": "Questo documento si decomprime in troppi dati o è annidato troppo in profondità per essere aperto in sicurezza",
"format_request.request": "Richiedi questo formato",
"format_request.notice_title": "Filee non può ancora convertire i file {0}",
@@ -267,6 +268,8 @@
"engine.email.description": "E-mail (EML, Outlook MSG) in HTML e testo con mittente, destinatari e data, immagini incluse; gli allegati in un ZIP.\nMSG in EML. Pagine web salvate (MHTML) in un unico file HTML con le loro immagini.",
"engine.p7m.name": "File firmati (integrato)",
"engine.p7m.description": "Estrae il file firmato da un .p7m (CMS / PKCS #7: fatture elettroniche, PDF firmati) e lo converte. La firma non viene verificata né conservata: tieni il .p7m come prova.",
+"engine.word-backup.name": "Backup di Word (integrato)",
+"engine.word-backup.description": "Apre le copie di backup di Word (.wbk) come il DOCX o DOC di Word 97–2003 al loro interno e le converte.",
"engine.data.name": "Dati (integrato)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML e CSV convertibili tra loro.\nContatti vCard ed eventi iCalendar in CSV e viceversa.\nI commenti vengono eliminati. Il CSV contiene solo tabelle.",
"engine.vector.name": "Grafica vettoriale (integrato)",
diff --git a/src/Filee.App/Assets/i18n/ja.json b/src/Filee.App/Assets/i18n/ja.json
index 5bb56bcd1..8bd414fe3 100644
--- a/src/Filee.App/Assets/i18n/ja.json
+++ b/src/Filee.App/Assets/i18n/ja.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "この .p7m は署名だけでなく暗号化されています。受信者の鍵でしか開けません",
"error.p7m_unknown_content": "この .p7m の中のファイルは、Filee が変換できない形式です",
"error.p7m_too_large": "署名付きファイルが大きすぎて開けません",
+ "error.wbk_not_word": "この .wbk ファイルには Word 文書が含まれていません。",
"error.document_too_large": "この文書は展開するとデータが大きすぎるか、入れ子が深すぎるため、安全に開けません",
"format_request.request": "この形式への対応をリクエスト",
"format_request.notice_title": "Fileeはまだ{0}ファイルを変換できません",
@@ -268,6 +269,8 @@
"engine.email.description": "メール(EML、Outlook MSG)を、差出人、宛先、日付、画像を含めてHTMLとテキストに変換します。添付ファイルはZIPにまとめます。\nMSGからEMLへの変換にも対応します。画像を含む保存済みのWebページ(MHTML)を、1つのHTMLファイルに変換します。",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": ".p7m(CMS / PKCS #7:イタリアの電子請求書、署名付き PDF など)から署名されたファイルを取り出して変換します。署名は検証せず、結果にも残りません。証明が必要な場合は .p7m を保管してください。",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Word のバックアップコピー(.wbk)を内部の DOCX または Word 97–2003 DOC として開き、変換します。",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON、JSON Lines、YAML、TOML、XML、CSVを相互変換します。\nvCardの連絡先とiCalendarの予定をCSVと相互変換できます。\nコメントは削除されます。CSVで扱えるのは表形式のデータだけです。",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/ko.json b/src/Filee.App/Assets/i18n/ko.json
index 628a909d0..69ff44a53 100644
--- a/src/Filee.App/Assets/i18n/ko.json
+++ b/src/Filee.App/Assets/i18n/ko.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "이 .p7m은 서명만이 아니라 암호화돼 있어요. 받는 사람의 키로만 열 수 있어요",
"error.p7m_unknown_content": "이 .p7m 안의 파일은 Filee가 변환하지 않는 형식이에요",
"error.p7m_too_large": "서명 파일이 너무 커서 열 수 없어요",
+ "error.wbk_not_word": "이 .wbk 파일에는 Word 문서가 들어 있지 않아요.",
"error.document_too_large": "이 문서는 풀면 데이터가 너무 크거나 너무 깊이 중첩되어 있어서 안전하게 열 수 없어요",
"format_request.request": "이 형식 요청하기",
"format_request.notice_title": "아직 {0} 파일은 변환할 수 없어요",
@@ -275,6 +276,8 @@
"engine.email.description": "이메일(EML, Outlook MSG)을 보낸 사람·받는 사람·날짜와 본문 그림까지 담아 HTML·텍스트로 바꾸고, 첨부 파일은 ZIP으로 모아요.\nMSG는 EML로도 바꾸고, 저장한 웹 페이지(MHTML)는 그림까지 담긴 HTML 파일 하나로 바꿔요.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": ".p7m(CMS / PKCS #7: 이탈리아 전자 세금계산서, 서명된 PDF 등)에서 서명된 파일을 꺼내 이어서 변환해요. 서명은 확인하지 않고 결과에도 남지 않으니, 증명이 필요하면 .p7m을 보관해 주세요.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Word 백업 복사본(.wbk)을 안에 들어 있는 DOCX 또는 Word 97–2003 DOC로 열어 이어서 변환해요.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML, CSV를 서로 바꿔요.\nvCard 연락처와 iCalendar 일정을 CSV로, CSV를 각각의 형식으로 바꿔요.\n주석은 빠져요. CSV는 표 모양 데이터만 담아요.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/mn.json b/src/Filee.App/Assets/i18n/mn.json
index fedabf278..51585dcdd 100644
--- a/src/Filee.App/Assets/i18n/mn.json
+++ b/src/Filee.App/Assets/i18n/mn.json
@@ -111,6 +111,7 @@
"error.p7m_encrypted": "Энэ .p7m файл нь зөвхөн гарын үсэгтэй бус шифрлэгдсэн байна: зөвхөн хүлээн авагчийн түлхүүрээр нээгдэнэ",
"error.p7m_unknown_content": "Энэ .p7m доторх файл нь Filee хөрвүүлдэггүй төрлийн файл байна",
"error.p7m_too_large": "Гарын үсэгтэй файл нээхэд хэт том байна",
+ "error.wbk_not_word": "Энэ .wbk файлд Word баримт байхгүй байна.",
"error.document_too_large": "Энэ баримт нь задлахад хэт их өгөгдөлтэй эсвэл аюулгүй нээхэд хэт гүн давхарлагдсан байна",
"format_request.request": "Энэ форматыг хүсэх",
"format_request.notice_title": "Filee одоогоор {0} файлыг хөрвүүлж чадахгүй байна",
@@ -267,6 +268,8 @@
"engine.email.description": "Имэйлүүдийг (EML, Outlook MSG) илгээгч, хүлээн авагч, огноо, зургуудын хамт HTML болон текст рүү, хавсралтуудыг ZIP рүү хөрвүүлнэ.\nMSG-г EML рүү. Хадгалсан вэб хуудсыг (MHTML) зургуудынх нь хамт нэг HTML файл болгоно.",
"engine.p7m.name": "Гарын үсэгтэй файл (суурилагдсан)",
"engine.p7m.description": ".p7m (CMS / PKCS #7: Италийн цахим нэхэмжлэх, гарын үсэгтэй PDF) дотроос гарын үсэг зурсан файлыг гаргаж цааш хөрвүүлнэ. Гарын үсгийг шалгахгүй, хадгалахгүй тул баталгаа болгож .p7m файлаа хадгална уу.",
+ "engine.word-backup.name": "Word нөөц хуулбар (суурилагдсан)",
+ "engine.word-backup.description": "Word нөөц хуулбарыг (.wbk) дотор нь байгаа DOCX эсвэл Word 97–2003 DOC хэлбэрээр нээж цааш хөрвүүлнэ.",
"engine.data.name": "Өгөгдөл (суурилагдсан)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML болон CSV хоорондоо хөрвүүлнэ.\nvCard харилцагчид болон iCalendar үйл явдлуудыг CSV рүү болон буцааж хөрвүүлнэ.\nТайлбарууд (comments) хасагдана. CSV зөвхөн хүснэгт агуулна.",
"engine.vector.name": "Вектор график (суурилагдсан)",
diff --git a/src/Filee.App/Assets/i18n/ne.json b/src/Filee.App/Assets/i18n/ne.json
index c554c588a..d31eefb12 100644
--- a/src/Filee.App/Assets/i18n/ne.json
+++ b/src/Filee.App/Assets/i18n/ne.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "यो .p7m हस्ताक्षरित मात्र होइन, इन्क्रिप्ट गरिएको छ: प्रापकको कुञ्जीले मात्र खोल्छ",
"error.p7m_unknown_content": "यो .p7m भित्रको फाइल Filee ले रूपान्तरण नगर्ने प्रकारको हो",
"error.p7m_too_large": "हस्ताक्षरित फाइल खोल्न धेरै ठूलो छ",
+ "error.wbk_not_word": "यो .wbk फाइलमा Word कागजात छैन।",
"error.document_too_large": "यो कागजात खोल्दा धेरै ठूलो डेटा बन्छ वा धेरै गहिरोसम्म नेस्ट गरिएको छ, त्यसैले सुरक्षित रूपमा खोल्न सकिँदैन",
"error.merge_paper_geometry": "पृष्ठको आकार, घुमाइ वा एकाइ मान्य छैन, त्यसैले यसलाई छानिएको कागजमा मिलाउन सकिँदैन",
"error.merge_paper_limit": "कागजको आकार बदल्न पृष्ठले प्रशोधन सीमा नाघ्यो",
@@ -268,6 +269,8 @@
"engine.email.description": "इमेलहरू (EML, Outlook MSG) लाई प्रेषक, प्राप्तकर्ता र मितिसहित HTML र पाठमा रूपान्तरण गर्दछ, तस्बिरहरूसहित; संलग्नकहरू ZIP मा।\nMSG लाई EML मा। सुरक्षित वेब पृष्ठहरू (MHTML) लाई तिनका तस्बिरहरूसहित एउटै HTML फाइलमा।",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": ".p7m (CMS / PKCS #7: इटालियन ई-इनभ्वाइस, हस्ताक्षरित PDF) बाट हस्ताक्षरित फाइल निकाल्छ र अगाडि रूपान्तरण गर्छ। हस्ताक्षर जाँच गरिँदैन र नतिजामा रहँदैन: प्रमाणका लागि .p7m राख्नुहोस्।",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Word ब्याकअप प्रतिलिपिहरू (.wbk) लाई भित्र रहेको DOCX वा Word 97–2003 DOC को रूपमा खोलेर अगाडि रूपान्तरण गर्छ।",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML र CSV एकअर्कामा।\nvCard सम्पर्कहरू र iCalendar घटनाहरू CSV मा, र CSV बाट तिनीहरूमा।\nटिप्पणीहरू हटाइन्छन्। CSV मा तालिका मात्र रहन्छ।",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/pl.json b/src/Filee.App/Assets/i18n/pl.json
index 1e0a177cf..4b952a219 100644
--- a/src/Filee.App/Assets/i18n/pl.json
+++ b/src/Filee.App/Assets/i18n/pl.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "Ten .p7m jest zaszyfrowany, a nie tylko podpisany: otworzy go tylko klucz odbiorcy",
"error.p7m_unknown_content": "Plik w tym .p7m jest typu, którego Filee nie konwertuje",
"error.p7m_too_large": "Podpisany plik jest za duży, by go otworzyć",
+ "error.wbk_not_word": "Ten plik .wbk nie zawiera dokumentu Word.",
"error.document_too_large": "Ten dokument rozpakowuje się do zbyt dużej ilości danych lub jest zagnieżdżony zbyt głęboko, by bezpiecznie go otworzyć",
"error.merge_paper_geometry": "Strona ma nieprawidłowy rozmiar, obrót lub jednostki i nie można jej dopasować do wybranego papieru",
"error.merge_paper_limit": "Strona przekracza limit przetwarzania przy zmianie rozmiaru papieru",
@@ -275,6 +276,8 @@
"engine.email.description": "E-maile (EML, Outlook MSG) do HTML i tekstu z nadawcą, odbiorcami i datą, razem z obrazami; załączniki do ZIP.\nMSG do EML. Zapisane strony internetowe (MHTML) do jednego pliku HTML razem z obrazami.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "Wyjmuje podpisany plik z .p7m (CMS / PKCS #7: włoskie e-faktury, podpisane PDF) i konwertuje go dalej. Podpis nie jest sprawdzany ani zachowywany: zachowaj .p7m jako dowód.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Otwiera kopie zapasowe programu Word (.wbk) jako zawarty w nich plik DOCX lub Word 97–2003 DOC i konwertuje je dalej.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML i CSV między sobą.\nKontakty vCard i wydarzenia iCalendar do CSV i z powrotem.\nKomentarze są pomijane. CSV przechowuje tylko tabele.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/pt-BR.json b/src/Filee.App/Assets/i18n/pt-BR.json
index 71818f7ab..05d778326 100644
--- a/src/Filee.App/Assets/i18n/pt-BR.json
+++ b/src/Filee.App/Assets/i18n/pt-BR.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "Este .p7m está criptografado, não só assinado: só a chave do destinatário o abre",
"error.p7m_unknown_content": "O arquivo dentro deste .p7m é de um tipo que o Filee não converte",
"error.p7m_too_large": "O arquivo assinado é grande demais para abrir",
+ "error.wbk_not_word": "Este arquivo .wbk não contém um documento do Word.",
"error.document_too_large": "Este documento se descompacta em dados demais ou está aninhado fundo demais para ser aberto com segurança",
"error.merge_paper_geometry": "A página tem tamanho, rotação ou unidades inválidos e não pode ser ajustada ao papel selecionado",
"error.merge_paper_limit": "A página excede o limite de processamento para alterar o tamanho do papel",
@@ -275,6 +276,8 @@
"engine.email.description": "E-mails (EML, MSG do Outlook) para HTML e texto, com remetente, destinatários e data, imagens incluídas; anexos num ZIP.\nMSG para EML. Páginas da web salvas (MHTML) para um único arquivo HTML com as imagens.",
"engine.p7m.name": "Arquivos assinados (mecanismo integrado)",
"engine.p7m.description": "Tira o arquivo assinado de um .p7m (CMS / PKCS #7: notas fiscais eletrônicas italianas, PDFs assinados) e continua a conversão. A assinatura não é verificada nem mantida: guarde o .p7m como prova.",
+ "engine.word-backup.name": "Backups do Word (mecanismo integrado)",
+ "engine.word-backup.description": "Abre cópias de backup do Word (.wbk) como o DOCX ou DOC do Word 97–2003 contido nelas e continua a conversão.",
"engine.data.name": "Dados (mecanismo integrado)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML e CSV entre si.\nContatos vCard e eventos iCalendar para CSV e de volta.\nComentários são descartados. CSV guarda só tabelas.",
"engine.vector.name": "Gráficos vetoriais (mecanismo integrado)",
diff --git a/src/Filee.App/Assets/i18n/pt-PT.json b/src/Filee.App/Assets/i18n/pt-PT.json
index 3818e09a9..ac8a934f5 100644
--- a/src/Filee.App/Assets/i18n/pt-PT.json
+++ b/src/Filee.App/Assets/i18n/pt-PT.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "Este .p7m está encriptado, não só assinado: só a chave do destinatário o abre",
"error.p7m_unknown_content": "O ficheiro dentro deste .p7m é de um tipo que o Filee não converte",
"error.p7m_too_large": "O ficheiro assinado é demasiado grande para abrir",
+ "error.wbk_not_word": "Este ficheiro .wbk não contém um documento do Word.",
"error.document_too_large": "Este documento descomprime-se em demasiados dados ou está aninhado demasiado fundo para ser aberto em segurança",
"error.merge_paper_geometry": "A página tem um tamanho, uma rotação ou unidades inválidos e não pode ser ajustada ao papel selecionado",
"error.merge_paper_limit": "A página excede o limite de processamento para alterar o tamanho do papel",
@@ -275,6 +276,8 @@
"engine.email.description": "E-mails (EML, MSG do Outlook) para HTML e texto com remetente, destinatários, data e imagens; anexos para ZIP.\nMSG para EML. Páginas Web guardadas (MHTML) para um ficheiro HTML com as respetivas imagens.",
"engine.p7m.name": "Ficheiros assinados (motor integrado)",
"engine.p7m.description": "Tira o ficheiro assinado de um .p7m (CMS / PKCS #7: faturas eletrónicas italianas, PDF assinados) e continua a conversão. A assinatura não é verificada nem mantida: guarda o .p7m como prova.",
+ "engine.word-backup.name": "Cópias de segurança do Word (motor integrado)",
+ "engine.word-backup.description": "Abre cópias de segurança do Word (.wbk) como o DOCX ou DOC do Word 97–2003 contido nelas e continua a conversão.",
"engine.data.name": "Dados (motor integrado)",
"engine.data.description": "Converte entre JSON, JSON Lines, YAML, TOML, XML e CSV.\nContactos vCard e eventos iCalendar para CSV e vice-versa.\nOs comentários são removidos. O CSV só guarda tabelas.",
"engine.vector.name": "Gráficos vetoriais (motor integrado)",
diff --git a/src/Filee.App/Assets/i18n/ru.json b/src/Filee.App/Assets/i18n/ru.json
index 1a75737d2..8347c1814 100644
--- a/src/Filee.App/Assets/i18n/ru.json
+++ b/src/Filee.App/Assets/i18n/ru.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "Этот .p7m зашифрован, а не только подписан: открыть его может только ключ получателя",
"error.p7m_unknown_content": "Файл внутри этого .p7m имеет тип, который Filee не конвертирует",
"error.p7m_too_large": "Подписанный файл слишком большой, чтобы его открыть",
+ "error.wbk_not_word": "Этот файл .wbk не содержит документ Word.",
"error.document_too_large": "Этот документ распаковывается в слишком большой объём данных или вложен слишком глубоко, чтобы его можно было безопасно открыть",
"error.merge_paper_geometry": "У страницы неверный размер, поворот или единицы измерения — её нельзя вписать в выбранный формат бумаги",
"error.merge_paper_limit": "Страница превышает предел обработки при изменении формата бумаги",
@@ -275,6 +276,8 @@
"engine.email.description": "Письма (EML, Outlook MSG) — в HTML и текст с отправителем, получателями и датой, вместе с картинками; вложения — в ZIP.\nMSG в EML. Сохранённые веб-страницы (MHTML) — в один HTML-файл с картинками.",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "Извлекает подписанный файл из .p7m (CMS / PKCS #7: итальянские электронные счета, подписанные PDF) и конвертирует его дальше. Подпись не проверяется и не сохраняется: храните .p7m как доказательство.",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "Открывает резервные копии Word (.wbk) как содержащийся внутри DOCX или DOC Word 97–2003 и конвертирует их дальше.",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML и CSV друг в друга.\nКонтакты vCard и события iCalendar в CSV и обратно.\nКомментарии отбрасываются. CSV хранит только таблицы.",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/th.json b/src/Filee.App/Assets/i18n/th.json
index 2cab196af..f419ec9bc 100644
--- a/src/Filee.App/Assets/i18n/th.json
+++ b/src/Filee.App/Assets/i18n/th.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": ".p7m นี้ถูกเข้ารหัส ไม่ใช่แค่ลงนาม: เปิดได้ด้วยกุญแจของผู้รับเท่านั้น",
"error.p7m_unknown_content": "ไฟล์ใน .p7m นี้เป็นชนิดที่ Filee ไม่แปลง",
"error.p7m_too_large": "ไฟล์ที่ลงนามใหญ่เกินกว่าจะเปิดได้",
+ "error.wbk_not_word": "ไฟล์ .wbk นี้ไม่มีเอกสาร Word อยู่ภายใน",
"error.document_too_large": "เอกสารนี้แตกออกเป็นข้อมูลมากเกินไปหรือซ้อนกันลึกเกินไป จึงเปิดอย่างปลอดภัยไม่ได้",
"format_request.request": "ขอให้รองรับฟอร์แมตนี้",
"format_request.notice_title": "Filee ยังไม่สามารถแปลงไฟล์ {0} ได้",
@@ -268,6 +269,8 @@
"engine.email.description": "อีเมล (EML, Outlook MSG) เป็น HTML และข้อความ พร้อมผู้ส่ง ผู้รับ วันที่ และรูปภาพ แนบไฟล์ลงใน ZIP\nMSG เป็น EML บันทึกหน้าเว็บ (MHTML) เป็นไฟล์ HTML ไฟล์เดียวพร้อมรูปภาพ",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "ดึงไฟล์ที่ลงนามออกจาก .p7m (CMS / PKCS #7: ใบแจ้งหนี้อิเล็กทรอนิกส์ของอิตาลี, PDF ที่ลงนาม) แล้วแปลงต่อ ไม่มีการตรวจสอบลายเซ็นและลายเซ็นจะไม่อยู่ในผลลัพธ์: เก็บ .p7m ไว้เป็นหลักฐาน",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "เปิดสำเนาสำรองของ Word (.wbk) เป็นไฟล์ DOCX หรือ Word 97–2003 DOC ที่อยู่ภายในแล้วแปลงต่อ",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML และ CSV สลับกันได้\nรายชื่อติดต่อ vCard และกิจกรรม iCalendar เป็น CSV และกลับกัน\nความคิดเห็นจะถูกตัดออก CSV เก็บเฉพาะตารางเท่านั้น",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/tr.json b/src/Filee.App/Assets/i18n/tr.json
index 89e6dc091..616375795 100644
--- a/src/Filee.App/Assets/i18n/tr.json
+++ b/src/Filee.App/Assets/i18n/tr.json
@@ -112,6 +112,7 @@
"error.p7m_encrypted": "Bu .p7m yalnızca imzalı değil, şifreli: yalnızca alıcının anahtarı açabilir",
"error.p7m_unknown_content": "Bu .p7m içindeki dosya, Filee'nin dönüştürmediği bir türde",
"error.p7m_too_large": "İmzalı dosya açılamayacak kadar büyük",
+ "error.wbk_not_word": "Bu .wbk dosyasında bir Word belgesi yok.",
"error.document_too_large": "Bu belge açıldığında çok fazla veriye dönüşüyor ya da çok derin iç içe geçmiş, güvenle açılamıyor",
"format_request.request": "Bu biçimi talep et",
"format_request.notice_title": "Filee henüz {0} dosyalarını dönüştüremiyor",
@@ -268,6 +269,8 @@
"engine.email.description": "E-postaları (EML, Outlook MSG) gönderen, alıcı, tarih ve görselleriyle HTML ve metne; ekleri ZIP'e dönüştürür.\nMSG → EML. Kaydedilmiş web sayfalarını (MHTML) görselleriyle tek bir HTML dosyasına dönüştürür.",
"engine.p7m.name": "İmzalı dosyalar (yerleşik)",
"engine.p7m.description": ".p7m dosyasından (CMS / PKCS #7: İtalyan e-faturaları, imzalı PDF'ler) imzalı dosyayı çıkarır ve dönüştürmeye devam eder. İmza doğrulanmaz ve sonuçta kalmaz: kanıt olarak .p7m'yi saklayın.",
+ "engine.word-backup.name": "Word yedekleri (yerleşik)",
+ "engine.word-backup.description": "Word yedek kopyalarını (.wbk) içindeki DOCX veya Word 97–2003 DOC olarak açar ve dönüştürmeye devam eder.",
"engine.data.name": "Veri (yerleşik)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML ve CSV arasında dönüştürme.\nvCard kişileri ve iCalendar etkinlikleri → CSV ve tersi.\nYorumlar çıkarılır. CSV yalnızca tablo tutar.",
"engine.vector.name": "Vektör grafikler (yerleşik)",
diff --git a/src/Filee.App/Assets/i18n/vi.json b/src/Filee.App/Assets/i18n/vi.json
index fe1b141b0..10a694b05 100644
--- a/src/Filee.App/Assets/i18n/vi.json
+++ b/src/Filee.App/Assets/i18n/vi.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "Tệp .p7m này được mã hóa chứ không chỉ được ký: chỉ khóa của người nhận mới mở được",
"error.p7m_unknown_content": "Tệp bên trong .p7m này thuộc loại Filee không chuyển đổi",
"error.p7m_too_large": "Tệp đã ký quá lớn để mở",
+ "error.wbk_not_word": "Tệp .wbk này không chứa tài liệu Word.",
"error.document_too_large": "Tài liệu này giải nén ra quá nhiều dữ liệu hoặc lồng nhau quá sâu nên không thể mở an toàn",
"format_request.request": "Yêu cầu định dạng này",
"format_request.notice_title": "Filee chưa thể chuyển đổi tệp {0}",
@@ -275,6 +276,8 @@
"engine.email.description": "Email (EML, Outlook MSG) sang HTML và văn bản kèm người gửi, người nhận và ngày, có cả ảnh; tệp đính kèm vào một tệp ZIP.\nMSG sang EML. Trang web đã lưu (MHTML) sang một tệp HTML kèm ảnh.",
"engine.p7m.name": "Tệp đã ký (tích hợp)",
"engine.p7m.description": "Lấy tệp đã ký ra khỏi .p7m (CMS / PKCS #7: hóa đơn điện tử Ý, PDF đã ký) rồi chuyển đổi tiếp. Chữ ký không được kiểm tra và không có trong kết quả: hãy giữ tệp .p7m làm bằng chứng.",
+ "engine.word-backup.name": "Bản sao lưu Word (tích hợp)",
+ "engine.word-backup.description": "Mở bản sao lưu Word (.wbk) dưới dạng DOCX hoặc Word 97–2003 DOC bên trong rồi chuyển đổi tiếp.",
"engine.data.name": "Dữ liệu (tích hợp)",
"engine.data.description": "JSON, JSON Lines, YAML, TOML, XML và CSV chuyển đổi qua lại.\nDanh bạ vCard và sự kiện iCalendar sang CSV và ngược lại.\nChú thích bị bỏ đi. CSV chỉ chứa bảng.",
"engine.vector.name": "Đồ họa vector (tích hợp)",
diff --git a/src/Filee.App/Assets/i18n/zh-CN.json b/src/Filee.App/Assets/i18n/zh-CN.json
index 54b065c87..e075ee92a 100644
--- a/src/Filee.App/Assets/i18n/zh-CN.json
+++ b/src/Filee.App/Assets/i18n/zh-CN.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "这个 .p7m 已加密,而不只是签名:只有收件人的密钥才能打开",
"error.p7m_unknown_content": "这个 .p7m 中的文件是 Filee 不转换的类型",
"error.p7m_too_large": "已签名的文件太大,无法打开",
+ "error.wbk_not_word": "此 .wbk 文件中不包含 Word 文档。",
"error.document_too_large": "此文档解压后数据过多或嵌套过深,无法安全打开",
"format_request.request": "请求支持此格式",
"format_request.notice_title": "Filee 暂时无法转换 {0} 文件",
@@ -275,6 +276,8 @@
"engine.email.description": "将电子邮件(EML、Outlook MSG)连同发件人、收件人、日期和图片转为 HTML 和文本,附件打包为 ZIP。\nMSG 也可转为 EML。保存的网页(MHTML)可连同图片转为单个 HTML 文件。",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "从 .p7m(CMS / PKCS #7:意大利电子发票、已签名的 PDF)中取出已签名的文件并继续转换。不验证签名,结果中也不保留签名:如需证明请保留 .p7m。",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "将 Word 备份副本(.wbk)作为其中的 DOCX 或 Word 97–2003 DOC 打开并继续转换。",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON、JSON Lines、YAML、TOML、XML、CSV 互相转换。\nvCard 联系人和 iCalendar 日程与 CSV 互转。\n注释不保留。CSV 仅支持表格数据。",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Assets/i18n/zh-TW.json b/src/Filee.App/Assets/i18n/zh-TW.json
index dcdf6813d..b5d3accd7 100644
--- a/src/Filee.App/Assets/i18n/zh-TW.json
+++ b/src/Filee.App/Assets/i18n/zh-TW.json
@@ -118,6 +118,7 @@
"error.p7m_encrypted": "這個 .p7m 已加密,而不只是簽署:只有收件人的金鑰才能開啟",
"error.p7m_unknown_content": "這個 .p7m 中的檔案是 Filee 不轉換的類型",
"error.p7m_too_large": "已簽署的檔案太大,無法開啟",
+ "error.wbk_not_word": "此 .wbk 檔案中不包含 Word 文件。",
"error.document_too_large": "此文件解壓縮後資料過多或巢狀層級過深,無法安全開啟",
"format_request.request": "請求支援此格式",
"format_request.notice_title": "Filee 暫時無法轉換 {0} 檔案",
@@ -275,6 +276,8 @@
"engine.email.description": "將電子郵件(EML、Outlook MSG)連同發件人、收件人、日期和圖片轉為 HTML 和文字,附件打包為 ZIP。\nMSG 也可轉為 EML。儲存的網頁(MHTML)可連同圖片轉為單個 HTML 檔案。",
"engine.p7m.name": "Signed files (built-in)",
"engine.p7m.description": "從 .p7m(CMS / PKCS #7:義大利電子發票、已簽署的 PDF)中取出已簽署的檔案並繼續轉換。不驗證簽章,結果中也不保留簽章:如需證明請保留 .p7m。",
+ "engine.word-backup.name": "Word backups (built-in)",
+ "engine.word-backup.description": "將 Word 備份複本(.wbk)作為其中的 DOCX 或 Word 97–2003 DOC 開啟並繼續轉換。",
"engine.data.name": "Data (built-in)",
"engine.data.description": "JSON、JSON Lines、YAML、TOML、XML、CSV 互相轉換。\nvCard 聯絡人和 iCalendar 行程與 CSV 互轉。\n註釋不保留。CSV 僅支援表格資料。",
"engine.vector.name": "Vector graphics (built-in)",
diff --git a/src/Filee.App/Services/PresetAvailability.cs b/src/Filee.App/Services/PresetAvailability.cs
index 98baddc60..ca8ef2a9d 100644
--- a/src/Filee.App/Services/PresetAvailability.cs
+++ b/src/Filee.App/Services/PresetAvailability.cs
@@ -288,13 +288,18 @@ private PresetJudgement Evaluate(Preset preset, IReadOnlyList format
// "Translate": Ollama / Translator translates documents and e-books.
if (preset.Translate.Enabled)
{
- var docFiles = formats.Where(f => preset.TranslatesDocument(f.Id)).ToList();
+ var docFiles = formats.Where(f => preset.TranslatesDocument(f.Id)
+ || EnvelopeInnerFormats(f.Id).Any(preset.TranslatesDocument)).ToList();
if (docFiles.Count == 0)
return new(PresetUse.Unusable, _loc["error.unsupported_source"]);
bool CanTranslate(RoutePlanner planner) => docFiles.Any(f =>
{
- var target = TargetFor(f);
- return planner.CanConvert(f.Id, target, translate: true);
+ if (preset.TranslatesDocument(f.Id))
+ return planner.CanConvert(f.Id, TargetForId(f.Id), translate: true);
+ return EnvelopeInnerFormats(f.Id).Any(inner =>
+ preset.TranslatesDocument(inner)
+ && planner.CanConvert(f.Id, inner)
+ && planner.CanConvert(inner, TargetForId(inner), translate: true));
});
if (CanTranslate(installedPlanner()))
return new(PresetUse.Usable, null);
@@ -331,30 +336,34 @@ bool Joinable(RoutePlanner planner) => formats.Any(f => preset.Media.Slideshow
var merge = preset.Pdf.MergeIntoSingle && preset.TargetFormat == "pdf";
var turns = preset.Image.TurnsOrMirrors;
// The sound's own format is known only from the file: FFmpeg's video → MKA stands for every one of them.
- string TargetFor(FileFormat f) => preset.TargetFormat == BuiltInData.SameAsAudio ? "mka"
+ string TargetForId(string formatId) => preset.TargetFormat == BuiltInData.SameAsAudio ? "mka"
: preset.TargetFormat != BuiltInData.SameAsSource ? preset.TargetFormat
- : preset.CropsVideo ? VideoCrop.TargetFor(f.Id) : f.Id;
+ : preset.CropsVideo ? VideoCrop.TargetFor(formatId) : formatId;
var copiesUnturned = false;
- bool Possible(RoutePlanner planner) => formats.Any(f =>
+ bool CanConvertOne(RoutePlanner planner, string fromId)
{
- var target = TargetFor(f);
- if (merge && f.Id == "pdf" && !turns && !preset.RecognizesTextOf(f.Id))
+ var target = TargetForId(fromId);
+ if (merge && fromId == "pdf" && !turns && !preset.RecognizesTextOf(fromId))
return true; // merged as it is
- var frames = preset.SavesFramesOf(f.Id);
- var motion = preset.ExtractsMotionOf(f.Id);
- var live = preset.MakesLivePhotoOf(f.Id);
- var ocr = preset.RecognizesTextOf(f.Id);
- var translate = preset.TranslatesDocument(f.Id);
+ var frames = preset.SavesFramesOf(fromId);
+ var motion = preset.ExtractsMotionOf(fromId);
+ var live = preset.MakesLivePhotoOf(fromId);
+ var ocr = preset.RecognizesTextOf(fromId);
+ var translate = preset.TranslatesDocument(fromId);
if (!turns)
- return planner.CanConvert(f.Id, target, frames, motionPhoto: motion, livePhoto: live, ocr: ocr, translate: translate);
+ return planner.CanConvert(fromId, target, frames, motionPhoto: motion, livePhoto: live, ocr: ocr, translate: translate);
// Rotate / flip: a route only counts when an engine on it turns images (not a PDF or a video copied).
- if (planner.Plan(f.Id, target, frames, motionPhoto: motion, livePhoto: live, ocr: ocr, translate: translate) is not { } route)
+ if (planner.Plan(fromId, target, frames, motionPhoto: motion, livePhoto: live, ocr: ocr, translate: translate) is not { } route)
return false;
if (route.FirstTransformStep() >= 0)
return true;
copiesUnturned = true;
return false;
- });
+ }
+ bool Possible(RoutePlanner planner) => formats.Any(f =>
+ CanConvertOne(planner, f.Id)
+ || (!copiesUnturned && EnvelopeInnerFormats(f.Id).Any(inner =>
+ planner.CanConvert(f.Id, inner) && CanConvertOne(planner, inner))));
if (Possible(installedPlanner()))
return new(PresetUse.Usable, null);
@@ -365,4 +374,12 @@ bool Possible(RoutePlanner planner) => formats.Any(f =>
? new(PresetUse.NeedsPackage, _loc.Format("engine.reason.needs_package", package.Name))
: new(PresetUse.Unusable, _loc["error.no_route"]);
}
+
+ // The formats an envelope such as .wbk may hold, so a preset counts as usable when the format inside can reach its
+ // target. A named envelope (.p7m) already has an edge to every format and is left as it was.
+ private IEnumerable EnvelopeInnerFormats(string formatId) => FormatRegistry.IsNamedEnvelope(formatId) ? []
+ : _catalog.All
+ .Where(c => c is IEnvelopeOpener opener && opener.Opens(formatId))
+ .SelectMany(c => c.Edges.Where(e => e.From.Equals(formatId, StringComparison.OrdinalIgnoreCase)).Select(e => e.To))
+ .Distinct(StringComparer.OrdinalIgnoreCase);
}
diff --git a/src/Filee.Core/Formats/FormatFields.cs b/src/Filee.Core/Formats/FormatFields.cs
index 194290a31..f6c614e43 100644
--- a/src/Filee.Core/Formats/FormatFields.cs
+++ b/src/Filee.Core/Formats/FormatFields.cs
@@ -67,7 +67,7 @@ .. Enum.GetValues().Select(category => category.ToString().ToLow
(FormatGrade.General,
[
"tiff", "bmp", "ico", "avif", "jxl", "tga", "apng", "jxr", "livp", "exe", "svg", "svgz", "emf", "vsd", "odg", "canvas",
- "docm", "dotx", "dotm", "doc", "odt", "ott", "rtf", "wps", "ofd", "abw", "pages", "pub", "eml", "msg",
+ "docm", "dotx", "dotm", "doc", "wbk", "odt", "ott", "rtf", "wps", "ofd", "abw", "pages", "pub", "eml", "msg",
"p7m", "xlsm", "xltx", "xls", "ods", "ots", "tsv", "et", "numbers", "pptm", "potx", "potm", "ppsx", "ppt",
"odp", "otp", "key", "dps", "md", "html", "mhtml", "opml", "json", "xml", "vcf", "ics", "epub", "kepub",
"azw3", "fb2", "cbz", "cbr", "cb7", "cbt", "cbc", "m4v", "mkv", "webm", "avi", "wmv", "mpg", "ts",
diff --git a/src/Filee.Core/Formats/FormatRegistry.cs b/src/Filee.Core/Formats/FormatRegistry.cs
index e21e99f0f..761ffbe37 100644
--- a/src/Filee.Core/Formats/FormatRegistry.cs
+++ b/src/Filee.Core/Formats/FormatRegistry.cs
@@ -116,6 +116,9 @@ public static class FormatRegistry
new("dotm", "DOTM", FormatCategory.Document, ["dotm"]),
new("doc", "DOC", FormatCategory.Document, ["doc"]),
new("dot", "DOT", FormatCategory.Document, ["dot"], Writable: false),
+ // Word backup copy ("Always create backup copy", #1840): either a DOCX (ZIP) or a Word 97–2003 DOC (OLE),
+ // opened as whichever format is inside (IEnvelopeOpener).
+ new("wbk", "WBK", FormatCategory.Document, ["wbk"], Writable: false),
new("odt", "ODT", FormatCategory.Document, ["odt"]),
new("fodt", "FODT", FormatCategory.Document, ["fodt"]),
new("ott", "OTT", FormatCategory.Document, ["ott"]),
@@ -521,6 +524,12 @@ public static string NameWithoutExtension(string path)
return Envelopes.Contains(extension) && Detect(stem) is not null ? NameWithoutExtension(stem) : stem;
}
+ ///
+ /// Whether a format is an envelope named after the file inside ("invoice.pdf.p7m"). Its opener declares an edge to
+ /// every format, so it needs no look at the formats it may hold.
+ ///
+ public static bool IsNamedEnvelope(string formatId) => Envelopes.Contains(formatId);
+
/// Extensions of envelopes, which are named after the file inside ().
private static readonly HashSet Envelopes = new(["p7m"], StringComparer.OrdinalIgnoreCase);
}
diff --git a/src/Filee.Core/Settings/AppSettings.cs b/src/Filee.Core/Settings/AppSettings.cs
index b055f2bf0..10cad7dc0 100644
--- a/src/Filee.Core/Settings/AppSettings.cs
+++ b/src/Filee.Core/Settings/AppSettings.cs
@@ -186,7 +186,7 @@ public static bool IsFlipKeyAllowed(string key, IEnumerable gest
public sealed class AppSettings
{
/// Current schema version. Increase when the format changes and add a migration.
- public const int CurrentSchemaVersion = 107;
+ public const int CurrentSchemaVersion = 108;
public int SchemaVersion { get; set; } = CurrentSchemaVersion;
diff --git a/src/Filee.Core/Settings/UserDataStore.cs b/src/Filee.Core/Settings/UserDataStore.cs
index 58c3e25ca..6d5a90618 100644
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@ -1251,6 +1251,9 @@ public static bool ApplyToLibrary(int from, List presets, List p.Id != id))
changed |= AddLikeNewLibrary(presets, id);
}
+ // v108: Word backup copies (.wbk, #1840) learn the documents donut; custom claims stay put.
+ if (from < 108)
+ changed |= LearnExtensions(profiles, out _, ["wbk"]);
return changed;
}
diff --git a/src/Filee.Engines/EngineRegistry.cs b/src/Filee.Engines/EngineRegistry.cs
index 91f321af6..67939a38e 100644
--- a/src/Filee.Engines/EngineRegistry.cs
+++ b/src/Filee.Engines/EngineRegistry.cs
@@ -66,6 +66,7 @@ public static IReadOnlyList CreateAll(EngineEnvironment env, ILogger
new DocumentTablesConverter(),
new EmlConverter(),
new P7mConverter(),
+ new WordBackupConverter(),
new DataConverter(),
new SubtitleConverter(),
new WicImageConverter(),
diff --git a/src/Filee.Engines/Office/WordBackupConverter.cs b/src/Filee.Engines/Office/WordBackupConverter.cs
new file mode 100644
index 000000000..3cddc182e
--- /dev/null
+++ b/src/Filee.Engines/Office/WordBackupConverter.cs
@@ -0,0 +1,92 @@
+// Word backup copies (.wbk, #1840): the backup Word writes when "Always create backup copy" is on. Inside is either an
+// ordinary DOCX (a ZIP containing word/document.xml) or, when the original was a .doc, an OLE compound file holding a
+// Word 97–2003 document. Filee checks the first bytes (IEnvelopeOpener) and passes the unchanged copy on under the
+// format inside, so every existing DOCX and DOC route applies.
+
+using System.IO.Compression;
+using Filee.Core.Conversion;
+using Filee.Engines.Infrastructure;
+
+namespace Filee.Engines.Office;
+
+/// Word backup copies (.wbk) → the DOCX or DOC inside them.
+public sealed class WordBackupConverter : IConverter, IEnvelopeOpener
+{
+ private static readonly byte[] OleSignature = [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1];
+
+ public string Id => "word-backup";
+ public string DisplayName => "Word backups (built-in)";
+ public int MaxParallelism => 0;
+
+ public IReadOnlyList Edges { get; } =
+ [
+ new("wbk", "docx"),
+ new("wbk", "doc"),
+ ];
+
+ public EngineStatus GetStatus() => EngineStatus.Available("WBK → DOCX, DOC", EngineVersions.BuiltIn);
+
+ public bool Opens(string format) => format == "wbk";
+
+ public string InnerFormat(string path, string format) =>
+ DetectKind(path) ?? throw new ConversionRefusedException("error.wbk_not_word");
+
+ public async Task> ConvertAsync(ConversionStep step, IProgress? progress, CancellationToken cancellationToken)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ if (DetectKind(step.InputPath) != step.To)
+ throw new ConversionRefusedException("error.wbk_not_word");
+ progress?.Report(0.1);
+
+ var output = step.Output.Allocate(step.To);
+ if (output is null)
+ return [];
+
+ var temp = $"{output}.{Guid.NewGuid():N}.tmp";
+ try
+ {
+ await using (var source = new FileStream(step.InputPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1 << 16, useAsync: true))
+ await using (var destination = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None, 1 << 16, useAsync: true))
+ await source.CopyToAsync(destination, cancellationToken);
+ File.Move(temp, output, overwrite: true);
+ }
+ finally
+ {
+ if (File.Exists(temp))
+ File.Delete(temp);
+ }
+
+ progress?.Report(1);
+ return [output];
+ }
+
+ ///
+ /// The Word format stored in : "docx" for an OOXML ZIP with
+ /// word/document.xml, "doc" for an OLE compound file, or null for anything else.
+ ///
+ internal static string? DetectKind(string path)
+ {
+ Span head = stackalloc byte[8];
+ int read;
+ using (var stream = File.OpenRead(path))
+ read = stream.ReadAtLeast(head, head.Length, throwOnEndOfStream: false);
+ if (read >= OleSignature.Length && head.SequenceEqual(OleSignature))
+ return "doc";
+ if (read >= 4 && head[..4].SequenceEqual("PK\x03\x04"u8))
+ return HasWordDocument(path) ? "docx" : null;
+ return null;
+ }
+
+ private static bool HasWordDocument(string path)
+ {
+ try
+ {
+ using var zip = ZipFile.OpenRead(path);
+ return zip.GetEntry("word/document.xml") is not null;
+ }
+ catch (InvalidDataException)
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/Filee.App.Tests/ToolbarEditorTests.cs b/tests/Filee.App.Tests/ToolbarEditorTests.cs
index 645715673..89f86a7e9 100644
--- a/tests/Filee.App.Tests/ToolbarEditorTests.cs
+++ b/tests/Filee.App.Tests/ToolbarEditorTests.cs
@@ -1170,6 +1170,44 @@ public void Choosing_a_donut_returns_before_judging_and_the_dispatcher_finishes_
Assert.Null(vm.Palette.Single(c => c.PresetId == "test-jpg").Reason);
Assert.True(vm.Palette.Single(c => c.PresetId == "test-mp4").IsDimmed);
}
+
+ private sealed class FakeWbkOpener() : FakeConverter("word-backup", ("wbk", "docx"), ("wbk", "doc")), IEnvelopeOpener
+ {
+ public bool Opens(string format) => format == "wbk";
+ public string InnerFormat(string path, string format) => throw new NotSupportedException("No content preflight.");
+ }
+
+ [AvaloniaFact]
+ public void Word_backup_envelope_keeps_four_hop_png_direct_only_xlsx_and_translate_available()
+ {
+ using var f = new Fixture();
+ var converters = new IConverter[]
+ {
+ new FakeWbkOpener(),
+ new FakeConverter("hwpx-writer", ("docx", "hwpx")),
+ new FakeConverter("rhwp", ("hwpx", "pdf")),
+ new FakeConverter("pdfium", ("pdf", "png")),
+ new FakeConverter("document-tables", [new ConversionEdge("docx", "xlsx", DirectOnly: true)]),
+ new FakeConverter("translator", [new ConversionEdge("docx", "docx", Translate: true)]),
+ new FakeConverter("libreoffice", ("doc", "odt")) { Available = false },
+ };
+ var catalog = new ConverterCatalog(converters);
+ var packages = EngineDownloads.Packages.Where(p => p.Id == "libreoffice")
+ .Select(p => new EnginePackageState(p, f.Loc) { Status = EnginePackageStatus.NotInstalled }).ToList();
+ var availability = new PresetAvailability(catalog, f.Loc, packages);
+ var wbk = new[] { FormatRegistry.Get("wbk") };
+
+ Assert.Null(availability.Check(new Preset { Id = "to-png", TargetFormat = "png" }, wbk));
+ Assert.Null(availability.Check(new Preset { Id = "to-xlsx", TargetFormat = "xlsx" }, wbk));
+ Assert.Null(availability.Check(new Preset
+ {
+ Id = "translate",
+ TargetFormat = BuiltInData.SameAsSource,
+ Translate = { Enabled = true },
+ }, wbk));
+ Assert.NotNull(availability.Check(new Preset { Id = "to-mp4", TargetFormat = "mp4" }, wbk));
+ Assert.Contains("LibreOffice", availability.Check(new Preset { Id = "to-odt", TargetFormat = "odt" }, wbk));
+ }
}
public class ToolbarPaletteModelTests
diff --git a/tests/Filee.Core.Tests/FormatFieldsTests.cs b/tests/Filee.Core.Tests/FormatFieldsTests.cs
index bf14ff186..2475ea0ed 100644
--- a/tests/Filee.Core.Tests/FormatFieldsTests.cs
+++ b/tests/Filee.Core.Tests/FormatFieldsTests.cs
@@ -144,7 +144,7 @@ public void Grade_counts_match_the_published_table()
new Dictionary
{
[FormatGrade.Everyday] = 19,
- [FormatGrade.General] = 99,
+ [FormatGrade.General] = 100,
[FormatGrade.Specialist] = 145,
[FormatGrade.Legacy] = 52,
},
diff --git a/tests/Filee.Core.Tests/WbkFormatTests.cs b/tests/Filee.Core.Tests/WbkFormatTests.cs
new file mode 100644
index 000000000..648cae88c
--- /dev/null
+++ b/tests/Filee.Core.Tests/WbkFormatTests.cs
@@ -0,0 +1,53 @@
+// Word backup copies (.wbk, #1840): a read-only document format on the documents donut, learned by existing libraries
+// without taking custom claims. Unlike .p7m, .wbk is not in FormatRegistry.Envelopes (Word names backups "Backup of X.wbk").
+
+using Filee.Core.Formats;
+using Filee.Core.Presets;
+using Filee.Core.Profiles;
+using Filee.Core.Settings;
+
+namespace Filee.Core.Tests;
+
+public class WbkFormatTests
+{
+ [Theory]
+ [InlineData("Backup of Report.wbk")]
+ [InlineData("BACKUP.WBK")]
+ public void A_wbk_uses_the_documents_donut(string file)
+ {
+ Assert.Same(FormatRegistry.Get("wbk"), FormatRegistry.Detect(file));
+ Assert.Equal("office", ProfileSelector.Select(BuiltInData.CreateProfiles(), [file])?.Id);
+ }
+
+ [Fact]
+ public void A_wbk_is_a_read_only_general_document_format()
+ {
+ var wbk = FormatRegistry.Get("wbk");
+ Assert.Equal(FormatCategory.Document, wbk.Category);
+ Assert.False(wbk.Writable);
+ Assert.Equal(FormatGrade.General, FormatFields.GradeOf(wbk));
+ Assert.Equal(["document"], FormatFields.Of(wbk).Select(f => f.Id));
+ Assert.Equal("Backup of Report", FormatRegistry.NameWithoutExtension("Backup of Report.wbk"));
+ Assert.Equal("report.docx", FormatRegistry.NameWithoutExtension("report.docx.wbk"));
+ }
+
+ [Fact]
+ public void Version_107_libraries_learn_wbk_without_taking_custom_claims()
+ {
+ var presets = BuiltInData.CreatePresets();
+ var profiles = BuiltInData.CreateProfiles();
+ var office = profiles.Single(p => p.Id == "office");
+ office.Extensions.Remove("wbk");
+
+ Assert.True(SettingsMigrations.ApplyToLibrary(107, presets, profiles));
+ Assert.Contains("wbk", office.Extensions);
+ Assert.False(SettingsMigrations.ApplyToLibrary(107, presets, profiles));
+ Assert.False(SettingsMigrations.ApplyToLibrary(108, presets, profiles));
+
+ office.Extensions.Remove("wbk");
+ profiles.Insert(0, new ToolbarProfile { Id = "my-wbk", Extensions = ["WBK"] });
+ Assert.False(SettingsMigrations.ApplyToLibrary(107, presets, profiles));
+ Assert.DoesNotContain("wbk", office.Extensions); // the user's own donut has it
+ Assert.Equal("my-wbk", ProfileSelector.Select(profiles, ["Backup of Report.wbk"])?.Id);
+ }
+}
diff --git a/tests/Filee.Engines.Tests/WordBackupTests.cs b/tests/Filee.Engines.Tests/WordBackupTests.cs
new file mode 100644
index 000000000..bbcdecceb
--- /dev/null
+++ b/tests/Filee.Engines.Tests/WordBackupTests.cs
@@ -0,0 +1,161 @@
+// Word backup copies (.wbk, #1840): a DOCX (ZIP with word/document.xml) or a Word 97–2003 DOC (OLE) is detected by
+// its first bytes and copied unchanged under its inner format, then converted on along the normal DOCX / DOC routes.
+
+using System.IO.Compression;
+using System.Text;
+using Filee.Core.Conversion;
+using Filee.Core.Presets;
+using Filee.Engines.Office;
+
+namespace Filee.Engines.Tests;
+
+public sealed class WordBackupTests(EngineFixture fx) : IClassFixture
+{
+ private static readonly byte[] OleHeader = [0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1];
+
+ private string WriteDocxBackup(string name, string text = "Hello from Word backup")
+ {
+ var path = Path.Combine(fx.NewFolder(), name);
+ new DocxBuilder().Paragraph(DocxBuilder.P(DocxBuilder.R(text))).Save(path);
+ return path;
+ }
+
+ private string WriteBytes(string name, byte[] bytes)
+ {
+ var path = Path.Combine(fx.NewFolder(), name);
+ File.WriteAllBytes(path, bytes);
+ return path;
+ }
+
+ private static byte[] ZipWith(string entryName, string content)
+ {
+ using var stream = new MemoryStream();
+ using (var zip = new ZipArchive(stream, ZipArchiveMode.Create, leaveOpen: true))
+ {
+ using var writer = new StreamWriter(zip.CreateEntry(entryName).Open(), new UTF8Encoding(false));
+ writer.Write(content);
+ }
+ return stream.ToArray();
+ }
+
+ private static void AssertDone(ConversionJob job) =>
+ Assert.True(job.State == JobState.Completed, string.Join("; ", job.Files.Select(f => $"{f.ErrorKey} {f.ErrorDetail}")));
+
+ [Fact]
+ public async Task Zip_backup_resolves_to_docx_and_copies_unchanged()
+ {
+ var wbk = WriteDocxBackup("Backup of Report.wbk");
+ var expected = await File.ReadAllBytesAsync(wbk, TestContext.Current.CancellationToken);
+ var converter = new WordBackupConverter();
+
+ Assert.Equal("docx", converter.InnerFormat(wbk, "wbk"));
+
+ var job = await fx.ConvertAsync([wbk], new Preset { TargetFormat = "docx" });
+
+ AssertDone(job);
+ var output = job.Outputs.Single();
+ Assert.Equal(Path.Combine(Path.GetDirectoryName(wbk)!, "Backup of Report.docx"), output);
+ Assert.Equal(expected, await File.ReadAllBytesAsync(output, TestContext.Current.CancellationToken));
+ Assert.True(File.Exists(wbk));
+ }
+
+ [Fact]
+ public async Task Ole_backup_resolves_to_doc_and_copies_unchanged()
+ {
+ var expected = OleHeader.Concat(Encoding.ASCII.GetBytes("legacy-word-97-2003-payload")).ToArray();
+ var wbk = WriteBytes("Backup of Legacy.wbk", expected);
+ var converter = new WordBackupConverter();
+
+ Assert.Equal("doc", converter.InnerFormat(wbk, "wbk"));
+
+ var job = await fx.ConvertAsync([wbk], new Preset { TargetFormat = "doc" });
+
+ AssertDone(job);
+ var output = job.Outputs.Single();
+ Assert.Equal(Path.Combine(Path.GetDirectoryName(wbk)!, "Backup of Legacy.doc"), output);
+ Assert.Equal(expected, await File.ReadAllBytesAsync(output, TestContext.Current.CancellationToken));
+ Assert.True(File.Exists(wbk));
+ }
+
+ [Fact]
+ public async Task Non_word_inputs_are_refused_with_error_wbk_not_word()
+ {
+ var converter = new WordBackupConverter();
+ var random = WriteBytes("random.wbk", [0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09]);
+ var empty = WriteBytes("empty.wbk", []);
+ var plainZip = WriteBytes("archive.wbk", ZipWith("readme.txt", "not a word document"));
+ var brokenZip = WriteBytes("broken.wbk", "PK\x03\x04not-a-valid-zip-body"u8.ToArray());
+
+ foreach (var bad in new[] { random, empty, plainZip, brokenZip })
+ {
+ var ex = Assert.Throws(() => converter.InnerFormat(bad, "wbk"));
+ Assert.Equal("error.wbk_not_word", ex.ErrorKey);
+ Assert.Null(ex.Detail);
+ }
+
+ foreach (var bad in new[] { random, plainZip, brokenZip })
+ {
+ var job = await fx.ConvertAsync([bad], new Preset { TargetFormat = "docx" });
+ Assert.Equal(JobState.Failed, job.State);
+ Assert.Equal("error.wbk_not_word", job.Files.Single().ErrorKey);
+ Assert.Null(job.Files.Single().ErrorDetail);
+ }
+ }
+
+ [Fact]
+ public async Task Refused_conversion_does_not_destroy_an_existing_output_file()
+ {
+ var folder = fx.NewFolder();
+ var bad = Path.Combine(folder, "Report.wbk");
+ var existing = Path.Combine(folder, "Report.docx");
+ await File.WriteAllBytesAsync(bad, ZipWith("readme.txt", "not word"), TestContext.Current.CancellationToken);
+ await File.WriteAllTextAsync(existing, "keep-me", TestContext.Current.CancellationToken);
+
+ var preset = new Preset
+ {
+ TargetFormat = "docx",
+ Output = { Conflict = ConflictPolicy.Overwrite },
+ };
+ var job = await fx.ConvertAsync([bad], preset);
+
+ Assert.Equal(JobState.Failed, job.State);
+ Assert.Equal("error.wbk_not_word", job.Files.Single().ErrorKey);
+ Assert.True(File.Exists(existing));
+ Assert.Equal("keep-me", await File.ReadAllTextAsync(existing, TestContext.Current.CancellationToken));
+
+ // Direct step call with mismatched target format also leaves an existing output untouched.
+ var ole = Path.Combine(folder, "Legacy.wbk");
+ var existingDocx = Path.Combine(folder, "Legacy.docx");
+ await File.WriteAllBytesAsync(ole, [.. OleHeader, 1, 2, 3, 4], TestContext.Current.CancellationToken);
+ await File.WriteAllTextAsync(existingDocx, "still-here", TestContext.Current.CancellationToken);
+
+ var converter = new WordBackupConverter();
+ var step = new ConversionStep(ole, "wbk", "docx", preset, new FixedAllocator(existingDocx), fx.NewFolder());
+ var ex = await Assert.ThrowsAsync(() => converter.ConvertAsync(step, null, TestContext.Current.CancellationToken));
+ Assert.Equal("error.wbk_not_word", ex.ErrorKey);
+ Assert.Equal("still-here", await File.ReadAllTextAsync(existingDocx, TestContext.Current.CancellationToken));
+ }
+
+ [Fact]
+ public async Task Zip_backup_converts_end_to_end_to_txt_and_md_through_the_planner()
+ {
+ var wbk = WriteDocxBackup("Meeting Notes.wbk", "Quarterly review action items");
+
+ var toTxt = await fx.ConvertAsync([wbk], new Preset { TargetFormat = "txt" });
+ AssertDone(toTxt);
+ var txtPath = toTxt.Outputs.Single();
+ Assert.Equal("Meeting Notes.txt", Path.GetFileName(txtPath));
+ Assert.Contains("Quarterly review action items", await File.ReadAllTextAsync(txtPath, TestContext.Current.CancellationToken));
+
+ var toMd = await fx.ConvertAsync([wbk], new Preset { TargetFormat = "md" });
+ AssertDone(toMd);
+ var mdPath = toMd.Outputs.Single();
+ Assert.Equal("Meeting Notes.md", Path.GetFileName(mdPath));
+ Assert.Contains("Quarterly review action items", await File.ReadAllTextAsync(mdPath, TestContext.Current.CancellationToken));
+ }
+
+ private sealed class FixedAllocator(string path) : IOutputAllocator
+ {
+ public string? Allocate(string extension, string? suffix = null) => path;
+ }
+}