Warning: this is an htmlized version! The original is across this link, and the conversion rules are here.
```Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> dofile "newrect.lua"
> z = ZHA.fromspec("123RRL432R1"):PP()
{ "L"={0=0, 1=-1, 2=-2, 3=-1, 4=0, 5=-1, 6=-2, 7=-1, 8=0, 9=1, 10=2},
"R"={0=0, 1=1, 2=2, 3=3, 4=4, 5=3, 6=4, 7=3, 8=2, 9=3, 10=2},
"maxl"={0=2, 1=2, 2=4, 3=4, 4=4, 5=4, 6=4},
"maxr"={0=4, 1=5, 2=5, 3=6, 4=6},
"maxx"=4,
"maxy"=10,
"minl"={0=0, 1=0, 2=0, 3=0, 4=0, 5=1, 6=3},
"minr"={0=0, 1=0, 2=0, 3=2, 4=2},
"minx"=-2,
"spec"="123RRL432R1",
"top"={1=2, 2=10},
"topl"=4,
"topr"=6,
"widths"="12333343221"
}
> = z
46
45  36
44  35
43  34  25
42  33  24  15
32  23  14
22  13  04
21  12  03
20  11  02
10  01
00
>
> for y=z.maxy-1,0,-1 do
>>   for x=z.minx,z.maxx do
>>     printf(z:xycontents(x, y) or "  ")
>>   end
>>   print()
>> end
45  36
44  35
43  34  25
42  33  24  15
32  23  14
22  13  04
21  12  03
20  11  02
10  01
00
> = z
46
45  36
44  35
43  34  25
42  33  24  15
32  23  14
22  13  04
21  12  03
20  11  02
10  01
00
> z:PP()
{ "L"={0=0, 1=-1, 2=-2, 3=-1, 4=0, 5=-1, 6=-2, 7=-1, 8=0, 9=1, 10=2},
"R"={0=0, 1=1, 2=2, 3=3, 4=4, 5=3, 6=4, 7=3, 8=2, 9=3, 10=2},
"maxl"={0=2, 1=2, 2=4, 3=4, 4=4, 5=4, 6=4},
"maxr"={0=4, 1=5, 2=5, 3=6, 4=6},
"maxx"=4,
"maxy"=10,
"minl"={0=0, 1=0, 2=0, 3=0, 4=0, 5=1, 6=3},
"minr"={0=0, 1=0, 2=0, 3=2, 4=2},
"minx"=-2,
"spec"="123RRL432R1",
"top"={1=2, 2=10},
"topl"=4,
"topr"=6,
"widths"="12333343221"
}
>
> PPV(z:tolines())
{ 1="        46    ",
2="      45  36  ",
3="    44  35    ",
4="  43  34  25  ",
5="42  33  24  15",
6="  32  23  14  ",
7="    22  13  04",
8="  21  12  03  ",
9="20  11  02    ",
10="  10  01      ",
11="    00        "
}
> PP(z:tostring())
"        46    \
45  36  \
44  35    \
43  34  25  \
42  33  24  15\
32  23  14  \
22  13  04\
21  12  03  \
20  11  02    \
10  01      \
00        "
>
> = z:hasxy(0,0)
true
> = z
46
45  36
44  35
43  34  25
42  33  24  15
32  23  14
22  13  04
21  12  03
20  11  02
10  01
00
>
> ```