1
0
Fork 0

feat: 텍스트 문서 5종 양방향 변환 매트릭스 (DocumentProvider)

신규 DocumentProvider — html/htm/hwp/hwpx/docx/doc/md/markdown/txt 입력 →
html/docx/md/txt 출력 (HWP 출력은 H2Orestart 한계로 미지원).

라우팅 (멀티홉)
- {docx, html, txt, hwp} ↔ {docx, html, txt}: LibreOffice --convert-to
- md → html: Markdig (advanced extensions)
- html → md: ReverseMarkdown (GitHub flavored)
- md → docx/txt: md → html(Markdig) → LibreOffice 체인
- {docx, html, hwp} → md: → html(LibreOffice) → md(ReverseMarkdown) 체인
- md ↔ txt, html ↔ html 등: trivial copy
- txt → html: pre-wrapped HTML 인코딩

NuGet 추가
- Markdig 0.37.0
- ReverseMarkdown 4.6.0 (HtmlAgilityPack 의존성 자동 포함)

UI/메뉴 갱신
- AllFormats에 .html, .md 추가 (총 12종)
- PopularOutputs 카스케이드 12개로 확장:
  JPEG/PNG/WebP/PDF/Word/HTML/MD/TXT/AVIF/GIF/TIFF/BMP

요구 외부 도구: LibreOffice (DocxProvider/HwpxProvider와 공통)
MSIX 갱신: Markdig.dll + ReverseMarkdown.dll + HtmlAgilityPack.dll 포함
This commit is contained in:
Yun Chan 2026-05-07 17:22:15 +09:00
parent 50a195f9db
commit 25bebb46bf
5 changed files with 305 additions and 16 deletions

View file

@ -17,12 +17,14 @@ internal static class ContextMenuRegistrar
(".png", "PNG (.png)", "02"),
(".webp", "WebP (.webp)", "03"),
(".pdf", "PDF (.pdf)", "04"),
(".txt", "텍스트 (.txt) — OCR", "05"),
(".docx", "Word (.docx) — OCR", "06"),
(".avif", "AVIF (.avif)", "07"),
(".gif", "GIF (.gif)", "08"),
(".tif", "TIFF (.tif)", "09"),
(".bmp", "BMP (.bmp)", "10"),
(".docx", "Word (.docx)", "05"),
(".html", "HTML (.html)", "06"),
(".md", "Markdown (.md)", "07"),
(".txt", "텍스트 (.txt)", "08"),
(".avif", "AVIF (.avif)", "09"),
(".gif", "GIF (.gif)", "10"),
(".tif", "TIFF (.tif)", "11"),
(".bmp", "BMP (.bmp)", "12"),
};
public static void Register(ConversionEngine engine)