"""Standalone SVG construction drawing for the approved elliptical ID logo."""
import html
def render_blueprint(s, gap, t, rx, ry, cx, cy, artwork, path, exact):
left, bowl = s + gap, 1 - rx
grid = []
for i in range(-2, 23):
p = i / 20
weight = ".003" if i % 5 == 0 else ".0016"
grid.append(f'')
corners = [(0, 0), (s-cx, 0), (0, 1-cy), (s-cx, 1-cy),
(left, 0), (left, 1-cy)]
boxes = "".join(f'' for x, y in corners)
def horizontal(a, b, y, text):
return (f''
f'{html.escape(text)}')
dimensions = (horizontal(0, s, -.17, "S") + horizontal(s, left, -.17, "G") +
horizontal(left, bowl, -.17, "T") + horizontal(bowl, 1, -.17, "Rx") +
horizontal(0, s, -.28, "B") + horizontal(s, 1, -.28, "gap+D = A") +
horizontal(0, bowl, 1.18, "A") + horizontal(bowl, 1, 1.18, "B") +
horizontal(0, 1, 1.28, "1 (normalized A+B)"))
return f"""
{artwork}
{boxes}
{''.join(grid)}
{boxes}
{dimensions}
1
1
0
1
Rx
Ry
bowl start
Cx
Cy
"""