Repository navigation
feat(office-reader,core): read OpenDocument text documents (.odt) (0.8.0) - #307
Merged
Merged
Conversation
…e Word documents (0.8.0) readOdt gives the same WordDocument readDocx does: headings, list levels, links, tables with merged cells, headers, footers, notes and the title. Core reads an .odt through the same HTML conversion as a .docx, so recipes and Studio work on it unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TjR6eM2tUwU3NGnKXsmEap
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.
Part of #294 (ODF parsers): text documents, after spreadsheets (#306).
readOdtin@opencraw/office-reader(/odtentry): the sameWordDocumentasreadDocx(headings fromtext:hand the Title / Heading styles, list levels with numbered or bullet from the list styles, links, tables with merged cells as ranges, a table in a cell as a block of its own, headers and footers from the master page, footnotes and endnotes as notes, the title). Tracked deletions, comments and the templates of indexes are not text; a paragraph in a text box follows the paragraph that holds the box..odt(by extension, content type or the file's ownmimetype) through the same HTML conversion as a.docx, so recipes (table,css, selectors), Studio and every output work on it unchanged..odt. Extension 0.8.0.Checked: typecheck, lint and unit tests for office-reader, core, studio and studio-ui. The
.odtfixture is generated fromincentivi.docx(headings, nested numbered and bullet lists, links, merged tables, header, footer, note, title); tests assertreadOdtandreadDocxgive the same body, headers, footers, notes and title, and that both give the same HTML in core.Not here:
.odp(presentations, same shape as the pptx reader, next). The fixture is built to LibreOffice's layout, not exported from it.🤖 Generated with Claude Code
https://claude.ai/code/session_01TjR6eM2tUwU3NGnKXsmEap