You can somewhat go by resistance. Filament leads will usually be an ohm or so depending on available current. High voltage windings might be several hundred ohms.
This leaves your AC input wires which can read 20 ohms on an ohm meter. You won't get these exact numbers. It all depends on transformer size & current ratings.
You can depend on filaments being very low. High voltage being the highest resistance. AC input between the two.
Also black are colors for AC if the transformer manufacturer followed the standard.
Norm
:i have over 15 power trans and all have colors that have faded so its hard to figure out where to hook my 120 volt ac.,, is there a way to test the wires to find out which is the ac lines., thanks
T