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{{1} OVER {2} &= {3} OVER {4} # {2} OVER {3} &= {4} OVER {5} # {3} OVER {4} &= {5} OVER {6} # {4} OVER {5} &= {6} OVER {7} # {5} OVER {6} &= {7} OVER {8} # {6} OVER {7} &= {8} OVER {9}}
honesty: implemented-variant

=== ast ===
EqAlign {
    rows: [
        (
            Fraction {
                numer: Number(
                    "1",
                ),
                denom: Number(
                    "2",
                ),
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Fraction {
                        numer: Number(
                            "3",
                        ),
                        denom: Number(
                            "4",
                        ),
                    },
                ],
            ),
        ),
        (
            Fraction {
                numer: Number(
                    "2",
                ),
                denom: Number(
                    "3",
                ),
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Fraction {
                        numer: Number(
                            "4",
                        ),
                        denom: Number(
                            "5",
                        ),
                    },
                ],
            ),
        ),
        (
            Fraction {
                numer: Number(
                    "3",
                ),
                denom: Number(
                    "4",
                ),
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Fraction {
                        numer: Number(
                            "5",
                        ),
                        denom: Number(
                            "6",
                        ),
                    },
                ],
            ),
        ),
        (
            Fraction {
                numer: Number(
                    "4",
                ),
                denom: Number(
                    "5",
                ),
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Fraction {
                        numer: Number(
                            "6",
                        ),
                        denom: Number(
                            "7",
                        ),
                    },
                ],
            ),
        ),
        (
            Fraction {
                numer: Number(
                    "5",
                ),
                denom: Number(
                    "6",
                ),
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Fraction {
                        numer: Number(
                            "7",
                        ),
                        denom: Number(
                            "8",
                        ),
                    },
                ],
            ),
        ),
        (
            Fraction {
                numer: Number(
                    "6",
                ),
                denom: Number(
                    "7",
                ),
            },
            Row(
                [
                    Symbol(
                        "=",
                    ),
                    Fraction {
                        numer: Number(
                            "8",
                        ),
                        denom: Number(
                            "9",
                        ),
                    },
                ],
            ),
        ),
    ],
}

=== layout ===
EqAlign x=0.0000 y=0.0000 w=57.0000 h=322.8000 bl=161.4000
  row0.left:
    Fraction x=0.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
  row0.right:
    Row x=22.0000 y=0.0000 w=35.0000 h=48.8000 bl=29.4000
      Symbol("=") x=0.0000 y=13.4000 w=16.0000 h=20.0000 bl=16.0000
      Fraction x=16.0000 y=0.0000 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
  row1.left:
    Fraction x=0.0000 y=54.8000 w=19.0000 h=48.8000 bl=29.4000
      numer:
        Number("2") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
      denom:
        Number("3") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row1.right:
    Row x=22.0000 y=54.8000 w=35.0000 h=48.8000 bl=29.4000
      Symbol("=") x=0.0000 y=13.4000 w=16.0000 h=20.0000 bl=16.0000
      Fraction x=16.0000 y=0.0000 w=19.0000 h=48.8000 bl=29.4000
        numer:
          Number("4") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
        denom:
          Number("5") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row2.left:
    Fraction x=0.0000 y=109.6000 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
  row2.right:
    Row x=22.0000 y=109.6000 w=35.0000 h=48.8000 bl=29.4000
      Symbol("=") x=0.0000 y=13.4000 w=16.0000 h=20.0000 bl=16.0000
      Fraction x=16.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
  row3.left:
    Fraction x=0.0000 y=164.4000 w=19.0000 h=48.8000 bl=29.4000
      numer:
        Number("4") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
      denom:
        Number("5") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row3.right:
    Row x=22.0000 y=164.4000 w=35.0000 h=48.8000 bl=29.4000
      Symbol("=") x=0.0000 y=13.4000 w=16.0000 h=20.0000 bl=16.0000
      Fraction x=16.0000 y=0.0000 w=19.0000 h=48.8000 bl=29.4000
        numer:
          Number("6") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
        denom:
          Number("7") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row4.left:
    Fraction x=0.0000 y=219.2000 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
  row4.right:
    Row x=22.0000 y=219.2000 w=35.0000 h=48.8000 bl=29.4000
      Symbol("=") x=0.0000 y=13.4000 w=16.0000 h=20.0000 bl=16.0000
      Fraction x=16.0000 y=0.0000 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
  row5.left:
    Fraction x=0.0000 y=274.0000 w=19.0000 h=48.8000 bl=29.4000
      numer:
        Number("6") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
      denom:
        Number("7") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000
  row5.right:
    Row x=22.0000 y=274.0000 w=35.0000 h=48.8000 bl=29.4000
      Symbol("=") x=0.0000 y=13.4000 w=16.0000 h=20.0000 bl=16.0000
      Fraction x=16.0000 y=0.0000 w=19.0000 h=48.8000 bl=29.4000
        numer:
          Number("8") x=4.0000 y=4.0000 w=11.0000 h=20.0000 bl=16.0000
        denom:
          Number("9") x=4.0000 y=24.8000 w=11.0000 h=20.0000 bl=16.0000

