A basic algorithm to convert a common gable truss into a transition truss should not be to much problem. However, to make it handle all cases would become difficult if you include raised energy heels, drop top chords and scissor trusses in the mix. Consider the two examples below: