feat: add CAD workflow for DWG/DXF file translation#49
Open
reknottycat wants to merge 2 commits into
Open
Conversation
added 2 commits
June 12, 2026 16:40
- Add CAD module: DwgConverter, TextExtractor, TextApplier - Add CadWorkflow with DWG→DXF→extract→translate→apply pipeline - Support LibreDWG and HaoChen/AutoCAD backends - Register CadWorkflowParams in schemas and factory - Add 12 unit tests covering the full CAD pipeline - ezdxf as optional dependency (pip install docutranslate[cad])
- Remove ODA references from docstrings - Remove unused imports (os, re) - Fix font_size_reduction=0 bug (use explicit None check) - Remove hardcoded local paths from tests - Remove PR 1 test file reference from .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pip install docutranslate[cad]Changes
docutranslate/cad/— new CAD module (dwg_converter, text_extractor, text_applier)docutranslate/workflow/cad_workflow.py— CAD workflow classdocutranslate/core/schemas.py— CadWorkflowParams schemadocutranslate/core/factory.py— CAD workflow factory registrationtests/test_workflow/test_cad_workflow.py— 12 tests (all passing)Backend support
Test results