Text this: Using all-phase Fourier method to reconstruct discontinuous signal