Correcting rulers and shaping stencils