fix: 簡化 MinerU 和 PDFMathTranslate 的程式碼,改善錯誤處理與參數傳遞
This commit is contained in:
parent
566ee48bfe
commit
89c121bdf9
4 changed files with 36 additions and 26 deletions
|
|
@ -85,7 +85,7 @@ describe("PDFMathTranslate converter - Chinese translation", () => {
|
|||
|
||||
expect(pdf2zhCalled).toBe(true);
|
||||
expect(pdf2zhArgs).toContain("-lo");
|
||||
expect(pdf2zhArgs).toContain("zh");
|
||||
expect(pdf2zhArgs).toContain("zh-CN"); // zh is normalized to zh-CN
|
||||
expect(pdf2zhArgs).toContain("-o");
|
||||
expect(pdf2zhArgs).toContain("-s"); // Translation service
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue