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.

Merge origin/main: document formats, codecs and subtitles, more image formats (data and e-mail settings migration is now schema 14; 238 formats)

KnifeLemon311f4465f6c2
diff --cc README.ko.md
index ea37b5ba,a390fba4..bb2e8b49
--- a/README.ko.md
+++ b/README.ko.md
@@@ -29,7 -29,7 +29,7 @@@
<table>
<tr>
<td width="33%" valign="top"><b>커서 바로 옆에서</b><br>앱 창을 열 필요가 없어요. 끌고 있는 파일에 맞는 형식만 지금 있는 자리에 나타나요.</td>
- <td width="33%" valign="top"><b>180가지 형식, 다른 프로그램 없이</b><br>이미지, PDF, 워드, 엑셀, 파워포인트, HWP, 전자책, 압축 파일, 글꼴, CAD를 오피스·한컴오피스·LibreOffice 없이 변환해요.</td>
- <td width="33%" valign="top"><b>230가지 형식, 다른 프로그램 없이</b><br>이미지, PDF, 워드, 엑셀, 파워포인트, HWP, 전자책, 압축 파일, 글꼴, CAD를 오피스·한컴오피스·LibreOffice 없이 변환해요.</td>
++ <td width="33%" valign="top"><b>238가지 형식, 다른 프로그램 없이</b><br>이미지, PDF, 워드, 엑셀, 파워포인트, HWP, 전자책, 압축 파일, 글꼴, CAD를 오피스·한컴오피스·LibreOffice 없이 변환해요.</td>
<td width="33%" valign="top"><b>내 컴퓨터 안에서만</b><br>아무것도 업로드하지 않아요. 오프라인으로 동작하고 결과는 원본 옆에 저장해요.</td>
</tr>
</table>
@@@ -81,21 -81,21 +81,23 @@@
| 원본 | 변환 대상 |
|---|---|
- | **이미지**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC; GIMP XCF, 카메라 RAW(CR2, CR3, NEF, ARW, DNG 등)는 읽기 | 위 형식끼리(HEIC⁵), PDF, 크기 조정, 흑백 |
- | **벡터**: SVG, SVGZ, EMF, WMF, AI · EPS, PS¹ · CDR, VSD, CGM, ODG² | PDF(벡터), PNG 등 이미지, SVG ↔ SVGZ, PDF → EPS/PS¹ |
- | **PDF** | DOCX, HWPX, TXT, PNG, JPG, TIFF, CBZ; 합치기, 나누기, 페이지 범위 |
- | **문서**: DOCX, DOCM, DOTX, EML, Outlook MSG · DOC, ODT, RTF, WPS, WPD, Pages 등² | PDF, DOCX, HWPX, EPUB, TXT, HTML; MSG → EML |
- | **스프레드시트**: XLSX, XLSM, XLS, ODS, CSV, TSV · Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, JSON, HWPX, HTML |
- | **프레젠테이션**: PPTX, PPTM, POTX, PPSX · PPT, ODP, Keynote² | PDF, PNG, JPG, DOCX, HWPX |
+ | **이미지**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, APNG, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC, QOI, DDS, PCX, MNG, CUR 등; GIMP XCF, 카메라 RAW(CR2, CR3, NEF, ARW, DNG 등), DICOM, OpenEXR, HDR은 읽기 | 위 형식끼리(HEIC⁵), PDF, 크기 조정, 흑백 |
+ | **벡터**: SVG, SVGZ, EMF, WMF, AI · EPS, PS¹ · CDR, VSD, CGM, ODG, FODG² | PDF(벡터), PNG 등 이미지, SVG ↔ SVGZ, PDF → EPS/PS¹, SVG → EMF, WMF, ODG² |
+ | **PDF** | DOCX, HWPX, TXT, PNG, JPG, TIFF, CBZ, SVG²; 합치기, 나누기, 페이지 범위 |
-| **문서**: DOCX, DOCM, DOTX, EML · DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602 등² | PDF, DOCX, HWPX, EPUB, TXT, HTML · ODT, FODT, OTT² |
-| **스프레드시트**: XLSX, XLSM, XLS, XLT, ODS, CSV, TSV · OTS, FODS, Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, HWPX, HTML · XLT, OTS² |
++| **문서**: DOCX, DOCM, DOTX, EML, Outlook MSG · DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602 등² | PDF, DOCX, HWPX, EPUB, TXT, HTML; MSG → EML · ODT, FODT, OTT² |
++| **스프레드시트**: XLSX, XLSM, XLS, XLT, ODS, CSV, TSV · OTS, FODS, Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, JSON, HWPX, HTML · XLT, OTS² |
+ | **프레젠테이션**: PPTX, PPTM, POTX, PPSX · PPT, ODP, OTP, FODP, Keynote² | PDF, PNG, JPG, DOCX, HWPX · OTP² |
| **한글**: HWP, HWPX | PDF, PNG, DOCX, HWPX ↔ HWP, TXT, 마크다운, HTML |
- | **텍스트**: TXT, 마크다운, HTML · reStructuredText, LaTeX³ | PDF, DOCX, HWPX, EPUB |
- | **전자책**: EPUB, MOBI, AZW3, AZW, AZW4, FB2, CBZ, CBR, CB7, HTMLZ, TXTZ · LIT, LRF, CHM, PDB 등⁴ | PDF, EPUB, DOCX, TXT, HTML, HWPX · MOBI, AZW3⁴ |
- | **동영상**⁵: MP4, MOV, MKV, WEBM, AVI, WMV, FLV, MPEG, TS, M2TS, 3GP, OGV, VOB 등 | MP4, WEBM, MOV, MKV, AVI, GIF, MP3, M4A, 720p |
- | **오디오**⁵: MP3, M4A, AAC, WAV, FLAC, OGG, OPUS, WMA, AIFF, AMR 등 | MP3, M4A, WAV, FLAC, OGG, OPUS, AAC |
+ | **텍스트**: TXT, 마크다운, HTML · reStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter, Textile, man, OPML³ | PDF, DOCX, HWPX, EPUB · 서로 변환, PPTX 슬라이드³ |
+ | **전자책**: EPUB, KEPUB, MOBI, AZW3, AZW, AZW4, FB2, CBZ, CBR, CB7, HTMLZ, TXTZ · LIT, LRF, CHM, PDB 등⁴ | PDF, EPUB, KEPUB(코보), DOCX, TXT, HTML, HWPX · MOBI, AZW3⁴ |
+ | **동영상**⁵: MP4, MOV, MKV, WEBM, AVI, WMV, FLV, MPEG, TS, M2TS, 3GP, OGV, VOB 등 | MP4(H.264, HEVC, AV1), WEBM, MOV, MKV, AVI, GIF, APNG, MP3, M4A, 720p, 자막(SRT, ASS, WebVTT) |
+ | **오디오**⁵: MP3, M4A, AAC, WAV, FLAC, OGG, OPUS, WMA, AIFF, AMR, APE, WavPack, TTA, DSD(DSF, DFF), DTS, AC3, E-AC3 등 | MP3, M4A(AAC, ALAC), WAV, FLAC, OGG, OPUS, AAC, WavPack, TTA, W64, AC3, E-AC3 |
+ | **자막**: SRT, ASS/SSA, WebVTT, SAMI(SMI), LRC, TTML, MicroDVD, SCC | 서로 변환, UTF-8로 저장(CP949 한글 자막도 깨지지 않아요) |
| **압축 파일**: ZIP, 7Z, RAR, TAR, TAR.GZ, TAR.BZ2, TAR.XZ, GZ, ISO, CAB, DMG, ALZ, EGG 등 | 압축 풀기, ZIP, 7Z, TAR, TAR.GZ; 여러 파일 → ZIP 하나 |
| **CAD**: DWG, DXF | PDF, SVG, PNG, DWG ↔ DXF |
| **글꼴**: TTF, OTF, WOFF, WOFF2, EOT | 서로 변환 |
+| **데이터**: JSON, JSON Lines, YAML, TOML, XML · vCard | 서로 변환, CSV·XLSX(표 모양 데이터); vCard ↔ CSV |
++| **데이터**: JSON, JSON Lines, YAML, TOML, XML · vCard | 서로 변환, CSV·XLSX(표 모양 데이터); vCard ↔ CSV |
표시가 없는 형식은 오피스·한컴오피스·LibreOffice 없이 바로 변환돼요.
표시가 있는 형식은 추가 엔진이 필요하고, 필요할 때만 내려받아요: ¹ Ghostscript, ² LibreOffice, ³ Pandoc,
diff --cc README.md
index 868e336c,34064fee..cf1fec9f
--- a/README.md
+++ b/README.md
@@@ -29,7 -29,7 +29,7 @@@
<table>
<tr>
<td width="33%" valign="top"><b>Right at your cursor</b><br>No app window to open. The formats appear where you already are, only the ones that make sense for the files you drag.</td>
- <td width="33%" valign="top"><b>180 formats, no other software</b><br>Images, PDF, Word, Excel, PowerPoint, HWP, e-books, archives, fonts and CAD work without Office, Hancom Office or LibreOffice.</td>
- <td width="33%" valign="top"><b>230 formats, no other software</b><br>Images, PDF, Word, Excel, PowerPoint, HWP, e-books, archives, fonts and CAD work without Office, Hancom Office or LibreOffice.</td>
++ <td width="33%" valign="top"><b>238 formats, no other software</b><br>Images, PDF, Word, Excel, PowerPoint, HWP, e-books, archives, fonts and CAD work without Office, Hancom Office or LibreOffice.</td>
<td width="33%" valign="top"><b>Stays on your computer</b><br>Nothing is uploaded. Filee works offline and saves the result next to the original.</td>
</tr>
</table>
@@@ -81,21 -81,21 +81,23 @@@ Filee shows new releases in its menu an
| From | To |
|---|---|
- | **Images**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC; GIMP XCF, camera RAW (CR2, CR3, NEF, ARW, DNG, …) read | any of these (HEIC⁵), PDF, resized, grayscale |
- | **Vector**: SVG, SVGZ, EMF, WMF, AI · EPS, PS¹ · CDR, VSD, CGM, ODG² | PDF (vector), PNG and other images, SVG ↔ SVGZ, PDF → EPS/PS¹ |
- | **PDF** | DOCX, HWPX, TXT, PNG, JPG, TIFF, CBZ; merge, split, page ranges |
- | **Documents**: DOCX, DOCM, DOTX, EML, Outlook MSG · DOC, ODT, RTF, WPS, WPD, Pages, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML; MSG → EML |
- | **Spreadsheets**: XLSX, XLSM, XLS, ODS, CSV, TSV · Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, JSON, HWPX, HTML |
- | **Presentations**: PPTX, PPTM, POTX, PPSX · PPT, ODP, Keynote² | PDF, PNG, JPG, DOCX, HWPX |
+ | **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, …; GIMP XCF, camera RAW (CR2, CR3, NEF, ARW, DNG, …), DICOM, OpenEXR, HDR read | any of these (HEIC⁵), PDF, resized, grayscale |
+ | **Vector**: SVG, SVGZ, EMF, WMF, AI · EPS, PS¹ · CDR, VSD, CGM, ODG, FODG² | PDF (vector), PNG and other images, SVG ↔ SVGZ, PDF → EPS/PS¹, SVG → EMF, WMF, ODG² |
+ | **PDF** | DOCX, HWPX, TXT, PNG, JPG, TIFF, CBZ, SVG²; merge, split, page ranges |
-| **Documents**: DOCX, DOCM, DOTX, EML · DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML · ODT, FODT, OTT² |
-| **Spreadsheets**: XLSX, XLSM, XLS, XLT, ODS, CSV, TSV · OTS, FODS, Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, HWPX, HTML · XLT, OTS² |
++| **Documents**: DOCX, DOCM, DOTX, EML, Outlook MSG · DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML; 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, PPSX · PPT, ODP, OTP, FODP, Keynote² | PDF, PNG, JPG, DOCX, HWPX · OTP² |
| **HWP**: HWP, HWPX | PDF, PNG, DOCX, HWPX ↔ HWP, TXT, Markdown, HTML |
- | **Text**: TXT, Markdown, HTML · reStructuredText, LaTeX³ | PDF, DOCX, HWPX, EPUB |
- | **E-books**: EPUB, MOBI, AZW3, AZW, AZW4, FB2, CBZ, CBR, CB7, HTMLZ, TXTZ · LIT, LRF, CHM, PDB, …⁴ | PDF, EPUB, DOCX, TXT, HTML, HWPX · MOBI, AZW3⁴ |
- | **Video**⁵: MP4, MOV, MKV, WEBM, AVI, WMV, FLV, MPEG, TS, M2TS, 3GP, OGV, VOB, … | MP4, WEBM, MOV, MKV, AVI, GIF, MP3, M4A, 720p |
- | **Audio**⁵: MP3, M4A, AAC, WAV, FLAC, OGG, OPUS, WMA, AIFF, AMR, … | MP3, M4A, WAV, FLAC, OGG, OPUS, AAC |
+ | **Text**: TXT, Markdown, HTML · reStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter, Textile, man, OPML³ | PDF, DOCX, HWPX, EPUB · each other, PPTX slides³ |
+ | **E-books**: EPUB, KEPUB, MOBI, AZW3, AZW, AZW4, FB2, CBZ, CBR, CB7, HTMLZ, TXTZ · LIT, LRF, CHM, PDB, …⁴ | PDF, EPUB, KEPUB (Kobo), DOCX, TXT, HTML, HWPX · MOBI, AZW3⁴ |
+ | **Video**⁵: MP4, MOV, MKV, WEBM, AVI, WMV, FLV, MPEG, TS, M2TS, 3GP, OGV, VOB, … | MP4 (H.264, HEVC, AV1), WEBM, MOV, MKV, AVI, GIF, APNG, MP3, M4A, 720p, subtitles (SRT, ASS, WebVTT) |
+ | **Audio**⁵: MP3, M4A, AAC, WAV, FLAC, OGG, OPUS, WMA, AIFF, AMR, APE, WavPack, TTA, DSD (DSF, DFF), DTS, AC3, E-AC3, … | MP3, M4A (AAC, ALAC), WAV, FLAC, OGG, OPUS, AAC, WavPack, TTA, W64, AC3, E-AC3 |
+ | **Subtitles**: SRT, ASS/SSA, WebVTT, SAMI (SMI), LRC, TTML, MicroDVD, SCC | each other as UTF-8 (Korean CP949 files read correctly) |
| **Archives**: ZIP, 7Z, RAR, TAR, TAR.GZ, TAR.BZ2, TAR.XZ, GZ, ISO, CAB, DMG, ALZ, EGG, … | extract, ZIP, 7Z, TAR, TAR.GZ; any files → one ZIP |
| **CAD**: DWG, DXF | PDF, SVG, PNG, DWG ↔ DXF |
| **Fonts**: TTF, OTF, WOFF, WOFF2, EOT | each other |
+| **Data**: JSON, JSON Lines, YAML, TOML, XML · vCard | each other, CSV and XLSX (tables); vCard ↔ CSV |
++| **Data**: JSON, JSON Lines, YAML, TOML, XML · vCard | each other, CSV and XLSX (tables); vCard ↔ CSV |
Unmarked formats work out of the box, without Office, Hancom Office or LibreOffice.
Marked ones need an optional engine, downloaded only when needed: ¹ Ghostscript, ² LibreOffice, ³ Pandoc, ⁴ calibre,
diff --cc README.zh-CN.md
index 07e3327e,0ae5aba2..c1cf92b8
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@@ -29,7 -29,7 +29,7 @@@
<table>
<tr>
<td width="33%" valign="top"><b>就在光标旁</b><br>无需打开应用窗口。只显示适合当前拖动文件的格式,就在你所在的位置。</td>
- <td width="33%" valign="top"><b>180 种格式,无需其他软件</b><br>图片、PDF、Word、Excel、PowerPoint、HWP、电子书、压缩包、字体和 CAD,无需 Office、韩文办公软件或 LibreOffice。</td>
- <td width="33%" valign="top"><b>230 种格式,无需其他软件</b><br>图片、PDF、Word、Excel、PowerPoint、HWP、电子书、压缩包、字体和 CAD,无需 Office、韩文办公软件或 LibreOffice。</td>
++ <td width="33%" valign="top"><b>238 种格式,无需其他软件</b><br>图片、PDF、Word、Excel、PowerPoint、HWP、电子书、压缩包、字体和 CAD,无需 Office、韩文办公软件或 LibreOffice。</td>
<td width="33%" valign="top"><b>只在你的电脑上</b><br>不上传任何文件。Filee 离线工作,结果保存在原文件旁边。</td>
</tr>
</table>
@@@ -80,21 -80,21 +80,23 @@@
| 源格式 | 目标格式 |
|---|---|
- | **图片**:JPG、PNG、WEBP、AVIF、TIFF、BMP、GIF、ICO、ICNS、JPEG XL、JPEG 2000、PSD/PSB、TGA、PPM、HEIC;GIMP XCF、相机 RAW(CR2、CR3、NEF、ARW、DNG 等)仅读取 | 上述格式互转(HEIC⁵)、PDF、缩放、灰度 |
- | **矢量图**:SVG、SVGZ、EMF、WMF、AI · EPS、PS¹ · CDR、VSD、CGM、ODG² | PDF(矢量)、PNG 等图片、SVG ↔ SVGZ、PDF → EPS/PS¹ |
- | **PDF** | DOCX、HWPX、TXT、PNG、JPG、TIFF、CBZ;合并、拆分、页码范围 |
- | **文档**:DOCX、DOCM、DOTX、EML、Outlook MSG · DOC、ODT、RTF、WPS、WPD、Pages 等² | PDF、DOCX、HWPX、EPUB、TXT、HTML、MSG → EML |
- | **表格**:XLSX、XLSM、XLS、ODS、CSV、TSV · Numbers、ET² | PDF、XLSX、ODS、CSV、TSV、JSON、HWPX、HTML |
- | **演示文稿**:PPTX、PPTM、POTX、PPSX · PPT、ODP、Keynote² | PDF、PNG、JPG、DOCX、HWPX |
+ | **图片**:JPG、PNG、WEBP、AVIF、TIFF、BMP、GIF、APNG、ICO、ICNS、JPEG XL、JPEG 2000、PSD/PSB、TGA、PPM、HEIC、QOI、DDS、PCX、MNG、CUR 等;GIMP XCF、相机 RAW(CR2、CR3、NEF、ARW、DNG 等)、DICOM、OpenEXR、HDR 仅读取 | 上述格式互转(HEIC⁵)、PDF、缩放、灰度 |
+ | **矢量图**:SVG、SVGZ、EMF、WMF、AI · EPS、PS¹ · CDR、VSD、CGM、ODG、FODG² | PDF(矢量)、PNG 等图片、SVG ↔ SVGZ、PDF → EPS/PS¹、SVG → EMF、WMF、ODG² |
+ | **PDF** | DOCX、HWPX、TXT、PNG、JPG、TIFF、CBZ、SVG²;合并、拆分、页码范围 |
-| **文档**:DOCX、DOCM、DOTX、EML · DOC、ODT、FODT、OTT、RTF、WPS、WPD、Pages、ClarisWorks、MacWrite、T602 等² | PDF、DOCX、HWPX、EPUB、TXT、HTML · ODT、FODT、OTT² |
-| **表格**:XLSX、XLSM、XLS、XLT、ODS、CSV、TSV · OTS、FODS、Numbers、ET² | PDF、XLSX、ODS、CSV、TSV、HWPX、HTML · XLT、OTS² |
++| **文档**:DOCX、DOCM、DOTX、EML、Outlook MSG · DOC、ODT、FODT、OTT、RTF、WPS、WPD、Pages、ClarisWorks、MacWrite、T602 等² | PDF、DOCX、HWPX、EPUB、TXT、HTML、MSG → EML · ODT、FODT、OTT² |
++| **表格**:XLSX、XLSM、XLS、XLT、ODS、CSV、TSV · OTS、FODS、Numbers、ET² | PDF、XLSX、ODS、CSV、TSV、JSON、HWPX、HTML · XLT、OTS² |
+ | **演示文稿**:PPTX、PPTM、POTX、PPSX · PPT、ODP、OTP、FODP、Keynote² | PDF、PNG、JPG、DOCX、HWPX · OTP² |
| **HWP**:HWP、HWPX | PDF、PNG、DOCX、HWPX ↔ HWP、TXT、Markdown、HTML |
- | **文本**:TXT、Markdown、HTML · reStructuredText、LaTeX³ | PDF、DOCX、HWPX、EPUB |
- | **电子书**:EPUB、MOBI、AZW3、AZW、AZW4、FB2、CBZ、CBR、CB7、HTMLZ、TXTZ · LIT、LRF、CHM、PDB 等⁴ | PDF、EPUB、DOCX、TXT、HTML、HWPX · MOBI、AZW3⁴ |
- | **视频**⁵:MP4、MOV、MKV、WEBM、AVI、WMV、FLV、MPEG、TS、M2TS、3GP、OGV、VOB 等 | MP4、WEBM、MOV、MKV、AVI、GIF、MP3、M4A、720p |
- | **音频**⁵:MP3、M4A、AAC、WAV、FLAC、OGG、OPUS、WMA、AIFF、AMR 等 | MP3、M4A、WAV、FLAC、OGG、OPUS、AAC |
+ | **文本**:TXT、Markdown、HTML · reStructuredText、LaTeX、Org、AsciiDoc、Typst、MediaWiki、DocBook、Jupyter、Textile、man、OPML³ | PDF、DOCX、HWPX、EPUB · 互相转换、PPTX 幻灯片³ |
+ | **电子书**:EPUB、KEPUB、MOBI、AZW3、AZW、AZW4、FB2、CBZ、CBR、CB7、HTMLZ、TXTZ · LIT、LRF、CHM、PDB 等⁴ | PDF、EPUB、KEPUB(Kobo)、DOCX、TXT、HTML、HWPX · MOBI、AZW3⁴ |
+ | **视频**⁵:MP4、MOV、MKV、WEBM、AVI、WMV、FLV、MPEG、TS、M2TS、3GP、OGV、VOB 等 | MP4(H.264、HEVC、AV1)、WEBM、MOV、MKV、AVI、GIF、APNG、MP3、M4A、720p、字幕(SRT、ASS、WebVTT) |
+ | **音频**⁵:MP3、M4A、AAC、WAV、FLAC、OGG、OPUS、WMA、AIFF、AMR、APE、WavPack、TTA、DSD(DSF、DFF)、DTS、AC3、E-AC3 等 | MP3、M4A(AAC、ALAC)、WAV、FLAC、OGG、OPUS、AAC、WavPack、TTA、W64、AC3、E-AC3 |
+ | **字幕**:SRT、ASS/SSA、WebVTT、SAMI(SMI)、LRC、TTML、MicroDVD、SCC | 互相转换,保存为 UTF-8(也能读取 CP949 韩文字幕) |
| **压缩包**:ZIP、7Z、RAR、TAR、TAR.GZ、TAR.BZ2、TAR.XZ、GZ、ISO、CAB、DMG、ALZ、EGG 等 | 解压、ZIP、7Z、TAR、TAR.GZ;多个文件 → 一个 ZIP |
| **CAD**:DWG、DXF | PDF、SVG、PNG、DWG ↔ DXF |
| **字体**:TTF、OTF、WOFF、WOFF2、EOT | 互相转换 |
+| **数据**:JSON、JSON Lines、YAML、TOML、XML · vCard | 互相转换、CSV 和 XLSX(表格数据)、vCard ↔ CSV |
++| **数据**:JSON、JSON Lines、YAML、TOML、XML · vCard | 互相转换、CSV 和 XLSX(表格数据)、vCard ↔ CSV |
未标注的格式装好即用,无需 Office、韩文办公软件或 LibreOffice。
标注的格式需要可选引擎,只在需要时下载,分别是 ¹ Ghostscript、² LibreOffice、³ Pandoc、⁴ calibre、⁵ FFmpeg
diff --cc docs/ARCHITECTURE.md
index 2ea40406,0967421d..c8631cc1
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@@ -22,7 -22,7 +22,7 @@@
│ Built in: Magick (images, RAW) · PdfSharp · Pdfium · PdfPig · Svg.Skia · ICNS │
│ HwpxWriter + DocxWriter over DocumentReaders (DOCX, XLSX, XLS, ODS, PPTX, │
│ PDF, HTML, EPUB, MOBI, FB2, HWPX, Markdown) · Spreadsheets · OOXML variants │
- │ · E-mail · Data · E-books · CAD · Fonts │
- │ · E-mail · E-books · CAD · Fonts · Subtitles │
++ │ · E-mail · Data · E-books · CAD · Fonts · Subtitles │
│ Bundled: rhwp (HWP→PDF, HWP↔HWPX) · 7-Zip (archives) · Unhwp · Markdig │
│ Optional: FFmpeg · LibreOffice + H2Orestart · calibre · Ghostscript · Pandoc │
└────────────────────────────────────────────────────────────────────────────────────┘
diff --cc docs/ENGINES.md
index d345e2cf,93096fcc..91b63768
--- a/docs/ENGINES.md
+++ b/docs/ENGINES.md
@@@ -18,16 -18,16 +18,17 @@@ Filee chooses engines automatically. Se
| **HWPX writer** | built in | **DOCX (+ DOCM/DOTX/DOTM), XLSX (+ XLSM/XLTX), XLS, ODS, CSV, TSV, PPTX (+ PPTM/POTX/PPSX), PDF, HTML, EPUB, MOBI/AZW3, FB2, HWPX, TXT, Markdown → HWPX** (and with rhwp → PDF and images); ODT, RTF, reStructuredText, LaTeX → HWPX with Pandoc |
| **DOCX writer** | built in | **HWPX (and HWP through rhwp), PDF, HTML, EPUB, MOBI/AZW3, FB2, Markdown, TXT, XLSX, XLS, ODS, CSV, PPTX (+ variants) → DOCX** |
| PDF text | built in (PdfPig) | **PDF → TXT** (reading order, also two columns; no OCR) |
-| E-mail | built in (MimeKit) | **EML → HTML** (headers + body, inline pictures), **TXT**, **ZIP** (the attachments) |
+| E-mail | built in (MimeKit, MsgReader) | **EML, Outlook MSG → HTML** (headers + body, inline pictures), **TXT**, **ZIP** (the attachments); **MSG → EML** |
+| Data | built in (System.Text.Json, YamlDotNet, Tomlyn, System.Xml) | **JSON, JSON Lines, YAML, TOML, XML, CSV ↔ each other** (CSV for tables); **vCard ↔ CSV**; spreadsheets and contacts reach JSON / YAML / TOML / XML through CSV |
- | **E-books** | built in | **EPUB, MOBI/AZW/AZW3/PRC, FB2, HTMLZ, TXTZ → EPUB, HWPX (→ PDF), TXT, HTML, Markdown, FB2, HTMLZ, TXTZ**; HTML, Markdown, TXT, DOCX → EPUB/FB2/HTMLZ/TXTZ; HTML → TXT; comics CBZ/CBR/CB7/CBT/CBC → PDF, EPUB, CBZ; PDF → CBZ; AZW4 → PDF |
+ | **E-books** | built in | **EPUB, MOBI/AZW/AZW3/PRC, FB2, HTMLZ, TXTZ → EPUB, HWPX (→ PDF), TXT, HTML, Markdown, FB2, HTMLZ, TXTZ**; HTML, Markdown, TXT, DOCX → EPUB/FB2/HTMLZ/TXTZ; HTML → TXT; comics CBZ/CBR/CB7/CBT/CBC → PDF, EPUB, CBZ; PDF → CBZ; AZW4 → PDF; **EPUB ↔ KEPUB** (Kobo) |
| CAD (ACadSharp + built-in renderer) | built in (library) | **DWG ↔ DXF**; DWG/DXF → **PDF** (vector), **SVG**, PNG, JPG, WEBP, TIFF, BMP, GIF, ICO, AVIF |
+ | **Subtitles** | built in | **SRT, ASS/SSA, WebVTT, SAMI (SMI), LRC, TTML, MicroDVD, SCC → SRT, ASS, WebVTT, SAMI, LRC, TTML, MicroDVD**, always UTF-8 (Korean CP949 / EUC-KR files read correctly) |
| rhwp | bundled with the installer (`engines/rhwp`) | HWP/HWPX → PDF, **HWP → HWPX, HWPX → HWP** |
| Archives (7-Zip) | bundled with the installer (`engines/7zip`, ~2.5 MB) + built-in readers | ZIP, 7Z, RAR, TAR (+ GZ/BZ2/XZ/Z/7Z/LZ), CAB, ISO, DMG, … **→ folder, ZIP, 7Z, TAR, TAR.GZ/BZ2/XZ**; ALZ, EGG, lzip read in-process; "Compress into one archive" for any files |
- | 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 |
- | Pandoc | **optional download** (~42 MB, 240 MB on disk) | Markdown ↔ DOCX/ODT/RTF, DOCX/ODT/HTML/RTF → Markdown, HTML ↔ DOCX/ODT, reStructuredText and LaTeX ↔ Markdown/HTML/DOCX/ODT (and → RTF, EPUB, TXT) |
+ | 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) |
- | FFmpeg | **optional download** (~100 MB, 272 MB on disk) | **all video and audio**: video ↔ video, video → animated GIF or a still frame, audio extraction, audio ↔ audio, GIF and photos → MP4/WEBM/MOV, images → HEIC |
+ | FFmpeg | **optional download** (~100 MB, 272 MB on disk) | **all video and audio**: video ↔ video (H.264, HEVC, AV1), video → animated GIF / APNG or a still frame, audio and subtitle extraction, audio ↔ audio (also APE, WavPack, TTA, DSD, DTS, ALAC, …), GIF, APNG and photos → MP4/WEBM/MOV, 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 |
DOCX, XLSX, XLS, ODS and PPTX → PDF need neither Microsoft Office nor LibreOffice: they are read in-process, written as HWPX
diff --cc src/Filee.App/Assets/i18n/en.json
index e0af6097,e7cd3111..e84bf075
--- a/src/Filee.App/Assets/i18n/en.json
+++ b/src/Filee.App/Assets/i18n/en.json
@@@ -126,7 -127,7 +129,8 @@@
"format.category.Vector": "Vector",
"format.category.Cad": "CAD",
"format.category.Font": "Font",
+ "format.category.Subtitle": "Subtitle",
+ "format.category.Data": "Data",
"general.title": "General",
"general.language": "Language",
diff --cc src/Filee.App/Assets/i18n/ko.json
index bb4ea560,31870b84..b1ebc759
--- a/src/Filee.App/Assets/i18n/ko.json
+++ b/src/Filee.App/Assets/i18n/ko.json
@@@ -126,7 -127,7 +129,8 @@@
"format.category.Vector": "벡터",
"format.category.Cad": "CAD",
"format.category.Font": "글꼴",
+ "format.category.Subtitle": "자막",
+ "format.category.Data": "데이터",
"general.title": "일반",
"general.language": "언어",
diff --cc src/Filee.App/Assets/i18n/zh-CN.json
index 10960f6d,e35ec6f0..21d243a6
--- a/src/Filee.App/Assets/i18n/zh-CN.json
+++ b/src/Filee.App/Assets/i18n/zh-CN.json
@@@ -126,7 -127,7 +129,8 @@@
"format.category.Vector": "矢量图",
"format.category.Cad": "CAD",
"format.category.Font": "字体",
+ "format.category.Subtitle": "字幕",
+ "format.category.Data": "数据",
"general.title": "常规",
"general.language": "语言",
diff --cc src/Filee.App/ViewModels/PresetEditorViewModel.cs
index 04f998d1,fdadb370..83b089b1
--- a/src/Filee.App/ViewModels/PresetEditorViewModel.cs
+++ b/src/Filee.App/ViewModels/PresetEditorViewModel.cs
@@@ -232,9 -282,9 +282,9 @@@ public sealed partial class PresetEdito
public bool ShowWebp => TargetId is "webp" or BuiltInData.SameAsSource;
public bool ShowMultiPageTiff => TargetId is "tiff";
public bool ShowIco => TargetId == "ico";
- /// <summary>PDF options (also used when a PDF source becomes images) mean nothing for media, archive, font and data targets.</summary>
- public bool ShowPdf => TargetCategory is not (FormatCategory.Video or FormatCategory.Audio or FormatCategory.Archive or FormatCategory.Font or FormatCategory.Data)
- && TargetId != "eml";
- /// <summary>PDF options (also used when a PDF source becomes images) mean nothing for media, archive, font and subtitle targets.</summary>
++ /// <summary>PDF options (also used when a PDF source becomes images) mean nothing for media, archive, font, subtitle, data and e-mail targets.</summary>
+ public bool ShowPdf => TargetCategory is not (FormatCategory.Video or FormatCategory.Audio or FormatCategory.Archive or FormatCategory.Font
- or FormatCategory.Subtitle);
++ or FormatCategory.Subtitle or FormatCategory.Data) && TargetId != "eml";
public bool ShowPdfBuild => TargetId == "pdf";
public bool ShowPdfSplit => TargetId == "pdf";
diff --cc src/Filee.Core/Formats/FileFormat.cs
index 34a9f0a3,be5b50b9..f9d7a524
--- a/src/Filee.Core/Formats/FileFormat.cs
+++ b/src/Filee.Core/Formats/FileFormat.cs
@@@ -19,7 -19,7 +19,8 @@@ public enum FormatCategor
Vector,
Cad,
Font,
+ Subtitle,
+ Data,
}
/// <summary>
diff --cc src/Filee.Core/Formats/FormatRegistry.cs
index 9072ef07,eba6a086..0aef5519
--- a/src/Filee.Core/Formats/FormatRegistry.cs
+++ b/src/Filee.Core/Formats/FormatRegistry.cs
@@@ -65,9 -86,12 +86,13 @@@ public static class FormatRegistr
new("abw", "ABW", FormatCategory.Document, ["abw", "zabw"], Writable: false),
new("pages", "Pages", FormatCategory.Document, ["pages"], Writable: false),
new("sdw", "SDW", FormatCategory.Document, ["sdw"], Writable: false),
+ new("cwk", "ClarisWorks", FormatCategory.Document, ["cwk"], Writable: false),
+ new("mcw", "MacWrite", FormatCategory.Document, ["mcw"], Writable: false),
+ new("602", "T602", FormatCategory.Document, ["602"], Writable: false),
+ new("psw", "Pocket Word", FormatCategory.Document, ["psw"], Writable: false),
new("pub", "PUB", FormatCategory.Document, ["pub"], Writable: false),
- new("eml", "EML", FormatCategory.Document, ["eml"], Writable: false),
+ new("eml", "EML", FormatCategory.Document, ["eml"]),
+ new("msg", "MSG", FormatCategory.Document, ["msg"], Writable: false),
// Korean word processor (Hancom)
new("hwpx", "HWPX", FormatCategory.Hwp, ["hwpx"]),
@@@ -102,19 -131,21 +132,31 @@@
new("html", "HTML", FormatCategory.Text, ["html", "htm", "xhtml"]),
new("rst", "reStructuredText", FormatCategory.Text, ["rst"]),
new("tex", "LaTeX", FormatCategory.Text, ["tex", "latex"]),
+ // Read and written by Pandoc. Man pages claim only ".man": the section numbers (.1 … .9) are also the
+ // extensions of rotated logs ("app.log.1"). DocBook claims ".dbk", not every ".xml".
+ new("org", "Org", FormatCategory.Text, ["org"]),
+ new("adoc", "AsciiDoc", FormatCategory.Text, ["adoc", "asciidoc"]),
+ new("typ", "Typst", FormatCategory.Text, ["typ"]),
+ new("mediawiki", "MediaWiki", FormatCategory.Text, ["mediawiki", "wiki"]),
+ new("dbk", "DocBook", FormatCategory.Text, ["dbk", "docbook"]),
+ new("ipynb", "Jupyter", FormatCategory.Text, ["ipynb"]),
+ new("textile", "Textile", FormatCategory.Text, ["textile"]),
+ new("man", "Man page", FormatCategory.Text, ["man"]),
+ new("opml", "OPML", FormatCategory.Text, ["opml"]),
+ // Structured data. CSV stays a spreadsheet (its donut and routes); the data engine adds CSV ↔ JSON / YAML /
+ // TOML / XML edges. ".xml" means a data document here: XML-based formats Filee converts have their own
+ // extensions (.svg, .fb2, .dbk, ...).
+ new("json", "JSON", FormatCategory.Data, ["json"]),
+ new("jsonl", "JSON Lines", FormatCategory.Data, ["jsonl", "ndjson"]),
+ new("yaml", "YAML", FormatCategory.Data, ["yaml", "yml"]),
+ new("toml", "TOML", FormatCategory.Data, ["toml"]),
+ new("xml", "XML", FormatCategory.Data, ["xml"]),
+ new("vcf", "vCard", FormatCategory.Data, ["vcf", "vcard"]),
+
// E-books
new("epub", "EPUB", FormatCategory.Ebook, ["epub"]),
+ new("kepub", "KEPUB", FormatCategory.Ebook, ["kepub.epub", "kepub"]),
new("mobi", "MOBI", FormatCategory.Ebook, ["mobi"]),
new("azw3", "AZW3", FormatCategory.Ebook, ["azw3"]),
new("azw", "AZW", FormatCategory.Ebook, ["azw"], Writable: false),
diff --cc src/Filee.Core/Presets/BuiltInData.cs
index 59a16e28,92ed2259..c0572742
--- a/src/Filee.Core/Presets/BuiltInData.cs
+++ b/src/Filee.Core/Presets/BuiltInData.cs
@@@ -74,7 -74,35 +74,36 @@@ public static class BuiltInDat
new() { Id = "to-html", Name = "HTML", TargetFormat = "html" },
.. SpreadsheetPresets(),
.. CatalogPresets(),
+ .. DataPresets(),
+ .. CodecAndSubtitlePresets(),
+ ];
+
+ /// <summary>
+ /// HEVC / AV1 video, ALAC and the subtitle targets (added in settings schema 11, see SettingsMigrations).
+ /// </summary>
+ public static List<Preset> CodecAndSubtitlePresets() =>
+ [
+ // Video codecs and lossless audio
+ new()
+ {
+ Id = "mp4-hevc", Name = "MP4 HEVC", TargetFormat = "mp4",
+ Media = { VideoCodec = VideoCodec.Hevc }, Output = { FileNamePattern = "{name}_hevc" },
+ },
+ new()
+ {
+ Id = "mp4-av1", Name = "MP4 AV1", TargetFormat = "mp4",
+ Media = { VideoCodec = VideoCodec.Av1 }, Output = { FileNamePattern = "{name}_av1" },
+ },
+ new() { Id = "to-alac", Name = "ALAC", TargetFormat = "m4a", Media = { AudioCodec = AudioCodec.Alac } },
+
+ // Subtitles; on the video donut, SRT takes the first text subtitle track out of the video.
+ new() { Id = "extract-subtitles", NameKey = "preset.extract_subtitles", TargetFormat = "srt" },
+ new() { Id = "to-srt", Name = "SRT", TargetFormat = "srt" },
+ new() { Id = "to-vtt", Name = "WebVTT", TargetFormat = "vtt" },
+ new() { Id = "to-ass", Name = "ASS", TargetFormat = "ass" },
+ new() { Id = "to-smi", Name = "SAMI", TargetFormat = "smi" },
+ new() { Id = "to-lrc", Name = "LRC", TargetFormat = "lrc" },
+ new() { Id = "to-ttml", Name = "TTML", TargetFormat = "ttml" },
];
/// <summary>HWP as a target, through HWPX (added in settings schema 7, see SettingsMigrations).</summary>
@@@ -166,20 -195,6 +196,20 @@@
new() { Id = "to-eot", Name = "EOT", TargetFormat = "eot" },
];
+ /// <summary>
- /// Structured data and contacts targets (added in settings schema 11, see SettingsMigrations). EML is for Outlook
++ /// Structured data and contacts targets (added in settings schema 14, see SettingsMigrations). EML is for Outlook
+ /// MSG files, vCard for contact lists in CSV; neither is on a donut.
+ /// </summary>
+ public static List<Preset> DataPresets() =>
+ [
+ new() { Id = "to-json", Name = "JSON", TargetFormat = "json" },
+ new() { Id = "to-yaml", Name = "YAML", TargetFormat = "yaml" },
+ new() { Id = "to-toml", Name = "TOML", TargetFormat = "toml" },
+ new() { Id = "to-xml", Name = "XML", TargetFormat = "xml" },
+ new() { Id = "to-eml", Name = "EML", TargetFormat = "eml" },
+ new() { Id = "to-vcf", Name = "vCard", TargetFormat = "vcf" },
+ ];
+
/// <summary>Creates the default toolbar profiles.</summary>
public static List<ToolbarProfile> CreateProfiles() =>
[
@@@ -210,8 -225,7 +240,8 @@@
PresetIds = ["to-pdf", "to-docx", "to-hwpx", "to-hwp", "to-png", "to-jpg", "to-txt", "to-md", "to-epub", "merge-pdf"],
},
TextProfile(),
- .. CatalogProfiles(),
+ .. WithSubtitleProfile(CatalogProfiles()),
+ DataProfile(),
new()
{
Id = "mixed", NameKey = "profile.mixed", IsFallback = true,
@@@ -293,15 -307,22 +323,31 @@@
},
];
- /// <summary>JSON, YAML, TOML, XML and vCard files (added in settings schema 11, after "fonts").</summary>
++ /// <summary>JSON, YAML, TOML, XML and vCard files (added in settings schema 14, after "fonts").</summary>
+ public static ToolbarProfile DataProfile() => new()
+ {
+ Id = "data",
+ NameKey = "profile.data",
+ Extensions = ExtensionsOf(FormatCategory.Data),
+ PresetIds = ["to-json", "to-yaml", "to-toml", "to-xml", "to-csv", "to-xlsx"],
+ };
+
+ /// <summary>Text subtitles: SRT, ASS, WebVTT, SAMI, LRC, ... (added in settings schema 11, after "audio").</summary>
+ public static ToolbarProfile SubtitleProfile() => new()
+ {
+ Id = "subtitles",
+ NameKey = "profile.subtitles",
+ Extensions = ExtensionsOf(FormatCategory.Subtitle),
+ PresetIds = ["to-srt", "to-vtt", "to-ass", "to-smi", "to-lrc", "to-ttml"],
+ };
+
+ /// <summary><paramref name="profiles"/> with the subtitle donut after the audio donut.</summary>
+ private static List<ToolbarProfile> WithSubtitleProfile(List<ToolbarProfile> profiles)
+ {
+ profiles.Insert(profiles.FindIndex(p => p.Id == "audio") + 1, SubtitleProfile());
+ return profiles;
+ }
+
/// <summary>Every file extension of the formats in <paramref name="category"/>.</summary>
public static List<string> ExtensionsOf(FormatCategory category) =>
FormatRegistry.Known.Where(f => f.Category == category)
diff --cc src/Filee.Core/Settings/AppSettings.cs
index bb6d8b4e,aaa56e30..ffe29dc2
--- a/src/Filee.Core/Settings/AppSettings.cs
+++ b/src/Filee.Core/Settings/AppSettings.cs
@@@ -50,7 -50,7 +50,7 @@@ public sealed class DonutSetting
public sealed class AppSettings
{
/// <summary>Current schema version. Increase when the format changes and add a migration.</summary>
- public const int CurrentSchemaVersion = 11;
- public const int CurrentSchemaVersion = 13;
++ public const int CurrentSchemaVersion = 14;
public int SchemaVersion { get; set; } = CurrentSchemaVersion;
@@@ -89,8 -89,8 +89,8 @@@
public List<string> EnginePriority { get; set; } =
[
"magick", "pdfium", "pdfsharp", "rhwp", "unhwp", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer",
- "pdf-text", "email", "data", "vector", "icns", "font", "cad", "archive", "ebook", "ffmpeg", "pandoc", "ghostscript", "calibre",
- "libreoffice",
- "pdf-text", "email", "vector", "icns", "font", "cad", "archive", "ebook", "subtitle", "ffmpeg", "pandoc", "ghostscript",
- "calibre", "libreoffice",
++ "pdf-text", "email", "data", "vector", "icns", "font", "cad", "archive", "ebook", "subtitle", "ffmpeg", "pandoc",
++ "ghostscript", "calibre", "libreoffice",
];
/// <summary>Set once the first-run welcome has been shown.</summary>
diff --cc src/Filee.Core/Settings/UserDataStore.cs
index 1d12a825,be8b49f2..f601dfea
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@@ -252,16 -252,10 +252,20 @@@ internal static class SettingsMigration
InsertBefore(settings.EnginePriority, id, "libreoffice");
}
- // v11: built-in "data" engine (JSON, YAML, TOML, XML, CSV, vCard), next to the e-mail engine.
- if (settings.SchemaVersion < 11 && !settings.EnginePriority.Contains("data"))
+ // v12: built-in "subtitle" engine (SRT, ASS, WebVTT, SAMI, LRC, TTML, ...), before FFmpeg.
+ if (settings.SchemaVersion < 12)
+ InsertBefore(settings.EnginePriority, "subtitle", "ffmpeg");
+
++ // v14: built-in "data" engine (JSON, YAML, TOML, XML, CSV, vCard), next to the e-mail engine.
++ if (settings.SchemaVersion < 14 && !settings.EnginePriority.Contains("data"))
+ {
+ var email = settings.EnginePriority.IndexOf("email");
+ if (email >= 0)
+ settings.EnginePriority.Insert(email + 1, "data");
+ else
+ InsertBefore(settings.EnginePriority, "data", "pandoc");
+ }
+
if (settings.Triggers.Count == 0)
settings.Triggers = TriggerGesture.Defaults();
@@@ -371,40 -365,29 +375,64 @@@
changed = true;
}
- // v11: structured data (JSON, YAML, TOML, XML, vCard) gets its own donut after "fonts", Outlook MSG joins
- // the documents donut next to EML, and the spreadsheets donut gets JSON after CSV.
+ // v11: more document formats (Org, AsciiDoc, Typst, ... through Pandoc; flat OpenDocument, templates,
+ // ClarisWorks, ... through LibreOffice; KEPUB built in). Built-in donuts learn the new extensions unless
+ // another donut already has them, and the e-books donut gets KEPUB after MOBI.
if (from < 11)
+ {
+ if (presets.All(p => p.Id != "to-kepub"))
+ {
+ presets.Add(BuiltInData.CreatePresets().Single(p => p.Id == "to-kepub"));
+ changed = true;
+ changed |= Offer(presets, profiles, "ebooks", "to-kepub", "to-mobi");
+ }
+ changed |= LearnExtensions(profiles, out _);
+ }
+
+ // v12: HEVC / AV1 video, ALAC and the new audio formats (WavPack, TTA, APE, DSD, ...), and a subtitles donut
+ // after the audio donut. The video donut offers "MP4 HEVC" and "Extract subtitles".
+ if (from < 12)
+ changed |= AddCodecsAndSubtitles(presets, profiles);
+
+ // v13: more image formats (APNG, MNG, QOI, DDS, DICOM, OpenEXR, …, Fujifilm's .hif): the images donut learns
+ // their extensions unless another donut already has them.
+ if (from < 13)
+ changed |= LearnExtensions(profiles, out _);
++
++ // v14: structured data (JSON, YAML, TOML, XML, vCard) gets its own donut after "fonts", Outlook MSG joins
++ // the documents donut next to EML, and the spreadsheets donut gets JSON after CSV.
++ if (from < 14)
+ changed |= AddData(presets, profiles);
+ return changed;
+ }
+
+ private static bool AddData(List<Preset> presets, List<ToolbarProfile> profiles)
+ {
+ var changed = false;
+ foreach (var preset in BuiltInData.DataPresets().Where(p => presets.All(existing => existing.Id != p.Id)))
+ {
+ presets.Add(preset);
+ changed = true;
+ }
+ changed |= LearnExtensions(profiles, out var claimed);
+
+ if (profiles.All(p => p.Id != "data"))
+ {
+ var data = BuiltInData.DataProfile();
+ // Only the extensions no donut of the user takes yet.
+ data.Extensions = data.Extensions.Where(claimed.Add).ToList();
+ if (data.Extensions.Count > 0)
+ {
+ var presetIds = presets.Select(p => p.Id).ToHashSet();
+ data.PresetIds = data.PresetIds.Where(presetIds.Contains).ToList();
+ var fonts = profiles.FindIndex(p => p.Id == "fonts");
+ var insertAt = fonts >= 0 ? fonts + 1 : profiles.FindIndex(p => p.IsFallback);
+ profiles.Insert(insertAt < 0 ? profiles.Count : insertAt, data);
+ changed = true;
+ }
+ }
+
+ changed |= Offer(presets, profiles, "spreadsheets", "to-json", "to-csv");
return changed;
}
diff --cc src/Filee.Engines/EngineRegistry.cs
index c67c299c,1f7e9033..7db0533d
--- a/src/Filee.Engines/EngineRegistry.cs
+++ b/src/Filee.Engines/EngineRegistry.cs
@@@ -46,7 -46,7 +47,8 @@@ public static class EngineRegistr
new DocxWriterConverter(),
new PdfTextConverter(),
new EmlConverter(),
+ new DataConverter(),
+ new SubtitleConverter(),
new FfmpegConverter(),
new CadConverter(),
new EbookConverter(),
diff --cc tests/Filee.Core.Tests/ProfileSelectorTests.cs
index b7391236,5727aa1b..c60041c5
--- a/tests/Filee.Core.Tests/ProfileSelectorTests.cs
+++ b/tests/Filee.Core.Tests/ProfileSelectorTests.cs
@@@ -26,10 -26,10 +26,14 @@@ public class ProfileSelectorTest
[InlineData("archives", "a.tar.gz", "b.zip")]
[InlineData("video", @"C:\clips\a.MP4", @"C:\clips\b.mkv")]
[InlineData("text", "notes.md", "readme.txt")]
+ [InlineData("text", "todo.org", "paper.typ", "guide.adoc")]
+ [InlineData("ebooks", "novel.kepub.epub", "novel.epub")]
+ [InlineData("office", "letter.fodt", "memo.602")]
+ [InlineData("spreadsheets", "budget.xlt", "flat.fods")]
+ [InlineData("data", "a.json", "b.YML", "c.toml", "d.xml")]
+ [InlineData("data", "contacts.vcf")]
+ [InlineData("spreadsheets", "table.csv")]
+ [InlineData("office", "mail.msg", "mail.eml")]
public void Built_in_profiles_take_their_files(string expected, params string[] files) =>
Assert.Equal(expected, Pick(_builtIn, files));
diff --cc tests/Filee.Core.Tests/UserDataStoreTests.cs
index e3c1f436,6e47e35f..0cd897b6
--- a/tests/Filee.Core.Tests/UserDataStoreTests.cs
+++ b/tests/Filee.Core.Tests/UserDataStoreTests.cs
@@@ -60,7 -60,7 +60,7 @@@ public class UserDataStoreTest
var store = new UserDataStore(dir.Path);
store.Load();
- Assert.Equal(["magick", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer", "pdf-text", "email", "data", "vector", "icns", "font", "cad", "archive", "ebook", "ffmpeg", "pandoc", "ghostscript", "calibre", "libreoffice"], store.Settings.EnginePriority);
- Assert.Equal(["magick", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer", "pdf-text", "email", "vector", "icns", "font", "cad", "archive", "ebook", "subtitle", "ffmpeg", "pandoc", "ghostscript", "calibre", "libreoffice"], store.Settings.EnginePriority);
++ Assert.Equal(["magick", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer", "pdf-text", "email", "data", "vector", "icns", "font", "cad", "archive", "ebook", "subtitle", "ffmpeg", "pandoc", "ghostscript", "calibre", "libreoffice"], store.Settings.EnginePriority);
Assert.Equal(AppSettings.CurrentSchemaVersion, store.Settings.SchemaVersion);
}
@@@ -112,7 -112,7 +112,7 @@@
var store = new UserDataStore(dir.Path);
store.Load();
- Assert.Equal(["magick", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer", "pdf-text", "email", "data", "vector", "icns", "font", "cad", "archive", "ebook", "ffmpeg", "pandoc", "ghostscript", "calibre", "libreoffice"], store.Settings.EnginePriority);
- Assert.Equal(["magick", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer", "pdf-text", "email", "vector", "icns", "font", "cad", "archive", "ebook", "subtitle", "ffmpeg", "pandoc", "ghostscript", "calibre", "libreoffice"], store.Settings.EnginePriority);
++ Assert.Equal(["magick", "markdown", "spreadsheet", "ooxml", "hwpx-writer", "docx-writer", "pdf-text", "email", "data", "vector", "icns", "font", "cad", "archive", "ebook", "subtitle", "ffmpeg", "pandoc", "ghostscript", "calibre", "libreoffice"], store.Settings.EnginePriority);
var ids = store.Profiles.Select(p => p.Id).ToList();
Assert.Equal(ids.IndexOf("office") + 1, ids.IndexOf("spreadsheets"));
Assert.Equal(ids.IndexOf("office") + 2, ids.IndexOf("presentations"));
@@@ -139,7 -140,8 +140,8 @@@
var ids = profiles.Select(p => p.Id).ToList();
Assert.Equal(ids.IndexOf("text") + 1, ids.IndexOf("ebooks"));
- Assert.Equal(ids.IndexOf("mixed") - 2, ids.IndexOf("fonts")); // then "data" (schema 11)
- Assert.Equal(ids.IndexOf("mixed") - 1, ids.IndexOf("fonts"));
++ Assert.Equal(ids.IndexOf("mixed") - 2, ids.IndexOf("fonts")); // then "data" (schema 14)
+ Assert.Equal(ids.IndexOf("audio") + 1, ids.IndexOf("subtitles"));
Assert.Contains("cr2", profiles.Single(p => p.Id == "images").Extensions);
Assert.DoesNotContain("mp3", profiles.Single(p => p.Id == "audio").Extensions);
Assert.Contains("flac", profiles.Single(p => p.Id == "audio").Extensions);
@@@ -210,52 -212,92 +212,138 @@@
Assert.False(SettingsMigrations.ApplyToLibrary(9, presets, profiles)); // once only
}
+ [Fact]
- public void Version_10_libraries_get_the_data_donut_msg_files_and_json_for_spreadsheets()
++ public void Version_13_libraries_get_the_data_donut_msg_files_and_json_for_spreadsheets()
+ {
- // As written by 1.10.x: no data presets or donut, no MSG on the documents donut, no JSON on the spreadsheets
++ // As written with schema 13: no data presets or donut, no MSG on the documents donut, no JSON on the spreadsheets
+ // donut; and a donut of the user that already takes YAML.
+ var presets = BuiltInData.CreatePresets();
+ presets.RemoveAll(p => BuiltInData.DataPresets().Any(d => d.Id == p.Id));
+ var profiles = BuiltInData.CreateProfiles();
+ profiles.RemoveAll(p => p.Id == "data");
+ profiles.Single(p => p.Id == "office").Extensions.Remove("msg");
+ profiles.Single(p => p.Id == "spreadsheets").PresetIds.Remove("to-json");
+ profiles.Insert(0, new ToolbarProfile { Id = "mine", Name = "Mine", Extensions = ["yml"] });
+
- Assert.True(SettingsMigrations.ApplyToLibrary(10, presets, profiles));
++ Assert.True(SettingsMigrations.ApplyToLibrary(13, presets, profiles));
+
+ Assert.All(BuiltInData.DataPresets(), d => Assert.Contains(presets, p => p.Id == d.Id));
+ var ids = profiles.Select(p => p.Id).ToList();
+ Assert.Equal(ids.IndexOf("fonts") + 1, ids.IndexOf("data"));
+ var data = profiles.Single(p => p.Id == "data");
+ Assert.Contains("json", data.Extensions);
+ Assert.Contains("yaml", data.Extensions);
+ Assert.DoesNotContain("yml", data.Extensions); // the user's donut keeps it
+ Assert.Equal(["to-json", "to-yaml", "to-toml", "to-xml", "to-csv", "to-xlsx"], data.PresetIds);
+ Assert.Contains("msg", profiles.Single(p => p.Id == "office").Extensions);
+ var sheets = profiles.Single(p => p.Id == "spreadsheets").PresetIds;
+ Assert.Equal(sheets.IndexOf("to-csv") + 1, sheets.IndexOf("to-json"));
+ Assert.DoesNotContain(profiles, p => p.PresetIds.Contains("to-eml") || p.PresetIds.Contains("to-vcf"));
- Assert.False(SettingsMigrations.ApplyToLibrary(10, presets, profiles)); // once only
++ Assert.False(SettingsMigrations.ApplyToLibrary(13, presets, profiles)); // once only
+
+ var all = profiles.SelectMany(p => p.Extensions).ToList();
+ Assert.Equal(all.Count, all.Distinct(StringComparer.OrdinalIgnoreCase).Count());
+ }
+
+ [Fact]
- public void Version_10_settings_get_the_data_engine_after_email()
++ public void Version_13_settings_get_the_data_engine_after_email()
+ {
+ using var dir = new TempDir();
+ File.WriteAllText(Path.Combine(dir.Path, "settings.json"),
- """{ "schemaVersion": 10, "enginePriority": ["magick", "email", "vector", "pandoc", "libreoffice"] }""");
++ """{ "schemaVersion": 13, "enginePriority": ["magick", "email", "vector", "pandoc", "libreoffice"] }""");
+
+ var store = new UserDataStore(dir.Path);
+ store.Load();
+
+ Assert.Equal(["magick", "email", "data", "vector", "pandoc", "libreoffice"], store.Settings.EnginePriority);
+ }
+
+ [Fact]
+ public void Version_12_libraries_open_the_new_image_formats_on_the_images_donut()
+ {
+ // As written with schema 12: the images donut knows no APNG, QOI, DICOM or .hif; a donut of the user takes DDS.
+ var presets = BuiltInData.CreatePresets();
+ var profiles = BuiltInData.CreateProfiles();
+ var images = profiles.Single(p => p.Id == "images");
+ images.Extensions.RemoveAll(e => e is "apng" or "qoi" or "dcm" or "hif" or "dds");
+ profiles.Insert(0, new ToolbarProfile { Id = "game", Name = "Game textures", Extensions = ["dds"] });
+
+ Assert.True(SettingsMigrations.ApplyToLibrary(12, presets, profiles));
+
+ Assert.Contains("apng", images.Extensions);
+ Assert.Contains("qoi", images.Extensions);
+ Assert.Contains("dcm", images.Extensions);
+ Assert.Contains("hif", images.Extensions);
+ Assert.DoesNotContain("dds", images.Extensions);
+ Assert.False(SettingsMigrations.ApplyToLibrary(12, presets, profiles)); // once only
+ }
+
+ [Fact]
+ public void Version_11_libraries_get_codecs_new_audio_formats_and_a_subtitles_donut()
+ {
+ // As written with schema 11: no HEVC / AV1 / ALAC / subtitle presets, no subtitles donut, the video donut and
+ // the audio extensions of that time, and a donut of the user that already takes .ape.
+ var added = BuiltInData.CodecAndSubtitlePresets().Select(p => p.Id).ToHashSet();
+ var presets = BuiltInData.CreatePresets().Where(p => !added.Contains(p.Id)).ToList();
+ var profiles = BuiltInData.CreateProfiles().Where(p => p.Id != "subtitles").ToList();
+ foreach (var profile in profiles)
+ profile.PresetIds.RemoveAll(added.Contains);
+ var audio = profiles.Single(p => p.Id == "audio");
+ audio.Extensions.RemoveAll(e => e is "wv" or "tta" or "w64" or "eac3" or "ec3" or "ape" or "mpc" or "mpp" or "mp+" or "tak"
+ or "dsf" or "dff" or "dts" or "spx");
+ profiles.Insert(0, new ToolbarProfile { Id = "mine", Name = "Mine", Extensions = ["ape"] });
+
+ Assert.True(SettingsMigrations.ApplyToLibrary(11, presets, profiles));
+
+ Assert.Contains("wv", audio.Extensions);
+ Assert.Contains("dsf", audio.Extensions);
+ Assert.DoesNotContain("ape", audio.Extensions); // the user's donut keeps it
+ var ids = profiles.Select(p => p.Id).ToList();
+ Assert.Equal(ids.IndexOf("audio") + 1, ids.IndexOf("subtitles"));
+ Assert.Equal(BuiltInData.SubtitleProfile().PresetIds, profiles.Single(p => p.Id == "subtitles").PresetIds);
+ Assert.Contains("smi", profiles.Single(p => p.Id == "subtitles").Extensions);
+ Assert.Equal(BuiltInData.CreateProfiles().Single(p => p.Id == "video").PresetIds, profiles.Single(p => p.Id == "video").PresetIds);
+ Assert.Equal(VideoCodec.Hevc, presets.Single(p => p.Id == "mp4-hevc").Media.VideoCodec);
+ Assert.Equal(AudioCodec.Alac, presets.Single(p => p.Id == "to-alac").Media.AudioCodec);
+ Assert.DoesNotContain(profiles, p => p.PresetIds.Contains("to-alac") || p.PresetIds.Contains("mp4-av1"));
+ var all = profiles.SelectMany(p => p.Extensions).ToList();
+ Assert.Equal(all.Count, all.Distinct(StringComparer.OrdinalIgnoreCase).Count());
+ Assert.False(SettingsMigrations.ApplyToLibrary(11, presets, profiles)); // once only
+ }
+
+ [Fact]
+ public void Version_10_libraries_get_kepub_and_the_new_document_extensions()
+ {
+ // As written by 1.11.x: no KEPUB preset, and the donuts without the formats added in schema 11.
+ string[] added = ["org", "adoc", "typ", "mediawiki", "wiki", "dbk", "ipynb", "fodt", "ott", "cwk", "602", "ots", "fods", "otp", "fodp", "fodg", "kepub.epub"];
+ var presets = BuiltInData.CreatePresets();
+ presets.RemoveAll(p => p.Id == "to-kepub");
+ var profiles = BuiltInData.CreateProfiles();
+ foreach (var profile in profiles)
+ {
+ profile.PresetIds.Remove("to-kepub");
+ profile.Extensions.RemoveAll(added.Contains);
+ }
+ // A donut of the user already handles Org files.
+ profiles.Insert(0, new ToolbarProfile { Id = "mine", Name = "Mine", Extensions = ["org"] });
+
+ Assert.True(SettingsMigrations.ApplyToLibrary(10, presets, profiles));
+
+ Assert.Equal("kepub", presets.Single(p => p.Id == "to-kepub").TargetFormat);
+ var ebooks = profiles.Single(p => p.Id == "ebooks");
+ Assert.Equal(ebooks.PresetIds.IndexOf("to-mobi") + 1, ebooks.PresetIds.IndexOf("to-kepub"));
+ Assert.Contains("kepub.epub", ebooks.Extensions);
+ Assert.Contains("typ", profiles.Single(p => p.Id == "text").Extensions);
+ Assert.DoesNotContain("org", profiles.Single(p => p.Id == "text").Extensions);
+ Assert.Contains("fodt", profiles.Single(p => p.Id == "office").Extensions);
+ Assert.Contains("fods", profiles.Single(p => p.Id == "spreadsheets").Extensions);
+ Assert.Contains("otp", profiles.Single(p => p.Id == "presentations").Extensions);
+ Assert.Contains("fodg", profiles.Single(p => p.Id == "vector").Extensions);
+ foreach (var expected in BuiltInData.CreateProfiles())
+ Assert.Equal(expected.PresetIds, profiles.Single(p => p.Id == expected.Id).PresetIds);
+ Assert.False(SettingsMigrations.ApplyToLibrary(10, presets, profiles)); // once only
+ }
+
[Fact]
public void Catalog_migration_ignores_extensions_checked_on_mixed_profiles()
{
diff --cc tests/Filee.Engines.Tests/PandocMarkupTests.cs
index d97dd64e,58d194ef..3f4da2ee
--- a/tests/Filee.Engines.Tests/PandocMarkupTests.cs
+++ b/tests/Filee.Engines.Tests/PandocMarkupTests.cs
@@@ -65,6 -66,102 +66,103 @@@ public class PandocMarkupTests(EngineFi
Assert.Equal("hwpx-writer", Assert.Single(planner.Plan("tex", "hwpx")!.Steps).Converter.Id);
}
+ [Fact]
+ public void More_markup_languages_and_slides()
+ {
+ var planner = fx.Catalog.CreatePlanner(["pandoc", "libreoffice"]);
+ foreach (var markup in PandocConverter.Markup)
+ {
+ Assert.NotNull(FormatRegistry.FindById(markup));
+ foreach (var other in new[] { "md", "html", "docx", "odt" })
+ {
+ Assert.Equal("pandoc", Assert.Single(planner.Plan(other, markup)!.Steps).Converter.Id);
+ Assert.NotNull(planner.Plan(markup, other));
+ }
+ Assert.NotNull(planner.Plan(markup, "epub"));
+ }
+ Assert.Equal("pandoc", Assert.Single(planner.Plan("org", "adoc")!.Steps).Converter.Id);
+ Assert.Equal("pandoc", Assert.Single(planner.Plan("md", "pptx")!.Steps).Converter.Id);
+ Assert.Equal("pandoc", Assert.Single(planner.Plan("org", "pptx")!.Steps).Converter.Id);
+ // Markdown keeps its built-in routes.
+ Assert.Equal("markdown", Assert.Single(planner.Plan("md", "html")!.Steps).Converter.Id);
+ Assert.Equal("docx-writer", Assert.Single(planner.Plan("md", "docx")!.Steps).Converter.Id);
- // Extensions that could mean something else are not claimed.
- Assert.Null(FormatRegistry.FindByExtension("xml"));
++ // Extensions that could mean something else are not claimed by markup formats: a plain .xml is data (the data
++ // engine), not DocBook.
++ Assert.Equal("xml", FormatRegistry.FindByExtension("xml")!.Id);
+ Assert.Null(FormatRegistry.FindByExtension("1"));
+ Assert.Equal("mediawiki", FormatRegistry.FindByExtension("wiki")!.Id);
+ Assert.Equal("adoc", FormatRegistry.FindByExtension("asciidoc")!.Id);
+
+ Assert.SkipUnless(PandocConverter.Locate() is not null, "Pandoc not found (pwsh build/fetch-engines.ps1 -Only pandoc)");
+ // Not through slides and LibreOffice's PPTX → PDF.
+ Assert.Equal(["hwpx-writer", "rhwp"], planner.Plan("org", "pdf")!.Steps.Select(s => s.Converter.Id));
+ Assert.Equal(["hwpx-writer", "rhwp"], planner.Plan("md", "pdf")!.Steps.Select(s => s.Converter.Id));
+ Assert.Equal(["hwpx-writer", "rhwp"], planner.Plan("typ", "pdf")!.Steps.Select(s => s.Converter.Id));
+ }
+
+ [Fact]
+ public async Task Markdown_round_trips_through_every_markup_language()
+ {
+ SkipUnlessInstalled();
+ var markdown = await WriteAsync("notes.md", "# Plan\n\nShip **today** and *test*.\n\n- alpha\n- beta\n\n# Later\n\nMore text.\n");
+
+ foreach (var markup in PandocConverter.Markup.Where(m => m is not ("rst" or "tex")))
+ {
+ var converted = await ConvertAsync(markdown, markup);
+ Assert.Equal(markup, FormatRegistry.Detect(converted)!.Id);
+ var back = await File.ReadAllTextAsync(await ConvertAsync(converted, "md"), TestContext.Current.CancellationToken);
+ Assert.True(back.Contains("today", StringComparison.Ordinal) && back.Contains("alpha", StringComparison.Ordinal), $"{markup}: {back}");
+ }
+ }
+
+ [Fact]
+ public async Task Org_asciidoc_and_typst_reach_hwpx_and_slides()
+ {
+ SkipUnlessInstalled();
+ var org = await WriteAsync("todo.org", "* Groceries\nBuy *milk* and /bread/.\n* Chores\n- sweep\n- dust\n");
+ var adoc = await WriteAsync("guide.adoc", "= Guide\n\n== Install\n\nRun the *installer*.\n\n== Use\n\nOpen the app.\n");
+ var typ = await WriteAsync("paper.typ", "= Introduction\nTypst is *fast*.\n\n= Method\nWe measure.\n");
+
+ foreach (var (input, text) in new[] { (org, "milk"), (adoc, "installer"), (typ, "fast") })
+ {
+ var hwpx = await ConvertAsync(input, "hwpx");
+ HwpxAssert.ValidPackage(hwpx);
+ Assert.Contains(text, HwpxAssert.Xml(hwpx).Value);
+
+ using var pptx = ZipFile.OpenRead(await ConvertAsync(input, "pptx"));
+ Assert.Contains(pptx.Entries, e => e.FullName == "ppt/slides/slide2.xml");
+ }
+ }
+
+ [Fact]
+ public async Task Notebooks_outlines_and_man_pages_are_read()
+ {
+ SkipUnlessInstalled();
+ var notebook = await WriteAsync("analysis.ipynb", """
+ {"cells": [
+ {"cell_type": "markdown", "metadata": {}, "source": ["# Analysis\n", "Results are *good*."]},
+ {"cell_type": "code", "metadata": {}, "execution_count": 1, "outputs": [], "source": ["print(42)"]}
+ ],
+ "metadata": {"kernelspec": {"name": "python3", "display_name": "Python 3", "language": "python"}},
+ "nbformat": 4, "nbformat_minor": 5}
+ """);
+ var outline = await WriteAsync("ideas.opml", """
+ <?xml version="1.0" encoding="UTF-8"?>
+ <opml version="2.0"><head><title>Ideas</title></head>
+ <body><outline text="First idea"><outline text="Detail one"/></outline><outline text="Second idea"/></body></opml>
+ """);
+ var man = await WriteAsync("tool.man", ".TH TOOL 1\n.SH NAME\ntool \\- does things\n.SH DESCRIPTION\nThe \\fBtool\\fR command runs.\n");
+
+ var fromNotebook = await File.ReadAllTextAsync(await ConvertAsync(notebook, "md"), TestContext.Current.CancellationToken);
+ Assert.Contains("# Analysis", fromNotebook);
+ Assert.Contains("print(42)", fromNotebook);
+ var fromOutline = await File.ReadAllTextAsync(await ConvertAsync(outline, "html"), TestContext.Current.CancellationToken);
+ Assert.Contains("First idea", fromOutline);
+ Assert.Contains("Detail one", fromOutline);
+ var fromMan = await File.ReadAllTextAsync(await ConvertAsync(man, "txt"), TestContext.Current.CancellationToken);
+ Assert.Contains("command runs", fromMan);
+ }
+
[Fact]
public async Task Rst_to_docx_markdown_and_hwpx()
{