Text this: Photonic Generation of Triangular Pulses Based on Phase Modulation and Spectrum Manipulation