Repository navigation
Migrate DOCX and RTF formats to craft-libs (#778) - #6603
Merged
Merged
Conversation
- Wire craft-wordmodel, craft-docx, craft-rtf (doc), and craft-doc-binary into workspace - Delete ~26,300 lines of app-owned DOCX parser/serializer in crates/docx - Implement zero-copy media transfer and FitState custom XML round-trip via craft_wordmodel bridge - Delete ~5,400 lines of app-owned RTF parser/serializer in crates/formats/src/rtf - Delegate RTF import, export, parse, and esc to craft-rtf - Add cfb_guard DIFAT validation and float sanitization on model bridge - Net reduction: 31,697 deletions, 818 insertions (-30,879 LOC)
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
This was referenced Nov 14, 2026
Menonro
added a commit
to Menonro/wordcraft
that referenced
this pull request
Nov 14, 2026
storytold#1630's reader half (a table without w:tblGrid takes its grid from its cells) was a change to crates/docx/src/read/story/blocks.rs, which is gone from this repository; its two reader tests go with it. Its layout and engine halves stay, and the commit after them builds on those.
This was referenced Nov 14, 2026
Open
Open
Menonro
added a commit
to Menonro/wordcraft
that referenced
this pull request
Nov 14, 2026
…#6603) The VML reader's and the DrawingML writer's half of this change (a line that is off has no width, v:stroke on before stroked, an outline that is not drawn written with its width) was in crates/docx/src/read/story/vml.rs and crates/docx/src/write/story/drawing.rs, which are gone from this repository. It is storytold/craft-libs#1257 now, with its two tests and the fixture it changes. The layout half and the .doc bridge stay here.
hshamilt
added a commit
to hshamilt/wordcraft
that referenced
this pull request
Nov 14, 2026
…d#5317) Main storytold#6603 moved the OOXML reader/writer to craft-libs and deleted crates/docx/src/{read/styles.rs,read/story.rs,write/styles.rs}, the three files this PR edited. The changes are re-applied in craft-libs branch fix/w14-custom-number-format (wordmodel Level.custom_format + docx read/write + round-trip test; pushed to hshamilt/craft-libs), and the four craft-libs pins are bumped to that rev meanwhile. The serde-JSON model bridge maps custom_format without bridge changes, so app-side rendering and the ui/engine/dialog halves are untouched. The 12 wordcraft-docx and 2 wordcraft-engine style-revision failures in the docx suite reproduce identically on pristine origin/main (main migration at 514085c) and are not touched here.
This was referenced Nov 14, 2026
This was referenced Nov 14, 2026
This was referenced Nov 14, 2026
pakiat
added a commit
to pakiat/wordcraft
that referenced
this pull request
Nov 14, 2026
The reader's part of this change moved to craft-libs with crates/docx (storytold#6603). What stays is ResolvedChar::cs_off, which layout uses, with a test of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 14, 2026
pakiat
added a commit
to pakiat/wordcraft
that referenced
this pull request
Nov 14, 2026
The DOCX part of this change moved to craft-libs with crates/docx (storytold#6603), and its DOCX tests with it. What stays is the model and the app's side, with their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pakiat
added a commit
to pakiat/wordcraft
that referenced
this pull request
Nov 14, 2026
The DOCX part of this change moved to craft-libs with crates/docx (storytold#6603), and its DOCX tests with it. What stays is the model and the app's side, with their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pakiat
added a commit
to pakiat/wordcraft
that referenced
this pull request
Nov 14, 2026
The DOCX part of this change moved to craft-libs with crates/docx (storytold#6603), and its DOCX tests with it. What stays is the model and the app's side, with their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pakiat
added a commit
to pakiat/wordcraft
that referenced
this pull request
Nov 14, 2026
The DOCX part of this change moved to craft-libs with crates/docx (storytold#6603), and its DOCX tests with it. What stays is the model and the app's side, with their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 14, 2026
naxvog
added a commit
to naxvog/craft-libs
that referenced
this pull request
Nov 14, 2026
…ll margins Port of storytold/wordcraft#3821, whose reader code moved here with storytold/wordcraft#6603. Word's 0.08" cell margin comes from the Normal Table default table style; without a default table style a table that sets no margins (and whose style sets none) has zero margins. The zeros are kept as the table's own, also for the old properties of a tblPrChange, so they survive saving. w:default="on" now marks a default style too.
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.



Aggressively removes app-owned document formats from WordCraft: