Game translation - text width / line overflows

Hello, I’m translating a rm2k game using lcftrans (.po files) and easyrpg player, but I am struggling with text box overflows. Since there is no auto-wrap, I constantly have to guess the line width so that the lines don’t overflow or look awkwardly short. I was thinking of using an editor with character limit rulers, but that is not possible because of control codes like \c[4] or |. Is there some kind of tool or other way to do this more effectively than checking every single dialogue in-game?