About 45 years ago, I learned in school how to construct perpendicular lines with straight-edge and compasses, and I remember being taught two techniques (with variations on one). I recall how to perform one, but the other I forgot. The one that I can still do is applicable if the paper/workspace is large enough that you can swing compasses around at will. But the second technique was specifically applicable for where the perpendicular was near to the edge of the paper. At the time, I evidently paid insufficient attention, but now I find myself wanting to use this in a carpentry setting. Quite literally, I have a straight edge, a set of scribing dividers and a scribing tool, and I need to make four holes that are on the corners of a square, about four inches apart, but within about 1/2" ~ 1" of the edge of my wood.
I searched, and came up with dozens of videos illustrating the "normal" (hah, no pun originally intended, but I'll take it!) approach, but nothing on the confined space method. Obviously, this is a straight-edge and compasses problem. I'm not interested in using a set-square in this case (though that might be a workaround if I really can't find the real solution).
Does anyone know how this is done?

Hello fellow woodworker! This is the technique I generally use for dropping a perpendicular on a line close to the edge of the wood.
I've intentionally skewed the red rays, which represent our "no go" zone. Typically the edge of the wood is true, I just wanted to make it clear they weren't participating in the construction.
The line we start off with is in light blue, and the perpendicular we're constructing is in dark purple.
The construction steps are as follows:
This works because an angle inscribed in a semicircle is always a right angle.