=== svg ===
<text x="4.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="1.00" y1="24.40" x2="18.00" y2="24.40" stroke="#000000" stroke-width="0.80"/>
<text x="4.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="30.00" y="29.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="42.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">3</text>
<line x1="39.00" y1="24.40" x2="56.00" y2="24.40" stroke="#000000" stroke-width="0.80"/>
<text x="42.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">4</text>
<text x="4.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">2</text>
<line x1="1.00" y1="79.20" x2="18.00" y2="79.20" stroke="#000000" stroke-width="0.80"/>
<text x="4.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">3</text>
<text x="30.00" y="84.20" 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="42.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">4</text>
<line x1="39.00" y1="79.20" x2="56.00" y2="79.20" stroke="#000000" stroke-width="0.80"/>
<text x="42.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">5</text>
<text x="4.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">3</text>
<line x1="1.00" y1="134.00" x2="18.00" y2="134.00" stroke="#000000" stroke-width="0.80"/>
<text x="4.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">4</text>
<text x="30.00" y="139.00" 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="42.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="39.00" y1="134.00" x2="56.00" y2="134.00" stroke="#000000" stroke-width="0.80"/>
<text x="42.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="4.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">4</text>
<line x1="1.00" y1="188.80" x2="18.00" y2="188.80" stroke="#000000" stroke-width="0.80"/>
<text x="4.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">5</text>
<text x="30.00" y="193.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="42.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">6</text>
<line x1="39.00" y1="188.80" x2="56.00" y2="188.80" stroke="#000000" stroke-width="0.80"/>
<text x="42.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">7</text>
<text x="4.00" y="239.20" 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="1.00" y1="243.60" x2="18.00" y2="243.60" stroke="#000000" stroke-width="0.80"/>
<text x="4.00" y="260.00" 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="30.00" y="248.60" 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="42.00" y="239.20" 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="39.00" y1="243.60" x2="56.00" y2="243.60" stroke="#000000" stroke-width="0.80"/>
<text x="42.00" y="260.00" 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="4.00" y="294.00" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">6</text>
<line x1="1.00" y1="298.40" x2="18.00" y2="298.40" stroke="#000000" stroke-width="0.80"/>
<text x="4.00" y="314.80" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">7</text>
<text x="30.00" y="303.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="42.00" y="294.00" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">8</text>
<line x1="39.00" y1="298.40" x2="56.00" y2="298.40" stroke="#000000" stroke-width="0.80"/>
<text x="42.00" y="314.80" font-size="20.00" fill="#000000" font-family="'Latin Modern Math', 'STIX Two Text', 'STIX Two Math', 'Times New Roman', 'Times', serif">9</text>