'Imperial' includes a number of different fastener systems one of which is Whitworth, and they've changed over time. In addition some members of the imperial family specify spanner size by the distance between the hexagon flats, others by the diameter of the threaded part of the bolt. This picture from Wikipedia's Whitworth entry shows an example of two spanners, both labelled 5/8":

Yes, it's confusing, especially when ordering spanners to fit. Spanners labelled 'AF' are easier because that's the actual distance between hexagon flats: if you measure 1/2" across a bolt head, then 1/2" AF will fit.
Repairing cars in the 1970s was a right nightmare. Almost every conceivable variation in use – old and new British, USA, Unified, BA and metric. Often mixed together on the same vehicle. I've even come across metric bolts with imperial heads. I never had the right spanner, and many the confusing conversation I've had trying to buy them. Back then most sellers delighted in humiliating buyers who didn't quite understand what they needed…
Dave