Patch text parser now essentially works. More testing needed.