Determining where the corners of the square hole must be, is not a simple task. Ideally, the cock should strike the edge of the plate at the end of its throw at the same time that the tumbler comes into contact with the back edge of the bridle. This stains the lock overall the least when the cock comes to rest. At the same time, the mainspring should stop very close to the tip of the tumbler ramp without dropping below the edge of the lockplate.
On a blank cock, I polish the back and tin it with soft solder. Then with the lock in the fired position, I lay the new hammer over the tumbler square so that the hammer stop on the inside back is just slightly below the edge of the lockplate, and give the face of the cock a solid tap with a hammer. The tumbler square is now marked in the solder on the inside of the cock. Drill the hole undersized, and file the tapered hole to fit. Then when filing the contacts, hopefully to fulfill the first paragraph above, you will have a little metal to work with so that everything comes out well.