Nick Compton and James Taylor hit half-centuries and dug England out of trouble on a rain-hit first day of the first Test against South Africa at Kingsmead yesterday.