identify windings of unknown transformer using continuity check.
take another transformer with low voltage output such as 6V for example as a test AC source.
connect any of the unknown windings to test AC and measure AC voltage on all coils.
the one with highest voltage is the primary.