rhwp 0.9.0

HWP/HWPX document engine for Rust applications, WebAssembly, and CLI automation
Documentation
# M09-g equation golden — current-engine lock (variant/exception/unimplemented honesty)
command: EQALIGN
script: EQALIGN{MATRIX{{1} OVER {2} & 0 # 0 & {3} OVER {4}} &= I # PMATRIX{{5} OVER {6} & 1 # 1 & {7} OVER {8}} &= A}
honesty: implemented-variant

=== ast ===
EqAlign {
    rows: [
        (
            Matrix {
                rows: [
                    [
                        Fraction {
                            numer: Number(
                                "1",
                            ),
                            denom: Number(
                                "2",
                            ),
                        },
                        Number(
                            "0",
                        ),
                    ],
                    [
                        Number(
                            "0",
                        ),
                        Fraction {
                            numer: Number(
                                "3",
                            ),
                            denom: Number(
                                "4",
                            ),
                        },
                    ],
                ],
                style: Plain,
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Text(
                        "I",
                    ),
                ],
            ),
        ),
        (
            Matrix {
                rows: [
                    [
                        Fraction {
                            numer: Number(
                                "5",
                            ),
                            denom: Number(
                                "6",
                            ),
                        },
                        Number(
                            "1",
                        ),
                    ],
                    [
                        Number(
                            "1",
                        ),
                        Fraction {
                            numer: Number(
                                "7",
                            ),
                            denom: Number(
                                "8",
                            ),
                        },
                    ],
                ],
                style: Paren,
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Text(
                        "A",
                    ),
                ],
            ),
        ),
    ],
}

=== layout ===
EqAlign x=0.0000 y=0.0000 w=106.6500 h=213.2000 bl=106.6000
  row0.left:
    Matrix(Plain) x=12.0000 y=0.0000 w=62.0000 h=103.6000 bl=51.8000
      row0:
        Fraction x=4.0000 y=0.0000 w=19.0000 h=48.8000 bl=29.4000
          numer:
            Number("1") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
          denom:
            Number("2") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
        Number("0") x=43.0000 y=14.4000 w=11.0000 h=20.0000 bl=16.0000
      row1:
        Number("0") x=8.0000 y=69.2000 w=11.0000 h=20.0000 bl=16.0000
        Fraction x=39.0000 y=54.8000 w=19.0000 h=48.8000 bl=29.4000
          numer:
            Number("3") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
          denom:
            Number("4") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row0.right:
    Row x=77.0000 y=35.8000 w=29.6500 h=20.0000 bl=16.0000
      Symbol("=") x=0.0000 y=0.0000 w=16.0000 h=20.0000 bl=16.0000
      Text("I") x=16.0000 y=0.0000 w=13.6500 h=20.0000 bl=16.0000
  row1.left:
    Matrix(Paren) x=0.0000 y=109.6000 w=74.0000 h=103.6000 bl=51.8000
      row0:
        Fraction x=10.0000 y=0.0000 w=19.0000 h=48.8000 bl=29.4000
          numer:
            Number("5") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
          denom:
            Number("6") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
        Number("1") x=49.0000 y=14.4000 w=11.0000 h=20.0000 bl=16.0000
      row1:
        Number("1") x=14.0000 y=69.2000 w=11.0000 h=20.0000 bl=16.0000
        Fraction x=45.0000 y=54.8000 w=19.0000 h=48.8000 bl=29.4000
          numer:
            Number("7") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
          denom:
            Number("8") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row1.right:
    Row x=77.0000 y=145.4000 w=29.6500 h=20.0000 bl=16.0000
      Symbol("=") x=0.0000 y=0.0000 w=16.0000 h=20.0000 bl=16.0000
      Text("A") x=16.0000 y=0.0000 w=13.6500 h=20.0000 bl=16.0000

=== svg ===
<text x="20.00" y="20.00" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">1</text>
<line x1="17.00" y1="24.40" x2="34.00" y2="24.40" stroke="#000000" stroke-width="0.80"/>
<text x="20.00" y="40.80" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">2</text>
<text x="55.00" y="30.40" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">0</text>
<text x="20.00" y="85.20" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">0</text>
<text x="55.00" y="74.80" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">3</text>
<line x1="52.00" y1="79.20" x2="69.00" y2="79.20" stroke="#000000" stroke-width="0.80"/>
<text x="55.00" y="95.60" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">4</text>
<text x="85.00" y="51.80" font-size="20.00" fill="#000000" text-anchor="middle" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">=</text>
<text x="93.00" y="51.80" font-size="20.00" fill="#000000" font-style="italic" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">I</text>
<path d="M5.40,109.60 C0.30,128.25 0.30,194.55 5.40,213.20" fill="none" stroke="#000000" stroke-width="0.84" stroke-linecap="round"/>
<path d="M68.60,109.60 C73.70,128.25 73.70,194.55 68.60,213.20" fill="none" stroke="#000000" stroke-width="0.84" stroke-linecap="round"/>
<text x="14.00" y="129.60" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">5</text>
<line x1="11.00" y1="134.00" x2="28.00" y2="134.00" stroke="#000000" stroke-width="0.80"/>
<text x="14.00" y="150.40" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">6</text>
<text x="49.00" y="140.00" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">1</text>
<text x="14.00" y="194.80" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">1</text>
<text x="49.00" y="184.40" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">7</text>
<line x1="46.00" y1="188.80" x2="63.00" y2="188.80" stroke="#000000" stroke-width="0.80"/>
<text x="49.00" y="205.20" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">8</text>
<text x="85.00" y="161.40" font-size="20.00" fill="#000000" text-anchor="middle" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">=</text>
<text x="93.00" y="161.40" font-size="20.00" fill="#000000" font-style="italic" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">A</text>