Skip to main content

Roadmap to 1.0.0

0.1.0 is Twip's first public release. 1.0.0 is when the layout, the document model and the API stop changing under you. The work between them runs in four phases, in this order:

  1. Layout comes first, so that nothing later moves a line or a page in a document that already lays out.
  2. DOCX fidelity: every OOXML construct is read, kept on save, and can be set through the API.
  3. Rendering fidelity: everything the model holds is drawn, on screen and in PDF.
  4. Editor and platform: everything else.
  1. 01Layout1.1 – 1.11DoneEvery line and page breaks where it should, and stays there.
  2. 02DOCX fidelity2.1 – 2.14DoneEverything in the file is read, kept and settable.
  3. 03Rendering3.1 – 3.10DoneEverything in the model is drawn.
  4. 04Editor and platform4.1 – 4.13The workflows, packages and API freeze.
  5. 1.0StableSemantic versioning from here on.

Each card below is one chunk, and one chunk is one feature pull request. Chunks run in the order shown unless their dependencies allow otherwise. A gate chunk opens each of the first three phases: it adds the check that keeps that phase's work from regressing once it lands.

Charts and equations (OMML) are not part of 1.0.0. Their XML is kept on save, and the engine reports them as unsupported content, but it doesn't draw or edit them. See Not in 1.0.0.

1. Layout​

The layout engine follows Word's line, page, table and float rules. This phase finishes that work and adds every OOXML property that changes where text or objects go, for Latin-script documents. Right-to-left and East Asian layout come after 1.0, with IME (see Not in 1.0.0); when they land, they change layout only for documents in those scripts, and under the layout-change label.

Complete

Phase 1 is done: every chunk below has landed, and the layout gate (1.1) guards it.

Done when
  • Every layout-affecting construct in the document format is laid out, or listed under Not in 1.0.0.
  • The layout gate (1.1) passes on Windows, Linux and WebAssembly.
  • From here on, any pull request that changes a layout snapshot is labelled layout-change and listed under Layout changes in the changelog.
1.1Layout regression gateGateDone

Goal: a layout change can't land unnoticed.

  • A fixture corpus written for Twip, with one document per layout feature, kept in the repository.
  • Layout snapshots in CI: line breaks, page breaks and the position of every line, float and table cell, in twips.
  • The same snapshots from native Windows, native Linux and WebAssembly builds.
  • An equivalence check: after a scripted series of edits, incremental relayout matches a full layout.
  • The layout-change label and its changelog section.
1.2Paragraph and table geometryDone

Goal: paragraph and table edges land on the same twip as Word's.

  • Paragraph top and bottom borders add their space and width; bordered paragraphs group and split as Word groups them.
  • Border w:space offsets for paragraph and page border lines.
  • Table horizontal geometry in integer twips: grid columns, cell margins, table indents and border widths.
  • HTML divisions (divId, with margins and borders from webSettings).
  • Decimal tabs align on . whatever the document's decimalSymbol says, as Word aligns them.
1.3Float positioningDone

Goal: every floating object is positioned by one model, with both compatibility modes complete.

  • One float input for every source: DrawingML pictures, shapes, text boxes, groups, canvases, chart frames and VML.
  • Float rectangles in integer twips.
  • The remaining rules for documents in Word 2010 and Word 2013+ compatibility modes: positions relative to margin areas, column containment, and moving the anchor line.
  • Obstacle registries per page area, so floats in headers, footers and the body wrap each other correctly.
  • Header and footer floats that wrap body text.
1.4Float sizing and wrappingDone

Goal: text wraps around floats exactly as authored.

  • Relative size and position: wp14:sizeRelH, wp14:sizeRelV, wp14:pctPosHOffset, wp14:pctPosVOffset and VML percentages.
  • Tight and through wrapping around the real wrapPolygon contour, not its bounding box.
  • Text-wrapping breaks (w:br with clear), which move past floats.
  • framePr@suppressOverlap and textboxTightWrap.
1.5Text box autofit and columnsDone

Goal: the text box settings that are read today but not laid out stay that way, because Word doesn't lay them out from a .docx either.

  • Shrink text on overflow (a:normAutofit font scale and line spacing reduction): read and kept on save, no effect on layout.
  • Text box columns (bodyPr@numCol, spcCol): read and kept on save, the box's text in one column.
1.6Table rows and exceptionsDone

Goal: rows from merged or pasted tables keep their own geometry.

  • Table property exceptions (w:tblPrEx): borders, shading, cell margins and alignment per row.
  • Hidden rows (trPr/w:hidden).
  • Empty cells marked hideMark collapse to their content height.
1.7Notes, sections and page numbersDone

Goal: section-level settings that move content between pages.

  • Footnote and endnote properties in sections: position (page bottom or beneath text, section end or document end), number format, start and restart. Word ignores most of them in settings.
  • noEndnote sections.
  • Mirror indents (mirrorIndents) on facing pages.
  • Book fold printing.
  • Chapter page numbers (pgNumType@chapStyle, chapSep) and the w:pgNum run element.
1.8Missing line contentDone

Goal: no text that Word shows is missing from the page.

  • Ruby base text, which is dropped today, and ruby annotations.
  • w:legacy list levels (pre-97 list indents).
  • w:fitText: fit text to a given width.
  • specVanish, the hidden paragraph mark used by style separators.
  • The run date and time elements (dayShort through yearLong).
  • OpenType number forms, number spacing and stylistic sets (w14:numForm, w14:numSpacing, w14:stylisticSets), which change glyph widths.
  • Legacy form fields as Word shows them: the FORMCHECKBOX box at its size and the FORMDROPDOWN's selected entry.
1.9Compatibility optionsDone

Goal: every layout switch in w:compat is accounted for.

  • Every w:compat option and w:compatSetting that changes layout is implemented, or documented as read and kept.
  • Documents in Word 2003, 2007, 2010 and 2013+ compatibility modes each have fixtures in the gate.
1.10Automatic hyphenationDone

Goal: documents with automatic hyphenation break lines as Word does.

  • A hyphenator, with autoHyphenation, hyphenationZone, consecutiveHyphenLimit and doNotHyphenateCaps.
  • Per-paragraph suppressAutoHyphens (Don't hyphenate).
  • Hyphenation settings through the API.
  • Hyphenation patterns, supplied by the host as spelling dictionaries are, or bundled where the licence allows.
1.11Vertical textDone

Goal: vertical pages, paragraphs and cells lay out as Word lays them out.

  • Vertical text direction in sections and paragraphs (textDirection in sectPr and pPr: tbRl, btLr, lrTbV, tbRlV, tbLrV).
  • Lines flow across the page, with margins, columns, headers and footers turned to match.
  • Glyph orientation: Latin text turned, East Asian characters upright.
  • One vertical line model shared by sections, paragraphs, table cells and text boxes.

2. DOCX fidelity​

This phase makes the document model complete. Every construct is read into the model, survives every kind of edit and save, and has a command to create, change and remove it. Where a construct has no drawing yet, phase 3 adds it. Application settings (saving, mail merge, the user interface, web page output) stay out of the model: they're kept on save as read. The fidelity guide lists every element and the chunk that completes it.

Done when
  • Every construct in the document format, apart from charts and equations, is in the model and has an API: no row of the fidelity guide is Model, Kept or Lost, apart from text effects, whose API comes with their drawing (3.5).
  • The round-trip gate (2.1) passes: no edit loses content the engine read.
2.1Round-trip gateGateDone

Goal: no edit can lose content without failing CI.

  • For each construct in the fixture corpus, a scripted series of edits: type inside it and next to it, format it, fill a control around it, comment on it, cut and paste it, and delete its neighbours. After each, the saved XML must still hold the construct.
  • Every part Twip writes validates against the OOXML schemas.
  • Parts that weren't edited are byte-identical to the source.
2.2Document model refinementDone

Goal: the model holds everything the reader sees, even what the engine doesn't understand.

  • An opaque inline and block node that carries the raw XML of every element the engine doesn't model: equations, charts, OLE objects, ink, subdocuments, altChunk, and w14 and w15 elements.
  • Editing permission ranges (permStart, permEnd) as model nodes, with writers.
  • Hidden (vanish) runs in the model.
  • mc:AlternateContent honours Requires, and takes the fallback when a choice can't be drawn.
  • An UnsupportedElement warning for each opaque element, so the host knows what isn't drawn.
  • Also opaque: ActiveX controls, Word 97 movies, w16se:symEx, and custom XML markup and its revisions (Word removes custom XML on open, so it is kept but not modeled).
2.3Lossless moves and table editsDone

Goal: moved content and restructured tables keep everything they held.

  • Cut, copy, paste and drag keep the source XML of the content they move, and a commented range moves with its comment.
  • A model writer for bookmarks. The model holds them, but a paragraph pasted or written from the model loses them.
  • Merging, splitting and adding or removing columns patch each cell's tcPr and the table grid, rather than rebuilding them, and keep non-paragraph cell content.
  • Custom-mark footnote references, w:sym with its font, and floats in their place within the paragraph.
  • Resized VML pictures, column settings, and properties that use a namespace prefix declared below the root.
2.4Character formattingDone

Goal: everything in Word's Font dialog can be set.

  • Apply a character style, and the character half of a linked style. Setting a paragraph style checks the style's type.
  • Character scale, kerning, ligatures, contextual alternates, number forms, number spacing and stylistic sets.
  • Language per run.
  • Do not check spelling (noProof), and spell checking skips those runs.
  • Underline colour: read it, and apply the Font dialog's colour field, which is offered but not applied yet.
  • Emboss, engrave, outline and shadow. (w14 text effects get their API with their drawing, in 3.5.)
  • w:effect, webHidden and specVanish are kept on save.
2.5Paragraph formattingDone

Goal: everything in Word's Paragraph dialog can be set.

  • Contextual spacing and outline level as commands.
  • Mirror indents.
  • Paragraph text direction.
  • Don't hyphenate (suppressAutoHyphens) and Collapsed by default (w15:collapsed).
  • Drop Cap: create, change and remove a drop cap, dropped or in the margin.
2.6Sections, headers and footersDone

Goal: the page setup that legal and report templates need.

  • Format Page Numbers: format, chapter numbers and start at.
  • Link to Previous, and removing a header or footer.
  • Vertical page alignment; line numbering, and suppressing it per paragraph.
  • Change an existing break's section type; insert a section break, and apply settings from this point forward.
  • Column presets and unequal widths; mirror margins; book fold; gutter at top.
  • Different odd and even pages; page borders that don't surround the header or footer.
  • Insert Alignment Tab (w:ptab).
  • Section text direction.
  • paperSrc and printer settings are kept.
2.7Footnotes and endnotesDone

Goal: note settings and conversions.

  • Note position, number format, custom mark, start at and restart, per section and for the document.
  • Footnote columns (w15:footnoteColumns) and noEndnote are laid out and kept.
  • Convert footnotes to endnotes and back.
2.8BookmarksDone

Goal: templates can hold working bookmarks.

  • Insert, delete and list bookmarks, including hidden ones (_Toc, _Ref); Go To a bookmark.
  • A bookmark picker in the Hyperlink dialog model.
  • Show bookmarks as a view option.
2.9TablesDone

Goal: every table property can be set.

  • Row exceptions and hidden rows through the API.
  • Cell text direction, preferred width in percent, fit text, no wrap and hideMark.
  • Cell spacing, diagonal cell borders (tl2br, tr2bl) and table style band sizes.
  • Table alt text (tblCaption, tblDescription) in Table Properties.
  • Header cells (tcPr/headers), and cnfStyle kept.
  • New tables take the document's defaultTableStyle.
2.10Pictures and drawingsDone

Goal: Word's picture tools, as commands.

  • Crop, in the Picture Size dialog too.
  • Change Picture in place, outside picture controls too.
  • Align and distribute objects.
  • Linked pictures (r:link) kept through every edit.
  • Relative size and position, text box autofit, text box columns and textboxTightWrap.
  • Set Transparent Colour (a:clrChange).
2.11Fields and document propertiesDone

Goal: the engine computes every field that depends only on the document.

  • Core, app and custom document properties: read, set through the API, and updated on save.
  • Document variables (w:docVars) and DOCVARIABLE.
  • DOCPROPERTY, AUTHOR, TITLE, SUBJECT, KEYWORDS, FILENAME, SAVEDATE, PRINTDATE, NOTEREF, LISTNUM and AUTONUM.
  • DATE and TIME in the host's time zone.
  • = formulas, with table references, decimalSymbol and listSeparator.
  • webSettings is read and kept.
2.12Legacy form fieldsDone

Goal: pre-2007 forms, common in court and government work, open, fill and save.

  • Form field data (w:ffData) in the model and on save.
  • FORMTEXT, FORMCHECKBOX and FORMDROPDOWN: fill them, insert them and set their properties (they lay out and draw from 1.8).
  • Form field shading and doNotShadeFormData.
2.13Content controlsDone

Goal: content controls match Word's feature set.

  • Check box checked and unchecked symbols.
  • Use a style to format contents.
  • Show As (bounding box, tags, none) and colour (w15 appearance and color).
  • Temporary controls, which remove themselves when edited.
  • Repeating section options (sectionTitle, doNotAllowInsertDeleteSection), and inserting a building block from a gallery control.
  • Data binding (w:dataBinding) to custom XML parts, in both directions.
2.14Document protectionDone

Goal: a protected document behaves as it does in Word.

  • Enforce read-only, comments-only and filling-in-forms protection, and per-section form protection (formProt).
  • Editable ranges (permStart, permEnd) for everyone or named editors.
  • The Restrict Editing model: start and stop enforcement, with a password.

3. Rendering fidelity​

Everything in the model is drawn, on screen and in PDF, and looks as it does in Word.

Complete

Phase 3 is done: every chunk below has landed, and the render gate (3.1) guards it. Left out on purpose: 3-D text effects are kept on save and drawn flat; Fill Effects textures are pictures you supply, as Word's built-in ones can't ship; Apply to Cell or Table in Borders and Shading sets shading only; double-byte text (Shift-JIS, Korean, Chinese) in metafiles is not drawn; and a linked picture draws its embedded copy, or a placeholder, because nothing is fetched.

Done when
  • Every construct in the model has a drawing, on screen and in PDF.
  • The render gate (3.1) passes on every platform and graphics backend.
3.1Render regression gateGateDone

Goal: a drawing change can't land unnoticed.

  • Pixel snapshots of the fixture corpus on the CPU raster path, compared within a tolerance, on Windows, Linux and WebAssembly.
  • GPU backends compared against the CPU raster.
  • PDF snapshots: text, structure and drawing commands.
3.2Metafiles: WMF and EMFDone

Goal: Office's default format for pasted charts, logos and signatures draws.

  • WMF and EMF decoded into vector drawing, not a raster, on screen and in PDF.
  • OLE object previews, which are usually EMF.
3.3Metafiles: EMF+ and JPEG XRDone

Goal: the newer metafile records and the HD Photo format.

  • EMF+ records, including dual EMF+ and EMF files.
  • JPEG XR (WDP) pictures.
3.4Underlines and character effectsDone

Goal: every text decoration draws as Word draws it.

  • Every underline style: words only, double, thick, dotted, dashed, long dash, dot-dash, dot-dot-dash and wavy, each in its heavy and double forms, in the underline's own colour.
  • Emboss, engrave, outline and shadow.
3.5Text effectsDone

Goal: Word 2010 text effects.

  • w14 glow, shadow and reflection, read into the model and set through the API (setTextEffects).
  • Text fill (solid, gradient, none) and text outline.
  • 3-D text drawn flat, as a fallback.
3.6Shading and bordersDone

Goal: every shading pattern and border line draws.

  • Every shading pattern (stripes, crosses and percentages) on runs, paragraphs, cells and tables; the shading commands accept them.
  • Table shading layered as Word layers it: cell over row exception over table, with table style regions.
  • Shadowed borders, and the wave, double wave and dash-dot-stroked line patterns.
3.7Watermarks and page colourDone

Goal: DRAFT and CONFIDENTIAL watermarks and page colours appear, and can be set.

  • VML text watermarks (v:textpath), and picture watermarks with washout (gain, blacklevel).
  • Page colour with theme tint and shade, gradient, pattern and picture fills (v:background), and displayBackgroundShape.
  • PDF output treats the page background as Word's export does.
  • Insert, change and remove a watermark or page colour.
3.8Picture effectsDone

Goal: the remaining picture adjustments draw.

  • Set Transparent Colour (a:clrChange).
  • VML picture brightness and contrast (gain, blacklevel) everywhere, not only in watermarks.
  • a:reflection.
  • Linked pictures: a blip with only r:link draws its placeholder frame on purpose, as Twip does not fetch the file; one that also has r:embed draws the embedded copy.
3.9Glyph qualityDone

Goal: sharper text, with layout unchanged.

  • Glyph hinting when drawing. Layout keeps unhinted advances, so no line moves.
  • The same anti-aliasing and gamma on native and web, on every graphics backend.
3.10Accessible, linked PDFDone

Goal: PDF output that's clickable and passes accessibility checks.

  • Link annotations for hyperlinks and cross-references; a PDF outline from headings.
  • Alt text for figures, and Note tags for footnotes and endnotes.
  • Table header cells and table alt text in the structure tree.
  • PDF/UA conformance in CI.

4. Editor and platform​

The workflows on top of a complete model, the framework packages, and the API freeze.

4.1Table of contents, captions and cross-references

Goal: templates can hold a table of contents that builds and updates.

  • Generate and update a table of contents from outline levels and styles, with \h links, page numbers and style separators.
  • Table of figures.
  • Insert Caption: labels, numbering and chapter numbers.
  • The cross-reference dialog model.
4.2Find, replace and Go To

Goal: Word's search.

  • Find and replace with formatting, wildcards, special characters (^p, ^t, ^m) and within the selection.
  • Go To a section, bookmark, comment, field, table, footnote or line.
4.3Review workflow

Goal: the review tools around track changes and comments.

  • Show Markup filters by kind and reviewer.
  • Balloons or inline revisions.
  • Delete All Comments.
4.4Outline and navigation

Goal: working with long documents.

  • Outline view: promote, demote, collapse.
  • Reorder headings, with their content, in the navigation pane.
4.5Object layout dialogs

Goal: the float and picture layout API, as dialogs.

  • The Layout dialog: Position, Text Wrapping and Size.
  • The Format Shape pane.
4.6Document dialogs

Goal: dialog models over phase 2's commands.

  • Insert Field, Content Control Properties, Footnote and Endnote, Columns, Drop Cap and Format Page Numbers.
  • The Restrict Editing pane.
4.7Table tools

Goal: the remaining table commands.

  • Convert text to a table and back.
  • Sort.
4.8Image paste

Goal: paste a picture from the clipboard.

  • Clipboard data carries images; pasting one inserts an inline picture.
4.9Editor performance

Goal: typing, reflow and drags stay inside their frame budgets on long documents.

  • Paragraph content shared copy-on-write, with content hashes for the layout caches.
  • Cached lines placed by offset, and header and footer measurements cached, so reflow redoes less.
  • Drags laid out provisionally and committed on release.
  • First page and start-up times within budget.
  • The layout gate's equivalence check stays green throughout.
4.10Accessibility

Goal: full WCAG 2.1 AA compliance.

  • An audit of the editor surface and its models against WCAG 2.1 AA.
  • Screen reader testing with NVDA, JAWS, Narrator and VoiceOver.
  • High contrast and forced colours.
4.11Angular and React packages

Goal: first-class framework bindings.

  • @twip/angular and @twip/react, which are empty placeholders in the repository today.
  • The toolbar examples from the guides as their samples.
4.12Editing vertical text

Goal: vertical sections, paragraphs, cells and text boxes edit as Word edits them.

  • The caret, selection and hit testing in vertical lines (tbRl, btLr, lrTbV, tbRlV, tbLrV), drawn turned with the text.
  • Arrow keys, Home and End, and extending the selection follow the line direction.
  • Drag, drop and resize handles in vertical sections and text boxes.
4.131.0 API freeze

Goal: an API we can keep for the 1.x line.

  • An API review across Rust, web and .NET; deprecated items removed.
  • The shared contract suite covers every command.
  • Docs for every public item.
  • The semantic versioning policy, published.

Not in 1.0.0​

Deferred to a later release​

  • IME
  • Format Painter
  • HTML and RTF paste, and drawing altChunk content, which needs the same importer
  • An extensions surface for custom drawing (comment bubbles, custom rulers)
  • Equations (OMML)
  • Charts
  • Crop handles: Word's crop mode, the picture's whole image with handles on its crop. Crop is set by setPictureCrop and the Picture Size dialog; the handles are an interaction on top that waits on overlay drawing for them
  • Drawing linked pictures (r:link): they're kept, and drawn empty. Drawing one needs the host to fetch it, and a host service a document from anyone can point at a path or URL needs its own design (what a host may fetch, and when)
  • DATE and TIME in the host's locale: their month and day names and default picture are en-US's. Every locale's names would be CLDR data in the WASM bundle; a host service could supply them instead
  • Right-to-left and East Asian layout and editing, with IME (below)
  • WordArt warps (a:prstTxWarp) and 3-D rotation, bevel and extrusion (scene3d, sp3d, VML extrusion): kept on save, drawn without them

Right-to-left and East Asian​

Planned for the release after 1.0, together with IME, so these documents can be both laid out and typed in. Each item below is read and kept on save in 1.0 (2.2); it isn't laid out or settable yet. Some East Asian layout already works and stays: kinsoku, wordWrap, overflowPunct, topLinePunct, autoSpaceDE, autoSpaceDN, strictFirstAndLastChars, ruby annotations and rtlGutter are laid out, but not settable. Their open details come with the rest: the autospace gap between some Latin and East Asian fonts, and textAlignment in vertical lines.

  • Complex scripts and right-to-left: complex-script run properties (szCs, bCs, iCs, cs, rtl); the bidirectional algorithm per line; font slots from lang@bidi; theme script fonts and themeFontLang; section bidi; w:bdo and w:dir; kashida justification; text box rtlCol; Hebrew and Arabic number formats; paragraph, run and table direction commands.
  • East Asian line breaking and the grid: noLineBreaksBefore and After; adjustRightInd; the character grid (docGrid@charSpace, linesAndChars, run snapToGrid, doNotSnapToGridInCell); character-unit indents and line-unit spacing; eastAsianLayout; characterSpacingControl and noPunctuationKerning; CJK and enclosed number formats; font slots from lang@eastAsia.
  • East Asian compatibility options: spaceForUL, doNotWrapTextWithPunct, doNotUseEastAsianBreakRules, useAltKinsokuLineBreakRules, lineWrapLikeWord6, autoSpaceLikeWord95, displayHangulFixedWidth, subFontBySize and doNotLeaveBackslashAlone.
  • East Asian text boxes: normalEastAsianFlow, and the eaVert and mongolianVert text directions.
  • Editing: the Asian layout tools, inserting ruby, emphasis marks and character grid settings.

Backlog​

Pulled forward when a customer document needs one.

  • Index and citations; Compare and Combine; Lock Tracking.
  • A grammar check hook; AutoFormat beyond lists; AutoText and Quick Parts.
  • Draft, Web Layout and Read Mode views; multiple pages side by side; split window.
  • Picture styles and artistic effects; drawing tools for connectors and freeform shapes.
  • Style sets, themes and the Organizer.
  • SmartArt editing, inserting WordArt, editing OLE objects.
  • Drawing subdocuments and ink natively (ink draws from its fallback picture after 2.2).
  • alignBordersAndEdges: paragraph borders and table edges snapped to the page border (kept on save).

Not planned​

  • Embedded fonts and font substitution. The host supplies fonts.
  • A fresh Word 2007 fallback (mc:Fallback) for a shape edited in Twip. The shape is saved without it; Word 2010 and later read the shape itself.

Shipped in 0.1.0​

  • Word-compatible line, page, table and float layout.
  • Track changes and comments, in the model and the API.
  • Application-controlled fonts.
  • One API contract across Rust, web and .NET.
  • Bookmarks and cross-references resolve (REF, PAGEREF, # links). Inserting bookmarks is 2.8.
  • Cross-platform Dawn: Metal on Arm64, D3D12, D3D11 and Vulkan on Windows, and WebGPU.
  • Shapes, from DrawingML and VML.
  • Styles, lists, borders, shading and frames, with their dialog models.
  • Picture controls, sub-templates and PDF conversion.
  • Saving keeps the source markup of filled controls, edited links and comments.