{
  "license": "CC0-1.0 original synthetic sources and comment derivative. Existing originals remain unchanged.",
  "scope": "Six original synthetic sources including document background, three DOC output operations; independent source/control checks only, full pagination unverified.",
  "cases": [
    {
      "id": "sections",
      "source": "benchmarks/research/office-wasm/fixtures/regressions/sections.docx",
      "targets": [
        "doc"
      ],
      "bytes": 40246,
      "sha256": "64c2647a677287ae2d79123c773909ba3c23b7cccb47234d1fd35c5f4837f724",
      "expected": {
        "sourceText": {
          "word/document.xml": [
            "Sections, tables and images",
            "Exact spacing: ",
            "A  B",
            "C",
            "D",
            "Unicode control: café, naïve, Ελληνικά, Кириллица. 1234567890",
            "First numbered item",
            "Second numbered item",
            "MERGED HEADING - three columns",
            "Vertical merge",
            "A1",
            "B1",
            "A2",
            "B2",
            "Final row",
            "A3",
            "B3",
            "Landscape section",
            "Landscape content must remain on a wide page with its section header."
          ],
          "word/footer1.xml": [
            "SYNTHETIC FOOTER - page "
          ],
          "word/header1.xml": [
            "SYNTHETIC HEADER - portrait"
          ],
          "word/header2.xml": [
            "SYNTHETIC HEADER - landscape"
          ]
        },
        "tables": 1,
        "sections": 2
      },
      "from": "docx"
    },
    {
      "id": "sections-comment",
      "source": "benchmarks/research/doc-compatibility/fixtures/sections-comment.docx",
      "targets": [
        "doc"
      ],
      "bytes": 40711,
      "sha256": "eab9ce2e0e5d0a6a81f5fe874b0a6f11a00138c299124e134499dd35226d449f",
      "expected": {
        "sourceText": {
          "word/document.xml": [
            "Sections, tables and images",
            "Exact spacing: ",
            "A  B",
            "C",
            "D",
            "Unicode control: café, naïve, Ελληνικά, Кириллица. 1234567890",
            "First numbered item",
            "Second numbered item",
            "MERGED HEADING - three columns",
            "Vertical merge",
            "A1",
            "B1",
            "A2",
            "B2",
            "Final row",
            "A3",
            "B3",
            "Landscape section",
            "Landscape content must remain on a wide page with its section header."
          ],
          "word/footer1.xml": [
            "SYNTHETIC FOOTER - page "
          ],
          "word/header1.xml": [
            "SYNTHETIC HEADER - portrait"
          ],
          "word/header2.xml": [
            "SYNTHETIC HEADER - landscape"
          ]
        },
        "tables": 1,
        "sections": 2
      },
      "from": "docx"
    },
    {
      "id": "odt-layout",
      "source": "benchmarks/fixtures/odf-pdf-final2/document-layout.odt",
      "targets": [
        "doc"
      ],
      "bytes": 2315,
      "sha256": "89ad45dd33734bd75a9bd91401fc189bb61839bf30c7f3b316f9df30a4816797",
      "expected": {
        "id": "document-layout",
        "format": "odt",
        "source": "benchmarks/fixtures/odf-pdf-final2/document-layout.odt",
        "sha256": "89ad45dd33734bd75a9bd91401fc189bb61839bf30c7f3b316f9df30a4816797",
        "bytes": 2315,
        "expectedTokens": [
          "ODT_PAGE_ONE",
          "ODT_PAGE_TWO",
          "Café, Καλημέρα, Привет.",
          "Literal _x0041_ & <tag>.",
          "BEFORE BOLD_SPAN AFTER",
          "SAFE_LINK",
          "PADDED",
          "0000042",
          "1.000000000000000000001",
          "PARAGRAPH_01",
          "PARAGRAPH_02",
          "PARAGRAPH_03",
          "PARAGRAPH_04",
          "PARAGRAPH_05",
          "PARAGRAPH_06",
          "PARAGRAPH_07",
          "PARAGRAPH_08",
          "PARAGRAPH_09",
          "PARAGRAPH_10",
          "PARAGRAPH_11",
          "PARAGRAPH_12"
        ],
        "pages": 2,
        "pageSize": [
          595.2756,
          841.8898
        ],
        "repeatedTokens": {
          "ODT_HEADER": 2,
          "ODT_FOOTER": 2
        },
        "images": 1,
        "links": [
          "https://example.invalid/odf-control"
        ]
      },
      "from": "odt"
    },
    {
      "id": "rtf-layout",
      "source": "benchmarks/fixtures/rtf/layout.rtf",
      "targets": [
        "doc"
      ],
      "bytes": 836,
      "sha256": "ab6b36449de28a4e12d5a5d0159d64adeb3df80b30fa5b8c71aee5c78de3452a",
      "expected": {
        "id": "layout",
        "format": "rtf",
        "source": "benchmarks/fixtures/rtf/layout.rtf",
        "sha256": "ab6b36449de28a4e12d5a5d0159d64adeb3df80b30fa5b8c71aee5c78de3452a",
        "bytes": 836,
        "expectedTokens": [
          "RTF_PAGE_ONE",
          "Café Ω Привет 世界",
          "Before BOLD_MARKER and ITALIC_MARKER after.",
          "SAFE_LINK",
          "RTF_PAGE_TWO",
          "0000042.",
          "0.000000000000000001.",
          "1904-02-29.",
          "FINAL_RTF_VALUE"
        ],
        "pages": 2,
        "pageSize": [
          612,
          792
        ],
        "repeatedTokens": {
          "RTF_HEADER": 2
        },
        "images": 0,
        "links": [
          "https://example.invalid/rtf-control"
        ],
        "pageFieldText": [
          "PAGE 1 OF 2",
          "PAGE 2 OF 2"
        ]
      },
      "from": "rtf"
    },
    {
      "id": "rtf-pictures",
      "source": "benchmarks/fixtures/rtf/pictures-binary.rtf",
      "targets": [
        "doc"
      ],
      "bytes": 571,
      "sha256": "c7a6c12a312b01f0abbd99a0c96e324e341d2bf1c9cf5779e2a9c40248c85810",
      "expected": {
        "id": "pictures-binary",
        "format": "rtf",
        "source": "benchmarks/fixtures/rtf/pictures-binary.rtf",
        "sha256": "c7a6c12a312b01f0abbd99a0c96e324e341d2bf1c9cf5779e2a9c40248c85810",
        "bytes": 571,
        "expectedTokens": [
          "RTF_PICTURE_BINARY",
          "BINARY_END_MARKER"
        ],
        "pages": 1,
        "pageSize": [
          612,
          792
        ],
        "images": 1,
        "imageSource": "benchmarks/fixtures/rtf/pattern.png",
        "links": []
      },
      "from": "rtf"
    },
    {
      "id": "sections-background",
      "source": "benchmarks/research/doc-compatibility/fixtures/sections-background.docx",
      "targets": [
        "doc"
      ],
      "bytes": 40123,
      "sha256": "ed4a028b4dc0a886393b788636b969ec883b03ed1d4bb1733779a34dc28a1838",
      "expected": {
        "sourceText": {
          "word/document.xml": [
            "Sections, tables and images",
            "Exact spacing: ",
            "A  B",
            "C",
            "D",
            "Unicode control: café, naïve, Ελληνικά, Кириллица. 1234567890",
            "First numbered item",
            "Second numbered item",
            "MERGED HEADING - three columns",
            "Vertical merge",
            "A1",
            "B1",
            "A2",
            "B2",
            "Final row",
            "A3",
            "B3",
            "Landscape section",
            "Landscape content must remain on a wide page with its section header."
          ],
          "word/footer1.xml": [
            "SYNTHETIC FOOTER - page "
          ],
          "word/header1.xml": [
            "SYNTHETIC HEADER - portrait"
          ],
          "word/header2.xml": [
            "SYNTHETIC HEADER - landscape"
          ]
        },
        "tables": 1,
        "sections": 2
      },
      "from": "docx"
    }
  ],
  "invalid": [
    {
      "id": "split-dde",
      "source": "benchmarks/fixtures/word-editable1/invalid-split-dde.docx",
      "to": "doc",
      "sha256": "acf92bb1de3a8d0b55ef12f614b47a58672be46099213a3f6b818f77d8a755c7",
      "error": "field instructions",
      "from": "docx",
      "originalTarget": "rtf"
    },
    {
      "id": "active-hyperlink",
      "source": "benchmarks/fixtures/word-editable1/invalid-active-hyperlink.docx",
      "to": "doc",
      "sha256": "cfe3c7289e0920fe86e044ee3a99e6697b1f0b96604dfe8405719f202eddd113",
      "error": "hyperlinks",
      "from": "docx",
      "originalTarget": "rtf"
    },
    {
      "id": "unbalanced-field",
      "source": "benchmarks/fixtures/word-editable1/invalid-unbalanced-field.docx",
      "to": "doc",
      "sha256": "7b7928677234057ad2a64c61c53377e405d9df765c5ebf08a0183e93eab4c03a",
      "error": "incomplete XML or fields",
      "from": "docx",
      "originalTarget": "rtf"
    },
    {
      "id": "external-picture",
      "source": "benchmarks/fixtures/rtf/invalid-external-picture.rtf",
      "to": "doc",
      "sha256": "4fc5272dba5c5f24269c01d3586ffa528f7d527001193de1f67021c724fcdc85",
      "error": "field instructions",
      "from": "rtf",
      "originalTarget": "docx"
    },
    {
      "id": "dde",
      "source": "benchmarks/fixtures/rtf/invalid-dde.rtf",
      "to": "doc",
      "sha256": "8639c5b5034e7dc2d368765b75c69435f64332321b489a0b3e03c4968463f6fa",
      "error": "field instructions",
      "from": "rtf",
      "originalTarget": "docx"
    }
  ]
}
