Skip to content

oxoffice v0.3.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 01:01
· 193 commits to main since this release

[0.3.0] - 2026-11-23

✨ Highlights

  • Saves no longer fail on stray characters. A character XML cannot carry (a bell, a form feed...) is refused or dropped where you set it, never at the save, in Rust, Python and the CLI; in Python, XmlError is now also a ValueError (#504).
  • Nothing lost on the round trip. &, < and quotes reach every reader (Flat OPC export and ODP read work again with them), attributes are no longer escaped twice, on/off values and line-break w:clear survive edits, and a slide title survives ODP (#503, #488, #482, #496, #505).
  • Fields behave like Word. render_template keeps a tag beside a field, REF reads what Word shows, a quoted operand joins text and nested fields, LibreOffice form fields are read, and bookmark names match in any case (#481, #489, #497, #480, #502).
  • Copy, cut and import keep documents whole. Pasted and imported content keeps its ids unique and its bookmarks whole, headers and footers get the body's identities, and removed content leaves no orphan picture, chart or link behind (#499, #487, #501, #508).
  • Faster slide reordering. Moving or inserting a slide in Python no longer grows with the deck's shapes: about 50x faster on an 80-slide deck (#494, #479).
  • Behaviour changes to know. add_bookmark refuses a name that differs from an existing one only by case; a shared notes part is copied when one slide edits it; opening a file with such a character raises XmlError.

🐛 Bug fixes

  • (docx) A complex field with a bookmark before its result is read as a field (#480) (8ba47f9) in #480 by @hadim
  • (docx) Render template blocks that hold a field (#481) (15bf6d7) in #481 by @hadim
  • (docx) One on/off reader for every on/off value (#482) (bdce894) in #482 by @hadim
  • (docx) Read bookmark names past field switches and their arguments (#485) (db1733e) in #485 by @hadim
  • (docx) An imported header or footer gets the body's identities, bindings and defaults (#487) (d2f6bbe) in #487 by @hadim
  • (docx) Attribute values read raw are no longer escaped again at each save (#488) (59d21d4) in #488 by @hadim
  • (pptx) A slide whose notes another slide shares gets its own copy when edited (#486) (df53105) in #486 by @hadim
  • (docx) A new minimal document knows its class, and custom number properties compare as written (#490) (287929d) in #490 by @hadim
  • (pptx) Slide edits that write the package in place no longer hide a signed deck's change (#491) (83e65a2) in #491 by @hadim
  • (docx) A ref reads its bookmark as a reader sees it (#489) (cdd7689) in #489 by @hadim
  • (docx) Simple fields in tracked insertions reach the toc scan, the exports and story links (#492) (2c5384a) in #492 by @hadim
  • (docx) A rewritten body keeps its header and footer order and writes empty properties once (#493) (101b9d2) in #493 by @hadim
  • (docx) Line ends and white space in text and attributes read and save as xml defines them (#495) (9137ba6) in #495 by @hadim
  • (docx) A line break keeps where its text restarts (#496) (480ee8f) in #496 by @hadim
  • (docx) Every operand that names a renamed bookmark follows it on import (#498) (9fad786) in #498 by @hadim
  • (docx) Cut and pasted content keeps its bookmarks whole and its ids unique (#499) (5764d45) in #499 by @hadim
  • (docx) A field operand joins text and nested fields (#497) (2464e8a) in #497 by @hadim
  • (docx) Removed content frees the parts only it showed, and an import leaves out half bookmarks (#501) (a9ac11a) in #501 by @hadim
  • (docx) A bookmark is found by its name in any case (#502) (cb9da31) in #502 by @hadim
  • Entities in xml text reach every reader (#503) (4dfec0f) in #503 by @hadim
  • (pptx) A slide title survives the odp round trip (#505) (f17a2db) in #505 by @hadim
  • (docx) A character xml cannot carry is refused or dropped at the setter, never at the save (#504) (8379596) in #504 by @hadim
  • (docx) Insert_toc and the rtf, odt and epub exports see bookmarks between paragraphs (#506) (c041450) in #506 by @hadim
  • (docx) Block bookmarks reach the paragraphs the layout copies, and a row control's markers (#507) (af490e3) in #507 by @hadim
  • (docx) A bookmark marker between blocks moves and goes away like any story range (#508) (f472382) in #508 by @hadim

⚡ Performance

  • (pptx) Inserting a slide at a position publishes without re-reading the deck (#479) (487fccc) in #479 by @hadim
  • (drawing) Table style regions live on the heap (#484) (3dccf76) in #484 by @hadim
  • (python) Moving or inserting a slide no longer rebuilds the owners of the slides it shifts (#494) (5385757) in #494 by @hadim

📚 Documentation

🧪 Tests

  • Keep the docx tests that run 99 % of the lines, and the python files with something of their own (#475) (628116c) in #475 by @hadim
  • (pptx) Render checks cover emf, cropped and hidden pictures, slide numbers and table styles (#500) (1caad80) in #500 by @hadim
  • (cli) The google copy of the form loses the drop-down value word shows (#510) (e476a2f) in #510 by @hadim

⚙️ Maintenance