Skip to content

refactor(pdf2zh): Initialize Babeldoc and replace YADT with Babeldoc#589

Merged
Byaidu merged 3 commits intoPDFMathTranslate:mainfrom
awwaawwa:update_yadt
Feb 11, 2025
Merged

refactor(pdf2zh): Initialize Babeldoc and replace YADT with Babeldoc#589
Byaidu merged 3 commits intoPDFMathTranslate:mainfrom
awwaawwa:update_yadt

Conversation

@awwaawwa
Copy link
Collaborator

@awwaawwa awwaawwa commented Feb 9, 2025

  • import yadt_init from babeldoc.high_level
  • call yadt_init() before translation to ensure proper setup

- import `yadt_init` from `yadt.high_level`
- call `yadt_init()` before translation to ensure proper setup
- update dependency from yadt to babeldoc in pyproject.toml
- rename yadt imports to babeldoc in pdf2zh.py
- update argument name and help text from yadt to babeldoc
- modify conditional check from yadt to babeldoc
@awwaawwa awwaawwa changed the title refactor(pdf2zh): add yadt initialization and import refactor(pdf2zh): add babeldoc initialization and import Feb 11, 2025
@awwaawwa awwaawwa changed the title refactor(pdf2zh): add babeldoc initialization and import refactor(pdf2zh): Initialize Babeldoc and replace YADT with Babeldoc Feb 11, 2025
@Byaidu Byaidu merged commit a7e6b81 into PDFMathTranslate:main Feb 11, 2025
2 checks passed
@awwaawwa awwaawwa deleted the update_yadt branch February 14, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants