convertor/tests/converters
Ryo 13c8eea68a fix: handle binary formats and verify -V flag adjacency
Address second round of cubic-dev-ai review feedback:

P1: detectCJKFont only scans raw file bytes for CJK characters, which
misses CJK content inside compressed/binary formats (docx, epub, odt,
pptx). For these formats, always pass a CJK font to avoid missing glyphs.
Text formats still use content-based detection.

P3: Test assertions only checked that CJKmainfont value exists in args
array but did not verify -V flag precedes it. Added assertCJKFontArg
helper that checks -V adjacency for all CJK font tests.

Changes:
- Add binaryFormats set for docx/epub/odt/pptx
- Binary formats always get Noto Sans CJK SC (cannot detect language
  from raw bytes, SC is the safest default covering all CJK characters)
- Text formats continue using detectCJKFont for locale-aware detection
- Add assertCJKFontArg helper verifying -V precedes CJKmainfont value
- Add 3 new tests for binary formats (docx, epub, odt) with -V check
- 14 tests total, all passing
2026-07-02 10:43:26 +08:00
..
helpers feature: add download all file by file alongside the tar download (#415) 2025-10-07 21:27:31 +02:00
assimp.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
calibre.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
dasel.test.ts test: add awaits to rejects and resolves 2025-12-14 02:57:00 +01:00
dvisvgm.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
ffmpeg.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
graphicsmagick.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
imagemagick.test.ts feature: add download all file by file alongside the tar download (#415) 2025-10-07 21:27:31 +02:00
inkscape.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
libheif.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
libjxl.test.ts feature: add download all file by file alongside the tar download (#415) 2025-10-07 21:27:31 +02:00
libreoffice.test.ts PDF to DOCX using LibreOffice, fixes #425 (#510) 2026-01-29 17:20:12 +01:00
msgconvert.test.ts feature: add download all file by file alongside the tar download (#415) 2025-10-07 21:27:31 +02:00
pandoc.test.ts fix: handle binary formats and verify -V flag adjacency 2026-07-02 10:43:26 +08:00
potrace.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
resvg.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00
vcf.test.ts feat: add VCF to CSV converter (#497) 2026-01-11 16:38:32 +01:00
vips.test.ts feature: add download all file by file alongside the tar download (#415) 2025-10-07 21:27:31 +02:00
vtracer.test.ts test: add awaits to rejects and resolves 2025-12-14 02:57:00 +01:00
xelatex.test.ts test: fix imports after eslint config changes 2025-08-11 15:09:20 +02:00