#import "typst-package/lib.typ": decode-fumen, render-field
#set page(margin: 1cm, height: auto, fill: white)
#set text(lang: "zh", region: "cn", font: ("New Computer Modern", "Source Han Sans SC"))
#align(center)[
  #text(size: 25pt)[
    `@preview/mino:0.1.1`
  ]
]

= Render Field
#let custom-field = `
___ZSS
L__ZZSS
LtttZJJJOO
LLtIIIIJOO
`

#table(columns: (auto, 1fr), stroke: none, align: horizon, gutter: 1em, [#render-field(custom-field, rows: 5, cell-size: 15pt)
], [
```typst
#import "@preview/mino:0.1.1": render-field
#let custom-field = `
___ZSS
L__ZZSS
LtttZJJJOO
LLtIIIIJOO
`
#render-field(custom-field, rows: 5, cell-size: 15pt)
```
])
= Render Fumen
```typ
#import "@preview/mino:0.1.1": decode-fumen, render-field

#let fumen = decode-fumen("v115@...")
#for i in range(fumen.len()) {
  let field = fumen.at(i).at("field")
  [
    #box[
      #render-field(field, rows: 8, cell-size: 13pt) 
      (#(i+1))
      #fumen.at(i).comment
    ]
    #h(0.5pt)
  ]
}
```

#let fumen = decode-fumen("v115@vhPJHYaAkeEfEXoC+BlvlzByEEfE03k2AlP5ABwfAA?A+rQAAqsBsqBvtBTpBVhQeAlvlzByEEfE03k2AlP5ABwvDf?E33ZBBlfbOBV5AAAOfQeAlvl<KEY>")

#for i in range(8) {
  let field = fumen.at(i).at("field")
  [
    #box[
      #render-field(field, rows: 8, cell-size: 13pt) 
      (#(i+1))
      #fumen.at(i).comment
    ]
    #h(0.5pt)
  ]
}
