Skip to content

Docx output mode#37

Merged
wolfgangmm merged 15 commits into
masterfrom
docx-output-mode
May 9, 2026
Merged

Docx output mode#37
wolfgangmm merged 15 commits into
masterfrom
docx-output-mode

Conversation

@wolfgangmm

@wolfgangmm wolfgangmm commented May 3, 2026

Copy link
Copy Markdown
Member

Adds a docx output mode. Within the ODD, this docx output can be specifically addressed with output="docx" in a model.

The transformation returns a single XML with root pkg:package. This also includes images and other media parts. It is the callers responsibility to transform the package into a zipped .docx.

Classes given in cssClass are mapped to Word styles of the same name. The automatically generated classes (start with tei-) are ignored, because Word is quite picky about unknown styles.

TODO:

  • allow users to supply their own Word template with additional styles

@wolfgangmm wolfgangmm marked this pull request as draft May 3, 2026 11:40
@wolfgangmm wolfgangmm marked this pull request as ready for review May 9, 2026 14:41
@wolfgangmm wolfgangmm merged commit 3d6417c into master May 9, 2026
6 checks passed
@wolfgangmm wolfgangmm deleted the docx-output-mode branch May 9, 2026 14:41
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.

1 participant